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

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • 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
## CAVEAT EMPTOR:
 
6423
## There is no encapsulation within the following macros, do not change
 
6424
## the running order or otherwise move them around unless you know exactly
 
6425
## what you are doing...
 
6426
 
 
6427
lt_prog_compiler_no_builtin_flag=
 
6428
 
 
6429
if test "$GCC" = yes; then
 
6430
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6431
 
 
6432
  
 
6433
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6434
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6435
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6437
else
 
6438
  lt_cv_prog_compiler_rtti_exceptions=no
 
6439
  ac_outfile=conftest.$ac_objext
 
6440
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6441
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6442
   # Insert the option either (1) after the last *FLAGS variable, or
 
6443
   # (2) before a word containing "conftest.", or (3) at the end.
 
6444
   # Note that $ac_compile itself does not contain backslashes and begins
 
6445
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6446
   # The option is referenced via a variable to avoid confusing sed.
 
6447
   lt_compile=`echo "$ac_compile" | $SED \
 
6448
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6449
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6450
   -e 's:$: $lt_compiler_flag:'`
 
6451
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
6452
   (eval "$lt_compile" 2>conftest.err)
 
6453
   ac_status=$?
 
6454
   cat conftest.err >&5
 
6455
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
6456
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6457
     # The compiler can only warn and ignore the option if not recognized
 
6458
     # So say no if there are warnings other than the usual output.
 
6459
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6460
     $SED '/^$/d' conftest.err >conftest.er2
 
6461
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6462
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6463
     fi
 
6464
   fi
 
6465
   $rm conftest*
 
6466
 
 
6467
fi
 
6468
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6469
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6470
 
 
6471
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6472
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6473
else
 
6474
    :
 
6475
fi
 
6476
 
 
6477
fi
 
6478
 
 
6479
lt_prog_compiler_wl=
 
6480
lt_prog_compiler_pic=
 
6481
lt_prog_compiler_static=
 
6482
 
 
6483
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6484
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6485
 
 
6486
  if test "$GCC" = yes; then
 
6487
    lt_prog_compiler_wl='-Wl,'
 
6488
    lt_prog_compiler_static='-static'
 
6489
 
 
6490
    case $host_os in
 
6491
      aix*)
 
6492
      # All AIX code is PIC.
 
6493
      if test "$host_cpu" = ia64; then
 
6494
        # AIX 5 now supports IA64 processor
 
6495
        lt_prog_compiler_static='-Bstatic'
 
6496
      fi
 
6497
      ;;
 
6498
 
 
6499
    amigaos*)
 
6500
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6501
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6502
      # like `-m68040'.
 
6503
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6504
      ;;
 
6505
 
 
6506
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6507
      # PIC is the default for these OSes.
 
6508
      ;;
 
6509
 
 
6510
    mingw* | pw32* | os2*)
 
6511
      # This hack is so that the source file can tell whether it is being
 
6512
      # built for inclusion in a dll (and should export symbols for example).
 
6513
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6514
      ;;
 
6515
 
 
6516
    darwin* | rhapsody*)
 
6517
      # PIC is the default on this platform
 
6518
      # Common symbols not allowed in MH_DYLIB files
 
6519
      lt_prog_compiler_pic='-fno-common'
 
6520
      ;;
 
6521
 
 
6522
    msdosdjgpp*)
 
6523
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6524
      # on systems that don't support them.
 
6525
      lt_prog_compiler_can_build_shared=no
 
6526
      enable_shared=no
 
6527
      ;;
 
6528
 
 
6529
    sysv4*MP*)
 
6530
      if test -d /usr/nec; then
 
6531
        lt_prog_compiler_pic=-Kconform_pic
 
6532
      fi
 
6533
      ;;
 
6534
 
 
6535
    hpux*)
 
6536
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6537
      # not for PA HP-UX.
 
6538
      case $host_cpu in
 
6539
      hppa*64*|ia64*)
 
6540
        # +Z the default
 
6541
        ;;
 
6542
      *)
 
6543
        lt_prog_compiler_pic='-fPIC'
 
6544
        ;;
 
6545
      esac
 
6546
      ;;
 
6547
 
 
6548
    *)
 
6549
      lt_prog_compiler_pic='-fPIC'
 
6550
      ;;
 
6551
    esac
 
6552
  else
 
6553
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6554
    case $host_os in
 
6555
    aix*)
 
6556
      lt_prog_compiler_wl='-Wl,'
 
6557
      if test "$host_cpu" = ia64; then
 
6558
        # AIX 5 now supports IA64 processor
 
6559
        lt_prog_compiler_static='-Bstatic'
 
6560
      else
 
6561
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6562
      fi
 
6563
      ;;
 
6564
      darwin*)
 
6565
        # PIC is the default on this platform
 
6566
        # Common symbols not allowed in MH_DYLIB files
 
6567
       case $cc_basename in
 
6568
         xlc*)
 
6569
         lt_prog_compiler_pic='-qnocommon'
 
6570
         lt_prog_compiler_wl='-Wl,'
 
6571
         ;;
 
6572
       esac
 
6573
       ;;
 
6574
 
 
6575
    mingw* | pw32* | os2*)
 
6576
      # This hack is so that the source file can tell whether it is being
 
6577
      # built for inclusion in a dll (and should export symbols for example).
 
6578
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6579
      ;;
 
6580
 
 
6581
    hpux9* | hpux10* | hpux11*)
 
6582
      lt_prog_compiler_wl='-Wl,'
 
6583
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6584
      # not for PA HP-UX.
 
6585
      case $host_cpu in
 
6586
      hppa*64*|ia64*)
 
6587
        # +Z the default
 
6588
        ;;
 
6589
      *)
 
6590
        lt_prog_compiler_pic='+Z'
 
6591
        ;;
 
6592
      esac
 
6593
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6594
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6595
      ;;
 
6596
 
 
6597
    irix5* | irix6* | nonstopux*)
 
6598
      lt_prog_compiler_wl='-Wl,'
 
6599
      # PIC (with -KPIC) is the default.
 
6600
      lt_prog_compiler_static='-non_shared'
 
6601
      ;;
 
6602
 
 
6603
    newsos6)
 
6604
      lt_prog_compiler_pic='-KPIC'
 
6605
      lt_prog_compiler_static='-Bstatic'
 
6606
      ;;
 
6607
 
 
6608
    linux*)
 
6609
      case $cc_basename in
 
6610
      icc* | ecc*)
 
6611
        lt_prog_compiler_wl='-Wl,'
 
6612
        lt_prog_compiler_pic='-KPIC'
 
6613
        lt_prog_compiler_static='-static'
 
6614
        ;;
 
6615
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6616
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6617
        # which looks to be a dead project)
 
6618
        lt_prog_compiler_wl='-Wl,'
 
6619
        lt_prog_compiler_pic='-fpic'
 
6620
        lt_prog_compiler_static='-Bstatic'
 
6621
        ;;
 
6622
      ccc*)
 
6623
        lt_prog_compiler_wl='-Wl,'
 
6624
        # All Alpha code is PIC.
 
6625
        lt_prog_compiler_static='-non_shared'
 
6626
        ;;
 
6627
      esac
 
6628
      ;;
 
6629
 
 
6630
    osf3* | osf4* | osf5*)
 
6631
      lt_prog_compiler_wl='-Wl,'
 
6632
      # All OSF/1 code is PIC.
 
6633
      lt_prog_compiler_static='-non_shared'
 
6634
      ;;
 
6635
 
 
6636
    sco3.2v5*)
 
6637
      lt_prog_compiler_pic='-Kpic'
 
6638
      lt_prog_compiler_static='-dn'
 
6639
      ;;
 
6640
 
 
6641
    solaris*)
 
6642
      lt_prog_compiler_pic='-KPIC'
 
6643
      lt_prog_compiler_static='-Bstatic'
 
6644
      case $cc_basename in
 
6645
      f77* | f90* | f95*)
 
6646
        lt_prog_compiler_wl='-Qoption ld ';;
 
6647
      *)
 
6648
        lt_prog_compiler_wl='-Wl,';;
 
6649
      esac
 
6650
      ;;
 
6651
 
 
6652
    sunos4*)
 
6653
      lt_prog_compiler_wl='-Qoption ld '
 
6654
      lt_prog_compiler_pic='-PIC'
 
6655
      lt_prog_compiler_static='-Bstatic'
 
6656
      ;;
 
6657
 
 
6658
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6659
      lt_prog_compiler_wl='-Wl,'
 
6660
      lt_prog_compiler_pic='-KPIC'
 
6661
      lt_prog_compiler_static='-Bstatic'
 
6662
      ;;
 
6663
 
 
6664
    sysv4*MP*)
 
6665
      if test -d /usr/nec ;then
 
6666
        lt_prog_compiler_pic='-Kconform_pic'
 
6667
        lt_prog_compiler_static='-Bstatic'
 
6668
      fi
 
6669
      ;;
 
6670
 
 
6671
    unicos*)
 
6672
      lt_prog_compiler_wl='-Wl,'
 
6673
      lt_prog_compiler_can_build_shared=no
 
6674
      ;;
 
6675
 
 
6676
    uts4*)
 
6677
      lt_prog_compiler_pic='-pic'
 
6678
      lt_prog_compiler_static='-Bstatic'
 
6679
      ;;
 
6680
 
 
6681
    *)
 
6682
      lt_prog_compiler_can_build_shared=no
 
6683
      ;;
 
6684
    esac
 
6685
  fi
 
6686
 
 
6687
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6688
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6689
 
 
6690
#
 
6691
# Check to make sure the PIC flag actually works.
 
6692
#
 
6693
if test -n "$lt_prog_compiler_pic"; then
 
6694
  
 
6695
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6696
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6697
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6699
else
 
6700
  lt_prog_compiler_pic_works=no
 
6701
  ac_outfile=conftest.$ac_objext
 
6702
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6703
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6704
   # Insert the option either (1) after the last *FLAGS variable, or
 
6705
   # (2) before a word containing "conftest.", or (3) at the end.
 
6706
   # Note that $ac_compile itself does not contain backslashes and begins
 
6707
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6708
   # The option is referenced via a variable to avoid confusing sed.
 
6709
   lt_compile=`echo "$ac_compile" | $SED \
 
6710
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6711
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6712
   -e 's:$: $lt_compiler_flag:'`
 
6713
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
6714
   (eval "$lt_compile" 2>conftest.err)
 
6715
   ac_status=$?
 
6716
   cat conftest.err >&5
 
6717
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
6718
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6719
     # The compiler can only warn and ignore the option if not recognized
 
6720
     # So say no if there are warnings other than the usual output.
 
6721
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6722
     $SED '/^$/d' conftest.err >conftest.er2
 
6723
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6724
       lt_prog_compiler_pic_works=yes
 
6725
     fi
 
6726
   fi
 
6727
   $rm conftest*
 
6728
 
 
6729
fi
 
6730
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6731
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6732
 
 
6733
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6734
    case $lt_prog_compiler_pic in
 
6735
     "" | " "*) ;;
 
6736
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6737
     esac
 
6738
else
 
6739
    lt_prog_compiler_pic=
 
6740
     lt_prog_compiler_can_build_shared=no
 
6741
fi
 
6742
 
 
6743
fi
 
6744
case $host_os in
 
6745
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6746
  *djgpp*)
 
6747
    lt_prog_compiler_pic=
 
6748
    ;;
 
6749
  *)
 
6750
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6751
    ;;
 
6752
esac
 
6753
 
 
6754
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6755
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6756
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6758
else
 
6759
  lt_cv_prog_compiler_c_o=no
 
6760
   $rm -r conftest 2>/dev/null
 
6761
   mkdir conftest
 
6762
   cd conftest
 
6763
   mkdir out
 
6764
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6765
 
 
6766
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6767
   # Insert the option either (1) after the last *FLAGS variable, or
 
6768
   # (2) before a word containing "conftest.", or (3) at the end.
 
6769
   # Note that $ac_compile itself does not contain backslashes and begins
 
6770
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6771
   lt_compile=`echo "$ac_compile" | $SED \
 
6772
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6773
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6774
   -e 's:$: $lt_compiler_flag:'`
 
6775
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
6776
   (eval "$lt_compile" 2>out/conftest.err)
 
6777
   ac_status=$?
 
6778
   cat out/conftest.err >&5
 
6779
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
6780
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6781
   then
 
6782
     # The compiler can only warn and ignore the option if not recognized
 
6783
     # So say no if there are warnings
 
6784
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6785
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6786
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6787
       lt_cv_prog_compiler_c_o=yes
 
6788
     fi
 
6789
   fi
 
6790
   chmod u+w . 2>&5
 
6791
   $rm conftest*
 
6792
   # SGI C++ compiler will create directory out/ii_files/ for
 
6793
   # template instantiation
 
6794
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6795
   $rm out/* && rmdir out
 
6796
   cd ..
 
6797
   rmdir conftest
 
6798
   $rm conftest*
 
6799
 
 
6800
fi
 
6801
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6802
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6803
 
 
6804
 
 
6805
hard_links="nottested"
 
6806
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6807
  # do not overwrite the value of need_locks provided by the user
 
6808
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6809
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6810
  hard_links=yes
 
6811
  $rm conftest*
 
6812
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6813
  touch conftest.a
 
6814
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6815
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6816
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6817
echo "${ECHO_T}$hard_links" >&6
 
6818
  if test "$hard_links" = no; then
 
6819
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6820
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6821
    need_locks=warn
 
6822
  fi
 
6823
else
 
6824
  need_locks=no
 
6825
fi
 
6826
 
 
6827
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6828
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6829
 
 
6830
  runpath_var=
 
6831
  allow_undefined_flag=
 
6832
  enable_shared_with_static_runtimes=no
 
6833
  archive_cmds=
 
6834
  archive_expsym_cmds=
 
6835
  old_archive_From_new_cmds=
 
6836
  old_archive_from_expsyms_cmds=
 
6837
  export_dynamic_flag_spec=
 
6838
  whole_archive_flag_spec=
 
6839
  thread_safe_flag_spec=
 
6840
  hardcode_libdir_flag_spec=
 
6841
  hardcode_libdir_flag_spec_ld=
 
6842
  hardcode_libdir_separator=
 
6843
  hardcode_direct=no
 
6844
  hardcode_minus_L=no
 
6845
  hardcode_shlibpath_var=unsupported
 
6846
  link_all_deplibs=unknown
 
6847
  hardcode_automatic=no
 
6848
  module_cmds=
 
6849
  module_expsym_cmds=
 
6850
  always_export_symbols=no
 
6851
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6852
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6853
  # included in the symbol list
 
6854
  include_expsyms=
 
6855
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6856
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6857
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6858
  # as well as any symbol that contains `d'.
 
6859
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6860
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6861
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6862
  # the symbol is explicitly referenced.  Since portable code cannot
 
6863
  # rely on this symbol name, it's probably fine to never include it in
 
6864
  # preloaded symbol tables.
 
6865
  extract_expsyms_cmds=
 
6866
  # Just being paranoid about ensuring that cc_basename is set.
 
6867
  for cc_temp in $compiler""; do
 
6868
  case $cc_temp in
 
6869
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6870
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6871
    \-*) ;;
 
6872
    *) break;;
 
6873
  esac
 
6874
done
 
6875
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6876
 
 
6877
  case $host_os in
 
6878
  cygwin* | mingw* | pw32*)
 
6879
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6880
    # When not using gcc, we currently assume that we are using
 
6881
    # Microsoft Visual C++.
 
6882
    if test "$GCC" != yes; then
 
6883
      with_gnu_ld=no
 
6884
    fi
 
6885
    ;;
 
6886
  openbsd*)
 
6887
    with_gnu_ld=no
 
6888
    ;;
 
6889
  esac
 
6890
 
 
6891
  ld_shlibs=yes
 
6892
  if test "$with_gnu_ld" = yes; then
 
6893
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6894
    wlarc='${wl}'
 
6895
 
 
6896
    # Set some defaults for GNU ld with shared library support. These
 
6897
    # are reset later if shared libraries are not supported. Putting them
 
6898
    # here allows them to be overridden if necessary.
 
6899
    runpath_var=LD_RUN_PATH
 
6900
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6901
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6902
    # ancient GNU ld didn't support --whole-archive et. al.
 
6903
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6904
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6905
      else
 
6906
        whole_archive_flag_spec=
 
6907
    fi
 
6908
    supports_anon_versioning=no
 
6909
    case `$LD -v 2>/dev/null` in
 
6910
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6911
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6912
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6913
      *\ 2.11.*) ;; # other 2.11 versions
 
6914
      *) supports_anon_versioning=yes ;;
 
6915
    esac
 
6916
 
 
6917
    # See if GNU ld supports shared libraries.
 
6918
    case $host_os in
 
6919
    aix3* | aix4* | aix5*)
 
6920
      # On AIX/PPC, the GNU linker is very broken
 
6921
      if test "$host_cpu" != ia64; then
 
6922
        ld_shlibs=no
 
6923
        cat <<EOF 1>&2
 
6924
 
 
6925
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6926
*** to be unable to reliably create shared libraries on AIX.
 
6927
*** Therefore, libtool is disabling shared libraries support.  If you
 
6928
*** really care for shared libraries, you may want to modify your PATH
 
6929
*** so that a non-GNU linker is found, and then restart.
 
6930
 
 
6931
EOF
 
6932
      fi
 
6933
      ;;
 
6934
 
 
6935
    amigaos*)
 
6936
      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)'
 
6937
      hardcode_libdir_flag_spec='-L$libdir'
 
6938
      hardcode_minus_L=yes
 
6939
 
 
6940
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6941
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6942
      # to version 4, is to share data among multiple programs linked
 
6943
      # with the same dynamic library.  Since this doesn't match the
 
6944
      # behavior of shared libraries on other platforms, we can't use
 
6945
      # them.
 
6946
      ld_shlibs=no
 
6947
      ;;
 
6948
 
 
6949
    beos*)
 
6950
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6951
        allow_undefined_flag=unsupported
 
6952
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6953
        # support --undefined.  This deserves some investigation.  FIXME
 
6954
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6955
      else
 
6956
        ld_shlibs=no
 
6957
      fi
 
6958
      ;;
 
6959
 
 
6960
    cygwin* | mingw* | pw32*)
 
6961
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6962
      # as there is no search path for DLLs.
 
6963
      hardcode_libdir_flag_spec='-L$libdir'
 
6964
      allow_undefined_flag=unsupported
 
6965
      always_export_symbols=no
 
6966
      enable_shared_with_static_runtimes=yes
 
6967
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6968
 
 
6969
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6970
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6971
        # If the export-symbols file already is a .def file (1st line
 
6972
        # is EXPORTS), use it as is; otherwise, prepend...
 
6973
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6974
          cp $export_symbols $output_objdir/$soname.def;
 
6975
        else
 
6976
          echo EXPORTS > $output_objdir/$soname.def;
 
6977
          cat $export_symbols >> $output_objdir/$soname.def;
 
6978
        fi~
 
6979
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6980
      else
 
6981
        ld_shlibs=no
 
6982
      fi
 
6983
      ;;
 
6984
 
 
6985
    linux*)
 
6986
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6987
        tmp_addflag=
 
6988
        case $cc_basename,$host_cpu in
 
6989
        pgcc*)                          # Portland Group C compiler
 
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'
 
6992
          ;;
 
6993
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6994
          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'
 
6995
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6996
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6997
          tmp_addflag=' -i_dynamic' ;;
 
6998
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6999
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7000
        ifc* | ifort*)                  # Intel Fortran compiler
 
7001
          tmp_addflag=' -nofor_main' ;;
 
7002
        esac
 
7003
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7004
 
 
7005
        if test $supports_anon_versioning = yes; then
 
7006
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7007
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7008
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7009
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7010
        fi
 
7011
        link_all_deplibs=no
 
7012
      else
 
7013
        ld_shlibs=no
 
7014
      fi
 
7015
      ;;
 
7016
 
 
7017
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7018
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7019
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7020
        wlarc=
 
7021
      else
 
7022
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7023
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7024
      fi
 
7025
      ;;
 
7026
 
 
7027
    solaris* | sysv5*)
 
7028
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7029
        ld_shlibs=no
 
7030
        cat <<EOF 1>&2
 
7031
 
 
7032
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7033
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7034
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7035
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7036
*** your PATH or compiler configuration so that the native linker is
 
7037
*** used, and then restart.
 
7038
 
 
7039
EOF
 
7040
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7041
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7042
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7043
      else
 
7044
        ld_shlibs=no
 
7045
      fi
 
7046
      ;;
 
7047
 
 
7048
    sunos4*)
 
7049
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7050
      wlarc=
 
7051
      hardcode_direct=yes
 
7052
      hardcode_shlibpath_var=no
 
7053
      ;;
 
7054
 
 
7055
    *)
 
7056
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7057
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7058
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7059
      else
 
7060
        ld_shlibs=no
 
7061
      fi
 
7062
      ;;
 
7063
    esac
 
7064
 
 
7065
    if test "$ld_shlibs" = no; then
 
7066
      runpath_var=
 
7067
      hardcode_libdir_flag_spec=
 
7068
      export_dynamic_flag_spec=
 
7069
      whole_archive_flag_spec=
 
7070
    fi
 
7071
  else
 
7072
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7073
    case $host_os in
 
7074
    aix3*)
 
7075
      allow_undefined_flag=unsupported
 
7076
      always_export_symbols=yes
 
7077
      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'
 
7078
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7079
      # are no directories specified by -L.
 
7080
      hardcode_minus_L=yes
 
7081
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7082
        # Neither direct hardcoding nor static linking is supported with a
 
7083
        # broken collect2.
 
7084
        hardcode_direct=unsupported
 
7085
      fi
 
7086
      ;;
 
7087
 
 
7088
    aix4* | aix5*)
 
7089
      if test "$host_cpu" = ia64; then
 
7090
        # On IA64, the linker does run time linking by default, so we don't
 
7091
        # have to do anything special.
 
7092
        aix_use_runtimelinking=no
 
7093
        exp_sym_flag='-Bexport'
 
7094
        no_entry_flag=""
 
7095
      else
 
7096
        # If we're using GNU nm, then we don't want the "-C" option.
 
7097
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7098
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7099
          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'
 
7100
        else
 
7101
          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'
 
7102
        fi
 
7103
        aix_use_runtimelinking=no
 
7104
 
 
7105
        # Test if we are trying to use run time linking or normal
 
7106
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7107
        # need to do runtime linking.
 
7108
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7109
          for ld_flag in $LDFLAGS; do
 
7110
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7111
            aix_use_runtimelinking=yes
 
7112
            break
 
7113
          fi
 
7114
          done
 
7115
        esac
 
7116
 
 
7117
        exp_sym_flag='-bexport'
 
7118
        no_entry_flag='-bnoentry'
 
7119
      fi
 
7120
 
 
7121
      # When large executables or shared objects are built, AIX ld can
 
7122
      # have problems creating the table of contents.  If linking a library
 
7123
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7124
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7125
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7126
 
 
7127
      archive_cmds=''
 
7128
      hardcode_direct=yes
 
7129
      hardcode_libdir_separator=':'
 
7130
      link_all_deplibs=yes
 
7131
 
 
7132
      if test "$GCC" = yes; then
 
7133
        case $host_os in aix4.[012]|aix4.[012].*)
 
7134
        # We only want to do this on AIX 4.2 and lower, the check
 
7135
        # below for broken collect2 doesn't work under 4.3+
 
7136
          collect2name=`${CC} -print-prog-name=collect2`
 
7137
          if test -f "$collect2name" && \
 
7138
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7139
          then
 
7140
          # We have reworked collect2
 
7141
          hardcode_direct=yes
 
7142
          else
 
7143
          # We have old collect2
 
7144
          hardcode_direct=unsupported
 
7145
          # It fails to find uninstalled libraries when the uninstalled
 
7146
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7147
          # to unsupported forces relinking
 
7148
          hardcode_minus_L=yes
 
7149
          hardcode_libdir_flag_spec='-L$libdir'
 
7150
          hardcode_libdir_separator=
 
7151
          fi
 
7152
        esac
 
7153
        shared_flag='-shared'
 
7154
        if test "$aix_use_runtimelinking" = yes; then
 
7155
          shared_flag="$shared_flag "'${wl}-G'
 
7156
        fi
 
7157
      else
 
7158
        # not using gcc
 
7159
        if test "$host_cpu" = ia64; then
 
7160
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7161
        # chokes on -Wl,-G. The following line is correct:
 
7162
          shared_flag='-G'
 
7163
        else
 
7164
        if test "$aix_use_runtimelinking" = yes; then
 
7165
            shared_flag='${wl}-G'
 
7166
          else
 
7167
            shared_flag='${wl}-bM:SRE'
 
7168
        fi
 
7169
        fi
 
7170
      fi
 
7171
 
 
7172
      # It seems that -bexpall does not export symbols beginning with
 
7173
      # underscore (_), so it is better to generate a list of symbols to export.
 
7174
      always_export_symbols=yes
 
7175
      if test "$aix_use_runtimelinking" = yes; then
 
7176
        # Warning - without using the other runtime loading flags (-brtl),
 
7177
        # -berok will link without error, but may produce a broken library.
 
7178
        allow_undefined_flag='-berok'
 
7179
       # Determine the default libpath from the value encoded in an empty executable.
 
7180
       cat >conftest.$ac_ext <<_ACEOF
 
7181
/* confdefs.h.  */
 
7182
_ACEOF
 
7183
cat confdefs.h >>conftest.$ac_ext
 
7184
cat >>conftest.$ac_ext <<_ACEOF
 
7185
/* end confdefs.h.  */
 
7186
 
 
7187
int
 
7188
main ()
 
7189
{
 
7190
 
 
7191
  ;
 
7192
  return 0;
 
7193
}
 
7194
_ACEOF
 
7195
rm -f conftest.$ac_objext conftest$ac_exeext
 
7196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7197
  (eval $ac_link) 2>conftest.er1
 
7198
  ac_status=$?
 
7199
  grep -v '^ *+' conftest.er1 >conftest.err
 
7200
  rm -f conftest.er1
 
7201
  cat conftest.err >&5
 
7202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7203
  (exit $ac_status); } &&
 
7204
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7206
  (eval $ac_try) 2>&5
 
7207
  ac_status=$?
 
7208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7209
  (exit $ac_status); }; } &&
 
7210
         { ac_try='test -s conftest$ac_exeext'
 
7211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7212
  (eval $ac_try) 2>&5
 
7213
  ac_status=$?
 
7214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7215
  (exit $ac_status); }; }; then
 
7216
  
 
7217
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7218
}'`
 
7219
# Check for a 64-bit object if we didn't find anything.
 
7220
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; }
 
7221
}'`; fi
 
7222
else
 
7223
  echo "$as_me: failed program was:" >&5
 
7224
sed 's/^/| /' conftest.$ac_ext >&5
 
7225
 
 
7226
fi
 
7227
rm -f conftest.err conftest.$ac_objext \
 
7228
      conftest$ac_exeext conftest.$ac_ext
 
7229
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7230
 
 
7231
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7232
        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"
 
7233
       else
 
7234
        if test "$host_cpu" = ia64; then
 
7235
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7236
          allow_undefined_flag="-z nodefs"
 
7237
          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"
 
7238
        else
 
7239
         # Determine the default libpath from the value encoded in an empty executable.
 
7240
         cat >conftest.$ac_ext <<_ACEOF
 
7241
/* confdefs.h.  */
 
7242
_ACEOF
 
7243
cat confdefs.h >>conftest.$ac_ext
 
7244
cat >>conftest.$ac_ext <<_ACEOF
 
7245
/* end confdefs.h.  */
 
7246
 
 
7247
int
 
7248
main ()
 
7249
{
 
7250
 
 
7251
  ;
 
7252
  return 0;
 
7253
}
 
7254
_ACEOF
 
7255
rm -f conftest.$ac_objext conftest$ac_exeext
 
7256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7257
  (eval $ac_link) 2>conftest.er1
 
7258
  ac_status=$?
 
7259
  grep -v '^ *+' conftest.er1 >conftest.err
 
7260
  rm -f conftest.er1
 
7261
  cat conftest.err >&5
 
7262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7263
  (exit $ac_status); } &&
 
7264
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7266
  (eval $ac_try) 2>&5
 
7267
  ac_status=$?
 
7268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7269
  (exit $ac_status); }; } &&
 
7270
         { ac_try='test -s conftest$ac_exeext'
 
7271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7272
  (eval $ac_try) 2>&5
 
7273
  ac_status=$?
 
7274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7275
  (exit $ac_status); }; }; then
 
7276
  
 
7277
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7278
}'`
 
7279
# Check for a 64-bit object if we didn't find anything.
 
7280
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; }
 
7281
}'`; fi
 
7282
else
 
7283
  echo "$as_me: failed program was:" >&5
 
7284
sed 's/^/| /' conftest.$ac_ext >&5
 
7285
 
 
7286
fi
 
7287
rm -f conftest.err conftest.$ac_objext \
 
7288
      conftest$ac_exeext conftest.$ac_ext
 
7289
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7290
 
 
7291
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7292
          # Warning - without using the other run time loading flags,
 
7293
          # -berok will link without error, but may produce a broken library.
 
7294
          no_undefined_flag=' ${wl}-bernotok'
 
7295
          allow_undefined_flag=' ${wl}-berok'
 
7296
          # -bexpall does not export symbols beginning with underscore (_)
 
7297
          always_export_symbols=yes
 
7298
          # Exported symbols can be pulled into shared objects from archives
 
7299
          whole_archive_flag_spec=' '
 
7300
          archive_cmds_need_lc=yes
 
7301
          # This is similar to how AIX traditionally builds its shared libraries.
 
7302
          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'
 
7303
        fi
 
7304
      fi
 
7305
      ;;
 
7306
 
 
7307
    amigaos*)
 
7308
      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)'
 
7309
      hardcode_libdir_flag_spec='-L$libdir'
 
7310
      hardcode_minus_L=yes
 
7311
      # see comment about different semantics on the GNU ld section
 
7312
      ld_shlibs=no
 
7313
      ;;
 
7314
 
 
7315
    bsdi[45]*)
 
7316
      export_dynamic_flag_spec=-rdynamic
 
7317
      ;;
 
7318
 
 
7319
    cygwin* | mingw* | pw32*)
 
7320
      # When not using gcc, we currently assume that we are using
 
7321
      # Microsoft Visual C++.
 
7322
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7323
      # no search path for DLLs.
 
7324
      hardcode_libdir_flag_spec=' '
 
7325
      allow_undefined_flag=unsupported
 
7326
      # Tell ltmain to make .lib files, not .a files.
 
7327
      libext=lib
 
7328
      # Tell ltmain to make .dll files, not .so files.
 
7329
      shrext_cmds=".dll"
 
7330
      # FIXME: Setting linknames here is a bad hack.
 
7331
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7332
      # The linker will automatically build a .lib file if we build a DLL.
 
7333
      old_archive_From_new_cmds='true'
 
7334
      # FIXME: Should let the user specify the lib program.
 
7335
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7336
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7337
      enable_shared_with_static_runtimes=yes
 
7338
      ;;
 
7339
 
 
7340
    darwin* | rhapsody*)
 
7341
      case $host_os in
 
7342
        rhapsody* | darwin1.[012])
 
7343
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7344
         ;;
 
7345
       *) # Darwin 1.3 on
 
7346
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7347
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7348
         else
 
7349
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7350
             10.[012])
 
7351
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7352
               ;;
 
7353
             10.*)
 
7354
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7355
               ;;
 
7356
           esac
 
7357
         fi
 
7358
         ;;
 
7359
      esac
 
7360
      archive_cmds_need_lc=no
 
7361
      hardcode_direct=no
 
7362
      hardcode_automatic=yes
 
7363
      hardcode_shlibpath_var=unsupported
 
7364
      whole_archive_flag_spec=''
 
7365
      link_all_deplibs=yes
 
7366
    if test "$GCC" = yes ; then
 
7367
        output_verbose_link_cmd='echo'
 
7368
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7369
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7370
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7371
      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}'
 
7372
      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}'
 
7373
    else
 
7374
      case $cc_basename in
 
7375
        xlc*)
 
7376
         output_verbose_link_cmd='echo'
 
7377
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7378
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7379
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7380
         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}'
 
7381
          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}'
 
7382
          ;;
 
7383
       *)
 
7384
         ld_shlibs=no
 
7385
          ;;
 
7386
      esac
 
7387
    fi
 
7388
      ;;
 
7389
 
 
7390
    dgux*)
 
7391
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7392
      hardcode_libdir_flag_spec='-L$libdir'
 
7393
      hardcode_shlibpath_var=no
 
7394
      ;;
 
7395
 
 
7396
    freebsd1*)
 
7397
      ld_shlibs=no
 
7398
      ;;
 
7399
 
 
7400
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7401
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7402
    # does not break anything, and helps significantly (at the cost of a little
 
7403
    # extra space).
 
7404
    freebsd2.2*)
 
7405
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7406
      hardcode_libdir_flag_spec='-R$libdir'
 
7407
      hardcode_direct=yes
 
7408
      hardcode_shlibpath_var=no
 
7409
      ;;
 
7410
 
 
7411
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7412
    freebsd2*)
 
7413
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7414
      hardcode_direct=yes
 
7415
      hardcode_minus_L=yes
 
7416
      hardcode_shlibpath_var=no
 
7417
      ;;
 
7418
 
 
7419
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7420
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7421
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7422
      hardcode_libdir_flag_spec='-R$libdir'
 
7423
      hardcode_direct=yes
 
7424
      hardcode_shlibpath_var=no
 
7425
      ;;
 
7426
 
 
7427
    hpux9*)
 
7428
      if test "$GCC" = yes; then
 
7429
        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'
 
7430
      else
 
7431
        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'
 
7432
      fi
 
7433
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7434
      hardcode_libdir_separator=:
 
7435
      hardcode_direct=yes
 
7436
 
 
7437
      # hardcode_minus_L: Not really in the search PATH,
 
7438
      # but as the default location of the library.
 
7439
      hardcode_minus_L=yes
 
7440
      export_dynamic_flag_spec='${wl}-E'
 
7441
      ;;
 
7442
 
 
7443
    hpux10* | hpux11*)
 
7444
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7445
        case $host_cpu in
 
7446
        hppa*64*|ia64*)
 
7447
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7448
          ;;
 
7449
        *)
 
7450
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7451
          ;;
 
7452
        esac
 
7453
      else
 
7454
        case $host_cpu in
 
7455
        hppa*64*|ia64*)
 
7456
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7457
          ;;
 
7458
        *)
 
7459
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7460
          ;;
 
7461
        esac
 
7462
      fi
 
7463
      if test "$with_gnu_ld" = no; then
 
7464
        case $host_cpu in
 
7465
        hppa*64*)
 
7466
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7467
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7468
          hardcode_libdir_separator=:
 
7469
          hardcode_direct=no
 
7470
          hardcode_shlibpath_var=no
 
7471
          ;;
 
7472
        ia64*)
 
7473
          hardcode_libdir_flag_spec='-L$libdir'
 
7474
          hardcode_direct=no
 
7475
          hardcode_shlibpath_var=no
 
7476
 
 
7477
          # hardcode_minus_L: Not really in the search PATH,
 
7478
          # but as the default location of the library.
 
7479
          hardcode_minus_L=yes
 
7480
          ;;
 
7481
        *)
 
7482
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7483
          hardcode_libdir_separator=:
 
7484
          hardcode_direct=yes
 
7485
          export_dynamic_flag_spec='${wl}-E'
 
7486
 
 
7487
          # hardcode_minus_L: Not really in the search PATH,
 
7488
          # but as the default location of the library.
 
7489
          hardcode_minus_L=yes
 
7490
          ;;
 
7491
        esac
 
7492
      fi
 
7493
      ;;
 
7494
 
 
7495
    irix5* | irix6* | nonstopux*)
 
7496
      if test "$GCC" = yes; then
 
7497
        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'
 
7498
      else
 
7499
        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'
 
7500
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7501
      fi
 
7502
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7503
      hardcode_libdir_separator=:
 
7504
      link_all_deplibs=yes
 
7505
      ;;
 
7506
 
 
7507
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7508
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7509
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7510
      else
 
7511
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7512
      fi
 
7513
      hardcode_libdir_flag_spec='-R$libdir'
 
7514
      hardcode_direct=yes
 
7515
      hardcode_shlibpath_var=no
 
7516
      ;;
 
7517
 
 
7518
    newsos6)
 
7519
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7520
      hardcode_direct=yes
 
7521
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7522
      hardcode_libdir_separator=:
 
7523
      hardcode_shlibpath_var=no
 
7524
      ;;
 
7525
 
 
7526
    openbsd*)
 
7527
      hardcode_direct=yes
 
7528
      hardcode_shlibpath_var=no
 
7529
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7530
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7531
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7532
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7533
        export_dynamic_flag_spec='${wl}-E'
 
7534
      else
 
7535
       case $host_os in
 
7536
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7537
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7538
           hardcode_libdir_flag_spec='-R$libdir'
 
7539
           ;;
 
7540
         *)
 
7541
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7542
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7543
           ;;
 
7544
       esac
 
7545
      fi
 
7546
      ;;
 
7547
 
 
7548
    os2*)
 
7549
      hardcode_libdir_flag_spec='-L$libdir'
 
7550
      hardcode_minus_L=yes
 
7551
      allow_undefined_flag=unsupported
 
7552
      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'
 
7553
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7554
      ;;
 
7555
 
 
7556
    osf3*)
 
7557
      if test "$GCC" = yes; then
 
7558
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7559
        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'
 
7560
      else
 
7561
        allow_undefined_flag=' -expect_unresolved \*'
 
7562
        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'
 
7563
      fi
 
7564
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7565
      hardcode_libdir_separator=:
 
7566
      ;;
 
7567
 
 
7568
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7569
      if test "$GCC" = yes; then
 
7570
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7571
        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'
 
7572
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7573
      else
 
7574
        allow_undefined_flag=' -expect_unresolved \*'
 
7575
        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'
 
7576
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7577
        $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'
 
7578
 
 
7579
        # Both c and cxx compiler support -rpath directly
 
7580
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7581
      fi
 
7582
      hardcode_libdir_separator=:
 
7583
      ;;
 
7584
 
 
7585
    sco3.2v5*)
 
7586
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7587
      hardcode_shlibpath_var=no
 
7588
      export_dynamic_flag_spec='${wl}-Bexport'
 
7589
      runpath_var=LD_RUN_PATH
 
7590
      hardcode_runpath_var=yes
 
7591
      ;;
 
7592
 
 
7593
    solaris*)
 
7594
      no_undefined_flag=' -z text'
 
7595
      if test "$GCC" = yes; then
 
7596
        wlarc='${wl}'
 
7597
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7598
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7599
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7600
      else
 
7601
        wlarc=''
 
7602
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7603
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7604
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7605
      fi
 
7606
      hardcode_libdir_flag_spec='-R$libdir'
 
7607
      hardcode_shlibpath_var=no
 
7608
      case $host_os in
 
7609
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7610
      *)
 
7611
        # The compiler driver will combine linker options so we
 
7612
        # cannot just pass the convience library names through
 
7613
        # without $wl, iff we do not link with $LD.
 
7614
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7615
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7616
        case $wlarc in
 
7617
        '')
 
7618
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7619
        *)
 
7620
          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' ;;
 
7621
        esac ;;
 
7622
      esac
 
7623
      link_all_deplibs=yes
 
7624
      ;;
 
7625
 
 
7626
    sunos4*)
 
7627
      if test "x$host_vendor" = xsequent; then
 
7628
        # Use $CC to link under sequent, because it throws in some extra .o
 
7629
        # files that make .init and .fini sections work.
 
7630
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7631
      else
 
7632
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7633
      fi
 
7634
      hardcode_libdir_flag_spec='-L$libdir'
 
7635
      hardcode_direct=yes
 
7636
      hardcode_minus_L=yes
 
7637
      hardcode_shlibpath_var=no
 
7638
      ;;
 
7639
 
 
7640
    sysv4)
 
7641
      case $host_vendor in
 
7642
        sni)
 
7643
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7644
          hardcode_direct=yes # is this really true???
 
7645
        ;;
 
7646
        siemens)
 
7647
          ## LD is ld it makes a PLAMLIB
 
7648
          ## CC just makes a GrossModule.
 
7649
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7650
          reload_cmds='$CC -r -o $output$reload_objs'
 
7651
          hardcode_direct=no
 
7652
        ;;
 
7653
        motorola)
 
7654
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7655
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7656
        ;;
 
7657
      esac
 
7658
      runpath_var='LD_RUN_PATH'
 
7659
      hardcode_shlibpath_var=no
 
7660
      ;;
 
7661
 
 
7662
    sysv4.3*)
 
7663
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7664
      hardcode_shlibpath_var=no
 
7665
      export_dynamic_flag_spec='-Bexport'
 
7666
      ;;
 
7667
 
 
7668
    sysv4*MP*)
 
7669
      if test -d /usr/nec; then
 
7670
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7671
        hardcode_shlibpath_var=no
 
7672
        runpath_var=LD_RUN_PATH
 
7673
        hardcode_runpath_var=yes
 
7674
        ld_shlibs=yes
 
7675
      fi
 
7676
      ;;
 
7677
 
 
7678
    sysv4.2uw2*)
 
7679
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7680
      hardcode_direct=yes
 
7681
      hardcode_minus_L=no
 
7682
      hardcode_shlibpath_var=no
 
7683
      hardcode_runpath_var=yes
 
7684
      runpath_var=LD_RUN_PATH
 
7685
      ;;
 
7686
 
 
7687
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7688
      no_undefined_flag='${wl}-z ${wl}text'
 
7689
      if test "$GCC" = yes; then
 
7690
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7691
      else
 
7692
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7693
      fi
 
7694
      runpath_var='LD_RUN_PATH'
 
7695
      hardcode_shlibpath_var=no
 
7696
      ;;
 
7697
 
 
7698
    sysv5*)
 
7699
      no_undefined_flag=' -z text'
 
7700
      # $CC -shared without GNU ld will not create a library from C++
 
7701
      # object files and a static libstdc++, better avoid it by now
 
7702
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7703
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7704
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7705
      hardcode_libdir_flag_spec=
 
7706
      hardcode_shlibpath_var=no
 
7707
      runpath_var='LD_RUN_PATH'
 
7708
      ;;
 
7709
 
 
7710
    uts4*)
 
7711
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7712
      hardcode_libdir_flag_spec='-L$libdir'
 
7713
      hardcode_shlibpath_var=no
 
7714
      ;;
 
7715
 
 
7716
    *)
 
7717
      ld_shlibs=no
 
7718
      ;;
 
7719
    esac
 
7720
  fi
 
7721
 
 
7722
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7723
echo "${ECHO_T}$ld_shlibs" >&6
 
7724
test "$ld_shlibs" = no && can_build_shared=no
 
7725
 
 
7726
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7727
if test "$GCC" = yes; then
 
7728
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7729
fi
 
7730
 
 
7731
#
 
7732
# Do we need to explicitly link libc?
 
7733
#
 
7734
case "x$archive_cmds_need_lc" in
 
7735
x|xyes)
 
7736
  # Assume -lc should be added
 
7737
  archive_cmds_need_lc=yes
 
7738
 
 
7739
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7740
    case $archive_cmds in
 
7741
    *'~'*)
 
7742
      # FIXME: we may have to deal with multi-command sequences.
 
7743
      ;;
 
7744
    '$CC '*)
 
7745
      # Test whether the compiler implicitly links with -lc since on some
 
7746
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7747
      # to ld, don't add -lc before -lgcc.
 
7748
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7749
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7750
      $rm conftest*
 
7751
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7752
 
 
7753
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7754
  (eval $ac_compile) 2>&5
 
7755
  ac_status=$?
 
7756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7757
  (exit $ac_status); } 2>conftest.err; then
 
7758
        soname=conftest
 
7759
        lib=conftest
 
7760
        libobjs=conftest.$ac_objext
 
7761
        deplibs=
 
7762
        wl=$lt_prog_compiler_wl
 
7763
        compiler_flags=-v
 
7764
        linker_flags=-v
 
7765
        verstring=
 
7766
        output_objdir=.
 
7767
        libname=conftest
 
7768
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7769
        allow_undefined_flag=
 
7770
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7771
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7772
  ac_status=$?
 
7773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7774
  (exit $ac_status); }
 
7775
        then
 
7776
          archive_cmds_need_lc=no
 
7777
        else
 
7778
          archive_cmds_need_lc=yes
 
7779
        fi
 
7780
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7781
      else
 
7782
        cat conftest.err 1>&5
 
7783
      fi
 
7784
      $rm conftest*
 
7785
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7786
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7787
      ;;
 
7788
    esac
 
7789
  fi
 
7790
  ;;
 
7791
esac
 
7792
 
 
7793
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7794
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7795
library_names_spec=
 
7796
libname_spec='lib$name'
 
7797
soname_spec=
 
7798
shrext_cmds=".so"
 
7799
postinstall_cmds=
 
7800
postuninstall_cmds=
 
7801
finish_cmds=
 
7802
finish_eval=
 
7803
shlibpath_var=
 
7804
shlibpath_overrides_runpath=unknown
 
7805
version_type=none
 
7806
dynamic_linker="$host_os ld.so"
 
7807
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7808
if test "$GCC" = yes; then
 
7809
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7810
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7811
    # if the path contains ";" then we assume it to be the separator
 
7812
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7813
    # assumed that no part of a normal pathname contains ";" but that should
 
7814
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7815
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7816
  else
 
7817
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7818
  fi
 
7819
else
 
7820
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7821
fi
 
7822
need_lib_prefix=unknown
 
7823
hardcode_into_libs=no
 
7824
 
 
7825
# when you set need_version to no, make sure it does not cause -set_version
 
7826
# flags to be left without arguments
 
7827
need_version=unknown
 
7828
 
 
7829
case $host_os in
 
7830
aix3*)
 
7831
  version_type=linux
 
7832
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7833
  shlibpath_var=LIBPATH
 
7834
 
 
7835
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7836
  soname_spec='${libname}${release}${shared_ext}$major'
 
7837
  ;;
 
7838
 
 
7839
aix4* | aix5*)
 
7840
  version_type=linux
 
7841
  need_lib_prefix=no
 
7842
  need_version=no
 
7843
  hardcode_into_libs=yes
 
7844
  if test "$host_cpu" = ia64; then
 
7845
    # AIX 5 supports IA64
 
7846
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7847
    shlibpath_var=LD_LIBRARY_PATH
 
7848
  else
 
7849
    # With GCC up to 2.95.x, collect2 would create an import file
 
7850
    # for dependence libraries.  The import file would start with
 
7851
    # the line `#! .'.  This would cause the generated library to
 
7852
    # depend on `.', always an invalid library.  This was fixed in
 
7853
    # development snapshots of GCC prior to 3.0.
 
7854
    case $host_os in
 
7855
      aix4 | aix4.[01] | aix4.[01].*)
 
7856
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7857
           echo ' yes '
 
7858
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7859
        :
 
7860
      else
 
7861
        can_build_shared=no
 
7862
      fi
 
7863
      ;;
 
7864
    esac
 
7865
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7866
    # soname into executable. Probably we can add versioning support to
 
7867
    # collect2, so additional links can be useful in future.
 
7868
    if test "$aix_use_runtimelinking" = yes; then
 
7869
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7870
      # instead of lib<name>.a to let people know that these are not
 
7871
      # typical AIX shared libraries.
 
7872
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7873
    else
 
7874
      # We preserve .a as extension for shared libraries through AIX4.2
 
7875
      # and later when we are not doing run time linking.
 
7876
      library_names_spec='${libname}${release}.a $libname.a'
 
7877
      soname_spec='${libname}${release}${shared_ext}$major'
 
7878
    fi
 
7879
    shlibpath_var=LIBPATH
 
7880
  fi
 
7881
  ;;
 
7882
 
 
7883
amigaos*)
 
7884
  library_names_spec='$libname.ixlibrary $libname.a'
 
7885
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7886
  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'
 
7887
  ;;
 
7888
 
 
7889
beos*)
 
7890
  library_names_spec='${libname}${shared_ext}'
 
7891
  dynamic_linker="$host_os ld.so"
 
7892
  shlibpath_var=LIBRARY_PATH
 
7893
  ;;
 
7894
 
 
7895
bsdi[45]*)
 
7896
  version_type=linux
 
7897
  need_version=no
 
7898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7899
  soname_spec='${libname}${release}${shared_ext}$major'
 
7900
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7901
  shlibpath_var=LD_LIBRARY_PATH
 
7902
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7903
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7904
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7905
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7906
  # libtool to hard-code these into programs
 
7907
  ;;
 
7908
 
 
7909
cygwin* | mingw* | pw32*)
 
7910
  version_type=windows
 
7911
  shrext_cmds=".dll"
 
7912
  need_version=no
 
7913
  need_lib_prefix=no
 
7914
 
 
7915
  case $GCC,$host_os in
 
7916
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7917
    library_names_spec='$libname.dll.a'
 
7918
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7919
    postinstall_cmds='base_file=`basename \${file}`~
 
7920
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7921
      dldir=$destdir/`dirname \$dlpath`~
 
7922
      test -d \$dldir || mkdir -p \$dldir~
 
7923
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7924
      chmod a+x \$dldir/$dlname'
 
7925
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7926
      dlpath=$dir/\$dldll~
 
7927
       $rm \$dlpath'
 
7928
    shlibpath_overrides_runpath=yes
 
7929
 
 
7930
    case $host_os in
 
7931
    cygwin*)
 
7932
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7933
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7934
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7935
      ;;
 
7936
    mingw*)
 
7937
      # MinGW DLLs use traditional 'lib' prefix
 
7938
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7939
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7940
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7941
        # It is most probably a Windows format PATH printed by
 
7942
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7943
        # path with ; separators, and with drive letters. We can handle the
 
7944
        # drive letters (cygwin fileutils understands them), so leave them,
 
7945
        # especially as we might pass files found there to a mingw objdump,
 
7946
        # which wouldn't understand a cygwinified path. Ahh.
 
7947
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7948
      else
 
7949
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7950
      fi
 
7951
      ;;
 
7952
    pw32*)
 
7953
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7954
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7955
      ;;
 
7956
    esac
 
7957
    ;;
 
7958
 
 
7959
  *)
 
7960
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7961
    ;;
 
7962
  esac
 
7963
  dynamic_linker='Win32 ld.exe'
 
7964
  # FIXME: first we should search . and the directory the executable is in
 
7965
  shlibpath_var=PATH
 
7966
  ;;
 
7967
 
 
7968
darwin* | rhapsody*)
 
7969
  dynamic_linker="$host_os dyld"
 
7970
  version_type=darwin
 
7971
  need_lib_prefix=no
 
7972
  need_version=no
 
7973
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7974
  soname_spec='${libname}${release}${major}$shared_ext'
 
7975
  shlibpath_overrides_runpath=yes
 
7976
  shlibpath_var=DYLD_LIBRARY_PATH
 
7977
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7978
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7979
  if test "$GCC" = yes; then
 
7980
    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"`
 
7981
  else
 
7982
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7983
  fi
 
7984
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7985
  ;;
 
7986
 
 
7987
dgux*)
 
7988
  version_type=linux
 
7989
  need_lib_prefix=no
 
7990
  need_version=no
 
7991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7992
  soname_spec='${libname}${release}${shared_ext}$major'
 
7993
  shlibpath_var=LD_LIBRARY_PATH
 
7994
  ;;
 
7995
 
 
7996
freebsd1*)
 
7997
  dynamic_linker=no
 
7998
  ;;
 
7999
 
 
8000
kfreebsd*-gnu)
 
8001
  version_type=linux
 
8002
  need_lib_prefix=no
 
8003
  need_version=no
 
8004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8005
  soname_spec='${libname}${release}${shared_ext}$major'
 
8006
  shlibpath_var=LD_LIBRARY_PATH
 
8007
  shlibpath_overrides_runpath=no
 
8008
  hardcode_into_libs=yes
 
8009
  dynamic_linker='GNU ld.so'
 
8010
  ;;
 
8011
 
 
8012
freebsd* | dragonfly*)
 
8013
  # DragonFly does not have aout.  When/if they implement a new
 
8014
  # versioning mechanism, adjust this.
 
8015
  if test -x /usr/bin/objformat; then
 
8016
    objformat=`/usr/bin/objformat`
 
8017
  else
 
8018
    case $host_os in
 
8019
    freebsd[123]*) objformat=aout ;;
 
8020
    *) objformat=elf ;;
 
8021
    esac
 
8022
  fi
 
8023
  version_type=freebsd-$objformat
 
8024
  case $version_type in
 
8025
    freebsd-elf*)
 
8026
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8027
      need_version=no
 
8028
      need_lib_prefix=no
 
8029
      ;;
 
8030
    freebsd-*)
 
8031
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8032
      need_version=yes
 
8033
      ;;
 
8034
  esac
 
8035
  shlibpath_var=LD_LIBRARY_PATH
 
8036
  case $host_os in
 
8037
  freebsd2*)
 
8038
    shlibpath_overrides_runpath=yes
 
8039
    ;;
 
8040
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8041
    shlibpath_overrides_runpath=yes
 
8042
    hardcode_into_libs=yes
 
8043
    ;;
 
8044
  *) # from 3.2 on
 
8045
    shlibpath_overrides_runpath=no
 
8046
    hardcode_into_libs=yes
 
8047
    ;;
 
8048
  esac
 
8049
  ;;
 
8050
 
 
8051
gnu*)
 
8052
  version_type=linux
 
8053
  need_lib_prefix=no
 
8054
  need_version=no
 
8055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8056
  soname_spec='${libname}${release}${shared_ext}$major'
 
8057
  shlibpath_var=LD_LIBRARY_PATH
 
8058
  hardcode_into_libs=yes
 
8059
  ;;
 
8060
 
 
8061
hpux9* | hpux10* | hpux11*)
 
8062
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8063
  # link against other versions.
 
8064
  version_type=sunos
 
8065
  need_lib_prefix=no
 
8066
  need_version=no
 
8067
  case $host_cpu in
 
8068
  ia64*)
 
8069
    shrext_cmds='.so'
 
8070
    hardcode_into_libs=yes
 
8071
    dynamic_linker="$host_os dld.so"
 
8072
    shlibpath_var=LD_LIBRARY_PATH
 
8073
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8074
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8075
    soname_spec='${libname}${release}${shared_ext}$major'
 
8076
    if test "X$HPUX_IA64_MODE" = X32; then
 
8077
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8078
    else
 
8079
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8080
    fi
 
8081
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8082
    ;;
 
8083
   hppa*64*)
 
8084
     shrext_cmds='.sl'
 
8085
     hardcode_into_libs=yes
 
8086
     dynamic_linker="$host_os dld.sl"
 
8087
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8088
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8089
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8090
     soname_spec='${libname}${release}${shared_ext}$major'
 
8091
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8092
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8093
     ;;
 
8094
   *)
 
8095
    shrext_cmds='.sl'
 
8096
    dynamic_linker="$host_os dld.sl"
 
8097
    shlibpath_var=SHLIB_PATH
 
8098
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8099
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8100
    soname_spec='${libname}${release}${shared_ext}$major'
 
8101
    ;;
 
8102
  esac
 
8103
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8104
  postinstall_cmds='chmod 555 $lib'
 
8105
  ;;
 
8106
 
 
8107
irix5* | irix6* | nonstopux*)
 
8108
  case $host_os in
 
8109
    nonstopux*) version_type=nonstopux ;;
 
8110
    *)
 
8111
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8112
                version_type=linux
 
8113
        else
 
8114
                version_type=irix
 
8115
        fi ;;
 
8116
  esac
 
8117
  need_lib_prefix=no
 
8118
  need_version=no
 
8119
  soname_spec='${libname}${release}${shared_ext}$major'
 
8120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8121
  case $host_os in
 
8122
  irix5* | nonstopux*)
 
8123
    libsuff= shlibsuff=
 
8124
    ;;
 
8125
  *)
 
8126
    case $LD in # libtool.m4 will add one of these switches to LD
 
8127
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8128
      libsuff= shlibsuff= libmagic=32-bit;;
 
8129
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8130
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8131
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8132
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8133
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8134
    esac
 
8135
    ;;
 
8136
  esac
 
8137
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8138
  shlibpath_overrides_runpath=no
 
8139
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8140
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8141
  hardcode_into_libs=yes
 
8142
  ;;
 
8143
 
 
8144
# No shared lib support for Linux oldld, aout, or coff.
 
8145
linux*oldld* | linux*aout* | linux*coff*)
 
8146
  dynamic_linker=no
 
8147
  ;;
 
8148
 
 
8149
# This must be Linux ELF.
 
8150
linux*)
 
8151
  version_type=linux
 
8152
  need_lib_prefix=no
 
8153
  need_version=no
 
8154
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8155
  soname_spec='${libname}${release}${shared_ext}$major'
 
8156
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8157
  shlibpath_var=LD_LIBRARY_PATH
 
8158
  shlibpath_overrides_runpath=no
 
8159
  # This implies no fast_install, which is unacceptable.
 
8160
  # Some rework will be needed to allow for fast_install
 
8161
  # before this can be enabled.
 
8162
  hardcode_into_libs=yes
 
8163
 
 
8164
  # Append ld.so.conf contents to the search path
 
8165
  if test -f /etc/ld.so.conf; then
 
8166
    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' ' '`
 
8167
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8168
  fi
 
8169
 
 
8170
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8171
  # powerpc, because MkLinux only supported shared libraries with the
 
8172
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8173
  # most powerpc-linux boxes support dynamic linking these days and
 
8174
  # people can always --disable-shared, the test was removed, and we
 
8175
  # assume the GNU/Linux dynamic linker is in use.
 
8176
  dynamic_linker='GNU/Linux ld.so'
 
8177
  ;;
 
8178
 
 
8179
netbsdelf*-gnu)
 
8180
  version_type=linux
 
8181
  need_lib_prefix=no
 
8182
  need_version=no
 
8183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8184
  soname_spec='${libname}${release}${shared_ext}$major'
 
8185
  shlibpath_var=LD_LIBRARY_PATH
 
8186
  shlibpath_overrides_runpath=no
 
8187
  hardcode_into_libs=yes
 
8188
  dynamic_linker='NetBSD ld.elf_so'
 
8189
  ;;
 
8190
 
 
8191
knetbsd*-gnu)
 
8192
  version_type=linux
 
8193
  need_lib_prefix=no
 
8194
  need_version=no
 
8195
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8196
  soname_spec='${libname}${release}${shared_ext}$major'
 
8197
  shlibpath_var=LD_LIBRARY_PATH
 
8198
  shlibpath_overrides_runpath=no
 
8199
  hardcode_into_libs=yes
 
8200
  dynamic_linker='GNU ld.so'
 
8201
  ;;
 
8202
 
 
8203
netbsd*)
 
8204
  version_type=sunos
 
8205
  need_lib_prefix=no
 
8206
  need_version=no
 
8207
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8208
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8209
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8210
    dynamic_linker='NetBSD (a.out) ld.so'
 
8211
  else
 
8212
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8213
    soname_spec='${libname}${release}${shared_ext}$major'
 
8214
    dynamic_linker='NetBSD ld.elf_so'
 
8215
  fi
 
8216
  shlibpath_var=LD_LIBRARY_PATH
 
8217
  shlibpath_overrides_runpath=yes
 
8218
  hardcode_into_libs=yes
 
8219
  ;;
 
8220
 
 
8221
newsos6)
 
8222
  version_type=linux
 
8223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8224
  shlibpath_var=LD_LIBRARY_PATH
 
8225
  shlibpath_overrides_runpath=yes
 
8226
  ;;
 
8227
 
 
8228
nto-qnx*)
 
8229
  version_type=linux
 
8230
  need_lib_prefix=no
 
8231
  need_version=no
 
8232
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8233
  soname_spec='${libname}${release}${shared_ext}$major'
 
8234
  shlibpath_var=LD_LIBRARY_PATH
 
8235
  shlibpath_overrides_runpath=yes
 
8236
  ;;
 
8237
 
 
8238
openbsd*)
 
8239
  version_type=sunos
 
8240
  need_lib_prefix=no
 
8241
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8242
  case $host_os in
 
8243
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8244
    *)                         need_version=no  ;;
 
8245
  esac
 
8246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8247
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8248
  shlibpath_var=LD_LIBRARY_PATH
 
8249
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8250
    case $host_os in
 
8251
      openbsd2.[89] | openbsd2.[89].*)
 
8252
        shlibpath_overrides_runpath=no
 
8253
        ;;
 
8254
      *)
 
8255
        shlibpath_overrides_runpath=yes
 
8256
        ;;
 
8257
      esac
 
8258
  else
 
8259
    shlibpath_overrides_runpath=yes
 
8260
  fi
 
8261
  ;;
 
8262
 
 
8263
os2*)
 
8264
  libname_spec='$name'
 
8265
  shrext_cmds=".dll"
 
8266
  need_lib_prefix=no
 
8267
  library_names_spec='$libname${shared_ext} $libname.a'
 
8268
  dynamic_linker='OS/2 ld.exe'
 
8269
  shlibpath_var=LIBPATH
 
8270
  ;;
 
8271
 
 
8272
osf3* | osf4* | osf5*)
 
8273
  version_type=osf
 
8274
  need_lib_prefix=no
 
8275
  need_version=no
 
8276
  soname_spec='${libname}${release}${shared_ext}$major'
 
8277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8278
  shlibpath_var=LD_LIBRARY_PATH
 
8279
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8280
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8281
  ;;
 
8282
 
 
8283
sco3.2v5*)
 
8284
  version_type=osf
 
8285
  soname_spec='${libname}${release}${shared_ext}$major'
 
8286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8287
  shlibpath_var=LD_LIBRARY_PATH
 
8288
  ;;
 
8289
 
 
8290
solaris*)
 
8291
  version_type=linux
 
8292
  need_lib_prefix=no
 
8293
  need_version=no
 
8294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8295
  soname_spec='${libname}${release}${shared_ext}$major'
 
8296
  shlibpath_var=LD_LIBRARY_PATH
 
8297
  shlibpath_overrides_runpath=yes
 
8298
  hardcode_into_libs=yes
 
8299
  # ldd complains unless libraries are executable
 
8300
  postinstall_cmds='chmod +x $lib'
 
8301
  ;;
 
8302
 
 
8303
sunos4*)
 
8304
  version_type=sunos
 
8305
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8306
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8307
  shlibpath_var=LD_LIBRARY_PATH
 
8308
  shlibpath_overrides_runpath=yes
 
8309
  if test "$with_gnu_ld" = yes; then
 
8310
    need_lib_prefix=no
 
8311
  fi
 
8312
  need_version=yes
 
8313
  ;;
 
8314
 
 
8315
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8316
  version_type=linux
 
8317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8318
  soname_spec='${libname}${release}${shared_ext}$major'
 
8319
  shlibpath_var=LD_LIBRARY_PATH
 
8320
  case $host_vendor in
 
8321
    sni)
 
8322
      shlibpath_overrides_runpath=no
 
8323
      need_lib_prefix=no
 
8324
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8325
      runpath_var=LD_RUN_PATH
 
8326
      ;;
 
8327
    siemens)
 
8328
      need_lib_prefix=no
 
8329
      ;;
 
8330
    motorola)
 
8331
      need_lib_prefix=no
 
8332
      need_version=no
 
8333
      shlibpath_overrides_runpath=no
 
8334
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8335
      ;;
 
8336
  esac
 
8337
  ;;
 
8338
 
 
8339
sysv4*MP*)
 
8340
  if test -d /usr/nec ;then
 
8341
    version_type=linux
 
8342
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8343
    soname_spec='$libname${shared_ext}.$major'
 
8344
    shlibpath_var=LD_LIBRARY_PATH
 
8345
  fi
 
8346
  ;;
 
8347
 
 
8348
uts4*)
 
8349
  version_type=linux
 
8350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8351
  soname_spec='${libname}${release}${shared_ext}$major'
 
8352
  shlibpath_var=LD_LIBRARY_PATH
 
8353
  ;;
 
8354
 
 
8355
*)
 
8356
  dynamic_linker=no
 
8357
  ;;
 
8358
esac
 
8359
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8360
echo "${ECHO_T}$dynamic_linker" >&6
 
8361
test "$dynamic_linker" = no && can_build_shared=no
 
8362
 
 
8363
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8364
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8365
hardcode_action=
 
8366
if test -n "$hardcode_libdir_flag_spec" || \
 
8367
   test -n "$runpath_var" || \
 
8368
   test "X$hardcode_automatic" = "Xyes" ; then
 
8369
 
 
8370
  # We can hardcode non-existant directories.
 
8371
  if test "$hardcode_direct" != no &&
 
8372
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8373
     # have to relink, otherwise we might link with an installed library
 
8374
     # when we should be linking with a yet-to-be-installed one
 
8375
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8376
     test "$hardcode_minus_L" != no; then
 
8377
    # Linking always hardcodes the temporary library directory.
 
8378
    hardcode_action=relink
 
8379
  else
 
8380
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8381
    hardcode_action=immediate
 
8382
  fi
 
8383
else
 
8384
  # We cannot hardcode anything, or else we can only hardcode existing
 
8385
  # directories.
 
8386
  hardcode_action=unsupported
 
8387
fi
 
8388
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8389
echo "${ECHO_T}$hardcode_action" >&6
 
8390
 
 
8391
if test "$hardcode_action" = relink; then
 
8392
  # Fast installation is not supported
 
8393
  enable_fast_install=no
 
8394
elif test "$shlibpath_overrides_runpath" = yes ||
 
8395
     test "$enable_shared" = no; then
 
8396
  # Fast installation is not necessary
 
8397
  enable_fast_install=needless
 
8398
fi
 
8399
 
 
8400
striplib=
 
8401
old_striplib=
 
8402
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8403
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8404
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8405
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8406
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8407
  echo "$as_me:$LINENO: result: yes" >&5
 
8408
echo "${ECHO_T}yes" >&6
 
8409
else
 
8410
# FIXME - insert some real tests, host_os isn't really good enough
 
8411
  case $host_os in
 
8412
   darwin*)
 
8413
       if test -n "$STRIP" ; then
 
8414
         striplib="$STRIP -x"
 
8415
         echo "$as_me:$LINENO: result: yes" >&5
 
8416
echo "${ECHO_T}yes" >&6
 
8417
       else
 
8418
  echo "$as_me:$LINENO: result: no" >&5
 
8419
echo "${ECHO_T}no" >&6
 
8420
fi
 
8421
       ;;
 
8422
   *)
 
8423
  echo "$as_me:$LINENO: result: no" >&5
 
8424
echo "${ECHO_T}no" >&6
 
8425
    ;;
 
8426
  esac
 
8427
fi
 
8428
 
 
8429
if test "x$enable_dlopen" != xyes; then
 
8430
  enable_dlopen=unknown
 
8431
  enable_dlopen_self=unknown
 
8432
  enable_dlopen_self_static=unknown
 
8433
else
 
8434
  lt_cv_dlopen=no
 
8435
  lt_cv_dlopen_libs=
 
8436
 
 
8437
  case $host_os in
 
8438
  beos*)
 
8439
    lt_cv_dlopen="load_add_on"
 
8440
    lt_cv_dlopen_libs=
 
8441
    lt_cv_dlopen_self=yes
 
8442
    ;;
 
8443
 
 
8444
  mingw* | pw32*)
 
8445
    lt_cv_dlopen="LoadLibrary"
 
8446
    lt_cv_dlopen_libs=
 
8447
   ;;
 
8448
 
 
8449
  cygwin*)
 
8450
    lt_cv_dlopen="dlopen"
 
8451
    lt_cv_dlopen_libs=
 
8452
   ;;
 
8453
 
 
8454
  darwin*)
 
8455
  # if libdl is installed we need to link against it
 
8456
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8457
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8458
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8460
else
 
8461
  ac_check_lib_save_LIBS=$LIBS
 
8462
LIBS="-ldl  $LIBS"
 
8463
cat >conftest.$ac_ext <<_ACEOF
 
8464
/* confdefs.h.  */
 
8465
_ACEOF
 
8466
cat confdefs.h >>conftest.$ac_ext
 
8467
cat >>conftest.$ac_ext <<_ACEOF
 
8468
/* end confdefs.h.  */
 
8469
 
 
8470
/* Override any gcc2 internal prototype to avoid an error.  */
 
8471
#ifdef __cplusplus
 
8472
extern "C"
 
8473
#endif
 
8474
/* We use char because int might match the return type of a gcc2
 
8475
   builtin and then its argument prototype would still apply.  */
 
8476
char dlopen ();
 
8477
int
 
8478
main ()
 
8479
{
 
8480
dlopen ();
 
8481
  ;
 
8482
  return 0;
 
8483
}
 
8484
_ACEOF
 
8485
rm -f conftest.$ac_objext conftest$ac_exeext
 
8486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8487
  (eval $ac_link) 2>conftest.er1
 
8488
  ac_status=$?
 
8489
  grep -v '^ *+' conftest.er1 >conftest.err
 
8490
  rm -f conftest.er1
 
8491
  cat conftest.err >&5
 
8492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8493
  (exit $ac_status); } &&
 
8494
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8496
  (eval $ac_try) 2>&5
 
8497
  ac_status=$?
 
8498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8499
  (exit $ac_status); }; } &&
 
8500
         { ac_try='test -s conftest$ac_exeext'
 
8501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8502
  (eval $ac_try) 2>&5
 
8503
  ac_status=$?
 
8504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8505
  (exit $ac_status); }; }; then
 
8506
  ac_cv_lib_dl_dlopen=yes
 
8507
else
 
8508
  echo "$as_me: failed program was:" >&5
 
8509
sed 's/^/| /' conftest.$ac_ext >&5
 
8510
 
 
8511
ac_cv_lib_dl_dlopen=no
 
8512
fi
 
8513
rm -f conftest.err conftest.$ac_objext \
 
8514
      conftest$ac_exeext conftest.$ac_ext
 
8515
LIBS=$ac_check_lib_save_LIBS
 
8516
fi
 
8517
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8518
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8519
if test $ac_cv_lib_dl_dlopen = yes; then
 
8520
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8521
else
 
8522
  
 
8523
    lt_cv_dlopen="dyld"
 
8524
    lt_cv_dlopen_libs=
 
8525
    lt_cv_dlopen_self=yes
 
8526
    
 
8527
fi
 
8528
 
 
8529
   ;;
 
8530
 
 
8531
  *)
 
8532
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8533
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8534
if test "${ac_cv_func_shl_load+set}" = set; then
 
8535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8536
else
 
8537
  cat >conftest.$ac_ext <<_ACEOF
 
8538
/* confdefs.h.  */
 
8539
_ACEOF
 
8540
cat confdefs.h >>conftest.$ac_ext
 
8541
cat >>conftest.$ac_ext <<_ACEOF
 
8542
/* end confdefs.h.  */
 
8543
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8544
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8545
#define shl_load innocuous_shl_load
 
8546
 
 
8547
/* System header to define __stub macros and hopefully few prototypes,
 
8548
    which can conflict with char shl_load (); below.
 
8549
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8550
    <limits.h> exists even on freestanding compilers.  */
 
8551
 
 
8552
#ifdef __STDC__
 
8553
# include <limits.h>
 
8554
#else
 
8555
# include <assert.h>
 
8556
#endif
 
8557
 
 
8558
#undef shl_load
 
8559
 
 
8560
/* Override any gcc2 internal prototype to avoid an error.  */
 
8561
#ifdef __cplusplus
 
8562
extern "C"
 
8563
{
 
8564
#endif
 
8565
/* We use char because int might match the return type of a gcc2
 
8566
   builtin and then its argument prototype would still apply.  */
 
8567
char shl_load ();
 
8568
/* The GNU C library defines this for functions which it implements
 
8569
    to always fail with ENOSYS.  Some functions are actually named
 
8570
    something starting with __ and the normal name is an alias.  */
 
8571
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8572
choke me
 
8573
#else
 
8574
char (*f) () = shl_load;
 
8575
#endif
 
8576
#ifdef __cplusplus
 
8577
}
 
8578
#endif
 
8579
 
 
8580
int
 
8581
main ()
 
8582
{
 
8583
return f != shl_load;
 
8584
  ;
 
8585
  return 0;
 
8586
}
 
8587
_ACEOF
 
8588
rm -f conftest.$ac_objext conftest$ac_exeext
 
8589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8590
  (eval $ac_link) 2>conftest.er1
 
8591
  ac_status=$?
 
8592
  grep -v '^ *+' conftest.er1 >conftest.err
 
8593
  rm -f conftest.er1
 
8594
  cat conftest.err >&5
 
8595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8596
  (exit $ac_status); } &&
 
8597
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8599
  (eval $ac_try) 2>&5
 
8600
  ac_status=$?
 
8601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8602
  (exit $ac_status); }; } &&
 
8603
         { ac_try='test -s conftest$ac_exeext'
 
8604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8605
  (eval $ac_try) 2>&5
 
8606
  ac_status=$?
 
8607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8608
  (exit $ac_status); }; }; then
 
8609
  ac_cv_func_shl_load=yes
 
8610
else
 
8611
  echo "$as_me: failed program was:" >&5
 
8612
sed 's/^/| /' conftest.$ac_ext >&5
 
8613
 
 
8614
ac_cv_func_shl_load=no
 
8615
fi
 
8616
rm -f conftest.err conftest.$ac_objext \
 
8617
      conftest$ac_exeext conftest.$ac_ext
 
8618
fi
 
8619
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8620
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8621
if test $ac_cv_func_shl_load = yes; then
 
8622
  lt_cv_dlopen="shl_load"
 
8623
else
 
8624
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8625
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8626
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8628
else
 
8629
  ac_check_lib_save_LIBS=$LIBS
 
8630
LIBS="-ldld  $LIBS"
 
8631
cat >conftest.$ac_ext <<_ACEOF
 
8632
/* confdefs.h.  */
 
8633
_ACEOF
 
8634
cat confdefs.h >>conftest.$ac_ext
 
8635
cat >>conftest.$ac_ext <<_ACEOF
 
8636
/* end confdefs.h.  */
 
8637
 
 
8638
/* Override any gcc2 internal prototype to avoid an error.  */
 
8639
#ifdef __cplusplus
 
8640
extern "C"
 
8641
#endif
 
8642
/* We use char because int might match the return type of a gcc2
 
8643
   builtin and then its argument prototype would still apply.  */
 
8644
char shl_load ();
 
8645
int
 
8646
main ()
 
8647
{
 
8648
shl_load ();
 
8649
  ;
 
8650
  return 0;
 
8651
}
 
8652
_ACEOF
 
8653
rm -f conftest.$ac_objext conftest$ac_exeext
 
8654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8655
  (eval $ac_link) 2>conftest.er1
 
8656
  ac_status=$?
 
8657
  grep -v '^ *+' conftest.er1 >conftest.err
 
8658
  rm -f conftest.er1
 
8659
  cat conftest.err >&5
 
8660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8661
  (exit $ac_status); } &&
 
8662
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8664
  (eval $ac_try) 2>&5
 
8665
  ac_status=$?
 
8666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8667
  (exit $ac_status); }; } &&
 
8668
         { ac_try='test -s conftest$ac_exeext'
 
8669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8670
  (eval $ac_try) 2>&5
 
8671
  ac_status=$?
 
8672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8673
  (exit $ac_status); }; }; then
 
8674
  ac_cv_lib_dld_shl_load=yes
 
8675
else
 
8676
  echo "$as_me: failed program was:" >&5
 
8677
sed 's/^/| /' conftest.$ac_ext >&5
 
8678
 
 
8679
ac_cv_lib_dld_shl_load=no
 
8680
fi
 
8681
rm -f conftest.err conftest.$ac_objext \
 
8682
      conftest$ac_exeext conftest.$ac_ext
 
8683
LIBS=$ac_check_lib_save_LIBS
 
8684
fi
 
8685
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8686
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8687
if test $ac_cv_lib_dld_shl_load = yes; then
 
8688
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8689
else
 
8690
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8691
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8692
if test "${ac_cv_func_dlopen+set}" = set; then
 
8693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8694
else
 
8695
  cat >conftest.$ac_ext <<_ACEOF
 
8696
/* confdefs.h.  */
 
8697
_ACEOF
 
8698
cat confdefs.h >>conftest.$ac_ext
 
8699
cat >>conftest.$ac_ext <<_ACEOF
 
8700
/* end confdefs.h.  */
 
8701
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8702
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8703
#define dlopen innocuous_dlopen
 
8704
 
 
8705
/* System header to define __stub macros and hopefully few prototypes,
 
8706
    which can conflict with char dlopen (); below.
 
8707
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8708
    <limits.h> exists even on freestanding compilers.  */
 
8709
 
 
8710
#ifdef __STDC__
 
8711
# include <limits.h>
 
8712
#else
 
8713
# include <assert.h>
 
8714
#endif
 
8715
 
 
8716
#undef dlopen
 
8717
 
 
8718
/* Override any gcc2 internal prototype to avoid an error.  */
 
8719
#ifdef __cplusplus
 
8720
extern "C"
 
8721
{
 
8722
#endif
 
8723
/* We use char because int might match the return type of a gcc2
 
8724
   builtin and then its argument prototype would still apply.  */
 
8725
char dlopen ();
 
8726
/* The GNU C library defines this for functions which it implements
 
8727
    to always fail with ENOSYS.  Some functions are actually named
 
8728
    something starting with __ and the normal name is an alias.  */
 
8729
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8730
choke me
 
8731
#else
 
8732
char (*f) () = dlopen;
 
8733
#endif
 
8734
#ifdef __cplusplus
 
8735
}
 
8736
#endif
 
8737
 
 
8738
int
 
8739
main ()
 
8740
{
 
8741
return f != dlopen;
 
8742
  ;
 
8743
  return 0;
 
8744
}
 
8745
_ACEOF
 
8746
rm -f conftest.$ac_objext conftest$ac_exeext
 
8747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8748
  (eval $ac_link) 2>conftest.er1
 
8749
  ac_status=$?
 
8750
  grep -v '^ *+' conftest.er1 >conftest.err
 
8751
  rm -f conftest.er1
 
8752
  cat conftest.err >&5
 
8753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8754
  (exit $ac_status); } &&
 
8755
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8757
  (eval $ac_try) 2>&5
 
8758
  ac_status=$?
 
8759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8760
  (exit $ac_status); }; } &&
 
8761
         { ac_try='test -s conftest$ac_exeext'
 
8762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8763
  (eval $ac_try) 2>&5
 
8764
  ac_status=$?
 
8765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8766
  (exit $ac_status); }; }; then
 
8767
  ac_cv_func_dlopen=yes
 
8768
else
 
8769
  echo "$as_me: failed program was:" >&5
 
8770
sed 's/^/| /' conftest.$ac_ext >&5
 
8771
 
 
8772
ac_cv_func_dlopen=no
 
8773
fi
 
8774
rm -f conftest.err conftest.$ac_objext \
 
8775
      conftest$ac_exeext conftest.$ac_ext
 
8776
fi
 
8777
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8778
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8779
if test $ac_cv_func_dlopen = yes; then
 
8780
  lt_cv_dlopen="dlopen"
 
8781
else
 
8782
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8783
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8784
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8786
else
 
8787
  ac_check_lib_save_LIBS=$LIBS
 
8788
LIBS="-ldl  $LIBS"
 
8789
cat >conftest.$ac_ext <<_ACEOF
 
8790
/* confdefs.h.  */
 
8791
_ACEOF
 
8792
cat confdefs.h >>conftest.$ac_ext
 
8793
cat >>conftest.$ac_ext <<_ACEOF
 
8794
/* end confdefs.h.  */
 
8795
 
 
8796
/* Override any gcc2 internal prototype to avoid an error.  */
 
8797
#ifdef __cplusplus
 
8798
extern "C"
 
8799
#endif
 
8800
/* We use char because int might match the return type of a gcc2
 
8801
   builtin and then its argument prototype would still apply.  */
 
8802
char dlopen ();
 
8803
int
 
8804
main ()
 
8805
{
 
8806
dlopen ();
 
8807
  ;
 
8808
  return 0;
 
8809
}
 
8810
_ACEOF
 
8811
rm -f conftest.$ac_objext conftest$ac_exeext
 
8812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8813
  (eval $ac_link) 2>conftest.er1
 
8814
  ac_status=$?
 
8815
  grep -v '^ *+' conftest.er1 >conftest.err
 
8816
  rm -f conftest.er1
 
8817
  cat conftest.err >&5
 
8818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8819
  (exit $ac_status); } &&
 
8820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8822
  (eval $ac_try) 2>&5
 
8823
  ac_status=$?
 
8824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8825
  (exit $ac_status); }; } &&
 
8826
         { ac_try='test -s conftest$ac_exeext'
 
8827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8828
  (eval $ac_try) 2>&5
 
8829
  ac_status=$?
 
8830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8831
  (exit $ac_status); }; }; then
 
8832
  ac_cv_lib_dl_dlopen=yes
 
8833
else
 
8834
  echo "$as_me: failed program was:" >&5
 
8835
sed 's/^/| /' conftest.$ac_ext >&5
 
8836
 
 
8837
ac_cv_lib_dl_dlopen=no
 
8838
fi
 
8839
rm -f conftest.err conftest.$ac_objext \
 
8840
      conftest$ac_exeext conftest.$ac_ext
 
8841
LIBS=$ac_check_lib_save_LIBS
 
8842
fi
 
8843
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8844
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8845
if test $ac_cv_lib_dl_dlopen = yes; then
 
8846
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8847
else
 
8848
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8849
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8850
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8852
else
 
8853
  ac_check_lib_save_LIBS=$LIBS
 
8854
LIBS="-lsvld  $LIBS"
 
8855
cat >conftest.$ac_ext <<_ACEOF
 
8856
/* confdefs.h.  */
 
8857
_ACEOF
 
8858
cat confdefs.h >>conftest.$ac_ext
 
8859
cat >>conftest.$ac_ext <<_ACEOF
 
8860
/* end confdefs.h.  */
 
8861
 
 
8862
/* Override any gcc2 internal prototype to avoid an error.  */
 
8863
#ifdef __cplusplus
 
8864
extern "C"
 
8865
#endif
 
8866
/* We use char because int might match the return type of a gcc2
 
8867
   builtin and then its argument prototype would still apply.  */
 
8868
char dlopen ();
 
8869
int
 
8870
main ()
 
8871
{
 
8872
dlopen ();
 
8873
  ;
 
8874
  return 0;
 
8875
}
 
8876
_ACEOF
 
8877
rm -f conftest.$ac_objext conftest$ac_exeext
 
8878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8879
  (eval $ac_link) 2>conftest.er1
 
8880
  ac_status=$?
 
8881
  grep -v '^ *+' conftest.er1 >conftest.err
 
8882
  rm -f conftest.er1
 
8883
  cat conftest.err >&5
 
8884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8885
  (exit $ac_status); } &&
 
8886
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8888
  (eval $ac_try) 2>&5
 
8889
  ac_status=$?
 
8890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8891
  (exit $ac_status); }; } &&
 
8892
         { ac_try='test -s conftest$ac_exeext'
 
8893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8894
  (eval $ac_try) 2>&5
 
8895
  ac_status=$?
 
8896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8897
  (exit $ac_status); }; }; then
 
8898
  ac_cv_lib_svld_dlopen=yes
 
8899
else
 
8900
  echo "$as_me: failed program was:" >&5
 
8901
sed 's/^/| /' conftest.$ac_ext >&5
 
8902
 
 
8903
ac_cv_lib_svld_dlopen=no
 
8904
fi
 
8905
rm -f conftest.err conftest.$ac_objext \
 
8906
      conftest$ac_exeext conftest.$ac_ext
 
8907
LIBS=$ac_check_lib_save_LIBS
 
8908
fi
 
8909
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8910
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8911
if test $ac_cv_lib_svld_dlopen = yes; then
 
8912
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8913
else
 
8914
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8915
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8916
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8918
else
 
8919
  ac_check_lib_save_LIBS=$LIBS
 
8920
LIBS="-ldld  $LIBS"
 
8921
cat >conftest.$ac_ext <<_ACEOF
 
8922
/* confdefs.h.  */
 
8923
_ACEOF
 
8924
cat confdefs.h >>conftest.$ac_ext
 
8925
cat >>conftest.$ac_ext <<_ACEOF
 
8926
/* end confdefs.h.  */
 
8927
 
 
8928
/* Override any gcc2 internal prototype to avoid an error.  */
 
8929
#ifdef __cplusplus
 
8930
extern "C"
 
8931
#endif
 
8932
/* We use char because int might match the return type of a gcc2
 
8933
   builtin and then its argument prototype would still apply.  */
 
8934
char dld_link ();
 
8935
int
 
8936
main ()
 
8937
{
 
8938
dld_link ();
 
8939
  ;
 
8940
  return 0;
 
8941
}
 
8942
_ACEOF
 
8943
rm -f conftest.$ac_objext conftest$ac_exeext
 
8944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8945
  (eval $ac_link) 2>conftest.er1
 
8946
  ac_status=$?
 
8947
  grep -v '^ *+' conftest.er1 >conftest.err
 
8948
  rm -f conftest.er1
 
8949
  cat conftest.err >&5
 
8950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8951
  (exit $ac_status); } &&
 
8952
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8954
  (eval $ac_try) 2>&5
 
8955
  ac_status=$?
 
8956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8957
  (exit $ac_status); }; } &&
 
8958
         { ac_try='test -s conftest$ac_exeext'
 
8959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8960
  (eval $ac_try) 2>&5
 
8961
  ac_status=$?
 
8962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8963
  (exit $ac_status); }; }; then
 
8964
  ac_cv_lib_dld_dld_link=yes
 
8965
else
 
8966
  echo "$as_me: failed program was:" >&5
 
8967
sed 's/^/| /' conftest.$ac_ext >&5
 
8968
 
 
8969
ac_cv_lib_dld_dld_link=no
 
8970
fi
 
8971
rm -f conftest.err conftest.$ac_objext \
 
8972
      conftest$ac_exeext conftest.$ac_ext
 
8973
LIBS=$ac_check_lib_save_LIBS
 
8974
fi
 
8975
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8976
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8977
if test $ac_cv_lib_dld_dld_link = yes; then
 
8978
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8979
fi
 
8980
 
 
8981
              
 
8982
fi
 
8983
 
 
8984
            
 
8985
fi
 
8986
 
 
8987
          
 
8988
fi
 
8989
 
 
8990
        
 
8991
fi
 
8992
 
 
8993
      
 
8994
fi
 
8995
 
 
8996
    ;;
 
8997
  esac
 
8998
 
 
8999
  if test "x$lt_cv_dlopen" != xno; then
 
9000
    enable_dlopen=yes
 
9001
  else
 
9002
    enable_dlopen=no
 
9003
  fi
 
9004
 
 
9005
  case $lt_cv_dlopen in
 
9006
  dlopen)
 
9007
    save_CPPFLAGS="$CPPFLAGS"
 
9008
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9009
 
 
9010
    save_LDFLAGS="$LDFLAGS"
 
9011
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9012
 
 
9013
    save_LIBS="$LIBS"
 
9014
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9015
 
 
9016
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9017
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9018
if test "${lt_cv_dlopen_self+set}" = set; then
 
9019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9020
else
 
9021
          if test "$cross_compiling" = yes; then :
 
9022
  lt_cv_dlopen_self=cross
 
9023
else
 
9024
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9025
  lt_status=$lt_dlunknown
 
9026
  cat > conftest.$ac_ext <<EOF
 
9027
#line __oline__ "configure"
 
9028
#include "confdefs.h"
 
9029
 
 
9030
#if HAVE_DLFCN_H
 
9031
#include <dlfcn.h>
 
9032
#endif
 
9033
 
 
9034
#include <stdio.h>
 
9035
 
 
9036
#ifdef RTLD_GLOBAL
 
9037
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9038
#else
 
9039
#  ifdef DL_GLOBAL
 
9040
#    define LT_DLGLOBAL         DL_GLOBAL
 
9041
#  else
 
9042
#    define LT_DLGLOBAL         0
 
9043
#  endif
 
9044
#endif
 
9045
 
 
9046
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9047
   find out it does not work in some platform. */
 
9048
#ifndef LT_DLLAZY_OR_NOW
 
9049
#  ifdef RTLD_LAZY
 
9050
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9051
#  else
 
9052
#    ifdef DL_LAZY
 
9053
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9054
#    else
 
9055
#      ifdef RTLD_NOW
 
9056
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9057
#      else
 
9058
#        ifdef DL_NOW
 
9059
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9060
#        else
 
9061
#          define LT_DLLAZY_OR_NOW      0
 
9062
#        endif
 
9063
#      endif
 
9064
#    endif
 
9065
#  endif
 
9066
#endif
 
9067
 
 
9068
#ifdef __cplusplus
 
9069
extern "C" void exit (int);
 
9070
#endif
 
9071
 
 
9072
void fnord() { int i=42;}
 
9073
int main ()
 
9074
{
 
9075
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9076
  int status = $lt_dlunknown;
 
9077
 
 
9078
  if (self)
 
9079
    {
 
9080
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9081
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9082
      /* dlclose (self); */
 
9083
    }
 
9084
 
 
9085
    exit (status);
 
9086
}
 
9087
EOF
 
9088
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9089
  (eval $ac_link) 2>&5
 
9090
  ac_status=$?
 
9091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9092
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9093
    (./conftest; exit; ) >&5 2>/dev/null
 
9094
    lt_status=$?
 
9095
    case x$lt_status in
 
9096
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9097
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9098
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9099
    esac
 
9100
  else :
 
9101
    # compilation failed
 
9102
    lt_cv_dlopen_self=no
 
9103
  fi
 
9104
fi
 
9105
rm -fr conftest*
 
9106
 
 
9107
    
 
9108
fi
 
9109
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9110
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9111
 
 
9112
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9113
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9114
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9115
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9116
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9118
else
 
9119
          if test "$cross_compiling" = yes; then :
 
9120
  lt_cv_dlopen_self_static=cross
 
9121
else
 
9122
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9123
  lt_status=$lt_dlunknown
 
9124
  cat > conftest.$ac_ext <<EOF
 
9125
#line __oline__ "configure"
 
9126
#include "confdefs.h"
 
9127
 
 
9128
#if HAVE_DLFCN_H
 
9129
#include <dlfcn.h>
 
9130
#endif
 
9131
 
 
9132
#include <stdio.h>
 
9133
 
 
9134
#ifdef RTLD_GLOBAL
 
9135
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9136
#else
 
9137
#  ifdef DL_GLOBAL
 
9138
#    define LT_DLGLOBAL         DL_GLOBAL
 
9139
#  else
 
9140
#    define LT_DLGLOBAL         0
 
9141
#  endif
 
9142
#endif
 
9143
 
 
9144
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9145
   find out it does not work in some platform. */
 
9146
#ifndef LT_DLLAZY_OR_NOW
 
9147
#  ifdef RTLD_LAZY
 
9148
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9149
#  else
 
9150
#    ifdef DL_LAZY
 
9151
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9152
#    else
 
9153
#      ifdef RTLD_NOW
 
9154
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9155
#      else
 
9156
#        ifdef DL_NOW
 
9157
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9158
#        else
 
9159
#          define LT_DLLAZY_OR_NOW      0
 
9160
#        endif
 
9161
#      endif
 
9162
#    endif
 
9163
#  endif
 
9164
#endif
 
9165
 
 
9166
#ifdef __cplusplus
 
9167
extern "C" void exit (int);
 
9168
#endif
 
9169
 
 
9170
void fnord() { int i=42;}
 
9171
int main ()
 
9172
{
 
9173
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9174
  int status = $lt_dlunknown;
 
9175
 
 
9176
  if (self)
 
9177
    {
 
9178
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9179
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9180
      /* dlclose (self); */
 
9181
    }
 
9182
 
 
9183
    exit (status);
 
9184
}
 
9185
EOF
 
9186
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9187
  (eval $ac_link) 2>&5
 
9188
  ac_status=$?
 
9189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9190
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9191
    (./conftest; exit; ) >&5 2>/dev/null
 
9192
    lt_status=$?
 
9193
    case x$lt_status in
 
9194
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9195
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9196
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9197
    esac
 
9198
  else :
 
9199
    # compilation failed
 
9200
    lt_cv_dlopen_self_static=no
 
9201
  fi
 
9202
fi
 
9203
rm -fr conftest*
 
9204
 
 
9205
      
 
9206
fi
 
9207
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9208
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9209
    fi
 
9210
 
 
9211
    CPPFLAGS="$save_CPPFLAGS"
 
9212
    LDFLAGS="$save_LDFLAGS"
 
9213
    LIBS="$save_LIBS"
 
9214
    ;;
 
9215
  esac
 
9216
 
 
9217
  case $lt_cv_dlopen_self in
 
9218
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9219
  *) enable_dlopen_self=unknown ;;
 
9220
  esac
 
9221
 
 
9222
  case $lt_cv_dlopen_self_static in
 
9223
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9224
  *) enable_dlopen_self_static=unknown ;;
 
9225
  esac
 
9226
fi
 
9227
 
 
9228
 
 
9229
# Report which librarie types wil actually be built
 
9230
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9231
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9232
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9233
echo "${ECHO_T}$can_build_shared" >&6
 
9234
 
 
9235
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9236
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9237
test "$can_build_shared" = "no" && enable_shared=no
 
9238
 
 
9239
# On AIX, shared libraries and static libraries use the same namespace, and
 
9240
# are all built from PIC.
 
9241
case $host_os in
 
9242
aix3*)
 
9243
  test "$enable_shared" = yes && enable_static=no
 
9244
  if test -n "$RANLIB"; then
 
9245
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9246
    postinstall_cmds='$RANLIB $lib'
 
9247
  fi
 
9248
  ;;
 
9249
 
 
9250
aix4* | aix5*)
 
9251
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9252
    test "$enable_shared" = yes && enable_static=no
 
9253
  fi
 
9254
    ;;
 
9255
esac
 
9256
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9257
echo "${ECHO_T}$enable_shared" >&6
 
9258
 
 
9259
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9260
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9261
# Make sure either enable_shared or enable_static is yes.
 
9262
test "$enable_shared" = yes || enable_static=yes
 
9263
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9264
echo "${ECHO_T}$enable_static" >&6
 
9265
 
 
9266
# The else clause should only fire when bootstrapping the
 
9267
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9268
# with your package, and you will get complaints that there are
 
9269
# no rules to generate ltmain.sh.
 
9270
if test -f "$ltmain"; then
 
9271
  # See if we are running on zsh, and set the options which allow our commands through
 
9272
  # without removal of \ escapes.
 
9273
  if test -n "${ZSH_VERSION+set}" ; then
 
9274
    setopt NO_GLOB_SUBST
 
9275
  fi
 
9276
  # Now quote all the things that may contain metacharacters while being
 
9277
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9278
  # variables and quote the copies for generation of the libtool script.
 
9279
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9280
    SED SHELL STRIP \
 
9281
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9282
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9283
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9284
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9285
    lt_cv_sys_global_symbol_to_c_name_address \
 
9286
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9287
    old_postinstall_cmds old_postuninstall_cmds \
 
9288
    compiler \
 
9289
    CC \
 
9290
    LD \
 
9291
    lt_prog_compiler_wl \
 
9292
    lt_prog_compiler_pic \
 
9293
    lt_prog_compiler_static \
 
9294
    lt_prog_compiler_no_builtin_flag \
 
9295
    export_dynamic_flag_spec \
 
9296
    thread_safe_flag_spec \
 
9297
    whole_archive_flag_spec \
 
9298
    enable_shared_with_static_runtimes \
 
9299
    old_archive_cmds \
 
9300
    old_archive_from_new_cmds \
 
9301
    predep_objects \
 
9302
    postdep_objects \
 
9303
    predeps \
 
9304
    postdeps \
 
9305
    compiler_lib_search_path \
 
9306
    archive_cmds \
 
9307
    archive_expsym_cmds \
 
9308
    postinstall_cmds \
 
9309
    postuninstall_cmds \
 
9310
    old_archive_from_expsyms_cmds \
 
9311
    allow_undefined_flag \
 
9312
    no_undefined_flag \
 
9313
    export_symbols_cmds \
 
9314
    hardcode_libdir_flag_spec \
 
9315
    hardcode_libdir_flag_spec_ld \
 
9316
    hardcode_libdir_separator \
 
9317
    hardcode_automatic \
 
9318
    module_cmds \
 
9319
    module_expsym_cmds \
 
9320
    lt_cv_prog_compiler_c_o \
 
9321
    exclude_expsyms \
 
9322
    include_expsyms; do
 
9323
 
 
9324
    case $var in
 
9325
    old_archive_cmds | \
 
9326
    old_archive_from_new_cmds | \
 
9327
    archive_cmds | \
 
9328
    archive_expsym_cmds | \
 
9329
    module_cmds | \
 
9330
    module_expsym_cmds | \
 
9331
    old_archive_from_expsyms_cmds | \
 
9332
    export_symbols_cmds | \
 
9333
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9334
    postinstall_cmds | postuninstall_cmds | \
 
9335
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9336
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9337
      # Double-quote double-evaled strings.
 
9338
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9339
      ;;
 
9340
    *)
 
9341
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9342
      ;;
 
9343
    esac
 
9344
  done
 
9345
 
 
9346
  case $lt_echo in
 
9347
  *'\$0 --fallback-echo"')
 
9348
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9349
    ;;
 
9350
  esac
 
9351
 
 
9352
cfgfile="${ofile}T"
 
9353
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9354
  $rm -f "$cfgfile"
 
9355
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9356
echo "$as_me: creating $ofile" >&6;}
 
9357
 
 
9358
  cat <<__EOF__ >> "$cfgfile"
 
9359
#! $SHELL
 
9360
 
 
9361
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9362
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9363
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9364
#
 
9365
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9366
# Free Software Foundation, Inc.
 
9367
#
 
9368
# This file is part of GNU Libtool:
 
9369
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9370
#
 
9371
# This program is free software; you can redistribute it and/or modify
 
9372
# it under the terms of the GNU General Public License as published by
 
9373
# the Free Software Foundation; either version 2 of the License, or
 
9374
# (at your option) any later version.
 
9375
#
 
9376
# This program is distributed in the hope that it will be useful, but
 
9377
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9378
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9379
# General Public License for more details.
 
9380
#
 
9381
# You should have received a copy of the GNU General Public License
 
9382
# along with this program; if not, write to the Free Software
 
9383
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9384
#
 
9385
# As a special exception to the GNU General Public License, if you
 
9386
# distribute this file as part of a program that contains a
 
9387
# configuration script generated by Autoconf, you may include it under
 
9388
# the same distribution terms that you use for the rest of that program.
 
9389
 
 
9390
# A sed program that does not truncate output.
 
9391
SED=$lt_SED
 
9392
 
 
9393
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9394
Xsed="$SED -e 1s/^X//"
 
9395
 
 
9396
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9397
# if CDPATH is set.
 
9398
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9399
 
 
9400
# The names of the tagged configurations supported by this script.
 
9401
available_tags=
 
9402
 
 
9403
# ### BEGIN LIBTOOL CONFIG
 
9404
 
 
9405
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9406
 
 
9407
# Shell to use when invoking shell scripts.
 
9408
SHELL=$lt_SHELL
 
9409
 
 
9410
# Whether or not to build shared libraries.
 
9411
build_libtool_libs=$enable_shared
 
9412
 
 
9413
# Whether or not to build static libraries.
 
9414
build_old_libs=$enable_static
 
9415
 
 
9416
# Whether or not to add -lc for building shared libraries.
 
9417
build_libtool_need_lc=$archive_cmds_need_lc
 
9418
 
 
9419
# Whether or not to disallow shared libs when runtime libs are static
 
9420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9421
 
 
9422
# Whether or not to optimize for fast installation.
 
9423
fast_install=$enable_fast_install
 
9424
 
 
9425
# The host system.
 
9426
host_alias=$host_alias
 
9427
host=$host
 
9428
host_os=$host_os
 
9429
 
 
9430
# The build system.
 
9431
build_alias=$build_alias
 
9432
build=$build
 
9433
build_os=$build_os
 
9434
 
 
9435
# An echo program that does not interpret backslashes.
 
9436
echo=$lt_echo
 
9437
 
 
9438
# The archiver.
 
9439
AR=$lt_AR
 
9440
AR_FLAGS=$lt_AR_FLAGS
 
9441
 
 
9442
# A C compiler.
 
9443
LTCC=$lt_LTCC
 
9444
 
 
9445
# A language-specific compiler.
 
9446
CC=$lt_compiler
 
9447
 
 
9448
# Is the compiler the GNU C compiler?
 
9449
with_gcc=$GCC
 
9450
 
 
9451
# An ERE matcher.
 
9452
EGREP=$lt_EGREP
 
9453
 
 
9454
# The linker used to build libraries.
 
9455
LD=$lt_LD
 
9456
 
 
9457
# Whether we need hard or soft links.
 
9458
LN_S=$lt_LN_S
 
9459
 
 
9460
# A BSD-compatible nm program.
 
9461
NM=$lt_NM
 
9462
 
 
9463
# A symbol stripping program
 
9464
STRIP=$lt_STRIP
 
9465
 
 
9466
# Used to examine libraries when file_magic_cmd begins "file"
 
9467
MAGIC_CMD=$MAGIC_CMD
 
9468
 
 
9469
# Used on cygwin: DLL creation program.
 
9470
DLLTOOL="$DLLTOOL"
 
9471
 
 
9472
# Used on cygwin: object dumper.
 
9473
OBJDUMP="$OBJDUMP"
 
9474
 
 
9475
# Used on cygwin: assembler.
 
9476
AS="$AS"
 
9477
 
 
9478
# The name of the directory that contains temporary libtool files.
 
9479
objdir=$objdir
 
9480
 
 
9481
# How to create reloadable object files.
 
9482
reload_flag=$lt_reload_flag
 
9483
reload_cmds=$lt_reload_cmds
 
9484
 
 
9485
# How to pass a linker flag through the compiler.
 
9486
wl=$lt_lt_prog_compiler_wl
 
9487
 
 
9488
# Object file suffix (normally "o").
 
9489
objext="$ac_objext"
 
9490
 
 
9491
# Old archive suffix (normally "a").
 
9492
libext="$libext"
 
9493
 
 
9494
# Shared library suffix (normally ".so").
 
9495
shrext_cmds='$shrext_cmds'
 
9496
 
 
9497
# Executable file suffix (normally "").
 
9498
exeext="$exeext"
 
9499
 
 
9500
# Additional compiler flags for building library objects.
 
9501
pic_flag=$lt_lt_prog_compiler_pic
 
9502
pic_mode=$pic_mode
 
9503
 
 
9504
# What is the maximum length of a command?
 
9505
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9506
 
 
9507
# Does compiler simultaneously support -c and -o options?
 
9508
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9509
 
 
9510
# Must we lock files when doing compilation?
 
9511
need_locks=$lt_need_locks
 
9512
 
 
9513
# Do we need the lib prefix for modules?
 
9514
need_lib_prefix=$need_lib_prefix
 
9515
 
 
9516
# Do we need a version for libraries?
 
9517
need_version=$need_version
 
9518
 
 
9519
# Whether dlopen is supported.
 
9520
dlopen_support=$enable_dlopen
 
9521
 
 
9522
# Whether dlopen of programs is supported.
 
9523
dlopen_self=$enable_dlopen_self
 
9524
 
 
9525
# Whether dlopen of statically linked programs is supported.
 
9526
dlopen_self_static=$enable_dlopen_self_static
 
9527
 
 
9528
# Compiler flag to prevent dynamic linking.
 
9529
link_static_flag=$lt_lt_prog_compiler_static
 
9530
 
 
9531
# Compiler flag to turn off builtin functions.
 
9532
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9533
 
 
9534
# Compiler flag to allow reflexive dlopens.
 
9535
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9536
 
 
9537
# Compiler flag to generate shared objects directly from archives.
 
9538
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9539
 
 
9540
# Compiler flag to generate thread-safe objects.
 
9541
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9542
 
 
9543
# Library versioning type.
 
9544
version_type=$version_type
 
9545
 
 
9546
# Format of library name prefix.
 
9547
libname_spec=$lt_libname_spec
 
9548
 
 
9549
# List of archive names.  First name is the real one, the rest are links.
 
9550
# The last name is the one that the linker finds with -lNAME.
 
9551
library_names_spec=$lt_library_names_spec
 
9552
 
 
9553
# The coded name of the library, if different from the real name.
 
9554
soname_spec=$lt_soname_spec
 
9555
 
 
9556
# Commands used to build and install an old-style archive.
 
9557
RANLIB=$lt_RANLIB
 
9558
old_archive_cmds=$lt_old_archive_cmds
 
9559
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9560
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9561
 
 
9562
# Create an old-style archive from a shared archive.
 
9563
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9564
 
 
9565
# Create a temporary old-style archive to link instead of a shared archive.
 
9566
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9567
 
 
9568
# Commands used to build and install a shared archive.
 
9569
archive_cmds=$lt_archive_cmds
 
9570
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9571
postinstall_cmds=$lt_postinstall_cmds
 
9572
postuninstall_cmds=$lt_postuninstall_cmds
 
9573
 
 
9574
# Commands used to build a loadable module (assumed same as above if empty)
 
9575
module_cmds=$lt_module_cmds
 
9576
module_expsym_cmds=$lt_module_expsym_cmds
 
9577
 
 
9578
# Commands to strip libraries.
 
9579
old_striplib=$lt_old_striplib
 
9580
striplib=$lt_striplib
 
9581
 
 
9582
# Dependencies to place before the objects being linked to create a
 
9583
# shared library.
 
9584
predep_objects=$lt_predep_objects
 
9585
 
 
9586
# Dependencies to place after the objects being linked to create a
 
9587
# shared library.
 
9588
postdep_objects=$lt_postdep_objects
 
9589
 
 
9590
# Dependencies to place before the objects being linked to create a
 
9591
# shared library.
 
9592
predeps=$lt_predeps
 
9593
 
 
9594
# Dependencies to place after the objects being linked to create a
 
9595
# shared library.
 
9596
postdeps=$lt_postdeps
 
9597
 
 
9598
# The library search path used internally by the compiler when linking
 
9599
# a shared library.
 
9600
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9601
 
 
9602
# Method to check whether dependent libraries are shared objects.
 
9603
deplibs_check_method=$lt_deplibs_check_method
 
9604
 
 
9605
# Command to use when deplibs_check_method == file_magic.
 
9606
file_magic_cmd=$lt_file_magic_cmd
 
9607
 
 
9608
# Flag that allows shared libraries with undefined symbols to be built.
 
9609
allow_undefined_flag=$lt_allow_undefined_flag
 
9610
 
 
9611
# Flag that forces no undefined symbols.
 
9612
no_undefined_flag=$lt_no_undefined_flag
 
9613
 
 
9614
# Commands used to finish a libtool library installation in a directory.
 
9615
finish_cmds=$lt_finish_cmds
 
9616
 
 
9617
# Same as above, but a single script fragment to be evaled but not shown.
 
9618
finish_eval=$lt_finish_eval
 
9619
 
 
9620
# Take the output of nm and produce a listing of raw symbols and C names.
 
9621
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9622
 
 
9623
# Transform the output of nm in a proper C declaration
 
9624
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9625
 
 
9626
# Transform the output of nm in a C name address pair
 
9627
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9628
 
 
9629
# This is the shared library runtime path variable.
 
9630
runpath_var=$runpath_var
 
9631
 
 
9632
# This is the shared library path variable.
 
9633
shlibpath_var=$shlibpath_var
 
9634
 
 
9635
# Is shlibpath searched before the hard-coded library search path?
 
9636
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9637
 
 
9638
# How to hardcode a shared library path into an executable.
 
9639
hardcode_action=$hardcode_action
 
9640
 
 
9641
# Whether we should hardcode library paths into libraries.
 
9642
hardcode_into_libs=$hardcode_into_libs
 
9643
 
 
9644
# Flag to hardcode \$libdir into a binary during linking.
 
9645
# This must work even if \$libdir does not exist.
 
9646
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9647
 
 
9648
# If ld is used when linking, flag to hardcode \$libdir into
 
9649
# a binary during linking. This must work even if \$libdir does
 
9650
# not exist.
 
9651
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9652
 
 
9653
# Whether we need a single -rpath flag with a separated argument.
 
9654
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9655
 
 
9656
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9657
# resulting binary.
 
9658
hardcode_direct=$hardcode_direct
 
9659
 
 
9660
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9661
# resulting binary.
 
9662
hardcode_minus_L=$hardcode_minus_L
 
9663
 
 
9664
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9665
# the resulting binary.
 
9666
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9667
 
 
9668
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9669
# and all subsequent libraries and executables linked against it.
 
9670
hardcode_automatic=$hardcode_automatic
 
9671
 
 
9672
# Variables whose values should be saved in libtool wrapper scripts and
 
9673
# restored at relink time.
 
9674
variables_saved_for_relink="$variables_saved_for_relink"
 
9675
 
 
9676
# Whether libtool must link a program against all its dependency libraries.
 
9677
link_all_deplibs=$link_all_deplibs
 
9678
 
 
9679
# Compile-time system search path for libraries
 
9680
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9681
 
 
9682
# Run-time system search path for libraries
 
9683
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9684
 
 
9685
# Fix the shell variable \$srcfile for the compiler.
 
9686
fix_srcfile_path="$fix_srcfile_path"
 
9687
 
 
9688
# Set to yes if exported symbols are required.
 
9689
always_export_symbols=$always_export_symbols
 
9690
 
 
9691
# The commands to list exported symbols.
 
9692
export_symbols_cmds=$lt_export_symbols_cmds
 
9693
 
 
9694
# The commands to extract the exported symbol list from a shared archive.
 
9695
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9696
 
 
9697
# Symbols that should not be listed in the preloaded symbols.
 
9698
exclude_expsyms=$lt_exclude_expsyms
 
9699
 
 
9700
# Symbols that must always be exported.
 
9701
include_expsyms=$lt_include_expsyms
 
9702
 
 
9703
# ### END LIBTOOL CONFIG
 
9704
 
 
9705
__EOF__
 
9706
 
 
9707
 
 
9708
  case $host_os in
 
9709
  aix3*)
 
9710
    cat <<\EOF >> "$cfgfile"
 
9711
 
 
9712
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9713
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9714
# vanish in a puff of smoke.
 
9715
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9716
  COLLECT_NAMES=
 
9717
  export COLLECT_NAMES
 
9718
fi
 
9719
EOF
 
9720
    ;;
 
9721
  esac
 
9722
 
 
9723
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9724
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9725
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9726
  # is reportedly fixed, but why not run on old versions too?
 
9727
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9728
 
 
9729
  mv -f "$cfgfile" "$ofile" || \
 
9730
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9731
  chmod +x "$ofile"
 
9732
 
 
9733
else
 
9734
  # If there is no Makefile yet, we rely on a make rule to execute
 
9735
  # `config.status --recheck' to rerun these tests and create the
 
9736
  # libtool script then.
 
9737
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9738
  if test -f "$ltmain_in"; then
 
9739
    test -f Makefile && make "$ltmain"
 
9740
  fi
 
9741
fi
 
9742
 
 
9743
 
 
9744
ac_ext=c
 
9745
ac_cpp='$CPP $CPPFLAGS'
 
9746
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9747
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9748
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9749
 
 
9750
CC="$lt_save_CC"
 
9751
 
 
9752
 
 
9753
# Check whether --with-tags or --without-tags was given.
 
9754
if test "${with_tags+set}" = set; then
 
9755
  withval="$with_tags"
 
9756
  tagnames="$withval"
 
9757
fi; 
 
9758
 
 
9759
if test -f "$ltmain" && test -n "$tagnames"; then
 
9760
  if test ! -f "${ofile}"; then
 
9761
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9762
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9763
  fi
 
9764
 
 
9765
  if test -z "$LTCC"; then
 
9766
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9767
    if test -z "$LTCC"; then
 
9768
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9769
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9770
    else
 
9771
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9772
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9773
    fi
 
9774
  fi
 
9775
 
 
9776
  # Extract list of available tagged configurations in $ofile.
 
9777
  # Note that this assumes the entire list is on one line.
 
9778
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9779
 
 
9780
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9781
  for tagname in $tagnames; do
 
9782
    IFS="$lt_save_ifs"
 
9783
    # Check whether tagname contains only valid characters
 
9784
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9785
    "") ;;
 
9786
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9787
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9788
   { (exit 1); exit 1; }; }
 
9789
        ;;
 
9790
    esac
 
9791
 
 
9792
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9793
    then
 
9794
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9795
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9796
   { (exit 1); exit 1; }; }
 
9797
    fi
 
9798
 
 
9799
    # Update the list of available tags.
 
9800
    if test -n "$tagname"; then
 
9801
      echo appending configuration tag \"$tagname\" to $ofile
 
9802
 
 
9803
      case $tagname in
 
9804
      CXX)
 
9805
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9806
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9807
            (test "X$CXX" != "Xg++"))) ; then
 
9808
          ac_ext=cc
 
9809
ac_cpp='$CXXCPP $CPPFLAGS'
 
9810
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9811
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9812
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9813
 
 
9814
 
 
9815
 
 
9816
 
 
9817
archive_cmds_need_lc_CXX=no
 
9818
allow_undefined_flag_CXX=
 
9819
always_export_symbols_CXX=no
 
9820
archive_expsym_cmds_CXX=
 
9821
export_dynamic_flag_spec_CXX=
 
9822
hardcode_direct_CXX=no
 
9823
hardcode_libdir_flag_spec_CXX=
 
9824
hardcode_libdir_flag_spec_ld_CXX=
 
9825
hardcode_libdir_separator_CXX=
 
9826
hardcode_minus_L_CXX=no
 
9827
hardcode_automatic_CXX=no
 
9828
module_cmds_CXX=
 
9829
module_expsym_cmds_CXX=
 
9830
link_all_deplibs_CXX=unknown
 
9831
old_archive_cmds_CXX=$old_archive_cmds
 
9832
no_undefined_flag_CXX=
 
9833
whole_archive_flag_spec_CXX=
 
9834
enable_shared_with_static_runtimes_CXX=no
 
9835
 
 
9836
# Dependencies to place before and after the object being linked:
 
9837
predep_objects_CXX=
 
9838
postdep_objects_CXX=
 
9839
predeps_CXX=
 
9840
postdeps_CXX=
 
9841
compiler_lib_search_path_CXX=
 
9842
 
 
9843
# Source file extension for C++ test sources.
 
9844
ac_ext=cpp
 
9845
 
 
9846
# Object file extension for compiled C++ test sources.
 
9847
objext=o
 
9848
objext_CXX=$objext
 
9849
 
 
9850
# Code to be used in simple compile tests
 
9851
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9852
 
 
9853
# Code to be used in simple link tests
 
9854
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9855
 
 
9856
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9857
 
 
9858
# If no C compiler was specified, use CC.
 
9859
LTCC=${LTCC-"$CC"}
 
9860
 
 
9861
# Allow CC to be a program name with arguments.
 
9862
compiler=$CC
 
9863
 
 
9864
 
 
9865
# save warnings/boilerplate of simple test code
 
9866
ac_outfile=conftest.$ac_objext
 
9867
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9868
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9869
_lt_compiler_boilerplate=`cat conftest.err`
 
9870
$rm conftest*
 
9871
 
 
9872
ac_outfile=conftest.$ac_objext
 
9873
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9874
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9875
_lt_linker_boilerplate=`cat conftest.err`
 
9876
$rm conftest*
 
9877
 
 
9878
 
 
9879
# Allow CC to be a program name with arguments.
 
9880
lt_save_CC=$CC
 
9881
lt_save_LD=$LD
 
9882
lt_save_GCC=$GCC
 
9883
GCC=$GXX
 
9884
lt_save_with_gnu_ld=$with_gnu_ld
 
9885
lt_save_path_LD=$lt_cv_path_LD
 
9886
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9887
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9888
else
 
9889
  unset lt_cv_prog_gnu_ld
 
9890
fi
 
9891
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9892
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9893
else
 
9894
  unset lt_cv_path_LD
 
9895
fi
 
9896
test -z "${LDCXX+set}" || LD=$LDCXX
 
9897
CC=${CXX-"c++"}
 
9898
compiler=$CC
 
9899
compiler_CXX=$CC
 
9900
for cc_temp in $compiler""; do
 
9901
  case $cc_temp in
 
9902
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9903
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9904
    \-*) ;;
 
9905
    *) break;;
 
9906
  esac
 
9907
done
 
9908
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9909
 
 
9910
 
 
9911
# We don't want -fno-exception wen compiling C++ code, so set the
 
9912
# no_builtin_flag separately
 
9913
if test "$GXX" = yes; then
 
9914
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9915
else
 
9916
  lt_prog_compiler_no_builtin_flag_CXX=
 
9917
fi
 
9918
 
 
9919
if test "$GXX" = yes; then
 
9920
  # Set up default GNU C++ configuration
 
9921
 
 
9922
  
 
9923
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9924
if test "${with_gnu_ld+set}" = set; then
 
9925
  withval="$with_gnu_ld"
 
9926
  test "$withval" = no || with_gnu_ld=yes
 
9927
else
 
9928
  with_gnu_ld=no
 
9929
fi; 
 
9930
ac_prog=ld
 
9931
if test "$GCC" = yes; then
 
9932
  # Check if gcc -print-prog-name=ld gives a path.
 
9933
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9934
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9935
  case $host in
 
9936
  *-*-mingw*)
 
9937
    # gcc leaves a trailing carriage return which upsets mingw
 
9938
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9939
  *)
 
9940
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9941
  esac
 
9942
  case $ac_prog in
 
9943
    # Accept absolute paths.
 
9944
    [\\/]* | ?:[\\/]*)
 
9945
      re_direlt='/[^/][^/]*/\.\./'
 
9946
      # Canonicalize the pathname of ld
 
9947
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9948
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9949
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9950
      done
 
9951
      test -z "$LD" && LD="$ac_prog"
 
9952
      ;;
 
9953
  "")
 
9954
    # If it fails, then pretend we aren't using GCC.
 
9955
    ac_prog=ld
 
9956
    ;;
 
9957
  *)
 
9958
    # If it is relative, then search for the first ld in PATH.
 
9959
    with_gnu_ld=unknown
 
9960
    ;;
 
9961
  esac
 
9962
elif test "$with_gnu_ld" = yes; then
 
9963
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9964
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9965
else
 
9966
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9967
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9968
fi
 
9969
if test "${lt_cv_path_LD+set}" = set; then
 
9970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9971
else
 
9972
  if test -z "$LD"; then
 
9973
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9974
  for ac_dir in $PATH; do
 
9975
    IFS="$lt_save_ifs"
 
9976
    test -z "$ac_dir" && ac_dir=.
 
9977
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9978
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9979
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9980
      # but apparently some variants of GNU ld only accept -v.
 
9981
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9982
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9983
      *GNU* | *'with BFD'*)
 
9984
        test "$with_gnu_ld" != no && break
 
9985
        ;;
 
9986
      *)
 
9987
        test "$with_gnu_ld" != yes && break
 
9988
        ;;
 
9989
      esac
 
9990
    fi
 
9991
  done
 
9992
  IFS="$lt_save_ifs"
 
9993
else
 
9994
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9995
fi
 
9996
fi
 
9997
 
 
9998
LD="$lt_cv_path_LD"
 
9999
if test -n "$LD"; then
 
10000
  echo "$as_me:$LINENO: result: $LD" >&5
 
10001
echo "${ECHO_T}$LD" >&6
 
10002
else
 
10003
  echo "$as_me:$LINENO: result: no" >&5
 
10004
echo "${ECHO_T}no" >&6
 
10005
fi
 
10006
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10007
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10008
   { (exit 1); exit 1; }; }
 
10009
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10010
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10011
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10013
else
 
10014
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10015
case `$LD -v 2>&1 </dev/null` in
 
10016
*GNU* | *'with BFD'*)
 
10017
  lt_cv_prog_gnu_ld=yes
 
10018
  ;;
 
10019
*)
 
10020
  lt_cv_prog_gnu_ld=no
 
10021
  ;;
 
10022
esac
 
10023
fi
 
10024
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10025
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10026
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10027
 
 
10028
 
 
10029
 
 
10030
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10031
  # archiving commands below assume that GNU ld is being used.
 
10032
  if test "$with_gnu_ld" = yes; then
 
10033
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10034
    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'
 
10035
 
 
10036
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10037
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10038
 
 
10039
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10040
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10041
    #     investigate it a little bit more. (MM)
 
10042
    wlarc='${wl}'
 
10043
 
 
10044
    # ancient GNU ld didn't support --whole-archive et. al.
 
10045
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10046
        grep 'no-whole-archive' > /dev/null; then
 
10047
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10048
    else
 
10049
      whole_archive_flag_spec_CXX=
 
10050
    fi
 
10051
  else
 
10052
    with_gnu_ld=no
 
10053
    wlarc=
 
10054
 
 
10055
    # A generic and very simple default shared library creation
 
10056
    # command for GNU C++ for the case where it uses the native
 
10057
    # linker, instead of GNU ld.  If possible, this setting should
 
10058
    # overridden to take advantage of the native linker features on
 
10059
    # the platform it is being used on.
 
10060
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10061
  fi
 
10062
 
 
10063
  # Commands to make compiler produce verbose output that lists
 
10064
  # what "hidden" libraries, object files and flags are used when
 
10065
  # linking a shared library.
 
10066
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10067
 
 
10068
else
 
10069
  GXX=no
 
10070
  with_gnu_ld=no
 
10071
  wlarc=
 
10072
fi
 
10073
 
 
10074
# PORTME: fill in a description of your system's C++ link characteristics
 
10075
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10076
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10077
ld_shlibs_CXX=yes
 
10078
case $host_os in
 
10079
  aix3*)
 
10080
    # FIXME: insert proper C++ library support
 
10081
    ld_shlibs_CXX=no
 
10082
    ;;
 
10083
  aix4* | aix5*)
 
10084
    if test "$host_cpu" = ia64; then
 
10085
      # On IA64, the linker does run time linking by default, so we don't
 
10086
      # have to do anything special.
 
10087
      aix_use_runtimelinking=no
 
10088
      exp_sym_flag='-Bexport'
 
10089
      no_entry_flag=""
 
10090
    else
 
10091
      aix_use_runtimelinking=no
 
10092
 
 
10093
      # Test if we are trying to use run time linking or normal
 
10094
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10095
      # need to do runtime linking.
 
10096
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10097
        for ld_flag in $LDFLAGS; do
 
10098
          case $ld_flag in
 
10099
          *-brtl*)
 
10100
            aix_use_runtimelinking=yes
 
10101
            break
 
10102
            ;;
 
10103
          esac
 
10104
        done
 
10105
      esac
 
10106
 
 
10107
      exp_sym_flag='-bexport'
 
10108
      no_entry_flag='-bnoentry'
 
10109
    fi
 
10110
 
 
10111
    # When large executables or shared objects are built, AIX ld can
 
10112
    # have problems creating the table of contents.  If linking a library
 
10113
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10114
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10115
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10116
 
 
10117
    archive_cmds_CXX=''
 
10118
    hardcode_direct_CXX=yes
 
10119
    hardcode_libdir_separator_CXX=':'
 
10120
    link_all_deplibs_CXX=yes
 
10121
 
 
10122
    if test "$GXX" = yes; then
 
10123
      case $host_os in aix4.[012]|aix4.[012].*)
 
10124
      # We only want to do this on AIX 4.2 and lower, the check
 
10125
      # below for broken collect2 doesn't work under 4.3+
 
10126
        collect2name=`${CC} -print-prog-name=collect2`
 
10127
        if test -f "$collect2name" && \
 
10128
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10129
        then
 
10130
          # We have reworked collect2
 
10131
          hardcode_direct_CXX=yes
 
10132
        else
 
10133
          # We have old collect2
 
10134
          hardcode_direct_CXX=unsupported
 
10135
          # It fails to find uninstalled libraries when the uninstalled
 
10136
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10137
          # to unsupported forces relinking
 
10138
          hardcode_minus_L_CXX=yes
 
10139
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10140
          hardcode_libdir_separator_CXX=
 
10141
        fi
 
10142
      esac
 
10143
      shared_flag='-shared'
 
10144
      if test "$aix_use_runtimelinking" = yes; then
 
10145
        shared_flag="$shared_flag "'${wl}-G'
 
10146
      fi
 
10147
    else
 
10148
      # not using gcc
 
10149
      if test "$host_cpu" = ia64; then
 
10150
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10151
        # chokes on -Wl,-G. The following line is correct:
 
10152
        shared_flag='-G'
 
10153
      else
 
10154
        if test "$aix_use_runtimelinking" = yes; then
 
10155
          shared_flag='${wl}-G'
 
10156
        else
 
10157
          shared_flag='${wl}-bM:SRE'
 
10158
        fi
 
10159
      fi
 
10160
    fi
 
10161
 
 
10162
    # It seems that -bexpall does not export symbols beginning with
 
10163
    # underscore (_), so it is better to generate a list of symbols to export.
 
10164
    always_export_symbols_CXX=yes
 
10165
    if test "$aix_use_runtimelinking" = yes; then
 
10166
      # Warning - without using the other runtime loading flags (-brtl),
 
10167
      # -berok will link without error, but may produce a broken library.
 
10168
      allow_undefined_flag_CXX='-berok'
 
10169
      # Determine the default libpath from the value encoded in an empty executable.
 
10170
      cat >conftest.$ac_ext <<_ACEOF
 
10171
/* confdefs.h.  */
 
10172
_ACEOF
 
10173
cat confdefs.h >>conftest.$ac_ext
 
10174
cat >>conftest.$ac_ext <<_ACEOF
 
10175
/* end confdefs.h.  */
 
10176
 
 
10177
int
 
10178
main ()
 
10179
{
 
10180
 
 
10181
  ;
 
10182
  return 0;
 
10183
}
 
10184
_ACEOF
 
10185
rm -f conftest.$ac_objext conftest$ac_exeext
 
10186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10187
  (eval $ac_link) 2>conftest.er1
 
10188
  ac_status=$?
 
10189
  grep -v '^ *+' conftest.er1 >conftest.err
 
10190
  rm -f conftest.er1
 
10191
  cat conftest.err >&5
 
10192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10193
  (exit $ac_status); } &&
 
10194
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10196
  (eval $ac_try) 2>&5
 
10197
  ac_status=$?
 
10198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10199
  (exit $ac_status); }; } &&
 
10200
         { ac_try='test -s conftest$ac_exeext'
 
10201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10202
  (eval $ac_try) 2>&5
 
10203
  ac_status=$?
 
10204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10205
  (exit $ac_status); }; }; then
 
10206
  
 
10207
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10208
}'`
 
10209
# Check for a 64-bit object if we didn't find anything.
 
10210
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; }
 
10211
}'`; fi
 
10212
else
 
10213
  echo "$as_me: failed program was:" >&5
 
10214
sed 's/^/| /' conftest.$ac_ext >&5
 
10215
 
 
10216
fi
 
10217
rm -f conftest.err conftest.$ac_objext \
 
10218
      conftest$ac_exeext conftest.$ac_ext
 
10219
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10220
 
 
10221
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10222
 
 
10223
      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"
 
10224
     else
 
10225
      if test "$host_cpu" = ia64; then
 
10226
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10227
        allow_undefined_flag_CXX="-z nodefs"
 
10228
        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"
 
10229
      else
 
10230
        # Determine the default libpath from the value encoded in an empty executable.
 
10231
        cat >conftest.$ac_ext <<_ACEOF
 
10232
/* confdefs.h.  */
 
10233
_ACEOF
 
10234
cat confdefs.h >>conftest.$ac_ext
 
10235
cat >>conftest.$ac_ext <<_ACEOF
 
10236
/* end confdefs.h.  */
 
10237
 
 
10238
int
 
10239
main ()
 
10240
{
 
10241
 
 
10242
  ;
 
10243
  return 0;
 
10244
}
 
10245
_ACEOF
 
10246
rm -f conftest.$ac_objext conftest$ac_exeext
 
10247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10248
  (eval $ac_link) 2>conftest.er1
 
10249
  ac_status=$?
 
10250
  grep -v '^ *+' conftest.er1 >conftest.err
 
10251
  rm -f conftest.er1
 
10252
  cat conftest.err >&5
 
10253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10254
  (exit $ac_status); } &&
 
10255
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10257
  (eval $ac_try) 2>&5
 
10258
  ac_status=$?
 
10259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10260
  (exit $ac_status); }; } &&
 
10261
         { ac_try='test -s conftest$ac_exeext'
 
10262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10263
  (eval $ac_try) 2>&5
 
10264
  ac_status=$?
 
10265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10266
  (exit $ac_status); }; }; then
 
10267
  
 
10268
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10269
}'`
 
10270
# Check for a 64-bit object if we didn't find anything.
 
10271
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; }
 
10272
}'`; fi
 
10273
else
 
10274
  echo "$as_me: failed program was:" >&5
 
10275
sed 's/^/| /' conftest.$ac_ext >&5
 
10276
 
 
10277
fi
 
10278
rm -f conftest.err conftest.$ac_objext \
 
10279
      conftest$ac_exeext conftest.$ac_ext
 
10280
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10281
 
 
10282
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10283
        # Warning - without using the other run time loading flags,
 
10284
        # -berok will link without error, but may produce a broken library.
 
10285
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10286
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10287
        # -bexpall does not export symbols beginning with underscore (_)
 
10288
        always_export_symbols_CXX=yes
 
10289
        # Exported symbols can be pulled into shared objects from archives
 
10290
        whole_archive_flag_spec_CXX=' '
 
10291
        archive_cmds_need_lc_CXX=yes
 
10292
        # This is similar to how AIX traditionally builds its shared libraries.
 
10293
        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'
 
10294
      fi
 
10295
    fi
 
10296
    ;;
 
10297
  chorus*)
 
10298
    case $cc_basename in
 
10299
      *)
 
10300
        # FIXME: insert proper C++ library support
 
10301
        ld_shlibs_CXX=no
 
10302
        ;;
 
10303
    esac
 
10304
    ;;
 
10305
 
 
10306
 
 
10307
  cygwin* | mingw* | pw32*)
 
10308
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10309
    # as there is no search path for DLLs.
 
10310
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10311
    allow_undefined_flag_CXX=unsupported
 
10312
    always_export_symbols_CXX=no
 
10313
    enable_shared_with_static_runtimes_CXX=yes
 
10314
 
 
10315
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10316
      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'
 
10317
      # If the export-symbols file already is a .def file (1st line
 
10318
      # is EXPORTS), use it as is; otherwise, prepend...
 
10319
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10320
        cp $export_symbols $output_objdir/$soname.def;
 
10321
      else
 
10322
        echo EXPORTS > $output_objdir/$soname.def;
 
10323
        cat $export_symbols >> $output_objdir/$soname.def;
 
10324
      fi~
 
10325
      $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'
 
10326
    else
 
10327
      ld_shlibs_CXX=no
 
10328
    fi
 
10329
  ;;
 
10330
      darwin* | rhapsody*)
 
10331
        case $host_os in
 
10332
        rhapsody* | darwin1.[012])
 
10333
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10334
         ;;
 
10335
       *) # Darwin 1.3 on
 
10336
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10337
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10338
         else
 
10339
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10340
             10.[012])
 
10341
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10342
               ;;
 
10343
             10.*)
 
10344
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10345
               ;;
 
10346
           esac
 
10347
         fi
 
10348
         ;;
 
10349
        esac
 
10350
      archive_cmds_need_lc_CXX=no
 
10351
      hardcode_direct_CXX=no
 
10352
      hardcode_automatic_CXX=yes
 
10353
      hardcode_shlibpath_var_CXX=unsupported
 
10354
      whole_archive_flag_spec_CXX=''
 
10355
      link_all_deplibs_CXX=yes
 
10356
 
 
10357
    if test "$GXX" = yes ; then
 
10358
      lt_int_apple_cc_single_mod=no
 
10359
      output_verbose_link_cmd='echo'
 
10360
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10361
       lt_int_apple_cc_single_mod=yes
 
10362
      fi
 
10363
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10364
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10365
      else
 
10366
          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'
 
10367
        fi
 
10368
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10369
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10370
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10371
            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}'
 
10372
          else
 
10373
            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}'
 
10374
          fi
 
10375
            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}'
 
10376
      else
 
10377
      case $cc_basename in
 
10378
        xlc*)
 
10379
         output_verbose_link_cmd='echo'
 
10380
          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'
 
10381
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10382
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10383
          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}'
 
10384
          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}'
 
10385
          ;;
 
10386
       *)
 
10387
         ld_shlibs_CXX=no
 
10388
          ;;
 
10389
      esac
 
10390
      fi
 
10391
        ;;
 
10392
 
 
10393
  dgux*)
 
10394
    case $cc_basename in
 
10395
      ec++*)
 
10396
        # FIXME: insert proper C++ library support
 
10397
        ld_shlibs_CXX=no
 
10398
        ;;
 
10399
      ghcx*)
 
10400
        # Green Hills C++ Compiler
 
10401
        # FIXME: insert proper C++ library support
 
10402
        ld_shlibs_CXX=no
 
10403
        ;;
 
10404
      *)
 
10405
        # FIXME: insert proper C++ library support
 
10406
        ld_shlibs_CXX=no
 
10407
        ;;
 
10408
    esac
 
10409
    ;;
 
10410
  freebsd[12]*)
 
10411
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10412
    ld_shlibs_CXX=no
 
10413
    ;;
 
10414
  freebsd-elf*)
 
10415
    archive_cmds_need_lc_CXX=no
 
10416
    ;;
 
10417
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10418
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10419
    # conventions
 
10420
    ld_shlibs_CXX=yes
 
10421
    ;;
 
10422
  gnu*)
 
10423
    ;;
 
10424
  hpux9*)
 
10425
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10426
    hardcode_libdir_separator_CXX=:
 
10427
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10428
    hardcode_direct_CXX=yes
 
10429
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10430
                                # but as the default
 
10431
                                # location of the library.
 
10432
 
 
10433
    case $cc_basename in
 
10434
    CC*)
 
10435
      # FIXME: insert proper C++ library support
 
10436
      ld_shlibs_CXX=no
 
10437
      ;;
 
10438
    aCC*)
 
10439
      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'
 
10440
      # Commands to make compiler produce verbose output that lists
 
10441
      # what "hidden" libraries, object files and flags are used when
 
10442
      # linking a shared library.
 
10443
      #
 
10444
      # There doesn't appear to be a way to prevent this compiler from
 
10445
      # explicitly linking system object files so we need to strip them
 
10446
      # from the output so that they don't get included in the library
 
10447
      # dependencies.
 
10448
      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'
 
10449
      ;;
 
10450
    *)
 
10451
      if test "$GXX" = yes; then
 
10452
        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'
 
10453
      else
 
10454
        # FIXME: insert proper C++ library support
 
10455
        ld_shlibs_CXX=no
 
10456
      fi
 
10457
      ;;
 
10458
    esac
 
10459
    ;;
 
10460
  hpux10*|hpux11*)
 
10461
    if test $with_gnu_ld = no; then
 
10462
      case $host_cpu in
 
10463
      hppa*64*)
 
10464
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10465
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10466
        hardcode_libdir_separator_CXX=:
 
10467
        ;;
 
10468
      ia64*)
 
10469
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10470
        ;;
 
10471
      *)
 
10472
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10473
        hardcode_libdir_separator_CXX=:
 
10474
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10475
        ;;
 
10476
      esac
 
10477
    fi
 
10478
    case $host_cpu in
 
10479
    hppa*64*)
 
10480
      hardcode_direct_CXX=no
 
10481
      hardcode_shlibpath_var_CXX=no
 
10482
      ;;
 
10483
    ia64*)
 
10484
      hardcode_direct_CXX=no
 
10485
      hardcode_shlibpath_var_CXX=no
 
10486
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10487
                                              # but as the default
 
10488
                                              # location of the library.
 
10489
      ;;
 
10490
    *)
 
10491
      hardcode_direct_CXX=yes
 
10492
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10493
                                              # but as the default
 
10494
                                              # location of the library.
 
10495
      ;;
 
10496
    esac
 
10497
 
 
10498
    case $cc_basename in
 
10499
      CC*)
 
10500
        # FIXME: insert proper C++ library support
 
10501
        ld_shlibs_CXX=no
 
10502
        ;;
 
10503
      aCC*)
 
10504
        case $host_cpu in
 
10505
        hppa*64*|ia64*)
 
10506
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10507
          ;;
 
10508
        *)
 
10509
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10510
          ;;
 
10511
        esac
 
10512
        # Commands to make compiler produce verbose output that lists
 
10513
        # what "hidden" libraries, object files and flags are used when
 
10514
        # linking a shared library.
 
10515
        #
 
10516
        # There doesn't appear to be a way to prevent this compiler from
 
10517
        # explicitly linking system object files so we need to strip them
 
10518
        # from the output so that they don't get included in the library
 
10519
        # dependencies.
 
10520
        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'
 
10521
        ;;
 
10522
      *)
 
10523
        if test "$GXX" = yes; then
 
10524
          if test $with_gnu_ld = no; then
 
10525
            case $host_cpu in
 
10526
            ia64*|hppa*64*)
 
10527
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10528
              ;;
 
10529
            *)
 
10530
              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'
 
10531
              ;;
 
10532
            esac
 
10533
          fi
 
10534
        else
 
10535
          # FIXME: insert proper C++ library support
 
10536
          ld_shlibs_CXX=no
 
10537
        fi
 
10538
        ;;
 
10539
    esac
 
10540
    ;;
 
10541
  irix5* | irix6*)
 
10542
    case $cc_basename in
 
10543
      CC*)
 
10544
        # SGI C++
 
10545
        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'
 
10546
 
 
10547
        # Archives containing C++ object files must be created using
 
10548
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10549
        # necessary to make sure instantiated templates are included
 
10550
        # in the archive.
 
10551
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10552
        ;;
 
10553
      *)
 
10554
        if test "$GXX" = yes; then
 
10555
          if test "$with_gnu_ld" = no; then
 
10556
            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'
 
10557
          else
 
10558
            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'
 
10559
          fi
 
10560
        fi
 
10561
        link_all_deplibs_CXX=yes
 
10562
        ;;
 
10563
    esac
 
10564
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10565
    hardcode_libdir_separator_CXX=:
 
10566
    ;;
 
10567
  linux*)
 
10568
    case $cc_basename in
 
10569
      KCC*)
 
10570
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10571
 
 
10572
        # KCC will only create a shared library if the output file
 
10573
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10574
        # to its proper name (with version) after linking.
 
10575
        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'
 
10576
        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'
 
10577
        # Commands to make compiler produce verbose output that lists
 
10578
        # what "hidden" libraries, object files and flags are used when
 
10579
        # linking a shared library.
 
10580
        #
 
10581
        # There doesn't appear to be a way to prevent this compiler from
 
10582
        # explicitly linking system object files so we need to strip them
 
10583
        # from the output so that they don't get included in the library
 
10584
        # dependencies.
 
10585
        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'
 
10586
 
 
10587
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10588
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10589
 
 
10590
        # Archives containing C++ object files must be created using
 
10591
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10592
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10593
        ;;
 
10594
      icpc*)
 
10595
        # Intel C++
 
10596
        with_gnu_ld=yes
 
10597
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10598
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10599
        # earlier do not add the objects themselves.
 
10600
        case `$CC -V 2>&1` in
 
10601
        *"Version 7."*)
 
10602
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10603
          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'
 
10604
          ;;
 
10605
        *)  # Version 8.0 or newer
 
10606
          tmp_idyn=
 
10607
          case $host_cpu in
 
10608
            ia64*) tmp_idyn=' -i_dynamic';;
 
10609
          esac
 
10610
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10611
          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'
 
10612
          ;;
 
10613
        esac
 
10614
        archive_cmds_need_lc_CXX=no
 
10615
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10616
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10617
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10618
        ;;
 
10619
      pgCC*)
 
10620
        # Portland Group C++ compiler
 
10621
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10622
        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'
 
10623
 
 
10624
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10625
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10626
        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'
 
10627
        ;;
 
10628
      cxx*)
 
10629
        # Compaq C++
 
10630
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10631
        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'
 
10632
 
 
10633
        runpath_var=LD_RUN_PATH
 
10634
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10635
        hardcode_libdir_separator_CXX=:
 
10636
 
 
10637
        # Commands to make compiler produce verbose output that lists
 
10638
        # what "hidden" libraries, object files and flags are used when
 
10639
        # linking a shared library.
 
10640
        #
 
10641
        # There doesn't appear to be a way to prevent this compiler from
 
10642
        # explicitly linking system object files so we need to strip them
 
10643
        # from the output so that they don't get included in the library
 
10644
        # dependencies.
 
10645
        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'
 
10646
        ;;
 
10647
    esac
 
10648
    ;;
 
10649
  lynxos*)
 
10650
    # FIXME: insert proper C++ library support
 
10651
    ld_shlibs_CXX=no
 
10652
    ;;
 
10653
  m88k*)
 
10654
    # FIXME: insert proper C++ library support
 
10655
    ld_shlibs_CXX=no
 
10656
    ;;
 
10657
  mvs*)
 
10658
    case $cc_basename in
 
10659
      cxx*)
 
10660
        # FIXME: insert proper C++ library support
 
10661
        ld_shlibs_CXX=no
 
10662
        ;;
 
10663
      *)
 
10664
        # FIXME: insert proper C++ library support
 
10665
        ld_shlibs_CXX=no
 
10666
        ;;
 
10667
    esac
 
10668
    ;;
 
10669
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10670
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10671
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10672
      wlarc=
 
10673
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10674
      hardcode_direct_CXX=yes
 
10675
      hardcode_shlibpath_var_CXX=no
 
10676
    fi
 
10677
    # Workaround some broken pre-1.5 toolchains
 
10678
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10679
    ;;
 
10680
  openbsd2*)
 
10681
    # C++ shared libraries are fairly broken
 
10682
    ld_shlibs_CXX=no
 
10683
    ;;
 
10684
  openbsd*)
 
10685
    hardcode_direct_CXX=yes
 
10686
    hardcode_shlibpath_var_CXX=no
 
10687
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10688
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10689
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10690
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10691
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10692
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10693
    fi
 
10694
    output_verbose_link_cmd='echo'
 
10695
    ;;
 
10696
  osf3*)
 
10697
    case $cc_basename in
 
10698
      KCC*)
 
10699
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10700
 
 
10701
        # KCC will only create a shared library if the output file
 
10702
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10703
        # to its proper name (with version) after linking.
 
10704
        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'
 
10705
 
 
10706
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10707
        hardcode_libdir_separator_CXX=:
 
10708
 
 
10709
        # Archives containing C++ object files must be created using
 
10710
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10711
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10712
 
 
10713
        ;;
 
10714
      RCC*)
 
10715
        # Rational C++ 2.4.1
 
10716
        # FIXME: insert proper C++ library support
 
10717
        ld_shlibs_CXX=no
 
10718
        ;;
 
10719
      cxx*)
 
10720
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10721
        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'
 
10722
 
 
10723
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10724
        hardcode_libdir_separator_CXX=:
 
10725
 
 
10726
        # Commands to make compiler produce verbose output that lists
 
10727
        # what "hidden" libraries, object files and flags are used when
 
10728
        # linking a shared library.
 
10729
        #
 
10730
        # There doesn't appear to be a way to prevent this compiler from
 
10731
        # explicitly linking system object files so we need to strip them
 
10732
        # from the output so that they don't get included in the library
 
10733
        # dependencies.
 
10734
        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'
 
10735
        ;;
 
10736
      *)
 
10737
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10738
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10739
          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'
 
10740
 
 
10741
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10742
          hardcode_libdir_separator_CXX=:
 
10743
 
 
10744
          # Commands to make compiler produce verbose output that lists
 
10745
          # what "hidden" libraries, object files and flags are used when
 
10746
          # linking a shared library.
 
10747
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10748
 
 
10749
        else
 
10750
          # FIXME: insert proper C++ library support
 
10751
          ld_shlibs_CXX=no
 
10752
        fi
 
10753
        ;;
 
10754
    esac
 
10755
    ;;
 
10756
  osf4* | osf5*)
 
10757
    case $cc_basename in
 
10758
      KCC*)
 
10759
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10760
 
 
10761
        # KCC will only create a shared library if the output file
 
10762
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10763
        # to its proper name (with version) after linking.
 
10764
        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'
 
10765
 
 
10766
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10767
        hardcode_libdir_separator_CXX=:
 
10768
 
 
10769
        # Archives containing C++ object files must be created using
 
10770
        # the KAI C++ compiler.
 
10771
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10772
        ;;
 
10773
      RCC*)
 
10774
        # Rational C++ 2.4.1
 
10775
        # FIXME: insert proper C++ library support
 
10776
        ld_shlibs_CXX=no
 
10777
        ;;
 
10778
      cxx*)
 
10779
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10780
        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'
 
10781
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10782
          echo "-hidden">> $lib.exp~
 
10783
          $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~
 
10784
          $rm $lib.exp'
 
10785
 
 
10786
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10787
        hardcode_libdir_separator_CXX=:
 
10788
 
 
10789
        # Commands to make compiler produce verbose output that lists
 
10790
        # what "hidden" libraries, object files and flags are used when
 
10791
        # linking a shared library.
 
10792
        #
 
10793
        # There doesn't appear to be a way to prevent this compiler from
 
10794
        # explicitly linking system object files so we need to strip them
 
10795
        # from the output so that they don't get included in the library
 
10796
        # dependencies.
 
10797
        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'
 
10798
        ;;
 
10799
      *)
 
10800
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10801
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10802
         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'
 
10803
 
 
10804
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10805
          hardcode_libdir_separator_CXX=:
 
10806
 
 
10807
          # Commands to make compiler produce verbose output that lists
 
10808
          # what "hidden" libraries, object files and flags are used when
 
10809
          # linking a shared library.
 
10810
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10811
 
 
10812
        else
 
10813
          # FIXME: insert proper C++ library support
 
10814
          ld_shlibs_CXX=no
 
10815
        fi
 
10816
        ;;
 
10817
    esac
 
10818
    ;;
 
10819
  psos*)
 
10820
    # FIXME: insert proper C++ library support
 
10821
    ld_shlibs_CXX=no
 
10822
    ;;
 
10823
  sco*)
 
10824
    archive_cmds_need_lc_CXX=no
 
10825
    case $cc_basename in
 
10826
      CC*)
 
10827
        # FIXME: insert proper C++ library support
 
10828
        ld_shlibs_CXX=no
 
10829
        ;;
 
10830
      *)
 
10831
        # FIXME: insert proper C++ library support
 
10832
        ld_shlibs_CXX=no
 
10833
        ;;
 
10834
    esac
 
10835
    ;;
 
10836
  sunos4*)
 
10837
    case $cc_basename in
 
10838
      CC*)
 
10839
        # Sun C++ 4.x
 
10840
        # FIXME: insert proper C++ library support
 
10841
        ld_shlibs_CXX=no
 
10842
        ;;
 
10843
      lcc*)
 
10844
        # Lucid
 
10845
        # FIXME: insert proper C++ library support
 
10846
        ld_shlibs_CXX=no
 
10847
        ;;
 
10848
      *)
 
10849
        # FIXME: insert proper C++ library support
 
10850
        ld_shlibs_CXX=no
 
10851
        ;;
 
10852
    esac
 
10853
    ;;
 
10854
  solaris*)
 
10855
    case $cc_basename in
 
10856
      CC*)
 
10857
        # Sun C++ 4.2, 5.x and Centerline C++
 
10858
        archive_cmds_need_lc_CXX=yes
 
10859
        no_undefined_flag_CXX=' -zdefs'
 
10860
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10861
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10862
        $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'
 
10863
 
 
10864
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10865
        hardcode_shlibpath_var_CXX=no
 
10866
        case $host_os in
 
10867
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10868
          *)
 
10869
            # The C++ compiler is used as linker so we must use $wl
 
10870
            # flag to pass the commands to the underlying system
 
10871
            # linker. We must also pass each convience library through
 
10872
            # to the system linker between allextract/defaultextract.
 
10873
            # The C++ compiler will combine linker options so we
 
10874
            # cannot just pass the convience library names through
 
10875
            # without $wl.
 
10876
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10877
            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'
 
10878
            ;;
 
10879
        esac
 
10880
        link_all_deplibs_CXX=yes
 
10881
 
 
10882
        output_verbose_link_cmd='echo'
 
10883
 
 
10884
        # Archives containing C++ object files must be created using
 
10885
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10886
        # necessary to make sure instantiated templates are included
 
10887
        # in the archive.
 
10888
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10889
        ;;
 
10890
      gcx*)
 
10891
        # Green Hills C++ Compiler
 
10892
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10893
 
 
10894
        # The C++ compiler must be used to create the archive.
 
10895
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10896
        ;;
 
10897
      *)
 
10898
        # GNU C++ compiler with Solaris linker
 
10899
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10900
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10901
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10902
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10903
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10904
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10905
 
 
10906
            # Commands to make compiler produce verbose output that lists
 
10907
            # what "hidden" libraries, object files and flags are used when
 
10908
            # linking a shared library.
 
10909
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10910
          else
 
10911
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10912
            # platform.
 
10913
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10914
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10915
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10916
 
 
10917
            # Commands to make compiler produce verbose output that lists
 
10918
            # what "hidden" libraries, object files and flags are used when
 
10919
            # linking a shared library.
 
10920
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10921
          fi
 
10922
 
 
10923
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10924
        fi
 
10925
        ;;
 
10926
    esac
 
10927
    ;;
 
10928
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10929
    archive_cmds_need_lc_CXX=no
 
10930
    ;;
 
10931
  tandem*)
 
10932
    case $cc_basename in
 
10933
      NCC*)
 
10934
        # NonStop-UX NCC 3.20
 
10935
        # FIXME: insert proper C++ library support
 
10936
        ld_shlibs_CXX=no
 
10937
        ;;
 
10938
      *)
 
10939
        # FIXME: insert proper C++ library support
 
10940
        ld_shlibs_CXX=no
 
10941
        ;;
 
10942
    esac
 
10943
    ;;
 
10944
  vxworks*)
 
10945
    # FIXME: insert proper C++ library support
 
10946
    ld_shlibs_CXX=no
 
10947
    ;;
 
10948
  *)
 
10949
    # FIXME: insert proper C++ library support
 
10950
    ld_shlibs_CXX=no
 
10951
    ;;
 
10952
esac
 
10953
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10954
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10955
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10956
 
 
10957
GCC_CXX="$GXX"
 
10958
LD_CXX="$LD"
 
10959
 
 
10960
## CAVEAT EMPTOR:
 
10961
## There is no encapsulation within the following macros, do not change
 
10962
## the running order or otherwise move them around unless you know exactly
 
10963
## what you are doing...
 
10964
 
 
10965
cat > conftest.$ac_ext <<EOF
 
10966
class Foo
 
10967
{
 
10968
public:
 
10969
  Foo (void) { a = 0; }
 
10970
private:
 
10971
  int a;
 
10972
};
 
10973
EOF
 
10974
 
 
10975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10976
  (eval $ac_compile) 2>&5
 
10977
  ac_status=$?
 
10978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10979
  (exit $ac_status); }; then
 
10980
  # Parse the compiler output and extract the necessary
 
10981
  # objects, libraries and library flags.
 
10982
 
 
10983
  # Sentinel used to keep track of whether or not we are before
 
10984
  # the conftest object file.
 
10985
  pre_test_object_deps_done=no
 
10986
 
 
10987
  # The `*' in the case matches for architectures that use `case' in
 
10988
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10989
  # eval without this substitution.
 
10990
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
10991
 
 
10992
  for p in `eval $output_verbose_link_cmd`; do
 
10993
    case $p in
 
10994
 
 
10995
    -L* | -R* | -l*)
 
10996
       # Some compilers place space between "-{L,R}" and the path.
 
10997
       # Remove the space.
 
10998
       if test $p = "-L" \
 
10999
          || test $p = "-R"; then
 
11000
         prev=$p
 
11001
         continue
 
11002
       else
 
11003
         prev=
 
11004
       fi
 
11005
 
 
11006
       if test "$pre_test_object_deps_done" = no; then
 
11007
         case $p in
 
11008
         -L* | -R*)
 
11009
           # Internal compiler library paths should come after those
 
11010
           # provided the user.  The postdeps already come after the
 
11011
           # user supplied libs so there is no need to process them.
 
11012
           if test -z "$compiler_lib_search_path_CXX"; then
 
11013
             compiler_lib_search_path_CXX="${prev}${p}"
 
11014
           else
 
11015
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11016
           fi
 
11017
           ;;
 
11018
         # The "-l" case would never come before the object being
 
11019
         # linked, so don't bother handling this case.
 
11020
         esac
 
11021
       else
 
11022
         if test -z "$postdeps_CXX"; then
 
11023
           postdeps_CXX="${prev}${p}"
 
11024
         else
 
11025
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11026
         fi
 
11027
       fi
 
11028
       ;;
 
11029
 
 
11030
    *.$objext)
 
11031
       # This assumes that the test object file only shows up
 
11032
       # once in the compiler output.
 
11033
       if test "$p" = "conftest.$objext"; then
 
11034
         pre_test_object_deps_done=yes
 
11035
         continue
 
11036
       fi
 
11037
 
 
11038
       if test "$pre_test_object_deps_done" = no; then
 
11039
         if test -z "$predep_objects_CXX"; then
 
11040
           predep_objects_CXX="$p"
 
11041
         else
 
11042
           predep_objects_CXX="$predep_objects_CXX $p"
 
11043
         fi
 
11044
       else
 
11045
         if test -z "$postdep_objects_CXX"; then
 
11046
           postdep_objects_CXX="$p"
 
11047
         else
 
11048
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11049
         fi
 
11050
       fi
 
11051
       ;;
 
11052
 
 
11053
    *) ;; # Ignore the rest.
 
11054
 
 
11055
    esac
 
11056
  done
 
11057
 
 
11058
  # Clean up.
 
11059
  rm -f a.out a.exe
 
11060
else
 
11061
  echo "libtool.m4: error: problem compiling CXX test program"
 
11062
fi
 
11063
 
 
11064
$rm -f confest.$objext
 
11065
 
 
11066
# PORTME: override above test on systems where it is broken
 
11067
case $host_os in
 
11068
solaris*)
 
11069
  case $cc_basename in
 
11070
  CC*)
 
11071
    # Adding this requires a known-good setup of shared libraries for
 
11072
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11073
    # archive will be linked into the output, leading to subtle bugs.
 
11074
    postdeps_CXX='-lCstd -lCrun'
 
11075
    ;;
 
11076
  esac
 
11077
esac
 
11078
 
 
11079
 
 
11080
case " $postdeps_CXX " in
 
11081
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11082
esac
 
11083
 
 
11084
lt_prog_compiler_wl_CXX=
 
11085
lt_prog_compiler_pic_CXX=
 
11086
lt_prog_compiler_static_CXX=
 
11087
 
 
11088
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11089
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11090
 
 
11091
  # C++ specific cases for pic, static, wl, etc.
 
11092
  if test "$GXX" = yes; then
 
11093
    lt_prog_compiler_wl_CXX='-Wl,'
 
11094
    lt_prog_compiler_static_CXX='-static'
 
11095
 
 
11096
    case $host_os in
 
11097
    aix*)
 
11098
      # All AIX code is PIC.
 
11099
      if test "$host_cpu" = ia64; then
 
11100
        # AIX 5 now supports IA64 processor
 
11101
        lt_prog_compiler_static_CXX='-Bstatic'
 
11102
      fi
 
11103
      ;;
 
11104
    amigaos*)
 
11105
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11106
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11107
      # like `-m68040'.
 
11108
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11109
      ;;
 
11110
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11111
      # PIC is the default for these OSes.
 
11112
      ;;
 
11113
    mingw* | os2* | pw32*)
 
11114
      # This hack is so that the source file can tell whether it is being
 
11115
      # built for inclusion in a dll (and should export symbols for example).
 
11116
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11117
      ;;
 
11118
    darwin* | rhapsody*)
 
11119
      # PIC is the default on this platform
 
11120
      # Common symbols not allowed in MH_DYLIB files
 
11121
      lt_prog_compiler_pic_CXX='-fno-common'
 
11122
      ;;
 
11123
    *djgpp*)
 
11124
      # DJGPP does not support shared libraries at all
 
11125
      lt_prog_compiler_pic_CXX=
 
11126
      ;;
 
11127
    sysv4*MP*)
 
11128
      if test -d /usr/nec; then
 
11129
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11130
      fi
 
11131
      ;;
 
11132
    hpux*)
 
11133
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11134
      # not for PA HP-UX.
 
11135
      case $host_cpu in
 
11136
      hppa*64*|ia64*)
 
11137
        ;;
 
11138
      *)
 
11139
        lt_prog_compiler_pic_CXX='-fPIC'
 
11140
        ;;
 
11141
      esac
 
11142
      ;;
 
11143
    *)
 
11144
      lt_prog_compiler_pic_CXX='-fPIC'
 
11145
      ;;
 
11146
    esac
 
11147
  else
 
11148
    case $host_os in
 
11149
      aix4* | aix5*)
 
11150
        # All AIX code is PIC.
 
11151
        if test "$host_cpu" = ia64; then
 
11152
          # AIX 5 now supports IA64 processor
 
11153
          lt_prog_compiler_static_CXX='-Bstatic'
 
11154
        else
 
11155
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11156
        fi
 
11157
        ;;
 
11158
      chorus*)
 
11159
        case $cc_basename in
 
11160
        cxch68*)
 
11161
          # Green Hills C++ Compiler
 
11162
          # _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"
 
11163
          ;;
 
11164
        esac
 
11165
        ;;
 
11166
       darwin*)
 
11167
         # PIC is the default on this platform
 
11168
         # Common symbols not allowed in MH_DYLIB files
 
11169
         case $cc_basename in
 
11170
           xlc*)
 
11171
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11172
           lt_prog_compiler_wl_CXX='-Wl,'
 
11173
           ;;
 
11174
         esac
 
11175
       ;;
 
11176
      dgux*)
 
11177
        case $cc_basename in
 
11178
          ec++*)
 
11179
            lt_prog_compiler_pic_CXX='-KPIC'
 
11180
            ;;
 
11181
          ghcx*)
 
11182
            # Green Hills C++ Compiler
 
11183
            lt_prog_compiler_pic_CXX='-pic'
 
11184
            ;;
 
11185
          *)
 
11186
            ;;
 
11187
        esac
 
11188
        ;;
 
11189
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11190
        # FreeBSD uses GNU C++
 
11191
        ;;
 
11192
      hpux9* | hpux10* | hpux11*)
 
11193
        case $cc_basename in
 
11194
          CC*)
 
11195
            lt_prog_compiler_wl_CXX='-Wl,'
 
11196
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11197
            if test "$host_cpu" != ia64; then
 
11198
              lt_prog_compiler_pic_CXX='+Z'
 
11199
            fi
 
11200
            ;;
 
11201
          aCC*)
 
11202
            lt_prog_compiler_wl_CXX='-Wl,'
 
11203
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11204
            case $host_cpu in
 
11205
            hppa*64*|ia64*)
 
11206
              # +Z the default
 
11207
              ;;
 
11208
            *)
 
11209
              lt_prog_compiler_pic_CXX='+Z'
 
11210
              ;;
 
11211
            esac
 
11212
            ;;
 
11213
          *)
 
11214
            ;;
 
11215
        esac
 
11216
        ;;
 
11217
      irix5* | irix6* | nonstopux*)
 
11218
        case $cc_basename in
 
11219
          CC*)
 
11220
            lt_prog_compiler_wl_CXX='-Wl,'
 
11221
            lt_prog_compiler_static_CXX='-non_shared'
 
11222
            # CC pic flag -KPIC is the default.
 
11223
            ;;
 
11224
          *)
 
11225
            ;;
 
11226
        esac
 
11227
        ;;
 
11228
      linux*)
 
11229
        case $cc_basename in
 
11230
          KCC*)
 
11231
            # KAI C++ Compiler
 
11232
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11233
            lt_prog_compiler_pic_CXX='-fPIC'
 
11234
            ;;
 
11235
          icpc* | ecpc*)
 
11236
            # Intel C++
 
11237
            lt_prog_compiler_wl_CXX='-Wl,'
 
11238
            lt_prog_compiler_pic_CXX='-KPIC'
 
11239
            lt_prog_compiler_static_CXX='-static'
 
11240
            ;;
 
11241
          pgCC*)
 
11242
            # Portland Group C++ compiler.
 
11243
            lt_prog_compiler_wl_CXX='-Wl,'
 
11244
            lt_prog_compiler_pic_CXX='-fpic'
 
11245
            lt_prog_compiler_static_CXX='-Bstatic'
 
11246
            ;;
 
11247
          cxx*)
 
11248
            # Compaq C++
 
11249
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11250
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11251
            lt_prog_compiler_pic_CXX=
 
11252
            lt_prog_compiler_static_CXX='-non_shared'
 
11253
            ;;
 
11254
          *)
 
11255
            ;;
 
11256
        esac
 
11257
        ;;
 
11258
      lynxos*)
 
11259
        ;;
 
11260
      m88k*)
 
11261
        ;;
 
11262
      mvs*)
 
11263
        case $cc_basename in
 
11264
          cxx*)
 
11265
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11266
            ;;
 
11267
          *)
 
11268
            ;;
 
11269
        esac
 
11270
        ;;
 
11271
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11272
        ;;
 
11273
      osf3* | osf4* | osf5*)
 
11274
        case $cc_basename in
 
11275
          KCC*)
 
11276
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11277
            ;;
 
11278
          RCC*)
 
11279
            # Rational C++ 2.4.1
 
11280
            lt_prog_compiler_pic_CXX='-pic'
 
11281
            ;;
 
11282
          cxx*)
 
11283
            # Digital/Compaq C++
 
11284
            lt_prog_compiler_wl_CXX='-Wl,'
 
11285
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11286
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11287
            lt_prog_compiler_pic_CXX=
 
11288
            lt_prog_compiler_static_CXX='-non_shared'
 
11289
            ;;
 
11290
          *)
 
11291
            ;;
 
11292
        esac
 
11293
        ;;
 
11294
      psos*)
 
11295
        ;;
 
11296
      sco*)
 
11297
        case $cc_basename in
 
11298
          CC*)
 
11299
            lt_prog_compiler_pic_CXX='-fPIC'
 
11300
            ;;
 
11301
          *)
 
11302
            ;;
 
11303
        esac
 
11304
        ;;
 
11305
      solaris*)
 
11306
        case $cc_basename in
 
11307
          CC*)
 
11308
            # Sun C++ 4.2, 5.x and Centerline C++
 
11309
            lt_prog_compiler_pic_CXX='-KPIC'
 
11310
            lt_prog_compiler_static_CXX='-Bstatic'
 
11311
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11312
            ;;
 
11313
          gcx*)
 
11314
            # Green Hills C++ Compiler
 
11315
            lt_prog_compiler_pic_CXX='-PIC'
 
11316
            ;;
 
11317
          *)
 
11318
            ;;
 
11319
        esac
 
11320
        ;;
 
11321
      sunos4*)
 
11322
        case $cc_basename in
 
11323
          CC*)
 
11324
            # Sun C++ 4.x
 
11325
            lt_prog_compiler_pic_CXX='-pic'
 
11326
            lt_prog_compiler_static_CXX='-Bstatic'
 
11327
            ;;
 
11328
          lcc*)
 
11329
            # Lucid
 
11330
            lt_prog_compiler_pic_CXX='-pic'
 
11331
            ;;
 
11332
          *)
 
11333
            ;;
 
11334
        esac
 
11335
        ;;
 
11336
      tandem*)
 
11337
        case $cc_basename in
 
11338
          NCC*)
 
11339
            # NonStop-UX NCC 3.20
 
11340
            lt_prog_compiler_pic_CXX='-KPIC'
 
11341
            ;;
 
11342
          *)
 
11343
            ;;
 
11344
        esac
 
11345
        ;;
 
11346
      unixware*)
 
11347
        ;;
 
11348
      vxworks*)
 
11349
        ;;
 
11350
      *)
 
11351
        lt_prog_compiler_can_build_shared_CXX=no
 
11352
        ;;
 
11353
    esac
 
11354
  fi
 
11355
 
 
11356
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11357
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11358
 
 
11359
#
 
11360
# Check to make sure the PIC flag actually works.
 
11361
#
 
11362
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11363
  
 
11364
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11365
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11366
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11368
else
 
11369
  lt_prog_compiler_pic_works_CXX=no
 
11370
  ac_outfile=conftest.$ac_objext
 
11371
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11372
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11373
   # Insert the option either (1) after the last *FLAGS variable, or
 
11374
   # (2) before a word containing "conftest.", or (3) at the end.
 
11375
   # Note that $ac_compile itself does not contain backslashes and begins
 
11376
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11377
   # The option is referenced via a variable to avoid confusing sed.
 
11378
   lt_compile=`echo "$ac_compile" | $SED \
 
11379
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11380
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11381
   -e 's:$: $lt_compiler_flag:'`
 
11382
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
11383
   (eval "$lt_compile" 2>conftest.err)
 
11384
   ac_status=$?
 
11385
   cat conftest.err >&5
 
11386
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
11387
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11388
     # The compiler can only warn and ignore the option if not recognized
 
11389
     # So say no if there are warnings other than the usual output.
 
11390
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
11391
     $SED '/^$/d' conftest.err >conftest.er2
 
11392
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
11393
       lt_prog_compiler_pic_works_CXX=yes
 
11394
     fi
 
11395
   fi
 
11396
   $rm conftest*
 
11397
 
 
11398
fi
 
11399
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11400
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11401
 
 
11402
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11403
    case $lt_prog_compiler_pic_CXX in
 
11404
     "" | " "*) ;;
 
11405
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11406
     esac
 
11407
else
 
11408
    lt_prog_compiler_pic_CXX=
 
11409
     lt_prog_compiler_can_build_shared_CXX=no
 
11410
fi
 
11411
 
 
11412
fi
 
11413
case $host_os in
 
11414
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11415
  *djgpp*)
 
11416
    lt_prog_compiler_pic_CXX=
 
11417
    ;;
 
11418
  *)
 
11419
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11420
    ;;
 
11421
esac
 
11422
 
 
11423
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11424
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11425
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11427
else
 
11428
  lt_cv_prog_compiler_c_o_CXX=no
 
11429
   $rm -r conftest 2>/dev/null
 
11430
   mkdir conftest
 
11431
   cd conftest
 
11432
   mkdir out
 
11433
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11434
 
 
11435
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11436
   # Insert the option either (1) after the last *FLAGS variable, or
 
11437
   # (2) before a word containing "conftest.", or (3) at the end.
 
11438
   # Note that $ac_compile itself does not contain backslashes and begins
 
11439
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11440
   lt_compile=`echo "$ac_compile" | $SED \
 
11441
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11442
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11443
   -e 's:$: $lt_compiler_flag:'`
 
11444
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
11445
   (eval "$lt_compile" 2>out/conftest.err)
 
11446
   ac_status=$?
 
11447
   cat out/conftest.err >&5
 
11448
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
11449
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11450
   then
 
11451
     # The compiler can only warn and ignore the option if not recognized
 
11452
     # So say no if there are warnings
 
11453
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11454
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11455
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11456
       lt_cv_prog_compiler_c_o_CXX=yes
 
11457
     fi
 
11458
   fi
 
11459
   chmod u+w . 2>&5
 
11460
   $rm conftest*
 
11461
   # SGI C++ compiler will create directory out/ii_files/ for
 
11462
   # template instantiation
 
11463
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11464
   $rm out/* && rmdir out
 
11465
   cd ..
 
11466
   rmdir conftest
 
11467
   $rm conftest*
 
11468
 
 
11469
fi
 
11470
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11471
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11472
 
 
11473
 
 
11474
hard_links="nottested"
 
11475
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11476
  # do not overwrite the value of need_locks provided by the user
 
11477
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11478
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11479
  hard_links=yes
 
11480
  $rm conftest*
 
11481
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11482
  touch conftest.a
 
11483
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11484
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11485
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11486
echo "${ECHO_T}$hard_links" >&6
 
11487
  if test "$hard_links" = no; then
 
11488
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11489
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11490
    need_locks=warn
 
11491
  fi
 
11492
else
 
11493
  need_locks=no
 
11494
fi
 
11495
 
 
11496
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11497
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11498
 
 
11499
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11500
  case $host_os in
 
11501
  aix4* | aix5*)
 
11502
    # If we're using GNU nm, then we don't want the "-C" option.
 
11503
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11504
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11505
      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'
 
11506
    else
 
11507
      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'
 
11508
    fi
 
11509
    ;;
 
11510
  pw32*)
 
11511
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11512
  ;;
 
11513
  cygwin* | mingw*)
 
11514
    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'
 
11515
  ;;
 
11516
  linux*)
 
11517
    link_all_deplibs_CXX=no
 
11518
  ;;
 
11519
  *)
 
11520
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11521
  ;;
 
11522
  esac
 
11523
 
 
11524
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11525
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11526
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11527
 
 
11528
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11529
if test "$GCC" = yes; then
 
11530
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11531
fi
 
11532
 
 
11533
#
 
11534
# Do we need to explicitly link libc?
 
11535
#
 
11536
case "x$archive_cmds_need_lc_CXX" in
 
11537
x|xyes)
 
11538
  # Assume -lc should be added
 
11539
  archive_cmds_need_lc_CXX=yes
 
11540
 
 
11541
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11542
    case $archive_cmds_CXX in
 
11543
    *'~'*)
 
11544
      # FIXME: we may have to deal with multi-command sequences.
 
11545
      ;;
 
11546
    '$CC '*)
 
11547
      # Test whether the compiler implicitly links with -lc since on some
 
11548
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11549
      # to ld, don't add -lc before -lgcc.
 
11550
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11551
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11552
      $rm conftest*
 
11553
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11554
 
 
11555
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11556
  (eval $ac_compile) 2>&5
 
11557
  ac_status=$?
 
11558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11559
  (exit $ac_status); } 2>conftest.err; then
 
11560
        soname=conftest
 
11561
        lib=conftest
 
11562
        libobjs=conftest.$ac_objext
 
11563
        deplibs=
 
11564
        wl=$lt_prog_compiler_wl_CXX
 
11565
        compiler_flags=-v
 
11566
        linker_flags=-v
 
11567
        verstring=
 
11568
        output_objdir=.
 
11569
        libname=conftest
 
11570
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11571
        allow_undefined_flag_CXX=
 
11572
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11573
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11574
  ac_status=$?
 
11575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11576
  (exit $ac_status); }
 
11577
        then
 
11578
          archive_cmds_need_lc_CXX=no
 
11579
        else
 
11580
          archive_cmds_need_lc_CXX=yes
 
11581
        fi
 
11582
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11583
      else
 
11584
        cat conftest.err 1>&5
 
11585
      fi
 
11586
      $rm conftest*
 
11587
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11588
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11589
      ;;
 
11590
    esac
 
11591
  fi
 
11592
  ;;
 
11593
esac
 
11594
 
 
11595
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11596
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11597
library_names_spec=
 
11598
libname_spec='lib$name'
 
11599
soname_spec=
 
11600
shrext_cmds=".so"
 
11601
postinstall_cmds=
 
11602
postuninstall_cmds=
 
11603
finish_cmds=
 
11604
finish_eval=
 
11605
shlibpath_var=
 
11606
shlibpath_overrides_runpath=unknown
 
11607
version_type=none
 
11608
dynamic_linker="$host_os ld.so"
 
11609
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11610
if test "$GCC" = yes; then
 
11611
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11612
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11613
    # if the path contains ";" then we assume it to be the separator
 
11614
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11615
    # assumed that no part of a normal pathname contains ";" but that should
 
11616
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11617
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11618
  else
 
11619
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11620
  fi
 
11621
else
 
11622
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11623
fi
 
11624
need_lib_prefix=unknown
 
11625
hardcode_into_libs=no
 
11626
 
 
11627
# when you set need_version to no, make sure it does not cause -set_version
 
11628
# flags to be left without arguments
 
11629
need_version=unknown
 
11630
 
 
11631
case $host_os in
 
11632
aix3*)
 
11633
  version_type=linux
 
11634
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11635
  shlibpath_var=LIBPATH
 
11636
 
 
11637
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11638
  soname_spec='${libname}${release}${shared_ext}$major'
 
11639
  ;;
 
11640
 
 
11641
aix4* | aix5*)
 
11642
  version_type=linux
 
11643
  need_lib_prefix=no
 
11644
  need_version=no
 
11645
  hardcode_into_libs=yes
 
11646
  if test "$host_cpu" = ia64; then
 
11647
    # AIX 5 supports IA64
 
11648
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11649
    shlibpath_var=LD_LIBRARY_PATH
 
11650
  else
 
11651
    # With GCC up to 2.95.x, collect2 would create an import file
 
11652
    # for dependence libraries.  The import file would start with
 
11653
    # the line `#! .'.  This would cause the generated library to
 
11654
    # depend on `.', always an invalid library.  This was fixed in
 
11655
    # development snapshots of GCC prior to 3.0.
 
11656
    case $host_os in
 
11657
      aix4 | aix4.[01] | aix4.[01].*)
 
11658
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11659
           echo ' yes '
 
11660
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11661
        :
 
11662
      else
 
11663
        can_build_shared=no
 
11664
      fi
 
11665
      ;;
 
11666
    esac
 
11667
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11668
    # soname into executable. Probably we can add versioning support to
 
11669
    # collect2, so additional links can be useful in future.
 
11670
    if test "$aix_use_runtimelinking" = yes; then
 
11671
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11672
      # instead of lib<name>.a to let people know that these are not
 
11673
      # typical AIX shared libraries.
 
11674
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11675
    else
 
11676
      # We preserve .a as extension for shared libraries through AIX4.2
 
11677
      # and later when we are not doing run time linking.
 
11678
      library_names_spec='${libname}${release}.a $libname.a'
 
11679
      soname_spec='${libname}${release}${shared_ext}$major'
 
11680
    fi
 
11681
    shlibpath_var=LIBPATH
 
11682
  fi
 
11683
  ;;
 
11684
 
 
11685
amigaos*)
 
11686
  library_names_spec='$libname.ixlibrary $libname.a'
 
11687
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11688
  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'
 
11689
  ;;
 
11690
 
 
11691
beos*)
 
11692
  library_names_spec='${libname}${shared_ext}'
 
11693
  dynamic_linker="$host_os ld.so"
 
11694
  shlibpath_var=LIBRARY_PATH
 
11695
  ;;
 
11696
 
 
11697
bsdi[45]*)
 
11698
  version_type=linux
 
11699
  need_version=no
 
11700
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11701
  soname_spec='${libname}${release}${shared_ext}$major'
 
11702
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11703
  shlibpath_var=LD_LIBRARY_PATH
 
11704
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11705
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11706
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11707
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11708
  # libtool to hard-code these into programs
 
11709
  ;;
 
11710
 
 
11711
cygwin* | mingw* | pw32*)
 
11712
  version_type=windows
 
11713
  shrext_cmds=".dll"
 
11714
  need_version=no
 
11715
  need_lib_prefix=no
 
11716
 
 
11717
  case $GCC,$host_os in
 
11718
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11719
    library_names_spec='$libname.dll.a'
 
11720
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11721
    postinstall_cmds='base_file=`basename \${file}`~
 
11722
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11723
      dldir=$destdir/`dirname \$dlpath`~
 
11724
      test -d \$dldir || mkdir -p \$dldir~
 
11725
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11726
      chmod a+x \$dldir/$dlname'
 
11727
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11728
      dlpath=$dir/\$dldll~
 
11729
       $rm \$dlpath'
 
11730
    shlibpath_overrides_runpath=yes
 
11731
 
 
11732
    case $host_os in
 
11733
    cygwin*)
 
11734
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11735
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11736
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11737
      ;;
 
11738
    mingw*)
 
11739
      # MinGW DLLs use traditional 'lib' prefix
 
11740
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11741
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11742
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11743
        # It is most probably a Windows format PATH printed by
 
11744
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11745
        # path with ; separators, and with drive letters. We can handle the
 
11746
        # drive letters (cygwin fileutils understands them), so leave them,
 
11747
        # especially as we might pass files found there to a mingw objdump,
 
11748
        # which wouldn't understand a cygwinified path. Ahh.
 
11749
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11750
      else
 
11751
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11752
      fi
 
11753
      ;;
 
11754
    pw32*)
 
11755
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11756
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11757
      ;;
 
11758
    esac
 
11759
    ;;
 
11760
 
 
11761
  *)
 
11762
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11763
    ;;
 
11764
  esac
 
11765
  dynamic_linker='Win32 ld.exe'
 
11766
  # FIXME: first we should search . and the directory the executable is in
 
11767
  shlibpath_var=PATH
 
11768
  ;;
 
11769
 
 
11770
darwin* | rhapsody*)
 
11771
  dynamic_linker="$host_os dyld"
 
11772
  version_type=darwin
 
11773
  need_lib_prefix=no
 
11774
  need_version=no
 
11775
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11776
  soname_spec='${libname}${release}${major}$shared_ext'
 
11777
  shlibpath_overrides_runpath=yes
 
11778
  shlibpath_var=DYLD_LIBRARY_PATH
 
11779
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11780
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11781
  if test "$GCC" = yes; then
 
11782
    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"`
 
11783
  else
 
11784
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11785
  fi
 
11786
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11787
  ;;
 
11788
 
 
11789
dgux*)
 
11790
  version_type=linux
 
11791
  need_lib_prefix=no
 
11792
  need_version=no
 
11793
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11794
  soname_spec='${libname}${release}${shared_ext}$major'
 
11795
  shlibpath_var=LD_LIBRARY_PATH
 
11796
  ;;
 
11797
 
 
11798
freebsd1*)
 
11799
  dynamic_linker=no
 
11800
  ;;
 
11801
 
 
11802
kfreebsd*-gnu)
 
11803
  version_type=linux
 
11804
  need_lib_prefix=no
 
11805
  need_version=no
 
11806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11807
  soname_spec='${libname}${release}${shared_ext}$major'
 
11808
  shlibpath_var=LD_LIBRARY_PATH
 
11809
  shlibpath_overrides_runpath=no
 
11810
  hardcode_into_libs=yes
 
11811
  dynamic_linker='GNU ld.so'
 
11812
  ;;
 
11813
 
 
11814
freebsd* | dragonfly*)
 
11815
  # DragonFly does not have aout.  When/if they implement a new
 
11816
  # versioning mechanism, adjust this.
 
11817
  if test -x /usr/bin/objformat; then
 
11818
    objformat=`/usr/bin/objformat`
 
11819
  else
 
11820
    case $host_os in
 
11821
    freebsd[123]*) objformat=aout ;;
 
11822
    *) objformat=elf ;;
 
11823
    esac
 
11824
  fi
 
11825
  version_type=freebsd-$objformat
 
11826
  case $version_type in
 
11827
    freebsd-elf*)
 
11828
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11829
      need_version=no
 
11830
      need_lib_prefix=no
 
11831
      ;;
 
11832
    freebsd-*)
 
11833
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11834
      need_version=yes
 
11835
      ;;
 
11836
  esac
 
11837
  shlibpath_var=LD_LIBRARY_PATH
 
11838
  case $host_os in
 
11839
  freebsd2*)
 
11840
    shlibpath_overrides_runpath=yes
 
11841
    ;;
 
11842
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11843
    shlibpath_overrides_runpath=yes
 
11844
    hardcode_into_libs=yes
 
11845
    ;;
 
11846
  *) # from 3.2 on
 
11847
    shlibpath_overrides_runpath=no
 
11848
    hardcode_into_libs=yes
 
11849
    ;;
 
11850
  esac
 
11851
  ;;
 
11852
 
 
11853
gnu*)
 
11854
  version_type=linux
 
11855
  need_lib_prefix=no
 
11856
  need_version=no
 
11857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11858
  soname_spec='${libname}${release}${shared_ext}$major'
 
11859
  shlibpath_var=LD_LIBRARY_PATH
 
11860
  hardcode_into_libs=yes
 
11861
  ;;
 
11862
 
 
11863
hpux9* | hpux10* | hpux11*)
 
11864
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11865
  # link against other versions.
 
11866
  version_type=sunos
 
11867
  need_lib_prefix=no
 
11868
  need_version=no
 
11869
  case $host_cpu in
 
11870
  ia64*)
 
11871
    shrext_cmds='.so'
 
11872
    hardcode_into_libs=yes
 
11873
    dynamic_linker="$host_os dld.so"
 
11874
    shlibpath_var=LD_LIBRARY_PATH
 
11875
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11876
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11877
    soname_spec='${libname}${release}${shared_ext}$major'
 
11878
    if test "X$HPUX_IA64_MODE" = X32; then
 
11879
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11880
    else
 
11881
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11882
    fi
 
11883
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11884
    ;;
 
11885
   hppa*64*)
 
11886
     shrext_cmds='.sl'
 
11887
     hardcode_into_libs=yes
 
11888
     dynamic_linker="$host_os dld.sl"
 
11889
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11890
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11891
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11892
     soname_spec='${libname}${release}${shared_ext}$major'
 
11893
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11894
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11895
     ;;
 
11896
   *)
 
11897
    shrext_cmds='.sl'
 
11898
    dynamic_linker="$host_os dld.sl"
 
11899
    shlibpath_var=SHLIB_PATH
 
11900
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11901
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11902
    soname_spec='${libname}${release}${shared_ext}$major'
 
11903
    ;;
 
11904
  esac
 
11905
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11906
  postinstall_cmds='chmod 555 $lib'
 
11907
  ;;
 
11908
 
 
11909
irix5* | irix6* | nonstopux*)
 
11910
  case $host_os in
 
11911
    nonstopux*) version_type=nonstopux ;;
 
11912
    *)
 
11913
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11914
                version_type=linux
 
11915
        else
 
11916
                version_type=irix
 
11917
        fi ;;
 
11918
  esac
 
11919
  need_lib_prefix=no
 
11920
  need_version=no
 
11921
  soname_spec='${libname}${release}${shared_ext}$major'
 
11922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11923
  case $host_os in
 
11924
  irix5* | nonstopux*)
 
11925
    libsuff= shlibsuff=
 
11926
    ;;
 
11927
  *)
 
11928
    case $LD in # libtool.m4 will add one of these switches to LD
 
11929
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11930
      libsuff= shlibsuff= libmagic=32-bit;;
 
11931
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11932
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11933
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11934
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11935
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11936
    esac
 
11937
    ;;
 
11938
  esac
 
11939
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11940
  shlibpath_overrides_runpath=no
 
11941
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11942
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11943
  hardcode_into_libs=yes
 
11944
  ;;
 
11945
 
 
11946
# No shared lib support for Linux oldld, aout, or coff.
 
11947
linux*oldld* | linux*aout* | linux*coff*)
 
11948
  dynamic_linker=no
 
11949
  ;;
 
11950
 
 
11951
# This must be Linux ELF.
 
11952
linux*)
 
11953
  version_type=linux
 
11954
  need_lib_prefix=no
 
11955
  need_version=no
 
11956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11957
  soname_spec='${libname}${release}${shared_ext}$major'
 
11958
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11959
  shlibpath_var=LD_LIBRARY_PATH
 
11960
  shlibpath_overrides_runpath=no
 
11961
  # This implies no fast_install, which is unacceptable.
 
11962
  # Some rework will be needed to allow for fast_install
 
11963
  # before this can be enabled.
 
11964
  hardcode_into_libs=yes
 
11965
 
 
11966
  # Append ld.so.conf contents to the search path
 
11967
  if test -f /etc/ld.so.conf; then
 
11968
    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' ' '`
 
11969
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11970
  fi
 
11971
 
 
11972
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11973
  # powerpc, because MkLinux only supported shared libraries with the
 
11974
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11975
  # most powerpc-linux boxes support dynamic linking these days and
 
11976
  # people can always --disable-shared, the test was removed, and we
 
11977
  # assume the GNU/Linux dynamic linker is in use.
 
11978
  dynamic_linker='GNU/Linux ld.so'
 
11979
  ;;
 
11980
 
 
11981
netbsdelf*-gnu)
 
11982
  version_type=linux
 
11983
  need_lib_prefix=no
 
11984
  need_version=no
 
11985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11986
  soname_spec='${libname}${release}${shared_ext}$major'
 
11987
  shlibpath_var=LD_LIBRARY_PATH
 
11988
  shlibpath_overrides_runpath=no
 
11989
  hardcode_into_libs=yes
 
11990
  dynamic_linker='NetBSD ld.elf_so'
 
11991
  ;;
 
11992
 
 
11993
knetbsd*-gnu)
 
11994
  version_type=linux
 
11995
  need_lib_prefix=no
 
11996
  need_version=no
 
11997
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11998
  soname_spec='${libname}${release}${shared_ext}$major'
 
11999
  shlibpath_var=LD_LIBRARY_PATH
 
12000
  shlibpath_overrides_runpath=no
 
12001
  hardcode_into_libs=yes
 
12002
  dynamic_linker='GNU ld.so'
 
12003
  ;;
 
12004
 
 
12005
netbsd*)
 
12006
  version_type=sunos
 
12007
  need_lib_prefix=no
 
12008
  need_version=no
 
12009
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12010
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12011
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12012
    dynamic_linker='NetBSD (a.out) ld.so'
 
12013
  else
 
12014
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12015
    soname_spec='${libname}${release}${shared_ext}$major'
 
12016
    dynamic_linker='NetBSD ld.elf_so'
 
12017
  fi
 
12018
  shlibpath_var=LD_LIBRARY_PATH
 
12019
  shlibpath_overrides_runpath=yes
 
12020
  hardcode_into_libs=yes
 
12021
  ;;
 
12022
 
 
12023
newsos6)
 
12024
  version_type=linux
 
12025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12026
  shlibpath_var=LD_LIBRARY_PATH
 
12027
  shlibpath_overrides_runpath=yes
 
12028
  ;;
 
12029
 
 
12030
nto-qnx*)
 
12031
  version_type=linux
 
12032
  need_lib_prefix=no
 
12033
  need_version=no
 
12034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12035
  soname_spec='${libname}${release}${shared_ext}$major'
 
12036
  shlibpath_var=LD_LIBRARY_PATH
 
12037
  shlibpath_overrides_runpath=yes
 
12038
  ;;
 
12039
 
 
12040
openbsd*)
 
12041
  version_type=sunos
 
12042
  need_lib_prefix=no
 
12043
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12044
  case $host_os in
 
12045
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12046
    *)                         need_version=no  ;;
 
12047
  esac
 
12048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12049
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12050
  shlibpath_var=LD_LIBRARY_PATH
 
12051
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12052
    case $host_os in
 
12053
      openbsd2.[89] | openbsd2.[89].*)
 
12054
        shlibpath_overrides_runpath=no
 
12055
        ;;
 
12056
      *)
 
12057
        shlibpath_overrides_runpath=yes
 
12058
        ;;
 
12059
      esac
 
12060
  else
 
12061
    shlibpath_overrides_runpath=yes
 
12062
  fi
 
12063
  ;;
 
12064
 
 
12065
os2*)
 
12066
  libname_spec='$name'
 
12067
  shrext_cmds=".dll"
 
12068
  need_lib_prefix=no
 
12069
  library_names_spec='$libname${shared_ext} $libname.a'
 
12070
  dynamic_linker='OS/2 ld.exe'
 
12071
  shlibpath_var=LIBPATH
 
12072
  ;;
 
12073
 
 
12074
osf3* | osf4* | osf5*)
 
12075
  version_type=osf
 
12076
  need_lib_prefix=no
 
12077
  need_version=no
 
12078
  soname_spec='${libname}${release}${shared_ext}$major'
 
12079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12080
  shlibpath_var=LD_LIBRARY_PATH
 
12081
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12082
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12083
  ;;
 
12084
 
 
12085
sco3.2v5*)
 
12086
  version_type=osf
 
12087
  soname_spec='${libname}${release}${shared_ext}$major'
 
12088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12089
  shlibpath_var=LD_LIBRARY_PATH
 
12090
  ;;
 
12091
 
 
12092
solaris*)
 
12093
  version_type=linux
 
12094
  need_lib_prefix=no
 
12095
  need_version=no
 
12096
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12097
  soname_spec='${libname}${release}${shared_ext}$major'
 
12098
  shlibpath_var=LD_LIBRARY_PATH
 
12099
  shlibpath_overrides_runpath=yes
 
12100
  hardcode_into_libs=yes
 
12101
  # ldd complains unless libraries are executable
 
12102
  postinstall_cmds='chmod +x $lib'
 
12103
  ;;
 
12104
 
 
12105
sunos4*)
 
12106
  version_type=sunos
 
12107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12108
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12109
  shlibpath_var=LD_LIBRARY_PATH
 
12110
  shlibpath_overrides_runpath=yes
 
12111
  if test "$with_gnu_ld" = yes; then
 
12112
    need_lib_prefix=no
 
12113
  fi
 
12114
  need_version=yes
 
12115
  ;;
 
12116
 
 
12117
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12118
  version_type=linux
 
12119
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12120
  soname_spec='${libname}${release}${shared_ext}$major'
 
12121
  shlibpath_var=LD_LIBRARY_PATH
 
12122
  case $host_vendor in
 
12123
    sni)
 
12124
      shlibpath_overrides_runpath=no
 
12125
      need_lib_prefix=no
 
12126
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12127
      runpath_var=LD_RUN_PATH
 
12128
      ;;
 
12129
    siemens)
 
12130
      need_lib_prefix=no
 
12131
      ;;
 
12132
    motorola)
 
12133
      need_lib_prefix=no
 
12134
      need_version=no
 
12135
      shlibpath_overrides_runpath=no
 
12136
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12137
      ;;
 
12138
  esac
 
12139
  ;;
 
12140
 
 
12141
sysv4*MP*)
 
12142
  if test -d /usr/nec ;then
 
12143
    version_type=linux
 
12144
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12145
    soname_spec='$libname${shared_ext}.$major'
 
12146
    shlibpath_var=LD_LIBRARY_PATH
 
12147
  fi
 
12148
  ;;
 
12149
 
 
12150
uts4*)
 
12151
  version_type=linux
 
12152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12153
  soname_spec='${libname}${release}${shared_ext}$major'
 
12154
  shlibpath_var=LD_LIBRARY_PATH
 
12155
  ;;
 
12156
 
 
12157
*)
 
12158
  dynamic_linker=no
 
12159
  ;;
 
12160
esac
 
12161
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12162
echo "${ECHO_T}$dynamic_linker" >&6
 
12163
test "$dynamic_linker" = no && can_build_shared=no
 
12164
 
 
12165
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12166
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12167
hardcode_action_CXX=
 
12168
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12169
   test -n "$runpath_var_CXX" || \
 
12170
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12171
 
 
12172
  # We can hardcode non-existant directories.
 
12173
  if test "$hardcode_direct_CXX" != no &&
 
12174
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12175
     # have to relink, otherwise we might link with an installed library
 
12176
     # when we should be linking with a yet-to-be-installed one
 
12177
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12178
     test "$hardcode_minus_L_CXX" != no; then
 
12179
    # Linking always hardcodes the temporary library directory.
 
12180
    hardcode_action_CXX=relink
 
12181
  else
 
12182
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12183
    hardcode_action_CXX=immediate
 
12184
  fi
 
12185
else
 
12186
  # We cannot hardcode anything, or else we can only hardcode existing
 
12187
  # directories.
 
12188
  hardcode_action_CXX=unsupported
 
12189
fi
 
12190
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12191
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12192
 
 
12193
if test "$hardcode_action_CXX" = relink; then
 
12194
  # Fast installation is not supported
 
12195
  enable_fast_install=no
 
12196
elif test "$shlibpath_overrides_runpath" = yes ||
 
12197
     test "$enable_shared" = no; then
 
12198
  # Fast installation is not necessary
 
12199
  enable_fast_install=needless
 
12200
fi
 
12201
 
 
12202
striplib=
 
12203
old_striplib=
 
12204
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12205
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12206
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12207
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12208
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12209
  echo "$as_me:$LINENO: result: yes" >&5
 
12210
echo "${ECHO_T}yes" >&6
 
12211
else
 
12212
# FIXME - insert some real tests, host_os isn't really good enough
 
12213
  case $host_os in
 
12214
   darwin*)
 
12215
       if test -n "$STRIP" ; then
 
12216
         striplib="$STRIP -x"
 
12217
         echo "$as_me:$LINENO: result: yes" >&5
 
12218
echo "${ECHO_T}yes" >&6
 
12219
       else
 
12220
  echo "$as_me:$LINENO: result: no" >&5
 
12221
echo "${ECHO_T}no" >&6
 
12222
fi
 
12223
       ;;
 
12224
   *)
 
12225
  echo "$as_me:$LINENO: result: no" >&5
 
12226
echo "${ECHO_T}no" >&6
 
12227
    ;;
 
12228
  esac
 
12229
fi
 
12230
 
 
12231
if test "x$enable_dlopen" != xyes; then
 
12232
  enable_dlopen=unknown
 
12233
  enable_dlopen_self=unknown
 
12234
  enable_dlopen_self_static=unknown
 
12235
else
 
12236
  lt_cv_dlopen=no
 
12237
  lt_cv_dlopen_libs=
 
12238
 
 
12239
  case $host_os in
 
12240
  beos*)
 
12241
    lt_cv_dlopen="load_add_on"
 
12242
    lt_cv_dlopen_libs=
 
12243
    lt_cv_dlopen_self=yes
 
12244
    ;;
 
12245
 
 
12246
  mingw* | pw32*)
 
12247
    lt_cv_dlopen="LoadLibrary"
 
12248
    lt_cv_dlopen_libs=
 
12249
   ;;
 
12250
 
 
12251
  cygwin*)
 
12252
    lt_cv_dlopen="dlopen"
 
12253
    lt_cv_dlopen_libs=
 
12254
   ;;
 
12255
 
 
12256
  darwin*)
 
12257
  # if libdl is installed we need to link against it
 
12258
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12259
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12260
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12262
else
 
12263
  ac_check_lib_save_LIBS=$LIBS
 
12264
LIBS="-ldl  $LIBS"
 
12265
cat >conftest.$ac_ext <<_ACEOF
 
12266
/* confdefs.h.  */
 
12267
_ACEOF
 
12268
cat confdefs.h >>conftest.$ac_ext
 
12269
cat >>conftest.$ac_ext <<_ACEOF
 
12270
/* end confdefs.h.  */
 
12271
 
 
12272
/* Override any gcc2 internal prototype to avoid an error.  */
 
12273
#ifdef __cplusplus
 
12274
extern "C"
 
12275
#endif
 
12276
/* We use char because int might match the return type of a gcc2
 
12277
   builtin and then its argument prototype would still apply.  */
 
12278
char dlopen ();
 
12279
int
 
12280
main ()
 
12281
{
 
12282
dlopen ();
 
12283
  ;
 
12284
  return 0;
 
12285
}
 
12286
_ACEOF
 
12287
rm -f conftest.$ac_objext conftest$ac_exeext
 
12288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12289
  (eval $ac_link) 2>conftest.er1
 
12290
  ac_status=$?
 
12291
  grep -v '^ *+' conftest.er1 >conftest.err
 
12292
  rm -f conftest.er1
 
12293
  cat conftest.err >&5
 
12294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12295
  (exit $ac_status); } &&
 
12296
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12298
  (eval $ac_try) 2>&5
 
12299
  ac_status=$?
 
12300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12301
  (exit $ac_status); }; } &&
 
12302
         { ac_try='test -s conftest$ac_exeext'
 
12303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12304
  (eval $ac_try) 2>&5
 
12305
  ac_status=$?
 
12306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12307
  (exit $ac_status); }; }; then
 
12308
  ac_cv_lib_dl_dlopen=yes
 
12309
else
 
12310
  echo "$as_me: failed program was:" >&5
 
12311
sed 's/^/| /' conftest.$ac_ext >&5
 
12312
 
 
12313
ac_cv_lib_dl_dlopen=no
 
12314
fi
 
12315
rm -f conftest.err conftest.$ac_objext \
 
12316
      conftest$ac_exeext conftest.$ac_ext
 
12317
LIBS=$ac_check_lib_save_LIBS
 
12318
fi
 
12319
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12320
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12321
if test $ac_cv_lib_dl_dlopen = yes; then
 
12322
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12323
else
 
12324
  
 
12325
    lt_cv_dlopen="dyld"
 
12326
    lt_cv_dlopen_libs=
 
12327
    lt_cv_dlopen_self=yes
 
12328
    
 
12329
fi
 
12330
 
 
12331
   ;;
 
12332
 
 
12333
  *)
 
12334
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12335
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12336
if test "${ac_cv_func_shl_load+set}" = set; then
 
12337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12338
else
 
12339
  cat >conftest.$ac_ext <<_ACEOF
 
12340
/* confdefs.h.  */
 
12341
_ACEOF
 
12342
cat confdefs.h >>conftest.$ac_ext
 
12343
cat >>conftest.$ac_ext <<_ACEOF
 
12344
/* end confdefs.h.  */
 
12345
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12346
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12347
#define shl_load innocuous_shl_load
 
12348
 
 
12349
/* System header to define __stub macros and hopefully few prototypes,
 
12350
    which can conflict with char shl_load (); below.
 
12351
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12352
    <limits.h> exists even on freestanding compilers.  */
 
12353
 
 
12354
#ifdef __STDC__
 
12355
# include <limits.h>
 
12356
#else
 
12357
# include <assert.h>
 
12358
#endif
 
12359
 
 
12360
#undef shl_load
 
12361
 
 
12362
/* Override any gcc2 internal prototype to avoid an error.  */
 
12363
#ifdef __cplusplus
 
12364
extern "C"
 
12365
{
 
12366
#endif
 
12367
/* We use char because int might match the return type of a gcc2
 
12368
   builtin and then its argument prototype would still apply.  */
 
12369
char shl_load ();
 
12370
/* The GNU C library defines this for functions which it implements
 
12371
    to always fail with ENOSYS.  Some functions are actually named
 
12372
    something starting with __ and the normal name is an alias.  */
 
12373
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12374
choke me
 
12375
#else
 
12376
char (*f) () = shl_load;
 
12377
#endif
 
12378
#ifdef __cplusplus
 
12379
}
 
12380
#endif
 
12381
 
 
12382
int
 
12383
main ()
 
12384
{
 
12385
return f != shl_load;
 
12386
  ;
 
12387
  return 0;
 
12388
}
 
12389
_ACEOF
 
12390
rm -f conftest.$ac_objext conftest$ac_exeext
 
12391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12392
  (eval $ac_link) 2>conftest.er1
 
12393
  ac_status=$?
 
12394
  grep -v '^ *+' conftest.er1 >conftest.err
 
12395
  rm -f conftest.er1
 
12396
  cat conftest.err >&5
 
12397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12398
  (exit $ac_status); } &&
 
12399
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12401
  (eval $ac_try) 2>&5
 
12402
  ac_status=$?
 
12403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12404
  (exit $ac_status); }; } &&
 
12405
         { ac_try='test -s conftest$ac_exeext'
 
12406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12407
  (eval $ac_try) 2>&5
 
12408
  ac_status=$?
 
12409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12410
  (exit $ac_status); }; }; then
 
12411
  ac_cv_func_shl_load=yes
 
12412
else
 
12413
  echo "$as_me: failed program was:" >&5
 
12414
sed 's/^/| /' conftest.$ac_ext >&5
 
12415
 
 
12416
ac_cv_func_shl_load=no
 
12417
fi
 
12418
rm -f conftest.err conftest.$ac_objext \
 
12419
      conftest$ac_exeext conftest.$ac_ext
 
12420
fi
 
12421
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12422
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12423
if test $ac_cv_func_shl_load = yes; then
 
12424
  lt_cv_dlopen="shl_load"
 
12425
else
 
12426
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12427
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12428
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12430
else
 
12431
  ac_check_lib_save_LIBS=$LIBS
 
12432
LIBS="-ldld  $LIBS"
 
12433
cat >conftest.$ac_ext <<_ACEOF
 
12434
/* confdefs.h.  */
 
12435
_ACEOF
 
12436
cat confdefs.h >>conftest.$ac_ext
 
12437
cat >>conftest.$ac_ext <<_ACEOF
 
12438
/* end confdefs.h.  */
 
12439
 
 
12440
/* Override any gcc2 internal prototype to avoid an error.  */
 
12441
#ifdef __cplusplus
 
12442
extern "C"
 
12443
#endif
 
12444
/* We use char because int might match the return type of a gcc2
 
12445
   builtin and then its argument prototype would still apply.  */
 
12446
char shl_load ();
 
12447
int
 
12448
main ()
 
12449
{
 
12450
shl_load ();
 
12451
  ;
 
12452
  return 0;
 
12453
}
 
12454
_ACEOF
 
12455
rm -f conftest.$ac_objext conftest$ac_exeext
 
12456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12457
  (eval $ac_link) 2>conftest.er1
 
12458
  ac_status=$?
 
12459
  grep -v '^ *+' conftest.er1 >conftest.err
 
12460
  rm -f conftest.er1
 
12461
  cat conftest.err >&5
 
12462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12463
  (exit $ac_status); } &&
 
12464
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12466
  (eval $ac_try) 2>&5
 
12467
  ac_status=$?
 
12468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12469
  (exit $ac_status); }; } &&
 
12470
         { ac_try='test -s conftest$ac_exeext'
 
12471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12472
  (eval $ac_try) 2>&5
 
12473
  ac_status=$?
 
12474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12475
  (exit $ac_status); }; }; then
 
12476
  ac_cv_lib_dld_shl_load=yes
 
12477
else
 
12478
  echo "$as_me: failed program was:" >&5
 
12479
sed 's/^/| /' conftest.$ac_ext >&5
 
12480
 
 
12481
ac_cv_lib_dld_shl_load=no
 
12482
fi
 
12483
rm -f conftest.err conftest.$ac_objext \
 
12484
      conftest$ac_exeext conftest.$ac_ext
 
12485
LIBS=$ac_check_lib_save_LIBS
 
12486
fi
 
12487
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12488
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12489
if test $ac_cv_lib_dld_shl_load = yes; then
 
12490
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12491
else
 
12492
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12493
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12494
if test "${ac_cv_func_dlopen+set}" = set; then
 
12495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12496
else
 
12497
  cat >conftest.$ac_ext <<_ACEOF
 
12498
/* confdefs.h.  */
 
12499
_ACEOF
 
12500
cat confdefs.h >>conftest.$ac_ext
 
12501
cat >>conftest.$ac_ext <<_ACEOF
 
12502
/* end confdefs.h.  */
 
12503
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12504
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12505
#define dlopen innocuous_dlopen
 
12506
 
 
12507
/* System header to define __stub macros and hopefully few prototypes,
 
12508
    which can conflict with char dlopen (); below.
 
12509
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12510
    <limits.h> exists even on freestanding compilers.  */
 
12511
 
 
12512
#ifdef __STDC__
 
12513
# include <limits.h>
 
12514
#else
 
12515
# include <assert.h>
 
12516
#endif
 
12517
 
 
12518
#undef dlopen
 
12519
 
 
12520
/* Override any gcc2 internal prototype to avoid an error.  */
 
12521
#ifdef __cplusplus
 
12522
extern "C"
 
12523
{
 
12524
#endif
 
12525
/* We use char because int might match the return type of a gcc2
 
12526
   builtin and then its argument prototype would still apply.  */
 
12527
char dlopen ();
 
12528
/* The GNU C library defines this for functions which it implements
 
12529
    to always fail with ENOSYS.  Some functions are actually named
 
12530
    something starting with __ and the normal name is an alias.  */
 
12531
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12532
choke me
 
12533
#else
 
12534
char (*f) () = dlopen;
 
12535
#endif
 
12536
#ifdef __cplusplus
 
12537
}
 
12538
#endif
 
12539
 
 
12540
int
 
12541
main ()
 
12542
{
 
12543
return f != dlopen;
 
12544
  ;
 
12545
  return 0;
 
12546
}
 
12547
_ACEOF
 
12548
rm -f conftest.$ac_objext conftest$ac_exeext
 
12549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12550
  (eval $ac_link) 2>conftest.er1
 
12551
  ac_status=$?
 
12552
  grep -v '^ *+' conftest.er1 >conftest.err
 
12553
  rm -f conftest.er1
 
12554
  cat conftest.err >&5
 
12555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12556
  (exit $ac_status); } &&
 
12557
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12559
  (eval $ac_try) 2>&5
 
12560
  ac_status=$?
 
12561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12562
  (exit $ac_status); }; } &&
 
12563
         { ac_try='test -s conftest$ac_exeext'
 
12564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12565
  (eval $ac_try) 2>&5
 
12566
  ac_status=$?
 
12567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12568
  (exit $ac_status); }; }; then
 
12569
  ac_cv_func_dlopen=yes
 
12570
else
 
12571
  echo "$as_me: failed program was:" >&5
 
12572
sed 's/^/| /' conftest.$ac_ext >&5
 
12573
 
 
12574
ac_cv_func_dlopen=no
 
12575
fi
 
12576
rm -f conftest.err conftest.$ac_objext \
 
12577
      conftest$ac_exeext conftest.$ac_ext
 
12578
fi
 
12579
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12580
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12581
if test $ac_cv_func_dlopen = yes; then
 
12582
  lt_cv_dlopen="dlopen"
 
12583
else
 
12584
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12585
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12586
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12588
else
 
12589
  ac_check_lib_save_LIBS=$LIBS
 
12590
LIBS="-ldl  $LIBS"
 
12591
cat >conftest.$ac_ext <<_ACEOF
 
12592
/* confdefs.h.  */
 
12593
_ACEOF
 
12594
cat confdefs.h >>conftest.$ac_ext
 
12595
cat >>conftest.$ac_ext <<_ACEOF
 
12596
/* end confdefs.h.  */
 
12597
 
 
12598
/* Override any gcc2 internal prototype to avoid an error.  */
 
12599
#ifdef __cplusplus
 
12600
extern "C"
 
12601
#endif
 
12602
/* We use char because int might match the return type of a gcc2
 
12603
   builtin and then its argument prototype would still apply.  */
 
12604
char dlopen ();
 
12605
int
 
12606
main ()
 
12607
{
 
12608
dlopen ();
 
12609
  ;
 
12610
  return 0;
 
12611
}
 
12612
_ACEOF
 
12613
rm -f conftest.$ac_objext conftest$ac_exeext
 
12614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12615
  (eval $ac_link) 2>conftest.er1
 
12616
  ac_status=$?
 
12617
  grep -v '^ *+' conftest.er1 >conftest.err
 
12618
  rm -f conftest.er1
 
12619
  cat conftest.err >&5
 
12620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12621
  (exit $ac_status); } &&
 
12622
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12624
  (eval $ac_try) 2>&5
 
12625
  ac_status=$?
 
12626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12627
  (exit $ac_status); }; } &&
 
12628
         { ac_try='test -s conftest$ac_exeext'
 
12629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12630
  (eval $ac_try) 2>&5
 
12631
  ac_status=$?
 
12632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12633
  (exit $ac_status); }; }; then
 
12634
  ac_cv_lib_dl_dlopen=yes
 
12635
else
 
12636
  echo "$as_me: failed program was:" >&5
 
12637
sed 's/^/| /' conftest.$ac_ext >&5
 
12638
 
 
12639
ac_cv_lib_dl_dlopen=no
 
12640
fi
 
12641
rm -f conftest.err conftest.$ac_objext \
 
12642
      conftest$ac_exeext conftest.$ac_ext
 
12643
LIBS=$ac_check_lib_save_LIBS
 
12644
fi
 
12645
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12646
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12647
if test $ac_cv_lib_dl_dlopen = yes; then
 
12648
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12649
else
 
12650
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12651
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12652
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12654
else
 
12655
  ac_check_lib_save_LIBS=$LIBS
 
12656
LIBS="-lsvld  $LIBS"
 
12657
cat >conftest.$ac_ext <<_ACEOF
 
12658
/* confdefs.h.  */
 
12659
_ACEOF
 
12660
cat confdefs.h >>conftest.$ac_ext
 
12661
cat >>conftest.$ac_ext <<_ACEOF
 
12662
/* end confdefs.h.  */
 
12663
 
 
12664
/* Override any gcc2 internal prototype to avoid an error.  */
 
12665
#ifdef __cplusplus
 
12666
extern "C"
 
12667
#endif
 
12668
/* We use char because int might match the return type of a gcc2
 
12669
   builtin and then its argument prototype would still apply.  */
 
12670
char dlopen ();
 
12671
int
 
12672
main ()
 
12673
{
 
12674
dlopen ();
 
12675
  ;
 
12676
  return 0;
 
12677
}
 
12678
_ACEOF
 
12679
rm -f conftest.$ac_objext conftest$ac_exeext
 
12680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12681
  (eval $ac_link) 2>conftest.er1
 
12682
  ac_status=$?
 
12683
  grep -v '^ *+' conftest.er1 >conftest.err
 
12684
  rm -f conftest.er1
 
12685
  cat conftest.err >&5
 
12686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12687
  (exit $ac_status); } &&
 
12688
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12690
  (eval $ac_try) 2>&5
 
12691
  ac_status=$?
 
12692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12693
  (exit $ac_status); }; } &&
 
12694
         { ac_try='test -s conftest$ac_exeext'
 
12695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12696
  (eval $ac_try) 2>&5
 
12697
  ac_status=$?
 
12698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12699
  (exit $ac_status); }; }; then
 
12700
  ac_cv_lib_svld_dlopen=yes
 
12701
else
 
12702
  echo "$as_me: failed program was:" >&5
 
12703
sed 's/^/| /' conftest.$ac_ext >&5
 
12704
 
 
12705
ac_cv_lib_svld_dlopen=no
 
12706
fi
 
12707
rm -f conftest.err conftest.$ac_objext \
 
12708
      conftest$ac_exeext conftest.$ac_ext
 
12709
LIBS=$ac_check_lib_save_LIBS
 
12710
fi
 
12711
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12712
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12713
if test $ac_cv_lib_svld_dlopen = yes; then
 
12714
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12715
else
 
12716
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12717
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12718
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12720
else
 
12721
  ac_check_lib_save_LIBS=$LIBS
 
12722
LIBS="-ldld  $LIBS"
 
12723
cat >conftest.$ac_ext <<_ACEOF
 
12724
/* confdefs.h.  */
 
12725
_ACEOF
 
12726
cat confdefs.h >>conftest.$ac_ext
 
12727
cat >>conftest.$ac_ext <<_ACEOF
 
12728
/* end confdefs.h.  */
 
12729
 
 
12730
/* Override any gcc2 internal prototype to avoid an error.  */
 
12731
#ifdef __cplusplus
 
12732
extern "C"
 
12733
#endif
 
12734
/* We use char because int might match the return type of a gcc2
 
12735
   builtin and then its argument prototype would still apply.  */
 
12736
char dld_link ();
 
12737
int
 
12738
main ()
 
12739
{
 
12740
dld_link ();
 
12741
  ;
 
12742
  return 0;
 
12743
}
 
12744
_ACEOF
 
12745
rm -f conftest.$ac_objext conftest$ac_exeext
 
12746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12747
  (eval $ac_link) 2>conftest.er1
 
12748
  ac_status=$?
 
12749
  grep -v '^ *+' conftest.er1 >conftest.err
 
12750
  rm -f conftest.er1
 
12751
  cat conftest.err >&5
 
12752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12753
  (exit $ac_status); } &&
 
12754
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12756
  (eval $ac_try) 2>&5
 
12757
  ac_status=$?
 
12758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12759
  (exit $ac_status); }; } &&
 
12760
         { ac_try='test -s conftest$ac_exeext'
 
12761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12762
  (eval $ac_try) 2>&5
 
12763
  ac_status=$?
 
12764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12765
  (exit $ac_status); }; }; then
 
12766
  ac_cv_lib_dld_dld_link=yes
 
12767
else
 
12768
  echo "$as_me: failed program was:" >&5
 
12769
sed 's/^/| /' conftest.$ac_ext >&5
 
12770
 
 
12771
ac_cv_lib_dld_dld_link=no
 
12772
fi
 
12773
rm -f conftest.err conftest.$ac_objext \
 
12774
      conftest$ac_exeext conftest.$ac_ext
 
12775
LIBS=$ac_check_lib_save_LIBS
 
12776
fi
 
12777
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12778
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12779
if test $ac_cv_lib_dld_dld_link = yes; then
 
12780
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12781
fi
 
12782
 
 
12783
              
 
12784
fi
 
12785
 
 
12786
            
 
12787
fi
 
12788
 
 
12789
          
 
12790
fi
 
12791
 
 
12792
        
 
12793
fi
 
12794
 
 
12795
      
 
12796
fi
 
12797
 
 
12798
    ;;
 
12799
  esac
 
12800
 
 
12801
  if test "x$lt_cv_dlopen" != xno; then
 
12802
    enable_dlopen=yes
 
12803
  else
 
12804
    enable_dlopen=no
 
12805
  fi
 
12806
 
 
12807
  case $lt_cv_dlopen in
 
12808
  dlopen)
 
12809
    save_CPPFLAGS="$CPPFLAGS"
 
12810
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12811
 
 
12812
    save_LDFLAGS="$LDFLAGS"
 
12813
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12814
 
 
12815
    save_LIBS="$LIBS"
 
12816
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12817
 
 
12818
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12819
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12820
if test "${lt_cv_dlopen_self+set}" = set; then
 
12821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12822
else
 
12823
          if test "$cross_compiling" = yes; then :
 
12824
  lt_cv_dlopen_self=cross
 
12825
else
 
12826
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12827
  lt_status=$lt_dlunknown
 
12828
  cat > conftest.$ac_ext <<EOF
 
12829
#line __oline__ "configure"
 
12830
#include "confdefs.h"
 
12831
 
 
12832
#if HAVE_DLFCN_H
 
12833
#include <dlfcn.h>
 
12834
#endif
 
12835
 
 
12836
#include <stdio.h>
 
12837
 
 
12838
#ifdef RTLD_GLOBAL
 
12839
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12840
#else
 
12841
#  ifdef DL_GLOBAL
 
12842
#    define LT_DLGLOBAL         DL_GLOBAL
 
12843
#  else
 
12844
#    define LT_DLGLOBAL         0
 
12845
#  endif
 
12846
#endif
 
12847
 
 
12848
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12849
   find out it does not work in some platform. */
 
12850
#ifndef LT_DLLAZY_OR_NOW
 
12851
#  ifdef RTLD_LAZY
 
12852
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12853
#  else
 
12854
#    ifdef DL_LAZY
 
12855
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12856
#    else
 
12857
#      ifdef RTLD_NOW
 
12858
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12859
#      else
 
12860
#        ifdef DL_NOW
 
12861
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12862
#        else
 
12863
#          define LT_DLLAZY_OR_NOW      0
 
12864
#        endif
 
12865
#      endif
 
12866
#    endif
 
12867
#  endif
 
12868
#endif
 
12869
 
 
12870
#ifdef __cplusplus
 
12871
extern "C" void exit (int);
 
12872
#endif
 
12873
 
 
12874
void fnord() { int i=42;}
 
12875
int main ()
 
12876
{
 
12877
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12878
  int status = $lt_dlunknown;
 
12879
 
 
12880
  if (self)
 
12881
    {
 
12882
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12883
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12884
      /* dlclose (self); */
 
12885
    }
 
12886
 
 
12887
    exit (status);
 
12888
}
 
12889
EOF
 
12890
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12891
  (eval $ac_link) 2>&5
 
12892
  ac_status=$?
 
12893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12894
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12895
    (./conftest; exit; ) >&5 2>/dev/null
 
12896
    lt_status=$?
 
12897
    case x$lt_status in
 
12898
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12899
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12900
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12901
    esac
 
12902
  else :
 
12903
    # compilation failed
 
12904
    lt_cv_dlopen_self=no
 
12905
  fi
 
12906
fi
 
12907
rm -fr conftest*
 
12908
 
 
12909
    
 
12910
fi
 
12911
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12912
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12913
 
 
12914
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12915
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12916
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12917
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12918
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12920
else
 
12921
          if test "$cross_compiling" = yes; then :
 
12922
  lt_cv_dlopen_self_static=cross
 
12923
else
 
12924
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12925
  lt_status=$lt_dlunknown
 
12926
  cat > conftest.$ac_ext <<EOF
 
12927
#line __oline__ "configure"
 
12928
#include "confdefs.h"
 
12929
 
 
12930
#if HAVE_DLFCN_H
 
12931
#include <dlfcn.h>
 
12932
#endif
 
12933
 
 
12934
#include <stdio.h>
 
12935
 
 
12936
#ifdef RTLD_GLOBAL
 
12937
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12938
#else
 
12939
#  ifdef DL_GLOBAL
 
12940
#    define LT_DLGLOBAL         DL_GLOBAL
 
12941
#  else
 
12942
#    define LT_DLGLOBAL         0
 
12943
#  endif
 
12944
#endif
 
12945
 
 
12946
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12947
   find out it does not work in some platform. */
 
12948
#ifndef LT_DLLAZY_OR_NOW
 
12949
#  ifdef RTLD_LAZY
 
12950
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12951
#  else
 
12952
#    ifdef DL_LAZY
 
12953
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12954
#    else
 
12955
#      ifdef RTLD_NOW
 
12956
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12957
#      else
 
12958
#        ifdef DL_NOW
 
12959
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12960
#        else
 
12961
#          define LT_DLLAZY_OR_NOW      0
 
12962
#        endif
 
12963
#      endif
 
12964
#    endif
 
12965
#  endif
 
12966
#endif
 
12967
 
 
12968
#ifdef __cplusplus
 
12969
extern "C" void exit (int);
 
12970
#endif
 
12971
 
 
12972
void fnord() { int i=42;}
 
12973
int main ()
 
12974
{
 
12975
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12976
  int status = $lt_dlunknown;
 
12977
 
 
12978
  if (self)
 
12979
    {
 
12980
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12981
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12982
      /* dlclose (self); */
 
12983
    }
 
12984
 
 
12985
    exit (status);
 
12986
}
 
12987
EOF
 
12988
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12989
  (eval $ac_link) 2>&5
 
12990
  ac_status=$?
 
12991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12992
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12993
    (./conftest; exit; ) >&5 2>/dev/null
 
12994
    lt_status=$?
 
12995
    case x$lt_status in
 
12996
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12997
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12998
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12999
    esac
 
13000
  else :
 
13001
    # compilation failed
 
13002
    lt_cv_dlopen_self_static=no
 
13003
  fi
 
13004
fi
 
13005
rm -fr conftest*
 
13006
 
 
13007
      
 
13008
fi
 
13009
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13010
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13011
    fi
 
13012
 
 
13013
    CPPFLAGS="$save_CPPFLAGS"
 
13014
    LDFLAGS="$save_LDFLAGS"
 
13015
    LIBS="$save_LIBS"
 
13016
    ;;
 
13017
  esac
 
13018
 
 
13019
  case $lt_cv_dlopen_self in
 
13020
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13021
  *) enable_dlopen_self=unknown ;;
 
13022
  esac
 
13023
 
 
13024
  case $lt_cv_dlopen_self_static in
 
13025
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13026
  *) enable_dlopen_self_static=unknown ;;
 
13027
  esac
 
13028
fi
 
13029
 
 
13030
 
 
13031
# The else clause should only fire when bootstrapping the
 
13032
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13033
# with your package, and you will get complaints that there are
 
13034
# no rules to generate ltmain.sh.
 
13035
if test -f "$ltmain"; then
 
13036
  # See if we are running on zsh, and set the options which allow our commands through
 
13037
  # without removal of \ escapes.
 
13038
  if test -n "${ZSH_VERSION+set}" ; then
 
13039
    setopt NO_GLOB_SUBST
 
13040
  fi
 
13041
  # Now quote all the things that may contain metacharacters while being
 
13042
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13043
  # variables and quote the copies for generation of the libtool script.
 
13044
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13045
    SED SHELL STRIP \
 
13046
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13047
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13048
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13049
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13050
    lt_cv_sys_global_symbol_to_c_name_address \
 
13051
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13052
    old_postinstall_cmds old_postuninstall_cmds \
 
13053
    compiler_CXX \
 
13054
    CC_CXX \
 
13055
    LD_CXX \
 
13056
    lt_prog_compiler_wl_CXX \
 
13057
    lt_prog_compiler_pic_CXX \
 
13058
    lt_prog_compiler_static_CXX \
 
13059
    lt_prog_compiler_no_builtin_flag_CXX \
 
13060
    export_dynamic_flag_spec_CXX \
 
13061
    thread_safe_flag_spec_CXX \
 
13062
    whole_archive_flag_spec_CXX \
 
13063
    enable_shared_with_static_runtimes_CXX \
 
13064
    old_archive_cmds_CXX \
 
13065
    old_archive_from_new_cmds_CXX \
 
13066
    predep_objects_CXX \
 
13067
    postdep_objects_CXX \
 
13068
    predeps_CXX \
 
13069
    postdeps_CXX \
 
13070
    compiler_lib_search_path_CXX \
 
13071
    archive_cmds_CXX \
 
13072
    archive_expsym_cmds_CXX \
 
13073
    postinstall_cmds_CXX \
 
13074
    postuninstall_cmds_CXX \
 
13075
    old_archive_from_expsyms_cmds_CXX \
 
13076
    allow_undefined_flag_CXX \
 
13077
    no_undefined_flag_CXX \
 
13078
    export_symbols_cmds_CXX \
 
13079
    hardcode_libdir_flag_spec_CXX \
 
13080
    hardcode_libdir_flag_spec_ld_CXX \
 
13081
    hardcode_libdir_separator_CXX \
 
13082
    hardcode_automatic_CXX \
 
13083
    module_cmds_CXX \
 
13084
    module_expsym_cmds_CXX \
 
13085
    lt_cv_prog_compiler_c_o_CXX \
 
13086
    exclude_expsyms_CXX \
 
13087
    include_expsyms_CXX; do
 
13088
 
 
13089
    case $var in
 
13090
    old_archive_cmds_CXX | \
 
13091
    old_archive_from_new_cmds_CXX | \
 
13092
    archive_cmds_CXX | \
 
13093
    archive_expsym_cmds_CXX | \
 
13094
    module_cmds_CXX | \
 
13095
    module_expsym_cmds_CXX | \
 
13096
    old_archive_from_expsyms_cmds_CXX | \
 
13097
    export_symbols_cmds_CXX | \
 
13098
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13099
    postinstall_cmds | postuninstall_cmds | \
 
13100
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13101
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13102
      # Double-quote double-evaled strings.
 
13103
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13104
      ;;
 
13105
    *)
 
13106
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13107
      ;;
 
13108
    esac
 
13109
  done
 
13110
 
 
13111
  case $lt_echo in
 
13112
  *'\$0 --fallback-echo"')
 
13113
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13114
    ;;
 
13115
  esac
 
13116
 
 
13117
cfgfile="$ofile"
 
13118
 
 
13119
  cat <<__EOF__ >> "$cfgfile"
 
13120
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13121
 
 
13122
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13123
 
 
13124
# Shell to use when invoking shell scripts.
 
13125
SHELL=$lt_SHELL
 
13126
 
 
13127
# Whether or not to build shared libraries.
 
13128
build_libtool_libs=$enable_shared
 
13129
 
 
13130
# Whether or not to build static libraries.
 
13131
build_old_libs=$enable_static
 
13132
 
 
13133
# Whether or not to add -lc for building shared libraries.
 
13134
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13135
 
 
13136
# Whether or not to disallow shared libs when runtime libs are static
 
13137
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13138
 
 
13139
# Whether or not to optimize for fast installation.
 
13140
fast_install=$enable_fast_install
 
13141
 
 
13142
# The host system.
 
13143
host_alias=$host_alias
 
13144
host=$host
 
13145
host_os=$host_os
 
13146
 
 
13147
# The build system.
 
13148
build_alias=$build_alias
 
13149
build=$build
 
13150
build_os=$build_os
 
13151
 
 
13152
# An echo program that does not interpret backslashes.
 
13153
echo=$lt_echo
 
13154
 
 
13155
# The archiver.
 
13156
AR=$lt_AR
 
13157
AR_FLAGS=$lt_AR_FLAGS
 
13158
 
 
13159
# A C compiler.
 
13160
LTCC=$lt_LTCC
 
13161
 
 
13162
# A language-specific compiler.
 
13163
CC=$lt_compiler_CXX
 
13164
 
 
13165
# Is the compiler the GNU C compiler?
 
13166
with_gcc=$GCC_CXX
 
13167
 
 
13168
# An ERE matcher.
 
13169
EGREP=$lt_EGREP
 
13170
 
 
13171
# The linker used to build libraries.
 
13172
LD=$lt_LD_CXX
 
13173
 
 
13174
# Whether we need hard or soft links.
 
13175
LN_S=$lt_LN_S
 
13176
 
 
13177
# A BSD-compatible nm program.
 
13178
NM=$lt_NM
 
13179
 
 
13180
# A symbol stripping program
 
13181
STRIP=$lt_STRIP
 
13182
 
 
13183
# Used to examine libraries when file_magic_cmd begins "file"
 
13184
MAGIC_CMD=$MAGIC_CMD
 
13185
 
 
13186
# Used on cygwin: DLL creation program.
 
13187
DLLTOOL="$DLLTOOL"
 
13188
 
 
13189
# Used on cygwin: object dumper.
 
13190
OBJDUMP="$OBJDUMP"
 
13191
 
 
13192
# Used on cygwin: assembler.
 
13193
AS="$AS"
 
13194
 
 
13195
# The name of the directory that contains temporary libtool files.
 
13196
objdir=$objdir
 
13197
 
 
13198
# How to create reloadable object files.
 
13199
reload_flag=$lt_reload_flag
 
13200
reload_cmds=$lt_reload_cmds
 
13201
 
 
13202
# How to pass a linker flag through the compiler.
 
13203
wl=$lt_lt_prog_compiler_wl_CXX
 
13204
 
 
13205
# Object file suffix (normally "o").
 
13206
objext="$ac_objext"
 
13207
 
 
13208
# Old archive suffix (normally "a").
 
13209
libext="$libext"
 
13210
 
 
13211
# Shared library suffix (normally ".so").
 
13212
shrext_cmds='$shrext_cmds'
 
13213
 
 
13214
# Executable file suffix (normally "").
 
13215
exeext="$exeext"
 
13216
 
 
13217
# Additional compiler flags for building library objects.
 
13218
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13219
pic_mode=$pic_mode
 
13220
 
 
13221
# What is the maximum length of a command?
 
13222
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13223
 
 
13224
# Does compiler simultaneously support -c and -o options?
 
13225
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13226
 
 
13227
# Must we lock files when doing compilation?
 
13228
need_locks=$lt_need_locks
 
13229
 
 
13230
# Do we need the lib prefix for modules?
 
13231
need_lib_prefix=$need_lib_prefix
 
13232
 
 
13233
# Do we need a version for libraries?
 
13234
need_version=$need_version
 
13235
 
 
13236
# Whether dlopen is supported.
 
13237
dlopen_support=$enable_dlopen
 
13238
 
 
13239
# Whether dlopen of programs is supported.
 
13240
dlopen_self=$enable_dlopen_self
 
13241
 
 
13242
# Whether dlopen of statically linked programs is supported.
 
13243
dlopen_self_static=$enable_dlopen_self_static
 
13244
 
 
13245
# Compiler flag to prevent dynamic linking.
 
13246
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13247
 
 
13248
# Compiler flag to turn off builtin functions.
 
13249
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13250
 
 
13251
# Compiler flag to allow reflexive dlopens.
 
13252
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13253
 
 
13254
# Compiler flag to generate shared objects directly from archives.
 
13255
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13256
 
 
13257
# Compiler flag to generate thread-safe objects.
 
13258
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13259
 
 
13260
# Library versioning type.
 
13261
version_type=$version_type
 
13262
 
 
13263
# Format of library name prefix.
 
13264
libname_spec=$lt_libname_spec
 
13265
 
 
13266
# List of archive names.  First name is the real one, the rest are links.
 
13267
# The last name is the one that the linker finds with -lNAME.
 
13268
library_names_spec=$lt_library_names_spec
 
13269
 
 
13270
# The coded name of the library, if different from the real name.
 
13271
soname_spec=$lt_soname_spec
 
13272
 
 
13273
# Commands used to build and install an old-style archive.
 
13274
RANLIB=$lt_RANLIB
 
13275
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13276
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13277
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13278
 
 
13279
# Create an old-style archive from a shared archive.
 
13280
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13281
 
 
13282
# Create a temporary old-style archive to link instead of a shared archive.
 
13283
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13284
 
 
13285
# Commands used to build and install a shared archive.
 
13286
archive_cmds=$lt_archive_cmds_CXX
 
13287
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13288
postinstall_cmds=$lt_postinstall_cmds
 
13289
postuninstall_cmds=$lt_postuninstall_cmds
 
13290
 
 
13291
# Commands used to build a loadable module (assumed same as above if empty)
 
13292
module_cmds=$lt_module_cmds_CXX
 
13293
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13294
 
 
13295
# Commands to strip libraries.
 
13296
old_striplib=$lt_old_striplib
 
13297
striplib=$lt_striplib
 
13298
 
 
13299
# Dependencies to place before the objects being linked to create a
 
13300
# shared library.
 
13301
predep_objects=$lt_predep_objects_CXX
 
13302
 
 
13303
# Dependencies to place after the objects being linked to create a
 
13304
# shared library.
 
13305
postdep_objects=$lt_postdep_objects_CXX
 
13306
 
 
13307
# Dependencies to place before the objects being linked to create a
 
13308
# shared library.
 
13309
predeps=$lt_predeps_CXX
 
13310
 
 
13311
# Dependencies to place after the objects being linked to create a
 
13312
# shared library.
 
13313
postdeps=$lt_postdeps_CXX
 
13314
 
 
13315
# The library search path used internally by the compiler when linking
 
13316
# a shared library.
 
13317
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13318
 
 
13319
# Method to check whether dependent libraries are shared objects.
 
13320
deplibs_check_method=$lt_deplibs_check_method
 
13321
 
 
13322
# Command to use when deplibs_check_method == file_magic.
 
13323
file_magic_cmd=$lt_file_magic_cmd
 
13324
 
 
13325
# Flag that allows shared libraries with undefined symbols to be built.
 
13326
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13327
 
 
13328
# Flag that forces no undefined symbols.
 
13329
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13330
 
 
13331
# Commands used to finish a libtool library installation in a directory.
 
13332
finish_cmds=$lt_finish_cmds
 
13333
 
 
13334
# Same as above, but a single script fragment to be evaled but not shown.
 
13335
finish_eval=$lt_finish_eval
 
13336
 
 
13337
# Take the output of nm and produce a listing of raw symbols and C names.
 
13338
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13339
 
 
13340
# Transform the output of nm in a proper C declaration
 
13341
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13342
 
 
13343
# Transform the output of nm in a C name address pair
 
13344
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13345
 
 
13346
# This is the shared library runtime path variable.
 
13347
runpath_var=$runpath_var
 
13348
 
 
13349
# This is the shared library path variable.
 
13350
shlibpath_var=$shlibpath_var
 
13351
 
 
13352
# Is shlibpath searched before the hard-coded library search path?
 
13353
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13354
 
 
13355
# How to hardcode a shared library path into an executable.
 
13356
hardcode_action=$hardcode_action_CXX
 
13357
 
 
13358
# Whether we should hardcode library paths into libraries.
 
13359
hardcode_into_libs=$hardcode_into_libs
 
13360
 
 
13361
# Flag to hardcode \$libdir into a binary during linking.
 
13362
# This must work even if \$libdir does not exist.
 
13363
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13364
 
 
13365
# If ld is used when linking, flag to hardcode \$libdir into
 
13366
# a binary during linking. This must work even if \$libdir does
 
13367
# not exist.
 
13368
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13369
 
 
13370
# Whether we need a single -rpath flag with a separated argument.
 
13371
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13372
 
 
13373
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13374
# resulting binary.
 
13375
hardcode_direct=$hardcode_direct_CXX
 
13376
 
 
13377
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13378
# resulting binary.
 
13379
hardcode_minus_L=$hardcode_minus_L_CXX
 
13380
 
 
13381
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13382
# the resulting binary.
 
13383
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13384
 
 
13385
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13386
# and all subsequent libraries and executables linked against it.
 
13387
hardcode_automatic=$hardcode_automatic_CXX
 
13388
 
 
13389
# Variables whose values should be saved in libtool wrapper scripts and
 
13390
# restored at relink time.
 
13391
variables_saved_for_relink="$variables_saved_for_relink"
 
13392
 
 
13393
# Whether libtool must link a program against all its dependency libraries.
 
13394
link_all_deplibs=$link_all_deplibs_CXX
 
13395
 
 
13396
# Compile-time system search path for libraries
 
13397
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13398
 
 
13399
# Run-time system search path for libraries
 
13400
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13401
 
 
13402
# Fix the shell variable \$srcfile for the compiler.
 
13403
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13404
 
 
13405
# Set to yes if exported symbols are required.
 
13406
always_export_symbols=$always_export_symbols_CXX
 
13407
 
 
13408
# The commands to list exported symbols.
 
13409
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13410
 
 
13411
# The commands to extract the exported symbol list from a shared archive.
 
13412
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13413
 
 
13414
# Symbols that should not be listed in the preloaded symbols.
 
13415
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13416
 
 
13417
# Symbols that must always be exported.
 
13418
include_expsyms=$lt_include_expsyms_CXX
 
13419
 
 
13420
# ### END LIBTOOL TAG CONFIG: $tagname
 
13421
 
 
13422
__EOF__
 
13423
 
 
13424
 
 
13425
else
 
13426
  # If there is no Makefile yet, we rely on a make rule to execute
 
13427
  # `config.status --recheck' to rerun these tests and create the
 
13428
  # libtool script then.
 
13429
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13430
  if test -f "$ltmain_in"; then
 
13431
    test -f Makefile && make "$ltmain"
 
13432
  fi
 
13433
fi
 
13434
 
 
13435
 
 
13436
ac_ext=c
 
13437
ac_cpp='$CPP $CPPFLAGS'
 
13438
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13439
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13440
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13441
 
 
13442
CC=$lt_save_CC
 
13443
LDCXX=$LD
 
13444
LD=$lt_save_LD
 
13445
GCC=$lt_save_GCC
 
13446
with_gnu_ldcxx=$with_gnu_ld
 
13447
with_gnu_ld=$lt_save_with_gnu_ld
 
13448
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13449
lt_cv_path_LD=$lt_save_path_LD
 
13450
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13451
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13452
 
 
13453
        else
 
13454
          tagname=""
 
13455
        fi
 
13456
        ;;
 
13457
 
 
13458
      F77)
 
13459
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13460
          
 
13461
ac_ext=f
 
13462
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13463
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13464
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13465
 
 
13466
 
 
13467
archive_cmds_need_lc_F77=no
 
13468
allow_undefined_flag_F77=
 
13469
always_export_symbols_F77=no
 
13470
archive_expsym_cmds_F77=
 
13471
export_dynamic_flag_spec_F77=
 
13472
hardcode_direct_F77=no
 
13473
hardcode_libdir_flag_spec_F77=
 
13474
hardcode_libdir_flag_spec_ld_F77=
 
13475
hardcode_libdir_separator_F77=
 
13476
hardcode_minus_L_F77=no
 
13477
hardcode_automatic_F77=no
 
13478
module_cmds_F77=
 
13479
module_expsym_cmds_F77=
 
13480
link_all_deplibs_F77=unknown
 
13481
old_archive_cmds_F77=$old_archive_cmds
 
13482
no_undefined_flag_F77=
 
13483
whole_archive_flag_spec_F77=
 
13484
enable_shared_with_static_runtimes_F77=no
 
13485
 
 
13486
# Source file extension for f77 test sources.
 
13487
ac_ext=f
 
13488
 
 
13489
# Object file extension for compiled f77 test sources.
 
13490
objext=o
 
13491
objext_F77=$objext
 
13492
 
 
13493
# Code to be used in simple compile tests
 
13494
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13495
 
 
13496
# Code to be used in simple link tests
 
13497
lt_simple_link_test_code="      program t\n      end\n"
 
13498
 
 
13499
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13500
 
 
13501
# If no C compiler was specified, use CC.
 
13502
LTCC=${LTCC-"$CC"}
 
13503
 
 
13504
# Allow CC to be a program name with arguments.
 
13505
compiler=$CC
 
13506
 
 
13507
 
 
13508
# save warnings/boilerplate of simple test code
 
13509
ac_outfile=conftest.$ac_objext
 
13510
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13511
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13512
_lt_compiler_boilerplate=`cat conftest.err`
 
13513
$rm conftest*
 
13514
 
 
13515
ac_outfile=conftest.$ac_objext
 
13516
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13517
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13518
_lt_linker_boilerplate=`cat conftest.err`
 
13519
$rm conftest*
 
13520
 
 
13521
 
 
13522
# Allow CC to be a program name with arguments.
 
13523
lt_save_CC="$CC"
 
13524
CC=${F77-"f77"}
 
13525
compiler=$CC
 
13526
compiler_F77=$CC
 
13527
for cc_temp in $compiler""; do
 
13528
  case $cc_temp in
 
13529
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13530
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13531
    \-*) ;;
 
13532
    *) break;;
 
13533
  esac
 
13534
done
 
13535
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13536
 
 
13537
 
 
13538
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13539
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13540
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13541
echo "${ECHO_T}$can_build_shared" >&6
 
13542
 
 
13543
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13544
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13545
test "$can_build_shared" = "no" && enable_shared=no
 
13546
 
 
13547
# On AIX, shared libraries and static libraries use the same namespace, and
 
13548
# are all built from PIC.
 
13549
case $host_os in
 
13550
aix3*)
 
13551
  test "$enable_shared" = yes && enable_static=no
 
13552
  if test -n "$RANLIB"; then
 
13553
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13554
    postinstall_cmds='$RANLIB $lib'
 
13555
  fi
 
13556
  ;;
 
13557
aix4* | aix5*)
 
13558
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13559
    test "$enable_shared" = yes && enable_static=no
 
13560
  fi
 
13561
  ;;
 
13562
esac
 
13563
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13564
echo "${ECHO_T}$enable_shared" >&6
 
13565
 
 
13566
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13567
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13568
# Make sure either enable_shared or enable_static is yes.
 
13569
test "$enable_shared" = yes || enable_static=yes
 
13570
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13571
echo "${ECHO_T}$enable_static" >&6
 
13572
 
 
13573
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13574
 
 
13575
GCC_F77="$G77"
 
13576
LD_F77="$LD"
 
13577
 
 
13578
lt_prog_compiler_wl_F77=
 
13579
lt_prog_compiler_pic_F77=
 
13580
lt_prog_compiler_static_F77=
 
13581
 
 
13582
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13583
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13584
 
 
13585
  if test "$GCC" = yes; then
 
13586
    lt_prog_compiler_wl_F77='-Wl,'
 
13587
    lt_prog_compiler_static_F77='-static'
 
13588
 
 
13589
    case $host_os in
 
13590
      aix*)
 
13591
      # All AIX code is PIC.
 
13592
      if test "$host_cpu" = ia64; then
 
13593
        # AIX 5 now supports IA64 processor
 
13594
        lt_prog_compiler_static_F77='-Bstatic'
 
13595
      fi
 
13596
      ;;
 
13597
 
 
13598
    amigaos*)
 
13599
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13600
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13601
      # like `-m68040'.
 
13602
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13603
      ;;
 
13604
 
 
13605
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13606
      # PIC is the default for these OSes.
 
13607
      ;;
 
13608
 
 
13609
    mingw* | pw32* | os2*)
 
13610
      # This hack is so that the source file can tell whether it is being
 
13611
      # built for inclusion in a dll (and should export symbols for example).
 
13612
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13613
      ;;
 
13614
 
 
13615
    darwin* | rhapsody*)
 
13616
      # PIC is the default on this platform
 
13617
      # Common symbols not allowed in MH_DYLIB files
 
13618
      lt_prog_compiler_pic_F77='-fno-common'
 
13619
      ;;
 
13620
 
 
13621
    msdosdjgpp*)
 
13622
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13623
      # on systems that don't support them.
 
13624
      lt_prog_compiler_can_build_shared_F77=no
 
13625
      enable_shared=no
 
13626
      ;;
 
13627
 
 
13628
    sysv4*MP*)
 
13629
      if test -d /usr/nec; then
 
13630
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13631
      fi
 
13632
      ;;
 
13633
 
 
13634
    hpux*)
 
13635
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13636
      # not for PA HP-UX.
 
13637
      case $host_cpu in
 
13638
      hppa*64*|ia64*)
 
13639
        # +Z the default
 
13640
        ;;
 
13641
      *)
 
13642
        lt_prog_compiler_pic_F77='-fPIC'
 
13643
        ;;
 
13644
      esac
 
13645
      ;;
 
13646
 
 
13647
    *)
 
13648
      lt_prog_compiler_pic_F77='-fPIC'
 
13649
      ;;
 
13650
    esac
 
13651
  else
 
13652
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13653
    case $host_os in
 
13654
    aix*)
 
13655
      lt_prog_compiler_wl_F77='-Wl,'
 
13656
      if test "$host_cpu" = ia64; then
 
13657
        # AIX 5 now supports IA64 processor
 
13658
        lt_prog_compiler_static_F77='-Bstatic'
 
13659
      else
 
13660
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13661
      fi
 
13662
      ;;
 
13663
      darwin*)
 
13664
        # PIC is the default on this platform
 
13665
        # Common symbols not allowed in MH_DYLIB files
 
13666
       case $cc_basename in
 
13667
         xlc*)
 
13668
         lt_prog_compiler_pic_F77='-qnocommon'
 
13669
         lt_prog_compiler_wl_F77='-Wl,'
 
13670
         ;;
 
13671
       esac
 
13672
       ;;
 
13673
 
 
13674
    mingw* | pw32* | os2*)
 
13675
      # This hack is so that the source file can tell whether it is being
 
13676
      # built for inclusion in a dll (and should export symbols for example).
 
13677
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13678
      ;;
 
13679
 
 
13680
    hpux9* | hpux10* | hpux11*)
 
13681
      lt_prog_compiler_wl_F77='-Wl,'
 
13682
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13683
      # not for PA HP-UX.
 
13684
      case $host_cpu in
 
13685
      hppa*64*|ia64*)
 
13686
        # +Z the default
 
13687
        ;;
 
13688
      *)
 
13689
        lt_prog_compiler_pic_F77='+Z'
 
13690
        ;;
 
13691
      esac
 
13692
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13693
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13694
      ;;
 
13695
 
 
13696
    irix5* | irix6* | nonstopux*)
 
13697
      lt_prog_compiler_wl_F77='-Wl,'
 
13698
      # PIC (with -KPIC) is the default.
 
13699
      lt_prog_compiler_static_F77='-non_shared'
 
13700
      ;;
 
13701
 
 
13702
    newsos6)
 
13703
      lt_prog_compiler_pic_F77='-KPIC'
 
13704
      lt_prog_compiler_static_F77='-Bstatic'
 
13705
      ;;
 
13706
 
 
13707
    linux*)
 
13708
      case $cc_basename in
 
13709
      icc* | ecc*)
 
13710
        lt_prog_compiler_wl_F77='-Wl,'
 
13711
        lt_prog_compiler_pic_F77='-KPIC'
 
13712
        lt_prog_compiler_static_F77='-static'
 
13713
        ;;
 
13714
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13715
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13716
        # which looks to be a dead project)
 
13717
        lt_prog_compiler_wl_F77='-Wl,'
 
13718
        lt_prog_compiler_pic_F77='-fpic'
 
13719
        lt_prog_compiler_static_F77='-Bstatic'
 
13720
        ;;
 
13721
      ccc*)
 
13722
        lt_prog_compiler_wl_F77='-Wl,'
 
13723
        # All Alpha code is PIC.
 
13724
        lt_prog_compiler_static_F77='-non_shared'
 
13725
        ;;
 
13726
      esac
 
13727
      ;;
 
13728
 
 
13729
    osf3* | osf4* | osf5*)
 
13730
      lt_prog_compiler_wl_F77='-Wl,'
 
13731
      # All OSF/1 code is PIC.
 
13732
      lt_prog_compiler_static_F77='-non_shared'
 
13733
      ;;
 
13734
 
 
13735
    sco3.2v5*)
 
13736
      lt_prog_compiler_pic_F77='-Kpic'
 
13737
      lt_prog_compiler_static_F77='-dn'
 
13738
      ;;
 
13739
 
 
13740
    solaris*)
 
13741
      lt_prog_compiler_pic_F77='-KPIC'
 
13742
      lt_prog_compiler_static_F77='-Bstatic'
 
13743
      case $cc_basename in
 
13744
      f77* | f90* | f95*)
 
13745
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13746
      *)
 
13747
        lt_prog_compiler_wl_F77='-Wl,';;
 
13748
      esac
 
13749
      ;;
 
13750
 
 
13751
    sunos4*)
 
13752
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13753
      lt_prog_compiler_pic_F77='-PIC'
 
13754
      lt_prog_compiler_static_F77='-Bstatic'
 
13755
      ;;
 
13756
 
 
13757
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13758
      lt_prog_compiler_wl_F77='-Wl,'
 
13759
      lt_prog_compiler_pic_F77='-KPIC'
 
13760
      lt_prog_compiler_static_F77='-Bstatic'
 
13761
      ;;
 
13762
 
 
13763
    sysv4*MP*)
 
13764
      if test -d /usr/nec ;then
 
13765
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13766
        lt_prog_compiler_static_F77='-Bstatic'
 
13767
      fi
 
13768
      ;;
 
13769
 
 
13770
    unicos*)
 
13771
      lt_prog_compiler_wl_F77='-Wl,'
 
13772
      lt_prog_compiler_can_build_shared_F77=no
 
13773
      ;;
 
13774
 
 
13775
    uts4*)
 
13776
      lt_prog_compiler_pic_F77='-pic'
 
13777
      lt_prog_compiler_static_F77='-Bstatic'
 
13778
      ;;
 
13779
 
 
13780
    *)
 
13781
      lt_prog_compiler_can_build_shared_F77=no
 
13782
      ;;
 
13783
    esac
 
13784
  fi
 
13785
 
 
13786
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13787
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13788
 
 
13789
#
 
13790
# Check to make sure the PIC flag actually works.
 
13791
#
 
13792
if test -n "$lt_prog_compiler_pic_F77"; then
 
13793
  
 
13794
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13795
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13796
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13798
else
 
13799
  lt_prog_compiler_pic_works_F77=no
 
13800
  ac_outfile=conftest.$ac_objext
 
13801
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13802
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13803
   # Insert the option either (1) after the last *FLAGS variable, or
 
13804
   # (2) before a word containing "conftest.", or (3) at the end.
 
13805
   # Note that $ac_compile itself does not contain backslashes and begins
 
13806
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13807
   # The option is referenced via a variable to avoid confusing sed.
 
13808
   lt_compile=`echo "$ac_compile" | $SED \
 
13809
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13810
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13811
   -e 's:$: $lt_compiler_flag:'`
 
13812
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13813
   (eval "$lt_compile" 2>conftest.err)
 
13814
   ac_status=$?
 
13815
   cat conftest.err >&5
 
13816
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13817
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13818
     # The compiler can only warn and ignore the option if not recognized
 
13819
     # So say no if there are warnings other than the usual output.
 
13820
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13821
     $SED '/^$/d' conftest.err >conftest.er2
 
13822
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
13823
       lt_prog_compiler_pic_works_F77=yes
 
13824
     fi
 
13825
   fi
 
13826
   $rm conftest*
 
13827
 
 
13828
fi
 
13829
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13830
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13831
 
 
13832
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13833
    case $lt_prog_compiler_pic_F77 in
 
13834
     "" | " "*) ;;
 
13835
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13836
     esac
 
13837
else
 
13838
    lt_prog_compiler_pic_F77=
 
13839
     lt_prog_compiler_can_build_shared_F77=no
 
13840
fi
 
13841
 
 
13842
fi
 
13843
case $host_os in
 
13844
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13845
  *djgpp*)
 
13846
    lt_prog_compiler_pic_F77=
 
13847
    ;;
 
13848
  *)
 
13849
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13850
    ;;
 
13851
esac
 
13852
 
 
13853
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13854
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13855
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13857
else
 
13858
  lt_cv_prog_compiler_c_o_F77=no
 
13859
   $rm -r conftest 2>/dev/null
 
13860
   mkdir conftest
 
13861
   cd conftest
 
13862
   mkdir out
 
13863
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13864
 
 
13865
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13866
   # Insert the option either (1) after the last *FLAGS variable, or
 
13867
   # (2) before a word containing "conftest.", or (3) at the end.
 
13868
   # Note that $ac_compile itself does not contain backslashes and begins
 
13869
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13870
   lt_compile=`echo "$ac_compile" | $SED \
 
13871
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13872
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13873
   -e 's:$: $lt_compiler_flag:'`
 
13874
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13875
   (eval "$lt_compile" 2>out/conftest.err)
 
13876
   ac_status=$?
 
13877
   cat out/conftest.err >&5
 
13878
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13879
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13880
   then
 
13881
     # The compiler can only warn and ignore the option if not recognized
 
13882
     # So say no if there are warnings
 
13883
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13884
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13885
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13886
       lt_cv_prog_compiler_c_o_F77=yes
 
13887
     fi
 
13888
   fi
 
13889
   chmod u+w . 2>&5
 
13890
   $rm conftest*
 
13891
   # SGI C++ compiler will create directory out/ii_files/ for
 
13892
   # template instantiation
 
13893
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13894
   $rm out/* && rmdir out
 
13895
   cd ..
 
13896
   rmdir conftest
 
13897
   $rm conftest*
 
13898
 
 
13899
fi
 
13900
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13901
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13902
 
 
13903
 
 
13904
hard_links="nottested"
 
13905
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13906
  # do not overwrite the value of need_locks provided by the user
 
13907
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13908
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13909
  hard_links=yes
 
13910
  $rm conftest*
 
13911
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13912
  touch conftest.a
 
13913
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13914
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13915
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13916
echo "${ECHO_T}$hard_links" >&6
 
13917
  if test "$hard_links" = no; then
 
13918
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13919
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13920
    need_locks=warn
 
13921
  fi
 
13922
else
 
13923
  need_locks=no
 
13924
fi
 
13925
 
 
13926
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13927
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13928
 
 
13929
  runpath_var=
 
13930
  allow_undefined_flag_F77=
 
13931
  enable_shared_with_static_runtimes_F77=no
 
13932
  archive_cmds_F77=
 
13933
  archive_expsym_cmds_F77=
 
13934
  old_archive_From_new_cmds_F77=
 
13935
  old_archive_from_expsyms_cmds_F77=
 
13936
  export_dynamic_flag_spec_F77=
 
13937
  whole_archive_flag_spec_F77=
 
13938
  thread_safe_flag_spec_F77=
 
13939
  hardcode_libdir_flag_spec_F77=
 
13940
  hardcode_libdir_flag_spec_ld_F77=
 
13941
  hardcode_libdir_separator_F77=
 
13942
  hardcode_direct_F77=no
 
13943
  hardcode_minus_L_F77=no
 
13944
  hardcode_shlibpath_var_F77=unsupported
 
13945
  link_all_deplibs_F77=unknown
 
13946
  hardcode_automatic_F77=no
 
13947
  module_cmds_F77=
 
13948
  module_expsym_cmds_F77=
 
13949
  always_export_symbols_F77=no
 
13950
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13951
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13952
  # included in the symbol list
 
13953
  include_expsyms_F77=
 
13954
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13955
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13956
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13957
  # as well as any symbol that contains `d'.
 
13958
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13959
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13960
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13961
  # the symbol is explicitly referenced.  Since portable code cannot
 
13962
  # rely on this symbol name, it's probably fine to never include it in
 
13963
  # preloaded symbol tables.
 
13964
  extract_expsyms_cmds=
 
13965
  # Just being paranoid about ensuring that cc_basename is set.
 
13966
  for cc_temp in $compiler""; do
 
13967
  case $cc_temp in
 
13968
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13969
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13970
    \-*) ;;
 
13971
    *) break;;
 
13972
  esac
 
13973
done
 
13974
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13975
 
 
13976
  case $host_os in
 
13977
  cygwin* | mingw* | pw32*)
 
13978
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13979
    # When not using gcc, we currently assume that we are using
 
13980
    # Microsoft Visual C++.
 
13981
    if test "$GCC" != yes; then
 
13982
      with_gnu_ld=no
 
13983
    fi
 
13984
    ;;
 
13985
  openbsd*)
 
13986
    with_gnu_ld=no
 
13987
    ;;
 
13988
  esac
 
13989
 
 
13990
  ld_shlibs_F77=yes
 
13991
  if test "$with_gnu_ld" = yes; then
 
13992
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13993
    wlarc='${wl}'
 
13994
 
 
13995
    # Set some defaults for GNU ld with shared library support. These
 
13996
    # are reset later if shared libraries are not supported. Putting them
 
13997
    # here allows them to be overridden if necessary.
 
13998
    runpath_var=LD_RUN_PATH
 
13999
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14000
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14001
    # ancient GNU ld didn't support --whole-archive et. al.
 
14002
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14003
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14004
      else
 
14005
        whole_archive_flag_spec_F77=
 
14006
    fi
 
14007
    supports_anon_versioning=no
 
14008
    case `$LD -v 2>/dev/null` in
 
14009
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14010
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14011
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14012
      *\ 2.11.*) ;; # other 2.11 versions
 
14013
      *) supports_anon_versioning=yes ;;
 
14014
    esac
 
14015
 
 
14016
    # See if GNU ld supports shared libraries.
 
14017
    case $host_os in
 
14018
    aix3* | aix4* | aix5*)
 
14019
      # On AIX/PPC, the GNU linker is very broken
 
14020
      if test "$host_cpu" != ia64; then
 
14021
        ld_shlibs_F77=no
 
14022
        cat <<EOF 1>&2
 
14023
 
 
14024
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14025
*** to be unable to reliably create shared libraries on AIX.
 
14026
*** Therefore, libtool is disabling shared libraries support.  If you
 
14027
*** really care for shared libraries, you may want to modify your PATH
 
14028
*** so that a non-GNU linker is found, and then restart.
 
14029
 
 
14030
EOF
 
14031
      fi
 
14032
      ;;
 
14033
 
 
14034
    amigaos*)
 
14035
      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)'
 
14036
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14037
      hardcode_minus_L_F77=yes
 
14038
 
 
14039
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14040
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14041
      # to version 4, is to share data among multiple programs linked
 
14042
      # with the same dynamic library.  Since this doesn't match the
 
14043
      # behavior of shared libraries on other platforms, we can't use
 
14044
      # them.
 
14045
      ld_shlibs_F77=no
 
14046
      ;;
 
14047
 
 
14048
    beos*)
 
14049
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14050
        allow_undefined_flag_F77=unsupported
 
14051
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14052
        # support --undefined.  This deserves some investigation.  FIXME
 
14053
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14054
      else
 
14055
        ld_shlibs_F77=no
 
14056
      fi
 
14057
      ;;
 
14058
 
 
14059
    cygwin* | mingw* | pw32*)
 
14060
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14061
      # as there is no search path for DLLs.
 
14062
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14063
      allow_undefined_flag_F77=unsupported
 
14064
      always_export_symbols_F77=no
 
14065
      enable_shared_with_static_runtimes_F77=yes
 
14066
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14067
 
 
14068
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14069
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14070
        # If the export-symbols file already is a .def file (1st line
 
14071
        # is EXPORTS), use it as is; otherwise, prepend...
 
14072
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14073
          cp $export_symbols $output_objdir/$soname.def;
 
14074
        else
 
14075
          echo EXPORTS > $output_objdir/$soname.def;
 
14076
          cat $export_symbols >> $output_objdir/$soname.def;
 
14077
        fi~
 
14078
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14079
      else
 
14080
        ld_shlibs_F77=no
 
14081
      fi
 
14082
      ;;
 
14083
 
 
14084
    linux*)
 
14085
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14086
        tmp_addflag=
 
14087
        case $cc_basename,$host_cpu in
 
14088
        pgcc*)                          # Portland Group C compiler
 
14089
          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'
 
14090
          tmp_addflag=' $pic_flag'
 
14091
          ;;
 
14092
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14093
          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'
 
14094
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14095
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14096
          tmp_addflag=' -i_dynamic' ;;
 
14097
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14098
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14099
        ifc* | ifort*)                  # Intel Fortran compiler
 
14100
          tmp_addflag=' -nofor_main' ;;
 
14101
        esac
 
14102
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14103
 
 
14104
        if test $supports_anon_versioning = yes; then
 
14105
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14106
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14107
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14108
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14109
        fi
 
14110
        link_all_deplibs_F77=no
 
14111
      else
 
14112
        ld_shlibs_F77=no
 
14113
      fi
 
14114
      ;;
 
14115
 
 
14116
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14117
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14118
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14119
        wlarc=
 
14120
      else
 
14121
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14122
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14123
      fi
 
14124
      ;;
 
14125
 
 
14126
    solaris* | sysv5*)
 
14127
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14128
        ld_shlibs_F77=no
 
14129
        cat <<EOF 1>&2
 
14130
 
 
14131
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14132
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14133
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14134
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14135
*** your PATH or compiler configuration so that the native linker is
 
14136
*** used, and then restart.
 
14137
 
 
14138
EOF
 
14139
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14140
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14141
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14142
      else
 
14143
        ld_shlibs_F77=no
 
14144
      fi
 
14145
      ;;
 
14146
 
 
14147
    sunos4*)
 
14148
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14149
      wlarc=
 
14150
      hardcode_direct_F77=yes
 
14151
      hardcode_shlibpath_var_F77=no
 
14152
      ;;
 
14153
 
 
14154
    *)
 
14155
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14156
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14157
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14158
      else
 
14159
        ld_shlibs_F77=no
 
14160
      fi
 
14161
      ;;
 
14162
    esac
 
14163
 
 
14164
    if test "$ld_shlibs_F77" = no; then
 
14165
      runpath_var=
 
14166
      hardcode_libdir_flag_spec_F77=
 
14167
      export_dynamic_flag_spec_F77=
 
14168
      whole_archive_flag_spec_F77=
 
14169
    fi
 
14170
  else
 
14171
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14172
    case $host_os in
 
14173
    aix3*)
 
14174
      allow_undefined_flag_F77=unsupported
 
14175
      always_export_symbols_F77=yes
 
14176
      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'
 
14177
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14178
      # are no directories specified by -L.
 
14179
      hardcode_minus_L_F77=yes
 
14180
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14181
        # Neither direct hardcoding nor static linking is supported with a
 
14182
        # broken collect2.
 
14183
        hardcode_direct_F77=unsupported
 
14184
      fi
 
14185
      ;;
 
14186
 
 
14187
    aix4* | aix5*)
 
14188
      if test "$host_cpu" = ia64; then
 
14189
        # On IA64, the linker does run time linking by default, so we don't
 
14190
        # have to do anything special.
 
14191
        aix_use_runtimelinking=no
 
14192
        exp_sym_flag='-Bexport'
 
14193
        no_entry_flag=""
 
14194
      else
 
14195
        # If we're using GNU nm, then we don't want the "-C" option.
 
14196
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14197
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14198
          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'
 
14199
        else
 
14200
          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'
 
14201
        fi
 
14202
        aix_use_runtimelinking=no
 
14203
 
 
14204
        # Test if we are trying to use run time linking or normal
 
14205
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14206
        # need to do runtime linking.
 
14207
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14208
          for ld_flag in $LDFLAGS; do
 
14209
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14210
            aix_use_runtimelinking=yes
 
14211
            break
 
14212
          fi
 
14213
          done
 
14214
        esac
 
14215
 
 
14216
        exp_sym_flag='-bexport'
 
14217
        no_entry_flag='-bnoentry'
 
14218
      fi
 
14219
 
 
14220
      # When large executables or shared objects are built, AIX ld can
 
14221
      # have problems creating the table of contents.  If linking a library
 
14222
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14223
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14224
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14225
 
 
14226
      archive_cmds_F77=''
 
14227
      hardcode_direct_F77=yes
 
14228
      hardcode_libdir_separator_F77=':'
 
14229
      link_all_deplibs_F77=yes
 
14230
 
 
14231
      if test "$GCC" = yes; then
 
14232
        case $host_os in aix4.[012]|aix4.[012].*)
 
14233
        # We only want to do this on AIX 4.2 and lower, the check
 
14234
        # below for broken collect2 doesn't work under 4.3+
 
14235
          collect2name=`${CC} -print-prog-name=collect2`
 
14236
          if test -f "$collect2name" && \
 
14237
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14238
          then
 
14239
          # We have reworked collect2
 
14240
          hardcode_direct_F77=yes
 
14241
          else
 
14242
          # We have old collect2
 
14243
          hardcode_direct_F77=unsupported
 
14244
          # It fails to find uninstalled libraries when the uninstalled
 
14245
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14246
          # to unsupported forces relinking
 
14247
          hardcode_minus_L_F77=yes
 
14248
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14249
          hardcode_libdir_separator_F77=
 
14250
          fi
 
14251
        esac
 
14252
        shared_flag='-shared'
 
14253
        if test "$aix_use_runtimelinking" = yes; then
 
14254
          shared_flag="$shared_flag "'${wl}-G'
 
14255
        fi
 
14256
      else
 
14257
        # not using gcc
 
14258
        if test "$host_cpu" = ia64; then
 
14259
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14260
        # chokes on -Wl,-G. The following line is correct:
 
14261
          shared_flag='-G'
 
14262
        else
 
14263
        if test "$aix_use_runtimelinking" = yes; then
 
14264
            shared_flag='${wl}-G'
 
14265
          else
 
14266
            shared_flag='${wl}-bM:SRE'
 
14267
        fi
 
14268
        fi
 
14269
      fi
 
14270
 
 
14271
      # It seems that -bexpall does not export symbols beginning with
 
14272
      # underscore (_), so it is better to generate a list of symbols to export.
 
14273
      always_export_symbols_F77=yes
 
14274
      if test "$aix_use_runtimelinking" = yes; then
 
14275
        # Warning - without using the other runtime loading flags (-brtl),
 
14276
        # -berok will link without error, but may produce a broken library.
 
14277
        allow_undefined_flag_F77='-berok'
 
14278
       # Determine the default libpath from the value encoded in an empty executable.
 
14279
       cat >conftest.$ac_ext <<_ACEOF
 
14280
      program main
 
14281
 
 
14282
      end
 
14283
_ACEOF
 
14284
rm -f conftest.$ac_objext conftest$ac_exeext
 
14285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14286
  (eval $ac_link) 2>conftest.er1
 
14287
  ac_status=$?
 
14288
  grep -v '^ *+' conftest.er1 >conftest.err
 
14289
  rm -f conftest.er1
 
14290
  cat conftest.err >&5
 
14291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14292
  (exit $ac_status); } &&
 
14293
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14295
  (eval $ac_try) 2>&5
 
14296
  ac_status=$?
 
14297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14298
  (exit $ac_status); }; } &&
 
14299
         { ac_try='test -s conftest$ac_exeext'
 
14300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14301
  (eval $ac_try) 2>&5
 
14302
  ac_status=$?
 
14303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14304
  (exit $ac_status); }; }; then
 
14305
  
 
14306
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14307
}'`
 
14308
# Check for a 64-bit object if we didn't find anything.
 
14309
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; }
 
14310
}'`; fi
 
14311
else
 
14312
  echo "$as_me: failed program was:" >&5
 
14313
sed 's/^/| /' conftest.$ac_ext >&5
 
14314
 
 
14315
fi
 
14316
rm -f conftest.err conftest.$ac_objext \
 
14317
      conftest$ac_exeext conftest.$ac_ext
 
14318
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14319
 
 
14320
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14321
        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"
 
14322
       else
 
14323
        if test "$host_cpu" = ia64; then
 
14324
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14325
          allow_undefined_flag_F77="-z nodefs"
 
14326
          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"
 
14327
        else
 
14328
         # Determine the default libpath from the value encoded in an empty executable.
 
14329
         cat >conftest.$ac_ext <<_ACEOF
 
14330
      program main
 
14331
 
 
14332
      end
 
14333
_ACEOF
 
14334
rm -f conftest.$ac_objext conftest$ac_exeext
 
14335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14336
  (eval $ac_link) 2>conftest.er1
 
14337
  ac_status=$?
 
14338
  grep -v '^ *+' conftest.er1 >conftest.err
 
14339
  rm -f conftest.er1
 
14340
  cat conftest.err >&5
 
14341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14342
  (exit $ac_status); } &&
 
14343
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14345
  (eval $ac_try) 2>&5
 
14346
  ac_status=$?
 
14347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14348
  (exit $ac_status); }; } &&
 
14349
         { ac_try='test -s conftest$ac_exeext'
 
14350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14351
  (eval $ac_try) 2>&5
 
14352
  ac_status=$?
 
14353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14354
  (exit $ac_status); }; }; then
 
14355
  
 
14356
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14357
}'`
 
14358
# Check for a 64-bit object if we didn't find anything.
 
14359
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; }
 
14360
}'`; fi
 
14361
else
 
14362
  echo "$as_me: failed program was:" >&5
 
14363
sed 's/^/| /' conftest.$ac_ext >&5
 
14364
 
 
14365
fi
 
14366
rm -f conftest.err conftest.$ac_objext \
 
14367
      conftest$ac_exeext conftest.$ac_ext
 
14368
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14369
 
 
14370
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14371
          # Warning - without using the other run time loading flags,
 
14372
          # -berok will link without error, but may produce a broken library.
 
14373
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14374
          allow_undefined_flag_F77=' ${wl}-berok'
 
14375
          # -bexpall does not export symbols beginning with underscore (_)
 
14376
          always_export_symbols_F77=yes
 
14377
          # Exported symbols can be pulled into shared objects from archives
 
14378
          whole_archive_flag_spec_F77=' '
 
14379
          archive_cmds_need_lc_F77=yes
 
14380
          # This is similar to how AIX traditionally builds its shared libraries.
 
14381
          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'
 
14382
        fi
 
14383
      fi
 
14384
      ;;
 
14385
 
 
14386
    amigaos*)
 
14387
      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)'
 
14388
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14389
      hardcode_minus_L_F77=yes
 
14390
      # see comment about different semantics on the GNU ld section
 
14391
      ld_shlibs_F77=no
 
14392
      ;;
 
14393
 
 
14394
    bsdi[45]*)
 
14395
      export_dynamic_flag_spec_F77=-rdynamic
 
14396
      ;;
 
14397
 
 
14398
    cygwin* | mingw* | pw32*)
 
14399
      # When not using gcc, we currently assume that we are using
 
14400
      # Microsoft Visual C++.
 
14401
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14402
      # no search path for DLLs.
 
14403
      hardcode_libdir_flag_spec_F77=' '
 
14404
      allow_undefined_flag_F77=unsupported
 
14405
      # Tell ltmain to make .lib files, not .a files.
 
14406
      libext=lib
 
14407
      # Tell ltmain to make .dll files, not .so files.
 
14408
      shrext_cmds=".dll"
 
14409
      # FIXME: Setting linknames here is a bad hack.
 
14410
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14411
      # The linker will automatically build a .lib file if we build a DLL.
 
14412
      old_archive_From_new_cmds_F77='true'
 
14413
      # FIXME: Should let the user specify the lib program.
 
14414
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14415
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14416
      enable_shared_with_static_runtimes_F77=yes
 
14417
      ;;
 
14418
 
 
14419
    darwin* | rhapsody*)
 
14420
      case $host_os in
 
14421
        rhapsody* | darwin1.[012])
 
14422
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14423
         ;;
 
14424
       *) # Darwin 1.3 on
 
14425
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14426
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14427
         else
 
14428
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14429
             10.[012])
 
14430
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14431
               ;;
 
14432
             10.*)
 
14433
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14434
               ;;
 
14435
           esac
 
14436
         fi
 
14437
         ;;
 
14438
      esac
 
14439
      archive_cmds_need_lc_F77=no
 
14440
      hardcode_direct_F77=no
 
14441
      hardcode_automatic_F77=yes
 
14442
      hardcode_shlibpath_var_F77=unsupported
 
14443
      whole_archive_flag_spec_F77=''
 
14444
      link_all_deplibs_F77=yes
 
14445
    if test "$GCC" = yes ; then
 
14446
        output_verbose_link_cmd='echo'
 
14447
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14448
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14449
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14450
      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}'
 
14451
      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}'
 
14452
    else
 
14453
      case $cc_basename in
 
14454
        xlc*)
 
14455
         output_verbose_link_cmd='echo'
 
14456
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14457
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14458
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14459
         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}'
 
14460
          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}'
 
14461
          ;;
 
14462
       *)
 
14463
         ld_shlibs_F77=no
 
14464
          ;;
 
14465
      esac
 
14466
    fi
 
14467
      ;;
 
14468
 
 
14469
    dgux*)
 
14470
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14471
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14472
      hardcode_shlibpath_var_F77=no
 
14473
      ;;
 
14474
 
 
14475
    freebsd1*)
 
14476
      ld_shlibs_F77=no
 
14477
      ;;
 
14478
 
 
14479
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14480
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14481
    # does not break anything, and helps significantly (at the cost of a little
 
14482
    # extra space).
 
14483
    freebsd2.2*)
 
14484
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14485
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14486
      hardcode_direct_F77=yes
 
14487
      hardcode_shlibpath_var_F77=no
 
14488
      ;;
 
14489
 
 
14490
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14491
    freebsd2*)
 
14492
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14493
      hardcode_direct_F77=yes
 
14494
      hardcode_minus_L_F77=yes
 
14495
      hardcode_shlibpath_var_F77=no
 
14496
      ;;
 
14497
 
 
14498
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14499
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14500
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14501
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14502
      hardcode_direct_F77=yes
 
14503
      hardcode_shlibpath_var_F77=no
 
14504
      ;;
 
14505
 
 
14506
    hpux9*)
 
14507
      if test "$GCC" = yes; then
 
14508
        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'
 
14509
      else
 
14510
        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'
 
14511
      fi
 
14512
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14513
      hardcode_libdir_separator_F77=:
 
14514
      hardcode_direct_F77=yes
 
14515
 
 
14516
      # hardcode_minus_L: Not really in the search PATH,
 
14517
      # but as the default location of the library.
 
14518
      hardcode_minus_L_F77=yes
 
14519
      export_dynamic_flag_spec_F77='${wl}-E'
 
14520
      ;;
 
14521
 
 
14522
    hpux10* | hpux11*)
 
14523
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14524
        case $host_cpu in
 
14525
        hppa*64*|ia64*)
 
14526
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14527
          ;;
 
14528
        *)
 
14529
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14530
          ;;
 
14531
        esac
 
14532
      else
 
14533
        case $host_cpu in
 
14534
        hppa*64*|ia64*)
 
14535
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14536
          ;;
 
14537
        *)
 
14538
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14539
          ;;
 
14540
        esac
 
14541
      fi
 
14542
      if test "$with_gnu_ld" = no; then
 
14543
        case $host_cpu in
 
14544
        hppa*64*)
 
14545
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14546
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14547
          hardcode_libdir_separator_F77=:
 
14548
          hardcode_direct_F77=no
 
14549
          hardcode_shlibpath_var_F77=no
 
14550
          ;;
 
14551
        ia64*)
 
14552
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14553
          hardcode_direct_F77=no
 
14554
          hardcode_shlibpath_var_F77=no
 
14555
 
 
14556
          # hardcode_minus_L: Not really in the search PATH,
 
14557
          # but as the default location of the library.
 
14558
          hardcode_minus_L_F77=yes
 
14559
          ;;
 
14560
        *)
 
14561
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14562
          hardcode_libdir_separator_F77=:
 
14563
          hardcode_direct_F77=yes
 
14564
          export_dynamic_flag_spec_F77='${wl}-E'
 
14565
 
 
14566
          # hardcode_minus_L: Not really in the search PATH,
 
14567
          # but as the default location of the library.
 
14568
          hardcode_minus_L_F77=yes
 
14569
          ;;
 
14570
        esac
 
14571
      fi
 
14572
      ;;
 
14573
 
 
14574
    irix5* | irix6* | nonstopux*)
 
14575
      if test "$GCC" = yes; then
 
14576
        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'
 
14577
      else
 
14578
        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'
 
14579
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14580
      fi
 
14581
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14582
      hardcode_libdir_separator_F77=:
 
14583
      link_all_deplibs_F77=yes
 
14584
      ;;
 
14585
 
 
14586
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14587
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14588
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14589
      else
 
14590
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14591
      fi
 
14592
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14593
      hardcode_direct_F77=yes
 
14594
      hardcode_shlibpath_var_F77=no
 
14595
      ;;
 
14596
 
 
14597
    newsos6)
 
14598
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14599
      hardcode_direct_F77=yes
 
14600
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14601
      hardcode_libdir_separator_F77=:
 
14602
      hardcode_shlibpath_var_F77=no
 
14603
      ;;
 
14604
 
 
14605
    openbsd*)
 
14606
      hardcode_direct_F77=yes
 
14607
      hardcode_shlibpath_var_F77=no
 
14608
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14609
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14610
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14611
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14612
        export_dynamic_flag_spec_F77='${wl}-E'
 
14613
      else
 
14614
       case $host_os in
 
14615
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14616
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14617
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14618
           ;;
 
14619
         *)
 
14620
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14621
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14622
           ;;
 
14623
       esac
 
14624
      fi
 
14625
      ;;
 
14626
 
 
14627
    os2*)
 
14628
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14629
      hardcode_minus_L_F77=yes
 
14630
      allow_undefined_flag_F77=unsupported
 
14631
      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'
 
14632
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14633
      ;;
 
14634
 
 
14635
    osf3*)
 
14636
      if test "$GCC" = yes; then
 
14637
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14638
        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'
 
14639
      else
 
14640
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14641
        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'
 
14642
      fi
 
14643
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14644
      hardcode_libdir_separator_F77=:
 
14645
      ;;
 
14646
 
 
14647
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14648
      if test "$GCC" = yes; then
 
14649
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14650
        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'
 
14651
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14652
      else
 
14653
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14654
        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'
 
14655
        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~
 
14656
        $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'
 
14657
 
 
14658
        # Both c and cxx compiler support -rpath directly
 
14659
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14660
      fi
 
14661
      hardcode_libdir_separator_F77=:
 
14662
      ;;
 
14663
 
 
14664
    sco3.2v5*)
 
14665
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14666
      hardcode_shlibpath_var_F77=no
 
14667
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14668
      runpath_var=LD_RUN_PATH
 
14669
      hardcode_runpath_var=yes
 
14670
      ;;
 
14671
 
 
14672
    solaris*)
 
14673
      no_undefined_flag_F77=' -z text'
 
14674
      if test "$GCC" = yes; then
 
14675
        wlarc='${wl}'
 
14676
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14677
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14678
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14679
      else
 
14680
        wlarc=''
 
14681
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14682
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14683
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14684
      fi
 
14685
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14686
      hardcode_shlibpath_var_F77=no
 
14687
      case $host_os in
 
14688
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14689
      *)
 
14690
        # The compiler driver will combine linker options so we
 
14691
        # cannot just pass the convience library names through
 
14692
        # without $wl, iff we do not link with $LD.
 
14693
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14694
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14695
        case $wlarc in
 
14696
        '')
 
14697
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14698
        *)
 
14699
          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' ;;
 
14700
        esac ;;
 
14701
      esac
 
14702
      link_all_deplibs_F77=yes
 
14703
      ;;
 
14704
 
 
14705
    sunos4*)
 
14706
      if test "x$host_vendor" = xsequent; then
 
14707
        # Use $CC to link under sequent, because it throws in some extra .o
 
14708
        # files that make .init and .fini sections work.
 
14709
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14710
      else
 
14711
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14712
      fi
 
14713
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14714
      hardcode_direct_F77=yes
 
14715
      hardcode_minus_L_F77=yes
 
14716
      hardcode_shlibpath_var_F77=no
 
14717
      ;;
 
14718
 
 
14719
    sysv4)
 
14720
      case $host_vendor in
 
14721
        sni)
 
14722
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14723
          hardcode_direct_F77=yes # is this really true???
 
14724
        ;;
 
14725
        siemens)
 
14726
          ## LD is ld it makes a PLAMLIB
 
14727
          ## CC just makes a GrossModule.
 
14728
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14729
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14730
          hardcode_direct_F77=no
 
14731
        ;;
 
14732
        motorola)
 
14733
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14734
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14735
        ;;
 
14736
      esac
 
14737
      runpath_var='LD_RUN_PATH'
 
14738
      hardcode_shlibpath_var_F77=no
 
14739
      ;;
 
14740
 
 
14741
    sysv4.3*)
 
14742
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14743
      hardcode_shlibpath_var_F77=no
 
14744
      export_dynamic_flag_spec_F77='-Bexport'
 
14745
      ;;
 
14746
 
 
14747
    sysv4*MP*)
 
14748
      if test -d /usr/nec; then
 
14749
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14750
        hardcode_shlibpath_var_F77=no
 
14751
        runpath_var=LD_RUN_PATH
 
14752
        hardcode_runpath_var=yes
 
14753
        ld_shlibs_F77=yes
 
14754
      fi
 
14755
      ;;
 
14756
 
 
14757
    sysv4.2uw2*)
 
14758
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14759
      hardcode_direct_F77=yes
 
14760
      hardcode_minus_L_F77=no
 
14761
      hardcode_shlibpath_var_F77=no
 
14762
      hardcode_runpath_var=yes
 
14763
      runpath_var=LD_RUN_PATH
 
14764
      ;;
 
14765
 
 
14766
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14767
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14768
      if test "$GCC" = yes; then
 
14769
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14770
      else
 
14771
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14772
      fi
 
14773
      runpath_var='LD_RUN_PATH'
 
14774
      hardcode_shlibpath_var_F77=no
 
14775
      ;;
 
14776
 
 
14777
    sysv5*)
 
14778
      no_undefined_flag_F77=' -z text'
 
14779
      # $CC -shared without GNU ld will not create a library from C++
 
14780
      # object files and a static libstdc++, better avoid it by now
 
14781
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14782
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14783
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14784
      hardcode_libdir_flag_spec_F77=
 
14785
      hardcode_shlibpath_var_F77=no
 
14786
      runpath_var='LD_RUN_PATH'
 
14787
      ;;
 
14788
 
 
14789
    uts4*)
 
14790
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14791
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14792
      hardcode_shlibpath_var_F77=no
 
14793
      ;;
 
14794
 
 
14795
    *)
 
14796
      ld_shlibs_F77=no
 
14797
      ;;
 
14798
    esac
 
14799
  fi
 
14800
 
 
14801
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14802
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14803
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14804
 
 
14805
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14806
if test "$GCC" = yes; then
 
14807
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14808
fi
 
14809
 
 
14810
#
 
14811
# Do we need to explicitly link libc?
 
14812
#
 
14813
case "x$archive_cmds_need_lc_F77" in
 
14814
x|xyes)
 
14815
  # Assume -lc should be added
 
14816
  archive_cmds_need_lc_F77=yes
 
14817
 
 
14818
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14819
    case $archive_cmds_F77 in
 
14820
    *'~'*)
 
14821
      # FIXME: we may have to deal with multi-command sequences.
 
14822
      ;;
 
14823
    '$CC '*)
 
14824
      # Test whether the compiler implicitly links with -lc since on some
 
14825
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14826
      # to ld, don't add -lc before -lgcc.
 
14827
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14828
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14829
      $rm conftest*
 
14830
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14831
 
 
14832
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14833
  (eval $ac_compile) 2>&5
 
14834
  ac_status=$?
 
14835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14836
  (exit $ac_status); } 2>conftest.err; then
 
14837
        soname=conftest
 
14838
        lib=conftest
 
14839
        libobjs=conftest.$ac_objext
 
14840
        deplibs=
 
14841
        wl=$lt_prog_compiler_wl_F77
 
14842
        compiler_flags=-v
 
14843
        linker_flags=-v
 
14844
        verstring=
 
14845
        output_objdir=.
 
14846
        libname=conftest
 
14847
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14848
        allow_undefined_flag_F77=
 
14849
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14850
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14851
  ac_status=$?
 
14852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14853
  (exit $ac_status); }
 
14854
        then
 
14855
          archive_cmds_need_lc_F77=no
 
14856
        else
 
14857
          archive_cmds_need_lc_F77=yes
 
14858
        fi
 
14859
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14860
      else
 
14861
        cat conftest.err 1>&5
 
14862
      fi
 
14863
      $rm conftest*
 
14864
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14865
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14866
      ;;
 
14867
    esac
 
14868
  fi
 
14869
  ;;
 
14870
esac
 
14871
 
 
14872
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14873
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14874
library_names_spec=
 
14875
libname_spec='lib$name'
 
14876
soname_spec=
 
14877
shrext_cmds=".so"
 
14878
postinstall_cmds=
 
14879
postuninstall_cmds=
 
14880
finish_cmds=
 
14881
finish_eval=
 
14882
shlibpath_var=
 
14883
shlibpath_overrides_runpath=unknown
 
14884
version_type=none
 
14885
dynamic_linker="$host_os ld.so"
 
14886
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14887
if test "$GCC" = yes; then
 
14888
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14889
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14890
    # if the path contains ";" then we assume it to be the separator
 
14891
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14892
    # assumed that no part of a normal pathname contains ";" but that should
 
14893
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14894
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14895
  else
 
14896
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14897
  fi
 
14898
else
 
14899
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14900
fi
 
14901
need_lib_prefix=unknown
 
14902
hardcode_into_libs=no
 
14903
 
 
14904
# when you set need_version to no, make sure it does not cause -set_version
 
14905
# flags to be left without arguments
 
14906
need_version=unknown
 
14907
 
 
14908
case $host_os in
 
14909
aix3*)
 
14910
  version_type=linux
 
14911
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14912
  shlibpath_var=LIBPATH
 
14913
 
 
14914
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14915
  soname_spec='${libname}${release}${shared_ext}$major'
 
14916
  ;;
 
14917
 
 
14918
aix4* | aix5*)
 
14919
  version_type=linux
 
14920
  need_lib_prefix=no
 
14921
  need_version=no
 
14922
  hardcode_into_libs=yes
 
14923
  if test "$host_cpu" = ia64; then
 
14924
    # AIX 5 supports IA64
 
14925
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14926
    shlibpath_var=LD_LIBRARY_PATH
 
14927
  else
 
14928
    # With GCC up to 2.95.x, collect2 would create an import file
 
14929
    # for dependence libraries.  The import file would start with
 
14930
    # the line `#! .'.  This would cause the generated library to
 
14931
    # depend on `.', always an invalid library.  This was fixed in
 
14932
    # development snapshots of GCC prior to 3.0.
 
14933
    case $host_os in
 
14934
      aix4 | aix4.[01] | aix4.[01].*)
 
14935
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14936
           echo ' yes '
 
14937
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14938
        :
 
14939
      else
 
14940
        can_build_shared=no
 
14941
      fi
 
14942
      ;;
 
14943
    esac
 
14944
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14945
    # soname into executable. Probably we can add versioning support to
 
14946
    # collect2, so additional links can be useful in future.
 
14947
    if test "$aix_use_runtimelinking" = yes; then
 
14948
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14949
      # instead of lib<name>.a to let people know that these are not
 
14950
      # typical AIX shared libraries.
 
14951
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14952
    else
 
14953
      # We preserve .a as extension for shared libraries through AIX4.2
 
14954
      # and later when we are not doing run time linking.
 
14955
      library_names_spec='${libname}${release}.a $libname.a'
 
14956
      soname_spec='${libname}${release}${shared_ext}$major'
 
14957
    fi
 
14958
    shlibpath_var=LIBPATH
 
14959
  fi
 
14960
  ;;
 
14961
 
 
14962
amigaos*)
 
14963
  library_names_spec='$libname.ixlibrary $libname.a'
 
14964
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14965
  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'
 
14966
  ;;
 
14967
 
 
14968
beos*)
 
14969
  library_names_spec='${libname}${shared_ext}'
 
14970
  dynamic_linker="$host_os ld.so"
 
14971
  shlibpath_var=LIBRARY_PATH
 
14972
  ;;
 
14973
 
 
14974
bsdi[45]*)
 
14975
  version_type=linux
 
14976
  need_version=no
 
14977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14978
  soname_spec='${libname}${release}${shared_ext}$major'
 
14979
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14980
  shlibpath_var=LD_LIBRARY_PATH
 
14981
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14982
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14983
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14984
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14985
  # libtool to hard-code these into programs
 
14986
  ;;
 
14987
 
 
14988
cygwin* | mingw* | pw32*)
 
14989
  version_type=windows
 
14990
  shrext_cmds=".dll"
 
14991
  need_version=no
 
14992
  need_lib_prefix=no
 
14993
 
 
14994
  case $GCC,$host_os in
 
14995
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14996
    library_names_spec='$libname.dll.a'
 
14997
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14998
    postinstall_cmds='base_file=`basename \${file}`~
 
14999
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15000
      dldir=$destdir/`dirname \$dlpath`~
 
15001
      test -d \$dldir || mkdir -p \$dldir~
 
15002
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15003
      chmod a+x \$dldir/$dlname'
 
15004
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15005
      dlpath=$dir/\$dldll~
 
15006
       $rm \$dlpath'
 
15007
    shlibpath_overrides_runpath=yes
 
15008
 
 
15009
    case $host_os in
 
15010
    cygwin*)
 
15011
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15012
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15013
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15014
      ;;
 
15015
    mingw*)
 
15016
      # MinGW DLLs use traditional 'lib' prefix
 
15017
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15018
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15019
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15020
        # It is most probably a Windows format PATH printed by
 
15021
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15022
        # path with ; separators, and with drive letters. We can handle the
 
15023
        # drive letters (cygwin fileutils understands them), so leave them,
 
15024
        # especially as we might pass files found there to a mingw objdump,
 
15025
        # which wouldn't understand a cygwinified path. Ahh.
 
15026
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15027
      else
 
15028
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15029
      fi
 
15030
      ;;
 
15031
    pw32*)
 
15032
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15033
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15034
      ;;
 
15035
    esac
 
15036
    ;;
 
15037
 
 
15038
  *)
 
15039
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15040
    ;;
 
15041
  esac
 
15042
  dynamic_linker='Win32 ld.exe'
 
15043
  # FIXME: first we should search . and the directory the executable is in
 
15044
  shlibpath_var=PATH
 
15045
  ;;
 
15046
 
 
15047
darwin* | rhapsody*)
 
15048
  dynamic_linker="$host_os dyld"
 
15049
  version_type=darwin
 
15050
  need_lib_prefix=no
 
15051
  need_version=no
 
15052
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15053
  soname_spec='${libname}${release}${major}$shared_ext'
 
15054
  shlibpath_overrides_runpath=yes
 
15055
  shlibpath_var=DYLD_LIBRARY_PATH
 
15056
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15057
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15058
  if test "$GCC" = yes; then
 
15059
    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"`
 
15060
  else
 
15061
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15062
  fi
 
15063
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15064
  ;;
 
15065
 
 
15066
dgux*)
 
15067
  version_type=linux
 
15068
  need_lib_prefix=no
 
15069
  need_version=no
 
15070
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15071
  soname_spec='${libname}${release}${shared_ext}$major'
 
15072
  shlibpath_var=LD_LIBRARY_PATH
 
15073
  ;;
 
15074
 
 
15075
freebsd1*)
 
15076
  dynamic_linker=no
 
15077
  ;;
 
15078
 
 
15079
kfreebsd*-gnu)
 
15080
  version_type=linux
 
15081
  need_lib_prefix=no
 
15082
  need_version=no
 
15083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15084
  soname_spec='${libname}${release}${shared_ext}$major'
 
15085
  shlibpath_var=LD_LIBRARY_PATH
 
15086
  shlibpath_overrides_runpath=no
 
15087
  hardcode_into_libs=yes
 
15088
  dynamic_linker='GNU ld.so'
 
15089
  ;;
 
15090
 
 
15091
freebsd* | dragonfly*)
 
15092
  # DragonFly does not have aout.  When/if they implement a new
 
15093
  # versioning mechanism, adjust this.
 
15094
  if test -x /usr/bin/objformat; then
 
15095
    objformat=`/usr/bin/objformat`
 
15096
  else
 
15097
    case $host_os in
 
15098
    freebsd[123]*) objformat=aout ;;
 
15099
    *) objformat=elf ;;
 
15100
    esac
 
15101
  fi
 
15102
  version_type=freebsd-$objformat
 
15103
  case $version_type in
 
15104
    freebsd-elf*)
 
15105
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15106
      need_version=no
 
15107
      need_lib_prefix=no
 
15108
      ;;
 
15109
    freebsd-*)
 
15110
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15111
      need_version=yes
 
15112
      ;;
 
15113
  esac
 
15114
  shlibpath_var=LD_LIBRARY_PATH
 
15115
  case $host_os in
 
15116
  freebsd2*)
 
15117
    shlibpath_overrides_runpath=yes
 
15118
    ;;
 
15119
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15120
    shlibpath_overrides_runpath=yes
 
15121
    hardcode_into_libs=yes
 
15122
    ;;
 
15123
  *) # from 3.2 on
 
15124
    shlibpath_overrides_runpath=no
 
15125
    hardcode_into_libs=yes
 
15126
    ;;
 
15127
  esac
 
15128
  ;;
 
15129
 
 
15130
gnu*)
 
15131
  version_type=linux
 
15132
  need_lib_prefix=no
 
15133
  need_version=no
 
15134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15135
  soname_spec='${libname}${release}${shared_ext}$major'
 
15136
  shlibpath_var=LD_LIBRARY_PATH
 
15137
  hardcode_into_libs=yes
 
15138
  ;;
 
15139
 
 
15140
hpux9* | hpux10* | hpux11*)
 
15141
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15142
  # link against other versions.
 
15143
  version_type=sunos
 
15144
  need_lib_prefix=no
 
15145
  need_version=no
 
15146
  case $host_cpu in
 
15147
  ia64*)
 
15148
    shrext_cmds='.so'
 
15149
    hardcode_into_libs=yes
 
15150
    dynamic_linker="$host_os dld.so"
 
15151
    shlibpath_var=LD_LIBRARY_PATH
 
15152
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15153
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15154
    soname_spec='${libname}${release}${shared_ext}$major'
 
15155
    if test "X$HPUX_IA64_MODE" = X32; then
 
15156
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15157
    else
 
15158
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15159
    fi
 
15160
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15161
    ;;
 
15162
   hppa*64*)
 
15163
     shrext_cmds='.sl'
 
15164
     hardcode_into_libs=yes
 
15165
     dynamic_linker="$host_os dld.sl"
 
15166
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15167
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15168
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15169
     soname_spec='${libname}${release}${shared_ext}$major'
 
15170
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15171
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15172
     ;;
 
15173
   *)
 
15174
    shrext_cmds='.sl'
 
15175
    dynamic_linker="$host_os dld.sl"
 
15176
    shlibpath_var=SHLIB_PATH
 
15177
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15178
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15179
    soname_spec='${libname}${release}${shared_ext}$major'
 
15180
    ;;
 
15181
  esac
 
15182
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15183
  postinstall_cmds='chmod 555 $lib'
 
15184
  ;;
 
15185
 
 
15186
irix5* | irix6* | nonstopux*)
 
15187
  case $host_os in
 
15188
    nonstopux*) version_type=nonstopux ;;
 
15189
    *)
 
15190
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15191
                version_type=linux
 
15192
        else
 
15193
                version_type=irix
 
15194
        fi ;;
 
15195
  esac
 
15196
  need_lib_prefix=no
 
15197
  need_version=no
 
15198
  soname_spec='${libname}${release}${shared_ext}$major'
 
15199
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15200
  case $host_os in
 
15201
  irix5* | nonstopux*)
 
15202
    libsuff= shlibsuff=
 
15203
    ;;
 
15204
  *)
 
15205
    case $LD in # libtool.m4 will add one of these switches to LD
 
15206
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15207
      libsuff= shlibsuff= libmagic=32-bit;;
 
15208
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15209
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15210
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15211
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15212
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15213
    esac
 
15214
    ;;
 
15215
  esac
 
15216
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15217
  shlibpath_overrides_runpath=no
 
15218
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15219
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15220
  hardcode_into_libs=yes
 
15221
  ;;
 
15222
 
 
15223
# No shared lib support for Linux oldld, aout, or coff.
 
15224
linux*oldld* | linux*aout* | linux*coff*)
 
15225
  dynamic_linker=no
 
15226
  ;;
 
15227
 
 
15228
# This must be Linux ELF.
 
15229
linux*)
 
15230
  version_type=linux
 
15231
  need_lib_prefix=no
 
15232
  need_version=no
 
15233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15234
  soname_spec='${libname}${release}${shared_ext}$major'
 
15235
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15236
  shlibpath_var=LD_LIBRARY_PATH
 
15237
  shlibpath_overrides_runpath=no
 
15238
  # This implies no fast_install, which is unacceptable.
 
15239
  # Some rework will be needed to allow for fast_install
 
15240
  # before this can be enabled.
 
15241
  hardcode_into_libs=yes
 
15242
 
 
15243
  # Append ld.so.conf contents to the search path
 
15244
  if test -f /etc/ld.so.conf; then
 
15245
    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' ' '`
 
15246
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15247
  fi
 
15248
 
 
15249
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15250
  # powerpc, because MkLinux only supported shared libraries with the
 
15251
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15252
  # most powerpc-linux boxes support dynamic linking these days and
 
15253
  # people can always --disable-shared, the test was removed, and we
 
15254
  # assume the GNU/Linux dynamic linker is in use.
 
15255
  dynamic_linker='GNU/Linux ld.so'
 
15256
  ;;
 
15257
 
 
15258
netbsdelf*-gnu)
 
15259
  version_type=linux
 
15260
  need_lib_prefix=no
 
15261
  need_version=no
 
15262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15263
  soname_spec='${libname}${release}${shared_ext}$major'
 
15264
  shlibpath_var=LD_LIBRARY_PATH
 
15265
  shlibpath_overrides_runpath=no
 
15266
  hardcode_into_libs=yes
 
15267
  dynamic_linker='NetBSD ld.elf_so'
 
15268
  ;;
 
15269
 
 
15270
knetbsd*-gnu)
 
15271
  version_type=linux
 
15272
  need_lib_prefix=no
 
15273
  need_version=no
 
15274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15275
  soname_spec='${libname}${release}${shared_ext}$major'
 
15276
  shlibpath_var=LD_LIBRARY_PATH
 
15277
  shlibpath_overrides_runpath=no
 
15278
  hardcode_into_libs=yes
 
15279
  dynamic_linker='GNU ld.so'
 
15280
  ;;
 
15281
 
 
15282
netbsd*)
 
15283
  version_type=sunos
 
15284
  need_lib_prefix=no
 
15285
  need_version=no
 
15286
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15287
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15288
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15289
    dynamic_linker='NetBSD (a.out) ld.so'
 
15290
  else
 
15291
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15292
    soname_spec='${libname}${release}${shared_ext}$major'
 
15293
    dynamic_linker='NetBSD ld.elf_so'
 
15294
  fi
 
15295
  shlibpath_var=LD_LIBRARY_PATH
 
15296
  shlibpath_overrides_runpath=yes
 
15297
  hardcode_into_libs=yes
 
15298
  ;;
 
15299
 
 
15300
newsos6)
 
15301
  version_type=linux
 
15302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15303
  shlibpath_var=LD_LIBRARY_PATH
 
15304
  shlibpath_overrides_runpath=yes
 
15305
  ;;
 
15306
 
 
15307
nto-qnx*)
 
15308
  version_type=linux
 
15309
  need_lib_prefix=no
 
15310
  need_version=no
 
15311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15312
  soname_spec='${libname}${release}${shared_ext}$major'
 
15313
  shlibpath_var=LD_LIBRARY_PATH
 
15314
  shlibpath_overrides_runpath=yes
 
15315
  ;;
 
15316
 
 
15317
openbsd*)
 
15318
  version_type=sunos
 
15319
  need_lib_prefix=no
 
15320
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15321
  case $host_os in
 
15322
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15323
    *)                         need_version=no  ;;
 
15324
  esac
 
15325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15326
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15327
  shlibpath_var=LD_LIBRARY_PATH
 
15328
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15329
    case $host_os in
 
15330
      openbsd2.[89] | openbsd2.[89].*)
 
15331
        shlibpath_overrides_runpath=no
 
15332
        ;;
 
15333
      *)
 
15334
        shlibpath_overrides_runpath=yes
 
15335
        ;;
 
15336
      esac
 
15337
  else
 
15338
    shlibpath_overrides_runpath=yes
 
15339
  fi
 
15340
  ;;
 
15341
 
 
15342
os2*)
 
15343
  libname_spec='$name'
 
15344
  shrext_cmds=".dll"
 
15345
  need_lib_prefix=no
 
15346
  library_names_spec='$libname${shared_ext} $libname.a'
 
15347
  dynamic_linker='OS/2 ld.exe'
 
15348
  shlibpath_var=LIBPATH
 
15349
  ;;
 
15350
 
 
15351
osf3* | osf4* | osf5*)
 
15352
  version_type=osf
 
15353
  need_lib_prefix=no
 
15354
  need_version=no
 
15355
  soname_spec='${libname}${release}${shared_ext}$major'
 
15356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15357
  shlibpath_var=LD_LIBRARY_PATH
 
15358
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15359
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15360
  ;;
 
15361
 
 
15362
sco3.2v5*)
 
15363
  version_type=osf
 
15364
  soname_spec='${libname}${release}${shared_ext}$major'
 
15365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15366
  shlibpath_var=LD_LIBRARY_PATH
 
15367
  ;;
 
15368
 
 
15369
solaris*)
 
15370
  version_type=linux
 
15371
  need_lib_prefix=no
 
15372
  need_version=no
 
15373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15374
  soname_spec='${libname}${release}${shared_ext}$major'
 
15375
  shlibpath_var=LD_LIBRARY_PATH
 
15376
  shlibpath_overrides_runpath=yes
 
15377
  hardcode_into_libs=yes
 
15378
  # ldd complains unless libraries are executable
 
15379
  postinstall_cmds='chmod +x $lib'
 
15380
  ;;
 
15381
 
 
15382
sunos4*)
 
15383
  version_type=sunos
 
15384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15385
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15386
  shlibpath_var=LD_LIBRARY_PATH
 
15387
  shlibpath_overrides_runpath=yes
 
15388
  if test "$with_gnu_ld" = yes; then
 
15389
    need_lib_prefix=no
 
15390
  fi
 
15391
  need_version=yes
 
15392
  ;;
 
15393
 
 
15394
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15395
  version_type=linux
 
15396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15397
  soname_spec='${libname}${release}${shared_ext}$major'
 
15398
  shlibpath_var=LD_LIBRARY_PATH
 
15399
  case $host_vendor in
 
15400
    sni)
 
15401
      shlibpath_overrides_runpath=no
 
15402
      need_lib_prefix=no
 
15403
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15404
      runpath_var=LD_RUN_PATH
 
15405
      ;;
 
15406
    siemens)
 
15407
      need_lib_prefix=no
 
15408
      ;;
 
15409
    motorola)
 
15410
      need_lib_prefix=no
 
15411
      need_version=no
 
15412
      shlibpath_overrides_runpath=no
 
15413
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15414
      ;;
 
15415
  esac
 
15416
  ;;
 
15417
 
 
15418
sysv4*MP*)
 
15419
  if test -d /usr/nec ;then
 
15420
    version_type=linux
 
15421
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15422
    soname_spec='$libname${shared_ext}.$major'
 
15423
    shlibpath_var=LD_LIBRARY_PATH
 
15424
  fi
 
15425
  ;;
 
15426
 
 
15427
uts4*)
 
15428
  version_type=linux
 
15429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15430
  soname_spec='${libname}${release}${shared_ext}$major'
 
15431
  shlibpath_var=LD_LIBRARY_PATH
 
15432
  ;;
 
15433
 
 
15434
*)
 
15435
  dynamic_linker=no
 
15436
  ;;
 
15437
esac
 
15438
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15439
echo "${ECHO_T}$dynamic_linker" >&6
 
15440
test "$dynamic_linker" = no && can_build_shared=no
 
15441
 
 
15442
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15443
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15444
hardcode_action_F77=
 
15445
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15446
   test -n "$runpath_var_F77" || \
 
15447
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15448
 
 
15449
  # We can hardcode non-existant directories.
 
15450
  if test "$hardcode_direct_F77" != no &&
 
15451
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15452
     # have to relink, otherwise we might link with an installed library
 
15453
     # when we should be linking with a yet-to-be-installed one
 
15454
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15455
     test "$hardcode_minus_L_F77" != no; then
 
15456
    # Linking always hardcodes the temporary library directory.
 
15457
    hardcode_action_F77=relink
 
15458
  else
 
15459
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15460
    hardcode_action_F77=immediate
 
15461
  fi
 
15462
else
 
15463
  # We cannot hardcode anything, or else we can only hardcode existing
 
15464
  # directories.
 
15465
  hardcode_action_F77=unsupported
 
15466
fi
 
15467
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15468
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15469
 
 
15470
if test "$hardcode_action_F77" = relink; then
 
15471
  # Fast installation is not supported
 
15472
  enable_fast_install=no
 
15473
elif test "$shlibpath_overrides_runpath" = yes ||
 
15474
     test "$enable_shared" = no; then
 
15475
  # Fast installation is not necessary
 
15476
  enable_fast_install=needless
 
15477
fi
 
15478
 
 
15479
striplib=
 
15480
old_striplib=
 
15481
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15482
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15483
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15484
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15485
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15486
  echo "$as_me:$LINENO: result: yes" >&5
 
15487
echo "${ECHO_T}yes" >&6
 
15488
else
 
15489
# FIXME - insert some real tests, host_os isn't really good enough
 
15490
  case $host_os in
 
15491
   darwin*)
 
15492
       if test -n "$STRIP" ; then
 
15493
         striplib="$STRIP -x"
 
15494
         echo "$as_me:$LINENO: result: yes" >&5
 
15495
echo "${ECHO_T}yes" >&6
 
15496
       else
 
15497
  echo "$as_me:$LINENO: result: no" >&5
 
15498
echo "${ECHO_T}no" >&6
 
15499
fi
 
15500
       ;;
 
15501
   *)
 
15502
  echo "$as_me:$LINENO: result: no" >&5
 
15503
echo "${ECHO_T}no" >&6
 
15504
    ;;
 
15505
  esac
 
15506
fi
 
15507
 
 
15508
 
 
15509
 
 
15510
# The else clause should only fire when bootstrapping the
 
15511
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15512
# with your package, and you will get complaints that there are
 
15513
# no rules to generate ltmain.sh.
 
15514
if test -f "$ltmain"; then
 
15515
  # See if we are running on zsh, and set the options which allow our commands through
 
15516
  # without removal of \ escapes.
 
15517
  if test -n "${ZSH_VERSION+set}" ; then
 
15518
    setopt NO_GLOB_SUBST
 
15519
  fi
 
15520
  # Now quote all the things that may contain metacharacters while being
 
15521
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15522
  # variables and quote the copies for generation of the libtool script.
 
15523
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15524
    SED SHELL STRIP \
 
15525
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15526
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15527
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15528
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15529
    lt_cv_sys_global_symbol_to_c_name_address \
 
15530
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15531
    old_postinstall_cmds old_postuninstall_cmds \
 
15532
    compiler_F77 \
 
15533
    CC_F77 \
 
15534
    LD_F77 \
 
15535
    lt_prog_compiler_wl_F77 \
 
15536
    lt_prog_compiler_pic_F77 \
 
15537
    lt_prog_compiler_static_F77 \
 
15538
    lt_prog_compiler_no_builtin_flag_F77 \
 
15539
    export_dynamic_flag_spec_F77 \
 
15540
    thread_safe_flag_spec_F77 \
 
15541
    whole_archive_flag_spec_F77 \
 
15542
    enable_shared_with_static_runtimes_F77 \
 
15543
    old_archive_cmds_F77 \
 
15544
    old_archive_from_new_cmds_F77 \
 
15545
    predep_objects_F77 \
 
15546
    postdep_objects_F77 \
 
15547
    predeps_F77 \
 
15548
    postdeps_F77 \
 
15549
    compiler_lib_search_path_F77 \
 
15550
    archive_cmds_F77 \
 
15551
    archive_expsym_cmds_F77 \
 
15552
    postinstall_cmds_F77 \
 
15553
    postuninstall_cmds_F77 \
 
15554
    old_archive_from_expsyms_cmds_F77 \
 
15555
    allow_undefined_flag_F77 \
 
15556
    no_undefined_flag_F77 \
 
15557
    export_symbols_cmds_F77 \
 
15558
    hardcode_libdir_flag_spec_F77 \
 
15559
    hardcode_libdir_flag_spec_ld_F77 \
 
15560
    hardcode_libdir_separator_F77 \
 
15561
    hardcode_automatic_F77 \
 
15562
    module_cmds_F77 \
 
15563
    module_expsym_cmds_F77 \
 
15564
    lt_cv_prog_compiler_c_o_F77 \
 
15565
    exclude_expsyms_F77 \
 
15566
    include_expsyms_F77; do
 
15567
 
 
15568
    case $var in
 
15569
    old_archive_cmds_F77 | \
 
15570
    old_archive_from_new_cmds_F77 | \
 
15571
    archive_cmds_F77 | \
 
15572
    archive_expsym_cmds_F77 | \
 
15573
    module_cmds_F77 | \
 
15574
    module_expsym_cmds_F77 | \
 
15575
    old_archive_from_expsyms_cmds_F77 | \
 
15576
    export_symbols_cmds_F77 | \
 
15577
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15578
    postinstall_cmds | postuninstall_cmds | \
 
15579
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15580
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15581
      # Double-quote double-evaled strings.
 
15582
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15583
      ;;
 
15584
    *)
 
15585
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15586
      ;;
 
15587
    esac
 
15588
  done
 
15589
 
 
15590
  case $lt_echo in
 
15591
  *'\$0 --fallback-echo"')
 
15592
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15593
    ;;
 
15594
  esac
 
15595
 
 
15596
cfgfile="$ofile"
 
15597
 
 
15598
  cat <<__EOF__ >> "$cfgfile"
 
15599
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15600
 
 
15601
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15602
 
 
15603
# Shell to use when invoking shell scripts.
 
15604
SHELL=$lt_SHELL
 
15605
 
 
15606
# Whether or not to build shared libraries.
 
15607
build_libtool_libs=$enable_shared
 
15608
 
 
15609
# Whether or not to build static libraries.
 
15610
build_old_libs=$enable_static
 
15611
 
 
15612
# Whether or not to add -lc for building shared libraries.
 
15613
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15614
 
 
15615
# Whether or not to disallow shared libs when runtime libs are static
 
15616
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15617
 
 
15618
# Whether or not to optimize for fast installation.
 
15619
fast_install=$enable_fast_install
 
15620
 
 
15621
# The host system.
 
15622
host_alias=$host_alias
 
15623
host=$host
 
15624
host_os=$host_os
 
15625
 
 
15626
# The build system.
 
15627
build_alias=$build_alias
 
15628
build=$build
 
15629
build_os=$build_os
 
15630
 
 
15631
# An echo program that does not interpret backslashes.
 
15632
echo=$lt_echo
 
15633
 
 
15634
# The archiver.
 
15635
AR=$lt_AR
 
15636
AR_FLAGS=$lt_AR_FLAGS
 
15637
 
 
15638
# A C compiler.
 
15639
LTCC=$lt_LTCC
 
15640
 
 
15641
# A language-specific compiler.
 
15642
CC=$lt_compiler_F77
 
15643
 
 
15644
# Is the compiler the GNU C compiler?
 
15645
with_gcc=$GCC_F77
 
15646
 
 
15647
# An ERE matcher.
 
15648
EGREP=$lt_EGREP
 
15649
 
 
15650
# The linker used to build libraries.
 
15651
LD=$lt_LD_F77
 
15652
 
 
15653
# Whether we need hard or soft links.
 
15654
LN_S=$lt_LN_S
 
15655
 
 
15656
# A BSD-compatible nm program.
 
15657
NM=$lt_NM
 
15658
 
 
15659
# A symbol stripping program
 
15660
STRIP=$lt_STRIP
 
15661
 
 
15662
# Used to examine libraries when file_magic_cmd begins "file"
 
15663
MAGIC_CMD=$MAGIC_CMD
 
15664
 
 
15665
# Used on cygwin: DLL creation program.
 
15666
DLLTOOL="$DLLTOOL"
 
15667
 
 
15668
# Used on cygwin: object dumper.
 
15669
OBJDUMP="$OBJDUMP"
 
15670
 
 
15671
# Used on cygwin: assembler.
 
15672
AS="$AS"
 
15673
 
 
15674
# The name of the directory that contains temporary libtool files.
 
15675
objdir=$objdir
 
15676
 
 
15677
# How to create reloadable object files.
 
15678
reload_flag=$lt_reload_flag
 
15679
reload_cmds=$lt_reload_cmds
 
15680
 
 
15681
# How to pass a linker flag through the compiler.
 
15682
wl=$lt_lt_prog_compiler_wl_F77
 
15683
 
 
15684
# Object file suffix (normally "o").
 
15685
objext="$ac_objext"
 
15686
 
 
15687
# Old archive suffix (normally "a").
 
15688
libext="$libext"
 
15689
 
 
15690
# Shared library suffix (normally ".so").
 
15691
shrext_cmds='$shrext_cmds'
 
15692
 
 
15693
# Executable file suffix (normally "").
 
15694
exeext="$exeext"
 
15695
 
 
15696
# Additional compiler flags for building library objects.
 
15697
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15698
pic_mode=$pic_mode
 
15699
 
 
15700
# What is the maximum length of a command?
 
15701
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15702
 
 
15703
# Does compiler simultaneously support -c and -o options?
 
15704
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15705
 
 
15706
# Must we lock files when doing compilation?
 
15707
need_locks=$lt_need_locks
 
15708
 
 
15709
# Do we need the lib prefix for modules?
 
15710
need_lib_prefix=$need_lib_prefix
 
15711
 
 
15712
# Do we need a version for libraries?
 
15713
need_version=$need_version
 
15714
 
 
15715
# Whether dlopen is supported.
 
15716
dlopen_support=$enable_dlopen
 
15717
 
 
15718
# Whether dlopen of programs is supported.
 
15719
dlopen_self=$enable_dlopen_self
 
15720
 
 
15721
# Whether dlopen of statically linked programs is supported.
 
15722
dlopen_self_static=$enable_dlopen_self_static
 
15723
 
 
15724
# Compiler flag to prevent dynamic linking.
 
15725
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15726
 
 
15727
# Compiler flag to turn off builtin functions.
 
15728
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15729
 
 
15730
# Compiler flag to allow reflexive dlopens.
 
15731
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15732
 
 
15733
# Compiler flag to generate shared objects directly from archives.
 
15734
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15735
 
 
15736
# Compiler flag to generate thread-safe objects.
 
15737
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15738
 
 
15739
# Library versioning type.
 
15740
version_type=$version_type
 
15741
 
 
15742
# Format of library name prefix.
 
15743
libname_spec=$lt_libname_spec
 
15744
 
 
15745
# List of archive names.  First name is the real one, the rest are links.
 
15746
# The last name is the one that the linker finds with -lNAME.
 
15747
library_names_spec=$lt_library_names_spec
 
15748
 
 
15749
# The coded name of the library, if different from the real name.
 
15750
soname_spec=$lt_soname_spec
 
15751
 
 
15752
# Commands used to build and install an old-style archive.
 
15753
RANLIB=$lt_RANLIB
 
15754
old_archive_cmds=$lt_old_archive_cmds_F77
 
15755
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15756
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15757
 
 
15758
# Create an old-style archive from a shared archive.
 
15759
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15760
 
 
15761
# Create a temporary old-style archive to link instead of a shared archive.
 
15762
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15763
 
 
15764
# Commands used to build and install a shared archive.
 
15765
archive_cmds=$lt_archive_cmds_F77
 
15766
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15767
postinstall_cmds=$lt_postinstall_cmds
 
15768
postuninstall_cmds=$lt_postuninstall_cmds
 
15769
 
 
15770
# Commands used to build a loadable module (assumed same as above if empty)
 
15771
module_cmds=$lt_module_cmds_F77
 
15772
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15773
 
 
15774
# Commands to strip libraries.
 
15775
old_striplib=$lt_old_striplib
 
15776
striplib=$lt_striplib
 
15777
 
 
15778
# Dependencies to place before the objects being linked to create a
 
15779
# shared library.
 
15780
predep_objects=$lt_predep_objects_F77
 
15781
 
 
15782
# Dependencies to place after the objects being linked to create a
 
15783
# shared library.
 
15784
postdep_objects=$lt_postdep_objects_F77
 
15785
 
 
15786
# Dependencies to place before the objects being linked to create a
 
15787
# shared library.
 
15788
predeps=$lt_predeps_F77
 
15789
 
 
15790
# Dependencies to place after the objects being linked to create a
 
15791
# shared library.
 
15792
postdeps=$lt_postdeps_F77
 
15793
 
 
15794
# The library search path used internally by the compiler when linking
 
15795
# a shared library.
 
15796
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15797
 
 
15798
# Method to check whether dependent libraries are shared objects.
 
15799
deplibs_check_method=$lt_deplibs_check_method
 
15800
 
 
15801
# Command to use when deplibs_check_method == file_magic.
 
15802
file_magic_cmd=$lt_file_magic_cmd
 
15803
 
 
15804
# Flag that allows shared libraries with undefined symbols to be built.
 
15805
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15806
 
 
15807
# Flag that forces no undefined symbols.
 
15808
no_undefined_flag=$lt_no_undefined_flag_F77
 
15809
 
 
15810
# Commands used to finish a libtool library installation in a directory.
 
15811
finish_cmds=$lt_finish_cmds
 
15812
 
 
15813
# Same as above, but a single script fragment to be evaled but not shown.
 
15814
finish_eval=$lt_finish_eval
 
15815
 
 
15816
# Take the output of nm and produce a listing of raw symbols and C names.
 
15817
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15818
 
 
15819
# Transform the output of nm in a proper C declaration
 
15820
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15821
 
 
15822
# Transform the output of nm in a C name address pair
 
15823
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15824
 
 
15825
# This is the shared library runtime path variable.
 
15826
runpath_var=$runpath_var
 
15827
 
 
15828
# This is the shared library path variable.
 
15829
shlibpath_var=$shlibpath_var
 
15830
 
 
15831
# Is shlibpath searched before the hard-coded library search path?
 
15832
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15833
 
 
15834
# How to hardcode a shared library path into an executable.
 
15835
hardcode_action=$hardcode_action_F77
 
15836
 
 
15837
# Whether we should hardcode library paths into libraries.
 
15838
hardcode_into_libs=$hardcode_into_libs
 
15839
 
 
15840
# Flag to hardcode \$libdir into a binary during linking.
 
15841
# This must work even if \$libdir does not exist.
 
15842
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15843
 
 
15844
# If ld is used when linking, flag to hardcode \$libdir into
 
15845
# a binary during linking. This must work even if \$libdir does
 
15846
# not exist.
 
15847
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15848
 
 
15849
# Whether we need a single -rpath flag with a separated argument.
 
15850
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15851
 
 
15852
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15853
# resulting binary.
 
15854
hardcode_direct=$hardcode_direct_F77
 
15855
 
 
15856
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15857
# resulting binary.
 
15858
hardcode_minus_L=$hardcode_minus_L_F77
 
15859
 
 
15860
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15861
# the resulting binary.
 
15862
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15863
 
 
15864
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15865
# and all subsequent libraries and executables linked against it.
 
15866
hardcode_automatic=$hardcode_automatic_F77
 
15867
 
 
15868
# Variables whose values should be saved in libtool wrapper scripts and
 
15869
# restored at relink time.
 
15870
variables_saved_for_relink="$variables_saved_for_relink"
 
15871
 
 
15872
# Whether libtool must link a program against all its dependency libraries.
 
15873
link_all_deplibs=$link_all_deplibs_F77
 
15874
 
 
15875
# Compile-time system search path for libraries
 
15876
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15877
 
 
15878
# Run-time system search path for libraries
 
15879
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15880
 
 
15881
# Fix the shell variable \$srcfile for the compiler.
 
15882
fix_srcfile_path="$fix_srcfile_path_F77"
 
15883
 
 
15884
# Set to yes if exported symbols are required.
 
15885
always_export_symbols=$always_export_symbols_F77
 
15886
 
 
15887
# The commands to list exported symbols.
 
15888
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15889
 
 
15890
# The commands to extract the exported symbol list from a shared archive.
 
15891
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15892
 
 
15893
# Symbols that should not be listed in the preloaded symbols.
 
15894
exclude_expsyms=$lt_exclude_expsyms_F77
 
15895
 
 
15896
# Symbols that must always be exported.
 
15897
include_expsyms=$lt_include_expsyms_F77
 
15898
 
 
15899
# ### END LIBTOOL TAG CONFIG: $tagname
 
15900
 
 
15901
__EOF__
 
15902
 
 
15903
 
 
15904
else
 
15905
  # If there is no Makefile yet, we rely on a make rule to execute
 
15906
  # `config.status --recheck' to rerun these tests and create the
 
15907
  # libtool script then.
 
15908
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15909
  if test -f "$ltmain_in"; then
 
15910
    test -f Makefile && make "$ltmain"
 
15911
  fi
 
15912
fi
 
15913
 
 
15914
 
 
15915
ac_ext=c
 
15916
ac_cpp='$CPP $CPPFLAGS'
 
15917
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15918
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15919
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15920
 
 
15921
CC="$lt_save_CC"
 
15922
 
 
15923
        else
 
15924
          tagname=""
 
15925
        fi
 
15926
        ;;
 
15927
 
 
15928
      GCJ)
 
15929
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15930
          
 
15931
 
 
15932
 
 
15933
# Source file extension for Java test sources.
 
15934
ac_ext=java
 
15935
 
 
15936
# Object file extension for compiled Java test sources.
 
15937
objext=o
 
15938
objext_GCJ=$objext
 
15939
 
 
15940
# Code to be used in simple compile tests
 
15941
lt_simple_compile_test_code="class foo {}\n"
 
15942
 
 
15943
# Code to be used in simple link tests
 
15944
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15945
 
 
15946
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15947
 
 
15948
# If no C compiler was specified, use CC.
 
15949
LTCC=${LTCC-"$CC"}
 
15950
 
 
15951
# Allow CC to be a program name with arguments.
 
15952
compiler=$CC
 
15953
 
 
15954
 
 
15955
# save warnings/boilerplate of simple test code
 
15956
ac_outfile=conftest.$ac_objext
 
15957
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15958
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15959
_lt_compiler_boilerplate=`cat conftest.err`
 
15960
$rm conftest*
 
15961
 
 
15962
ac_outfile=conftest.$ac_objext
 
15963
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15964
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15965
_lt_linker_boilerplate=`cat conftest.err`
 
15966
$rm conftest*
 
15967
 
 
15968
 
 
15969
# Allow CC to be a program name with arguments.
 
15970
lt_save_CC="$CC"
 
15971
CC=${GCJ-"gcj"}
 
15972
compiler=$CC
 
15973
compiler_GCJ=$CC
 
15974
for cc_temp in $compiler""; do
 
15975
  case $cc_temp in
 
15976
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15977
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15978
    \-*) ;;
 
15979
    *) break;;
 
15980
  esac
 
15981
done
 
15982
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15983
 
 
15984
 
 
15985
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15986
archive_cmds_need_lc_GCJ=no
 
15987
 
 
15988
old_archive_cmds_GCJ=$old_archive_cmds
 
15989
 
 
15990
## CAVEAT EMPTOR:
 
15991
## There is no encapsulation within the following macros, do not change
 
15992
## the running order or otherwise move them around unless you know exactly
 
15993
## what you are doing...
 
15994
 
 
15995
lt_prog_compiler_no_builtin_flag_GCJ=
 
15996
 
 
15997
if test "$GCC" = yes; then
 
15998
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15999
 
 
16000
  
 
16001
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16002
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16003
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16005
else
 
16006
  lt_cv_prog_compiler_rtti_exceptions=no
 
16007
  ac_outfile=conftest.$ac_objext
 
16008
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16009
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16010
   # Insert the option either (1) after the last *FLAGS variable, or
 
16011
   # (2) before a word containing "conftest.", or (3) at the end.
 
16012
   # Note that $ac_compile itself does not contain backslashes and begins
 
16013
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16014
   # The option is referenced via a variable to avoid confusing sed.
 
16015
   lt_compile=`echo "$ac_compile" | $SED \
 
16016
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16017
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16018
   -e 's:$: $lt_compiler_flag:'`
 
16019
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16020
   (eval "$lt_compile" 2>conftest.err)
 
16021
   ac_status=$?
 
16022
   cat conftest.err >&5
 
16023
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16024
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16025
     # The compiler can only warn and ignore the option if not recognized
 
16026
     # So say no if there are warnings other than the usual output.
 
16027
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16028
     $SED '/^$/d' conftest.err >conftest.er2
 
16029
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16030
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16031
     fi
 
16032
   fi
 
16033
   $rm conftest*
 
16034
 
 
16035
fi
 
16036
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16037
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16038
 
 
16039
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16040
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16041
else
 
16042
    :
 
16043
fi
 
16044
 
 
16045
fi
 
16046
 
 
16047
lt_prog_compiler_wl_GCJ=
 
16048
lt_prog_compiler_pic_GCJ=
 
16049
lt_prog_compiler_static_GCJ=
 
16050
 
 
16051
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16052
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16053
 
 
16054
  if test "$GCC" = yes; then
 
16055
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16056
    lt_prog_compiler_static_GCJ='-static'
 
16057
 
 
16058
    case $host_os in
 
16059
      aix*)
 
16060
      # All AIX code is PIC.
 
16061
      if test "$host_cpu" = ia64; then
 
16062
        # AIX 5 now supports IA64 processor
 
16063
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16064
      fi
 
16065
      ;;
 
16066
 
 
16067
    amigaos*)
 
16068
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16069
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16070
      # like `-m68040'.
 
16071
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16072
      ;;
 
16073
 
 
16074
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16075
      # PIC is the default for these OSes.
 
16076
      ;;
 
16077
 
 
16078
    mingw* | pw32* | os2*)
 
16079
      # This hack is so that the source file can tell whether it is being
 
16080
      # built for inclusion in a dll (and should export symbols for example).
 
16081
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16082
      ;;
 
16083
 
 
16084
    darwin* | rhapsody*)
 
16085
      # PIC is the default on this platform
 
16086
      # Common symbols not allowed in MH_DYLIB files
 
16087
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16088
      ;;
 
16089
 
 
16090
    msdosdjgpp*)
 
16091
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16092
      # on systems that don't support them.
 
16093
      lt_prog_compiler_can_build_shared_GCJ=no
 
16094
      enable_shared=no
 
16095
      ;;
 
16096
 
 
16097
    sysv4*MP*)
 
16098
      if test -d /usr/nec; then
 
16099
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16100
      fi
 
16101
      ;;
 
16102
 
 
16103
    hpux*)
 
16104
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16105
      # not for PA HP-UX.
 
16106
      case $host_cpu in
 
16107
      hppa*64*|ia64*)
 
16108
        # +Z the default
 
16109
        ;;
 
16110
      *)
 
16111
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16112
        ;;
 
16113
      esac
 
16114
      ;;
 
16115
 
 
16116
    *)
 
16117
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16118
      ;;
 
16119
    esac
 
16120
  else
 
16121
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16122
    case $host_os in
 
16123
    aix*)
 
16124
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16125
      if test "$host_cpu" = ia64; then
 
16126
        # AIX 5 now supports IA64 processor
 
16127
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16128
      else
 
16129
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16130
      fi
 
16131
      ;;
 
16132
      darwin*)
 
16133
        # PIC is the default on this platform
 
16134
        # Common symbols not allowed in MH_DYLIB files
 
16135
       case $cc_basename in
 
16136
         xlc*)
 
16137
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16138
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16139
         ;;
 
16140
       esac
 
16141
       ;;
 
16142
 
 
16143
    mingw* | pw32* | os2*)
 
16144
      # This hack is so that the source file can tell whether it is being
 
16145
      # built for inclusion in a dll (and should export symbols for example).
 
16146
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16147
      ;;
 
16148
 
 
16149
    hpux9* | hpux10* | hpux11*)
 
16150
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16151
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16152
      # not for PA HP-UX.
 
16153
      case $host_cpu in
 
16154
      hppa*64*|ia64*)
 
16155
        # +Z the default
 
16156
        ;;
 
16157
      *)
 
16158
        lt_prog_compiler_pic_GCJ='+Z'
 
16159
        ;;
 
16160
      esac
 
16161
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16162
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16163
      ;;
 
16164
 
 
16165
    irix5* | irix6* | nonstopux*)
 
16166
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16167
      # PIC (with -KPIC) is the default.
 
16168
      lt_prog_compiler_static_GCJ='-non_shared'
 
16169
      ;;
 
16170
 
 
16171
    newsos6)
 
16172
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16173
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16174
      ;;
 
16175
 
 
16176
    linux*)
 
16177
      case $cc_basename in
 
16178
      icc* | ecc*)
 
16179
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16180
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16181
        lt_prog_compiler_static_GCJ='-static'
 
16182
        ;;
 
16183
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16184
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16185
        # which looks to be a dead project)
 
16186
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16187
        lt_prog_compiler_pic_GCJ='-fpic'
 
16188
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16189
        ;;
 
16190
      ccc*)
 
16191
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16192
        # All Alpha code is PIC.
 
16193
        lt_prog_compiler_static_GCJ='-non_shared'
 
16194
        ;;
 
16195
      esac
 
16196
      ;;
 
16197
 
 
16198
    osf3* | osf4* | osf5*)
 
16199
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16200
      # All OSF/1 code is PIC.
 
16201
      lt_prog_compiler_static_GCJ='-non_shared'
 
16202
      ;;
 
16203
 
 
16204
    sco3.2v5*)
 
16205
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16206
      lt_prog_compiler_static_GCJ='-dn'
 
16207
      ;;
 
16208
 
 
16209
    solaris*)
 
16210
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16211
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16212
      case $cc_basename in
 
16213
      f77* | f90* | f95*)
 
16214
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16215
      *)
 
16216
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16217
      esac
 
16218
      ;;
 
16219
 
 
16220
    sunos4*)
 
16221
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16222
      lt_prog_compiler_pic_GCJ='-PIC'
 
16223
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16224
      ;;
 
16225
 
 
16226
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16227
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16228
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16229
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16230
      ;;
 
16231
 
 
16232
    sysv4*MP*)
 
16233
      if test -d /usr/nec ;then
 
16234
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16235
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16236
      fi
 
16237
      ;;
 
16238
 
 
16239
    unicos*)
 
16240
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16241
      lt_prog_compiler_can_build_shared_GCJ=no
 
16242
      ;;
 
16243
 
 
16244
    uts4*)
 
16245
      lt_prog_compiler_pic_GCJ='-pic'
 
16246
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16247
      ;;
 
16248
 
 
16249
    *)
 
16250
      lt_prog_compiler_can_build_shared_GCJ=no
 
16251
      ;;
 
16252
    esac
 
16253
  fi
 
16254
 
 
16255
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16256
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16257
 
 
16258
#
 
16259
# Check to make sure the PIC flag actually works.
 
16260
#
 
16261
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16262
  
 
16263
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16264
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16265
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16267
else
 
16268
  lt_prog_compiler_pic_works_GCJ=no
 
16269
  ac_outfile=conftest.$ac_objext
 
16270
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16271
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16272
   # Insert the option either (1) after the last *FLAGS variable, or
 
16273
   # (2) before a word containing "conftest.", or (3) at the end.
 
16274
   # Note that $ac_compile itself does not contain backslashes and begins
 
16275
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16276
   # The option is referenced via a variable to avoid confusing sed.
 
16277
   lt_compile=`echo "$ac_compile" | $SED \
 
16278
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16279
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16280
   -e 's:$: $lt_compiler_flag:'`
 
16281
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16282
   (eval "$lt_compile" 2>conftest.err)
 
16283
   ac_status=$?
 
16284
   cat conftest.err >&5
 
16285
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16286
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16287
     # The compiler can only warn and ignore the option if not recognized
 
16288
     # So say no if there are warnings other than the usual output.
 
16289
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16290
     $SED '/^$/d' conftest.err >conftest.er2
 
16291
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16292
       lt_prog_compiler_pic_works_GCJ=yes
 
16293
     fi
 
16294
   fi
 
16295
   $rm conftest*
 
16296
 
 
16297
fi
 
16298
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16299
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16300
 
 
16301
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16302
    case $lt_prog_compiler_pic_GCJ in
 
16303
     "" | " "*) ;;
 
16304
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16305
     esac
 
16306
else
 
16307
    lt_prog_compiler_pic_GCJ=
 
16308
     lt_prog_compiler_can_build_shared_GCJ=no
 
16309
fi
 
16310
 
 
16311
fi
 
16312
case $host_os in
 
16313
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16314
  *djgpp*)
 
16315
    lt_prog_compiler_pic_GCJ=
 
16316
    ;;
 
16317
  *)
 
16318
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16319
    ;;
 
16320
esac
 
16321
 
 
16322
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16323
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16324
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16326
else
 
16327
  lt_cv_prog_compiler_c_o_GCJ=no
 
16328
   $rm -r conftest 2>/dev/null
 
16329
   mkdir conftest
 
16330
   cd conftest
 
16331
   mkdir out
 
16332
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16333
 
 
16334
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16335
   # Insert the option either (1) after the last *FLAGS variable, or
 
16336
   # (2) before a word containing "conftest.", or (3) at the end.
 
16337
   # Note that $ac_compile itself does not contain backslashes and begins
 
16338
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16339
   lt_compile=`echo "$ac_compile" | $SED \
 
16340
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16341
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16342
   -e 's:$: $lt_compiler_flag:'`
 
16343
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16344
   (eval "$lt_compile" 2>out/conftest.err)
 
16345
   ac_status=$?
 
16346
   cat out/conftest.err >&5
 
16347
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16348
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16349
   then
 
16350
     # The compiler can only warn and ignore the option if not recognized
 
16351
     # So say no if there are warnings
 
16352
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
16353
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
16354
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16355
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16356
     fi
 
16357
   fi
 
16358
   chmod u+w . 2>&5
 
16359
   $rm conftest*
 
16360
   # SGI C++ compiler will create directory out/ii_files/ for
 
16361
   # template instantiation
 
16362
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16363
   $rm out/* && rmdir out
 
16364
   cd ..
 
16365
   rmdir conftest
 
16366
   $rm conftest*
 
16367
 
 
16368
fi
 
16369
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16370
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16371
 
 
16372
 
 
16373
hard_links="nottested"
 
16374
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16375
  # do not overwrite the value of need_locks provided by the user
 
16376
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16377
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16378
  hard_links=yes
 
16379
  $rm conftest*
 
16380
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16381
  touch conftest.a
 
16382
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16383
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16384
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16385
echo "${ECHO_T}$hard_links" >&6
 
16386
  if test "$hard_links" = no; then
 
16387
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16388
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16389
    need_locks=warn
 
16390
  fi
 
16391
else
 
16392
  need_locks=no
 
16393
fi
 
16394
 
 
16395
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16396
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16397
 
 
16398
  runpath_var=
 
16399
  allow_undefined_flag_GCJ=
 
16400
  enable_shared_with_static_runtimes_GCJ=no
 
16401
  archive_cmds_GCJ=
 
16402
  archive_expsym_cmds_GCJ=
 
16403
  old_archive_From_new_cmds_GCJ=
 
16404
  old_archive_from_expsyms_cmds_GCJ=
 
16405
  export_dynamic_flag_spec_GCJ=
 
16406
  whole_archive_flag_spec_GCJ=
 
16407
  thread_safe_flag_spec_GCJ=
 
16408
  hardcode_libdir_flag_spec_GCJ=
 
16409
  hardcode_libdir_flag_spec_ld_GCJ=
 
16410
  hardcode_libdir_separator_GCJ=
 
16411
  hardcode_direct_GCJ=no
 
16412
  hardcode_minus_L_GCJ=no
 
16413
  hardcode_shlibpath_var_GCJ=unsupported
 
16414
  link_all_deplibs_GCJ=unknown
 
16415
  hardcode_automatic_GCJ=no
 
16416
  module_cmds_GCJ=
 
16417
  module_expsym_cmds_GCJ=
 
16418
  always_export_symbols_GCJ=no
 
16419
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16420
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16421
  # included in the symbol list
 
16422
  include_expsyms_GCJ=
 
16423
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16424
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16425
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16426
  # as well as any symbol that contains `d'.
 
16427
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16428
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16429
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16430
  # the symbol is explicitly referenced.  Since portable code cannot
 
16431
  # rely on this symbol name, it's probably fine to never include it in
 
16432
  # preloaded symbol tables.
 
16433
  extract_expsyms_cmds=
 
16434
  # Just being paranoid about ensuring that cc_basename is set.
 
16435
  for cc_temp in $compiler""; do
 
16436
  case $cc_temp in
 
16437
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16438
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16439
    \-*) ;;
 
16440
    *) break;;
 
16441
  esac
 
16442
done
 
16443
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16444
 
 
16445
  case $host_os in
 
16446
  cygwin* | mingw* | pw32*)
 
16447
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16448
    # When not using gcc, we currently assume that we are using
 
16449
    # Microsoft Visual C++.
 
16450
    if test "$GCC" != yes; then
 
16451
      with_gnu_ld=no
 
16452
    fi
 
16453
    ;;
 
16454
  openbsd*)
 
16455
    with_gnu_ld=no
 
16456
    ;;
 
16457
  esac
 
16458
 
 
16459
  ld_shlibs_GCJ=yes
 
16460
  if test "$with_gnu_ld" = yes; then
 
16461
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16462
    wlarc='${wl}'
 
16463
 
 
16464
    # Set some defaults for GNU ld with shared library support. These
 
16465
    # are reset later if shared libraries are not supported. Putting them
 
16466
    # here allows them to be overridden if necessary.
 
16467
    runpath_var=LD_RUN_PATH
 
16468
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16469
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16470
    # ancient GNU ld didn't support --whole-archive et. al.
 
16471
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16472
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16473
      else
 
16474
        whole_archive_flag_spec_GCJ=
 
16475
    fi
 
16476
    supports_anon_versioning=no
 
16477
    case `$LD -v 2>/dev/null` in
 
16478
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16479
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16480
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16481
      *\ 2.11.*) ;; # other 2.11 versions
 
16482
      *) supports_anon_versioning=yes ;;
 
16483
    esac
 
16484
 
 
16485
    # See if GNU ld supports shared libraries.
 
16486
    case $host_os in
 
16487
    aix3* | aix4* | aix5*)
 
16488
      # On AIX/PPC, the GNU linker is very broken
 
16489
      if test "$host_cpu" != ia64; then
 
16490
        ld_shlibs_GCJ=no
 
16491
        cat <<EOF 1>&2
 
16492
 
 
16493
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16494
*** to be unable to reliably create shared libraries on AIX.
 
16495
*** Therefore, libtool is disabling shared libraries support.  If you
 
16496
*** really care for shared libraries, you may want to modify your PATH
 
16497
*** so that a non-GNU linker is found, and then restart.
 
16498
 
 
16499
EOF
 
16500
      fi
 
16501
      ;;
 
16502
 
 
16503
    amigaos*)
 
16504
      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)'
 
16505
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16506
      hardcode_minus_L_GCJ=yes
 
16507
 
 
16508
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16509
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16510
      # to version 4, is to share data among multiple programs linked
 
16511
      # with the same dynamic library.  Since this doesn't match the
 
16512
      # behavior of shared libraries on other platforms, we can't use
 
16513
      # them.
 
16514
      ld_shlibs_GCJ=no
 
16515
      ;;
 
16516
 
 
16517
    beos*)
 
16518
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16519
        allow_undefined_flag_GCJ=unsupported
 
16520
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16521
        # support --undefined.  This deserves some investigation.  FIXME
 
16522
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16523
      else
 
16524
        ld_shlibs_GCJ=no
 
16525
      fi
 
16526
      ;;
 
16527
 
 
16528
    cygwin* | mingw* | pw32*)
 
16529
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16530
      # as there is no search path for DLLs.
 
16531
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16532
      allow_undefined_flag_GCJ=unsupported
 
16533
      always_export_symbols_GCJ=no
 
16534
      enable_shared_with_static_runtimes_GCJ=yes
 
16535
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16536
 
 
16537
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16538
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16539
        # If the export-symbols file already is a .def file (1st line
 
16540
        # is EXPORTS), use it as is; otherwise, prepend...
 
16541
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16542
          cp $export_symbols $output_objdir/$soname.def;
 
16543
        else
 
16544
          echo EXPORTS > $output_objdir/$soname.def;
 
16545
          cat $export_symbols >> $output_objdir/$soname.def;
 
16546
        fi~
 
16547
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16548
      else
 
16549
        ld_shlibs_GCJ=no
 
16550
      fi
 
16551
      ;;
 
16552
 
 
16553
    linux*)
 
16554
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16555
        tmp_addflag=
 
16556
        case $cc_basename,$host_cpu in
 
16557
        pgcc*)                          # Portland Group C compiler
 
16558
          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'
 
16559
          tmp_addflag=' $pic_flag'
 
16560
          ;;
 
16561
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16562
          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'
 
16563
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16564
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16565
          tmp_addflag=' -i_dynamic' ;;
 
16566
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16567
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16568
        ifc* | ifort*)                  # Intel Fortran compiler
 
16569
          tmp_addflag=' -nofor_main' ;;
 
16570
        esac
 
16571
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16572
 
 
16573
        if test $supports_anon_versioning = yes; then
 
16574
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16575
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16576
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16577
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16578
        fi
 
16579
        link_all_deplibs_GCJ=no
 
16580
      else
 
16581
        ld_shlibs_GCJ=no
 
16582
      fi
 
16583
      ;;
 
16584
 
 
16585
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16586
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16587
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16588
        wlarc=
 
16589
      else
 
16590
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16591
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16592
      fi
 
16593
      ;;
 
16594
 
 
16595
    solaris* | sysv5*)
 
16596
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16597
        ld_shlibs_GCJ=no
 
16598
        cat <<EOF 1>&2
 
16599
 
 
16600
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16601
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16602
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16603
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16604
*** your PATH or compiler configuration so that the native linker is
 
16605
*** used, and then restart.
 
16606
 
 
16607
EOF
 
16608
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16609
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16610
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16611
      else
 
16612
        ld_shlibs_GCJ=no
 
16613
      fi
 
16614
      ;;
 
16615
 
 
16616
    sunos4*)
 
16617
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16618
      wlarc=
 
16619
      hardcode_direct_GCJ=yes
 
16620
      hardcode_shlibpath_var_GCJ=no
 
16621
      ;;
 
16622
 
 
16623
    *)
 
16624
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16625
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16626
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16627
      else
 
16628
        ld_shlibs_GCJ=no
 
16629
      fi
 
16630
      ;;
 
16631
    esac
 
16632
 
 
16633
    if test "$ld_shlibs_GCJ" = no; then
 
16634
      runpath_var=
 
16635
      hardcode_libdir_flag_spec_GCJ=
 
16636
      export_dynamic_flag_spec_GCJ=
 
16637
      whole_archive_flag_spec_GCJ=
 
16638
    fi
 
16639
  else
 
16640
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16641
    case $host_os in
 
16642
    aix3*)
 
16643
      allow_undefined_flag_GCJ=unsupported
 
16644
      always_export_symbols_GCJ=yes
 
16645
      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'
 
16646
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16647
      # are no directories specified by -L.
 
16648
      hardcode_minus_L_GCJ=yes
 
16649
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16650
        # Neither direct hardcoding nor static linking is supported with a
 
16651
        # broken collect2.
 
16652
        hardcode_direct_GCJ=unsupported
 
16653
      fi
 
16654
      ;;
 
16655
 
 
16656
    aix4* | aix5*)
 
16657
      if test "$host_cpu" = ia64; then
 
16658
        # On IA64, the linker does run time linking by default, so we don't
 
16659
        # have to do anything special.
 
16660
        aix_use_runtimelinking=no
 
16661
        exp_sym_flag='-Bexport'
 
16662
        no_entry_flag=""
 
16663
      else
 
16664
        # If we're using GNU nm, then we don't want the "-C" option.
 
16665
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16666
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16667
          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'
 
16668
        else
 
16669
          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'
 
16670
        fi
 
16671
        aix_use_runtimelinking=no
 
16672
 
 
16673
        # Test if we are trying to use run time linking or normal
 
16674
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16675
        # need to do runtime linking.
 
16676
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16677
          for ld_flag in $LDFLAGS; do
 
16678
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16679
            aix_use_runtimelinking=yes
 
16680
            break
 
16681
          fi
 
16682
          done
 
16683
        esac
 
16684
 
 
16685
        exp_sym_flag='-bexport'
 
16686
        no_entry_flag='-bnoentry'
 
16687
      fi
 
16688
 
 
16689
      # When large executables or shared objects are built, AIX ld can
 
16690
      # have problems creating the table of contents.  If linking a library
 
16691
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16692
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16693
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16694
 
 
16695
      archive_cmds_GCJ=''
 
16696
      hardcode_direct_GCJ=yes
 
16697
      hardcode_libdir_separator_GCJ=':'
 
16698
      link_all_deplibs_GCJ=yes
 
16699
 
 
16700
      if test "$GCC" = yes; then
 
16701
        case $host_os in aix4.[012]|aix4.[012].*)
 
16702
        # We only want to do this on AIX 4.2 and lower, the check
 
16703
        # below for broken collect2 doesn't work under 4.3+
 
16704
          collect2name=`${CC} -print-prog-name=collect2`
 
16705
          if test -f "$collect2name" && \
 
16706
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16707
          then
 
16708
          # We have reworked collect2
 
16709
          hardcode_direct_GCJ=yes
 
16710
          else
 
16711
          # We have old collect2
 
16712
          hardcode_direct_GCJ=unsupported
 
16713
          # It fails to find uninstalled libraries when the uninstalled
 
16714
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16715
          # to unsupported forces relinking
 
16716
          hardcode_minus_L_GCJ=yes
 
16717
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16718
          hardcode_libdir_separator_GCJ=
 
16719
          fi
 
16720
        esac
 
16721
        shared_flag='-shared'
 
16722
        if test "$aix_use_runtimelinking" = yes; then
 
16723
          shared_flag="$shared_flag "'${wl}-G'
 
16724
        fi
 
16725
      else
 
16726
        # not using gcc
 
16727
        if test "$host_cpu" = ia64; then
 
16728
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16729
        # chokes on -Wl,-G. The following line is correct:
 
16730
          shared_flag='-G'
 
16731
        else
 
16732
        if test "$aix_use_runtimelinking" = yes; then
 
16733
            shared_flag='${wl}-G'
 
16734
          else
 
16735
            shared_flag='${wl}-bM:SRE'
 
16736
        fi
 
16737
        fi
 
16738
      fi
 
16739
 
 
16740
      # It seems that -bexpall does not export symbols beginning with
 
16741
      # underscore (_), so it is better to generate a list of symbols to export.
 
16742
      always_export_symbols_GCJ=yes
 
16743
      if test "$aix_use_runtimelinking" = yes; then
 
16744
        # Warning - without using the other runtime loading flags (-brtl),
 
16745
        # -berok will link without error, but may produce a broken library.
 
16746
        allow_undefined_flag_GCJ='-berok'
 
16747
       # Determine the default libpath from the value encoded in an empty executable.
 
16748
       cat >conftest.$ac_ext <<_ACEOF
 
16749
/* confdefs.h.  */
 
16750
_ACEOF
 
16751
cat confdefs.h >>conftest.$ac_ext
 
16752
cat >>conftest.$ac_ext <<_ACEOF
 
16753
/* end confdefs.h.  */
 
16754
 
 
16755
int
 
16756
main ()
 
16757
{
 
16758
 
 
16759
  ;
 
16760
  return 0;
 
16761
}
 
16762
_ACEOF
 
16763
rm -f conftest.$ac_objext conftest$ac_exeext
 
16764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16765
  (eval $ac_link) 2>conftest.er1
 
16766
  ac_status=$?
 
16767
  grep -v '^ *+' conftest.er1 >conftest.err
 
16768
  rm -f conftest.er1
 
16769
  cat conftest.err >&5
 
16770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16771
  (exit $ac_status); } &&
 
16772
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16774
  (eval $ac_try) 2>&5
 
16775
  ac_status=$?
 
16776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16777
  (exit $ac_status); }; } &&
 
16778
         { ac_try='test -s conftest$ac_exeext'
 
16779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16780
  (eval $ac_try) 2>&5
 
16781
  ac_status=$?
 
16782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16783
  (exit $ac_status); }; }; then
 
16784
  
 
16785
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16786
}'`
 
16787
# Check for a 64-bit object if we didn't find anything.
 
16788
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; }
 
16789
}'`; fi
 
16790
else
 
16791
  echo "$as_me: failed program was:" >&5
 
16792
sed 's/^/| /' conftest.$ac_ext >&5
 
16793
 
 
16794
fi
 
16795
rm -f conftest.err conftest.$ac_objext \
 
16796
      conftest$ac_exeext conftest.$ac_ext
 
16797
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16798
 
 
16799
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16800
        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"
 
16801
       else
 
16802
        if test "$host_cpu" = ia64; then
 
16803
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16804
          allow_undefined_flag_GCJ="-z nodefs"
 
16805
          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"
 
16806
        else
 
16807
         # Determine the default libpath from the value encoded in an empty executable.
 
16808
         cat >conftest.$ac_ext <<_ACEOF
 
16809
/* confdefs.h.  */
 
16810
_ACEOF
 
16811
cat confdefs.h >>conftest.$ac_ext
 
16812
cat >>conftest.$ac_ext <<_ACEOF
 
16813
/* end confdefs.h.  */
 
16814
 
 
16815
int
 
16816
main ()
 
16817
{
 
16818
 
 
16819
  ;
 
16820
  return 0;
 
16821
}
 
16822
_ACEOF
 
16823
rm -f conftest.$ac_objext conftest$ac_exeext
 
16824
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16825
  (eval $ac_link) 2>conftest.er1
 
16826
  ac_status=$?
 
16827
  grep -v '^ *+' conftest.er1 >conftest.err
 
16828
  rm -f conftest.er1
 
16829
  cat conftest.err >&5
 
16830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16831
  (exit $ac_status); } &&
 
16832
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16834
  (eval $ac_try) 2>&5
 
16835
  ac_status=$?
 
16836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16837
  (exit $ac_status); }; } &&
 
16838
         { ac_try='test -s conftest$ac_exeext'
 
16839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16840
  (eval $ac_try) 2>&5
 
16841
  ac_status=$?
 
16842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16843
  (exit $ac_status); }; }; then
 
16844
  
 
16845
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16846
}'`
 
16847
# Check for a 64-bit object if we didn't find anything.
 
16848
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; }
 
16849
}'`; fi
 
16850
else
 
16851
  echo "$as_me: failed program was:" >&5
 
16852
sed 's/^/| /' conftest.$ac_ext >&5
 
16853
 
 
16854
fi
 
16855
rm -f conftest.err conftest.$ac_objext \
 
16856
      conftest$ac_exeext conftest.$ac_ext
 
16857
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16858
 
 
16859
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16860
          # Warning - without using the other run time loading flags,
 
16861
          # -berok will link without error, but may produce a broken library.
 
16862
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16863
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16864
          # -bexpall does not export symbols beginning with underscore (_)
 
16865
          always_export_symbols_GCJ=yes
 
16866
          # Exported symbols can be pulled into shared objects from archives
 
16867
          whole_archive_flag_spec_GCJ=' '
 
16868
          archive_cmds_need_lc_GCJ=yes
 
16869
          # This is similar to how AIX traditionally builds its shared libraries.
 
16870
          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'
 
16871
        fi
 
16872
      fi
 
16873
      ;;
 
16874
 
 
16875
    amigaos*)
 
16876
      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)'
 
16877
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16878
      hardcode_minus_L_GCJ=yes
 
16879
      # see comment about different semantics on the GNU ld section
 
16880
      ld_shlibs_GCJ=no
 
16881
      ;;
 
16882
 
 
16883
    bsdi[45]*)
 
16884
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16885
      ;;
 
16886
 
 
16887
    cygwin* | mingw* | pw32*)
 
16888
      # When not using gcc, we currently assume that we are using
 
16889
      # Microsoft Visual C++.
 
16890
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16891
      # no search path for DLLs.
 
16892
      hardcode_libdir_flag_spec_GCJ=' '
 
16893
      allow_undefined_flag_GCJ=unsupported
 
16894
      # Tell ltmain to make .lib files, not .a files.
 
16895
      libext=lib
 
16896
      # Tell ltmain to make .dll files, not .so files.
 
16897
      shrext_cmds=".dll"
 
16898
      # FIXME: Setting linknames here is a bad hack.
 
16899
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16900
      # The linker will automatically build a .lib file if we build a DLL.
 
16901
      old_archive_From_new_cmds_GCJ='true'
 
16902
      # FIXME: Should let the user specify the lib program.
 
16903
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16904
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16905
      enable_shared_with_static_runtimes_GCJ=yes
 
16906
      ;;
 
16907
 
 
16908
    darwin* | rhapsody*)
 
16909
      case $host_os in
 
16910
        rhapsody* | darwin1.[012])
 
16911
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16912
         ;;
 
16913
       *) # Darwin 1.3 on
 
16914
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16915
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16916
         else
 
16917
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16918
             10.[012])
 
16919
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16920
               ;;
 
16921
             10.*)
 
16922
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16923
               ;;
 
16924
           esac
 
16925
         fi
 
16926
         ;;
 
16927
      esac
 
16928
      archive_cmds_need_lc_GCJ=no
 
16929
      hardcode_direct_GCJ=no
 
16930
      hardcode_automatic_GCJ=yes
 
16931
      hardcode_shlibpath_var_GCJ=unsupported
 
16932
      whole_archive_flag_spec_GCJ=''
 
16933
      link_all_deplibs_GCJ=yes
 
16934
    if test "$GCC" = yes ; then
 
16935
        output_verbose_link_cmd='echo'
 
16936
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16937
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16938
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16939
      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}'
 
16940
      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}'
 
16941
    else
 
16942
      case $cc_basename in
 
16943
        xlc*)
 
16944
         output_verbose_link_cmd='echo'
 
16945
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16946
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16947
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16948
         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}'
 
16949
          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}'
 
16950
          ;;
 
16951
       *)
 
16952
         ld_shlibs_GCJ=no
 
16953
          ;;
 
16954
      esac
 
16955
    fi
 
16956
      ;;
 
16957
 
 
16958
    dgux*)
 
16959
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16960
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16961
      hardcode_shlibpath_var_GCJ=no
 
16962
      ;;
 
16963
 
 
16964
    freebsd1*)
 
16965
      ld_shlibs_GCJ=no
 
16966
      ;;
 
16967
 
 
16968
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16969
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16970
    # does not break anything, and helps significantly (at the cost of a little
 
16971
    # extra space).
 
16972
    freebsd2.2*)
 
16973
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16974
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16975
      hardcode_direct_GCJ=yes
 
16976
      hardcode_shlibpath_var_GCJ=no
 
16977
      ;;
 
16978
 
 
16979
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16980
    freebsd2*)
 
16981
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16982
      hardcode_direct_GCJ=yes
 
16983
      hardcode_minus_L_GCJ=yes
 
16984
      hardcode_shlibpath_var_GCJ=no
 
16985
      ;;
 
16986
 
 
16987
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16988
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16989
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16990
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16991
      hardcode_direct_GCJ=yes
 
16992
      hardcode_shlibpath_var_GCJ=no
 
16993
      ;;
 
16994
 
 
16995
    hpux9*)
 
16996
      if test "$GCC" = yes; then
 
16997
        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'
 
16998
      else
 
16999
        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'
 
17000
      fi
 
17001
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17002
      hardcode_libdir_separator_GCJ=:
 
17003
      hardcode_direct_GCJ=yes
 
17004
 
 
17005
      # hardcode_minus_L: Not really in the search PATH,
 
17006
      # but as the default location of the library.
 
17007
      hardcode_minus_L_GCJ=yes
 
17008
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17009
      ;;
 
17010
 
 
17011
    hpux10* | hpux11*)
 
17012
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17013
        case $host_cpu in
 
17014
        hppa*64*|ia64*)
 
17015
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17016
          ;;
 
17017
        *)
 
17018
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17019
          ;;
 
17020
        esac
 
17021
      else
 
17022
        case $host_cpu in
 
17023
        hppa*64*|ia64*)
 
17024
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17025
          ;;
 
17026
        *)
 
17027
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17028
          ;;
 
17029
        esac
 
17030
      fi
 
17031
      if test "$with_gnu_ld" = no; then
 
17032
        case $host_cpu in
 
17033
        hppa*64*)
 
17034
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17035
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17036
          hardcode_libdir_separator_GCJ=:
 
17037
          hardcode_direct_GCJ=no
 
17038
          hardcode_shlibpath_var_GCJ=no
 
17039
          ;;
 
17040
        ia64*)
 
17041
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17042
          hardcode_direct_GCJ=no
 
17043
          hardcode_shlibpath_var_GCJ=no
 
17044
 
 
17045
          # hardcode_minus_L: Not really in the search PATH,
 
17046
          # but as the default location of the library.
 
17047
          hardcode_minus_L_GCJ=yes
 
17048
          ;;
 
17049
        *)
 
17050
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17051
          hardcode_libdir_separator_GCJ=:
 
17052
          hardcode_direct_GCJ=yes
 
17053
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17054
 
 
17055
          # hardcode_minus_L: Not really in the search PATH,
 
17056
          # but as the default location of the library.
 
17057
          hardcode_minus_L_GCJ=yes
 
17058
          ;;
 
17059
        esac
 
17060
      fi
 
17061
      ;;
 
17062
 
 
17063
    irix5* | irix6* | nonstopux*)
 
17064
      if test "$GCC" = yes; then
 
17065
        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'
 
17066
      else
 
17067
        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'
 
17068
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17069
      fi
 
17070
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17071
      hardcode_libdir_separator_GCJ=:
 
17072
      link_all_deplibs_GCJ=yes
 
17073
      ;;
 
17074
 
 
17075
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17076
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17077
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17078
      else
 
17079
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17080
      fi
 
17081
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17082
      hardcode_direct_GCJ=yes
 
17083
      hardcode_shlibpath_var_GCJ=no
 
17084
      ;;
 
17085
 
 
17086
    newsos6)
 
17087
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17088
      hardcode_direct_GCJ=yes
 
17089
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17090
      hardcode_libdir_separator_GCJ=:
 
17091
      hardcode_shlibpath_var_GCJ=no
 
17092
      ;;
 
17093
 
 
17094
    openbsd*)
 
17095
      hardcode_direct_GCJ=yes
 
17096
      hardcode_shlibpath_var_GCJ=no
 
17097
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17098
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17099
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17100
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17101
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17102
      else
 
17103
       case $host_os in
 
17104
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17105
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17106
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17107
           ;;
 
17108
         *)
 
17109
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17110
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17111
           ;;
 
17112
       esac
 
17113
      fi
 
17114
      ;;
 
17115
 
 
17116
    os2*)
 
17117
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17118
      hardcode_minus_L_GCJ=yes
 
17119
      allow_undefined_flag_GCJ=unsupported
 
17120
      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'
 
17121
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17122
      ;;
 
17123
 
 
17124
    osf3*)
 
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17128
      else
 
17129
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17130
        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'
 
17131
      fi
 
17132
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17133
      hardcode_libdir_separator_GCJ=:
 
17134
      ;;
 
17135
 
 
17136
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17137
      if test "$GCC" = yes; then
 
17138
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17139
        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'
 
17140
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17141
      else
 
17142
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17143
        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'
 
17144
        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~
 
17145
        $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'
 
17146
 
 
17147
        # Both c and cxx compiler support -rpath directly
 
17148
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17149
      fi
 
17150
      hardcode_libdir_separator_GCJ=:
 
17151
      ;;
 
17152
 
 
17153
    sco3.2v5*)
 
17154
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17155
      hardcode_shlibpath_var_GCJ=no
 
17156
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17157
      runpath_var=LD_RUN_PATH
 
17158
      hardcode_runpath_var=yes
 
17159
      ;;
 
17160
 
 
17161
    solaris*)
 
17162
      no_undefined_flag_GCJ=' -z text'
 
17163
      if test "$GCC" = yes; then
 
17164
        wlarc='${wl}'
 
17165
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17166
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17167
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17168
      else
 
17169
        wlarc=''
 
17170
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17171
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17172
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17173
      fi
 
17174
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17175
      hardcode_shlibpath_var_GCJ=no
 
17176
      case $host_os in
 
17177
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17178
      *)
 
17179
        # The compiler driver will combine linker options so we
 
17180
        # cannot just pass the convience library names through
 
17181
        # without $wl, iff we do not link with $LD.
 
17182
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17183
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17184
        case $wlarc in
 
17185
        '')
 
17186
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17187
        *)
 
17188
          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' ;;
 
17189
        esac ;;
 
17190
      esac
 
17191
      link_all_deplibs_GCJ=yes
 
17192
      ;;
 
17193
 
 
17194
    sunos4*)
 
17195
      if test "x$host_vendor" = xsequent; then
 
17196
        # Use $CC to link under sequent, because it throws in some extra .o
 
17197
        # files that make .init and .fini sections work.
 
17198
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17199
      else
 
17200
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17201
      fi
 
17202
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17203
      hardcode_direct_GCJ=yes
 
17204
      hardcode_minus_L_GCJ=yes
 
17205
      hardcode_shlibpath_var_GCJ=no
 
17206
      ;;
 
17207
 
 
17208
    sysv4)
 
17209
      case $host_vendor in
 
17210
        sni)
 
17211
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17212
          hardcode_direct_GCJ=yes # is this really true???
 
17213
        ;;
 
17214
        siemens)
 
17215
          ## LD is ld it makes a PLAMLIB
 
17216
          ## CC just makes a GrossModule.
 
17217
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17218
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17219
          hardcode_direct_GCJ=no
 
17220
        ;;
 
17221
        motorola)
 
17222
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17223
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17224
        ;;
 
17225
      esac
 
17226
      runpath_var='LD_RUN_PATH'
 
17227
      hardcode_shlibpath_var_GCJ=no
 
17228
      ;;
 
17229
 
 
17230
    sysv4.3*)
 
17231
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17232
      hardcode_shlibpath_var_GCJ=no
 
17233
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17234
      ;;
 
17235
 
 
17236
    sysv4*MP*)
 
17237
      if test -d /usr/nec; then
 
17238
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17239
        hardcode_shlibpath_var_GCJ=no
 
17240
        runpath_var=LD_RUN_PATH
 
17241
        hardcode_runpath_var=yes
 
17242
        ld_shlibs_GCJ=yes
 
17243
      fi
 
17244
      ;;
 
17245
 
 
17246
    sysv4.2uw2*)
 
17247
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17248
      hardcode_direct_GCJ=yes
 
17249
      hardcode_minus_L_GCJ=no
 
17250
      hardcode_shlibpath_var_GCJ=no
 
17251
      hardcode_runpath_var=yes
 
17252
      runpath_var=LD_RUN_PATH
 
17253
      ;;
 
17254
 
 
17255
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17256
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17257
      if test "$GCC" = yes; then
 
17258
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17259
      else
 
17260
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17261
      fi
 
17262
      runpath_var='LD_RUN_PATH'
 
17263
      hardcode_shlibpath_var_GCJ=no
 
17264
      ;;
 
17265
 
 
17266
    sysv5*)
 
17267
      no_undefined_flag_GCJ=' -z text'
 
17268
      # $CC -shared without GNU ld will not create a library from C++
 
17269
      # object files and a static libstdc++, better avoid it by now
 
17270
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17271
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17272
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17273
      hardcode_libdir_flag_spec_GCJ=
 
17274
      hardcode_shlibpath_var_GCJ=no
 
17275
      runpath_var='LD_RUN_PATH'
 
17276
      ;;
 
17277
 
 
17278
    uts4*)
 
17279
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17280
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17281
      hardcode_shlibpath_var_GCJ=no
 
17282
      ;;
 
17283
 
 
17284
    *)
 
17285
      ld_shlibs_GCJ=no
 
17286
      ;;
 
17287
    esac
 
17288
  fi
 
17289
 
 
17290
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17291
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17292
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17293
 
 
17294
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17295
if test "$GCC" = yes; then
 
17296
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17297
fi
 
17298
 
 
17299
#
 
17300
# Do we need to explicitly link libc?
 
17301
#
 
17302
case "x$archive_cmds_need_lc_GCJ" in
 
17303
x|xyes)
 
17304
  # Assume -lc should be added
 
17305
  archive_cmds_need_lc_GCJ=yes
 
17306
 
 
17307
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17308
    case $archive_cmds_GCJ in
 
17309
    *'~'*)
 
17310
      # FIXME: we may have to deal with multi-command sequences.
 
17311
      ;;
 
17312
    '$CC '*)
 
17313
      # Test whether the compiler implicitly links with -lc since on some
 
17314
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17315
      # to ld, don't add -lc before -lgcc.
 
17316
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17317
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17318
      $rm conftest*
 
17319
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17320
 
 
17321
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17322
  (eval $ac_compile) 2>&5
 
17323
  ac_status=$?
 
17324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17325
  (exit $ac_status); } 2>conftest.err; then
 
17326
        soname=conftest
 
17327
        lib=conftest
 
17328
        libobjs=conftest.$ac_objext
 
17329
        deplibs=
 
17330
        wl=$lt_prog_compiler_wl_GCJ
 
17331
        compiler_flags=-v
 
17332
        linker_flags=-v
 
17333
        verstring=
 
17334
        output_objdir=.
 
17335
        libname=conftest
 
17336
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17337
        allow_undefined_flag_GCJ=
 
17338
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17339
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17340
  ac_status=$?
 
17341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17342
  (exit $ac_status); }
 
17343
        then
 
17344
          archive_cmds_need_lc_GCJ=no
 
17345
        else
 
17346
          archive_cmds_need_lc_GCJ=yes
 
17347
        fi
 
17348
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17349
      else
 
17350
        cat conftest.err 1>&5
 
17351
      fi
 
17352
      $rm conftest*
 
17353
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17354
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17355
      ;;
 
17356
    esac
 
17357
  fi
 
17358
  ;;
 
17359
esac
 
17360
 
 
17361
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17362
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17363
library_names_spec=
 
17364
libname_spec='lib$name'
 
17365
soname_spec=
 
17366
shrext_cmds=".so"
 
17367
postinstall_cmds=
 
17368
postuninstall_cmds=
 
17369
finish_cmds=
 
17370
finish_eval=
 
17371
shlibpath_var=
 
17372
shlibpath_overrides_runpath=unknown
 
17373
version_type=none
 
17374
dynamic_linker="$host_os ld.so"
 
17375
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17376
if test "$GCC" = yes; then
 
17377
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17378
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17379
    # if the path contains ";" then we assume it to be the separator
 
17380
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17381
    # assumed that no part of a normal pathname contains ";" but that should
 
17382
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17383
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17384
  else
 
17385
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17386
  fi
 
17387
else
 
17388
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17389
fi
 
17390
need_lib_prefix=unknown
 
17391
hardcode_into_libs=no
 
17392
 
 
17393
# when you set need_version to no, make sure it does not cause -set_version
 
17394
# flags to be left without arguments
 
17395
need_version=unknown
 
17396
 
 
17397
case $host_os in
 
17398
aix3*)
 
17399
  version_type=linux
 
17400
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17401
  shlibpath_var=LIBPATH
 
17402
 
 
17403
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17404
  soname_spec='${libname}${release}${shared_ext}$major'
 
17405
  ;;
 
17406
 
 
17407
aix4* | aix5*)
 
17408
  version_type=linux
 
17409
  need_lib_prefix=no
 
17410
  need_version=no
 
17411
  hardcode_into_libs=yes
 
17412
  if test "$host_cpu" = ia64; then
 
17413
    # AIX 5 supports IA64
 
17414
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17415
    shlibpath_var=LD_LIBRARY_PATH
 
17416
  else
 
17417
    # With GCC up to 2.95.x, collect2 would create an import file
 
17418
    # for dependence libraries.  The import file would start with
 
17419
    # the line `#! .'.  This would cause the generated library to
 
17420
    # depend on `.', always an invalid library.  This was fixed in
 
17421
    # development snapshots of GCC prior to 3.0.
 
17422
    case $host_os in
 
17423
      aix4 | aix4.[01] | aix4.[01].*)
 
17424
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17425
           echo ' yes '
 
17426
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17427
        :
 
17428
      else
 
17429
        can_build_shared=no
 
17430
      fi
 
17431
      ;;
 
17432
    esac
 
17433
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17434
    # soname into executable. Probably we can add versioning support to
 
17435
    # collect2, so additional links can be useful in future.
 
17436
    if test "$aix_use_runtimelinking" = yes; then
 
17437
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17438
      # instead of lib<name>.a to let people know that these are not
 
17439
      # typical AIX shared libraries.
 
17440
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17441
    else
 
17442
      # We preserve .a as extension for shared libraries through AIX4.2
 
17443
      # and later when we are not doing run time linking.
 
17444
      library_names_spec='${libname}${release}.a $libname.a'
 
17445
      soname_spec='${libname}${release}${shared_ext}$major'
 
17446
    fi
 
17447
    shlibpath_var=LIBPATH
 
17448
  fi
 
17449
  ;;
 
17450
 
 
17451
amigaos*)
 
17452
  library_names_spec='$libname.ixlibrary $libname.a'
 
17453
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17454
  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'
 
17455
  ;;
 
17456
 
 
17457
beos*)
 
17458
  library_names_spec='${libname}${shared_ext}'
 
17459
  dynamic_linker="$host_os ld.so"
 
17460
  shlibpath_var=LIBRARY_PATH
 
17461
  ;;
 
17462
 
 
17463
bsdi[45]*)
 
17464
  version_type=linux
 
17465
  need_version=no
 
17466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17467
  soname_spec='${libname}${release}${shared_ext}$major'
 
17468
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17469
  shlibpath_var=LD_LIBRARY_PATH
 
17470
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17471
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17472
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17473
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17474
  # libtool to hard-code these into programs
 
17475
  ;;
 
17476
 
 
17477
cygwin* | mingw* | pw32*)
 
17478
  version_type=windows
 
17479
  shrext_cmds=".dll"
 
17480
  need_version=no
 
17481
  need_lib_prefix=no
 
17482
 
 
17483
  case $GCC,$host_os in
 
17484
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17485
    library_names_spec='$libname.dll.a'
 
17486
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17487
    postinstall_cmds='base_file=`basename \${file}`~
 
17488
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17489
      dldir=$destdir/`dirname \$dlpath`~
 
17490
      test -d \$dldir || mkdir -p \$dldir~
 
17491
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17492
      chmod a+x \$dldir/$dlname'
 
17493
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17494
      dlpath=$dir/\$dldll~
 
17495
       $rm \$dlpath'
 
17496
    shlibpath_overrides_runpath=yes
 
17497
 
 
17498
    case $host_os in
 
17499
    cygwin*)
 
17500
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17501
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17502
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17503
      ;;
 
17504
    mingw*)
 
17505
      # MinGW DLLs use traditional 'lib' prefix
 
17506
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17507
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17508
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17509
        # It is most probably a Windows format PATH printed by
 
17510
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17511
        # path with ; separators, and with drive letters. We can handle the
 
17512
        # drive letters (cygwin fileutils understands them), so leave them,
 
17513
        # especially as we might pass files found there to a mingw objdump,
 
17514
        # which wouldn't understand a cygwinified path. Ahh.
 
17515
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17516
      else
 
17517
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17518
      fi
 
17519
      ;;
 
17520
    pw32*)
 
17521
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17522
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17523
      ;;
 
17524
    esac
 
17525
    ;;
 
17526
 
 
17527
  *)
 
17528
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17529
    ;;
 
17530
  esac
 
17531
  dynamic_linker='Win32 ld.exe'
 
17532
  # FIXME: first we should search . and the directory the executable is in
 
17533
  shlibpath_var=PATH
 
17534
  ;;
 
17535
 
 
17536
darwin* | rhapsody*)
 
17537
  dynamic_linker="$host_os dyld"
 
17538
  version_type=darwin
 
17539
  need_lib_prefix=no
 
17540
  need_version=no
 
17541
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17542
  soname_spec='${libname}${release}${major}$shared_ext'
 
17543
  shlibpath_overrides_runpath=yes
 
17544
  shlibpath_var=DYLD_LIBRARY_PATH
 
17545
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17546
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17547
  if test "$GCC" = yes; then
 
17548
    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"`
 
17549
  else
 
17550
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17551
  fi
 
17552
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17553
  ;;
 
17554
 
 
17555
dgux*)
 
17556
  version_type=linux
 
17557
  need_lib_prefix=no
 
17558
  need_version=no
 
17559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17560
  soname_spec='${libname}${release}${shared_ext}$major'
 
17561
  shlibpath_var=LD_LIBRARY_PATH
 
17562
  ;;
 
17563
 
 
17564
freebsd1*)
 
17565
  dynamic_linker=no
 
17566
  ;;
 
17567
 
 
17568
kfreebsd*-gnu)
 
17569
  version_type=linux
 
17570
  need_lib_prefix=no
 
17571
  need_version=no
 
17572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17573
  soname_spec='${libname}${release}${shared_ext}$major'
 
17574
  shlibpath_var=LD_LIBRARY_PATH
 
17575
  shlibpath_overrides_runpath=no
 
17576
  hardcode_into_libs=yes
 
17577
  dynamic_linker='GNU ld.so'
 
17578
  ;;
 
17579
 
 
17580
freebsd* | dragonfly*)
 
17581
  # DragonFly does not have aout.  When/if they implement a new
 
17582
  # versioning mechanism, adjust this.
 
17583
  if test -x /usr/bin/objformat; then
 
17584
    objformat=`/usr/bin/objformat`
 
17585
  else
 
17586
    case $host_os in
 
17587
    freebsd[123]*) objformat=aout ;;
 
17588
    *) objformat=elf ;;
 
17589
    esac
 
17590
  fi
 
17591
  version_type=freebsd-$objformat
 
17592
  case $version_type in
 
17593
    freebsd-elf*)
 
17594
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17595
      need_version=no
 
17596
      need_lib_prefix=no
 
17597
      ;;
 
17598
    freebsd-*)
 
17599
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17600
      need_version=yes
 
17601
      ;;
 
17602
  esac
 
17603
  shlibpath_var=LD_LIBRARY_PATH
 
17604
  case $host_os in
 
17605
  freebsd2*)
 
17606
    shlibpath_overrides_runpath=yes
 
17607
    ;;
 
17608
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17609
    shlibpath_overrides_runpath=yes
 
17610
    hardcode_into_libs=yes
 
17611
    ;;
 
17612
  *) # from 3.2 on
 
17613
    shlibpath_overrides_runpath=no
 
17614
    hardcode_into_libs=yes
 
17615
    ;;
 
17616
  esac
 
17617
  ;;
 
17618
 
 
17619
gnu*)
 
17620
  version_type=linux
 
17621
  need_lib_prefix=no
 
17622
  need_version=no
 
17623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17624
  soname_spec='${libname}${release}${shared_ext}$major'
 
17625
  shlibpath_var=LD_LIBRARY_PATH
 
17626
  hardcode_into_libs=yes
 
17627
  ;;
 
17628
 
 
17629
hpux9* | hpux10* | hpux11*)
 
17630
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17631
  # link against other versions.
 
17632
  version_type=sunos
 
17633
  need_lib_prefix=no
 
17634
  need_version=no
 
17635
  case $host_cpu in
 
17636
  ia64*)
 
17637
    shrext_cmds='.so'
 
17638
    hardcode_into_libs=yes
 
17639
    dynamic_linker="$host_os dld.so"
 
17640
    shlibpath_var=LD_LIBRARY_PATH
 
17641
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17642
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17643
    soname_spec='${libname}${release}${shared_ext}$major'
 
17644
    if test "X$HPUX_IA64_MODE" = X32; then
 
17645
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17646
    else
 
17647
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17648
    fi
 
17649
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17650
    ;;
 
17651
   hppa*64*)
 
17652
     shrext_cmds='.sl'
 
17653
     hardcode_into_libs=yes
 
17654
     dynamic_linker="$host_os dld.sl"
 
17655
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17656
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17657
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17658
     soname_spec='${libname}${release}${shared_ext}$major'
 
17659
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17660
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17661
     ;;
 
17662
   *)
 
17663
    shrext_cmds='.sl'
 
17664
    dynamic_linker="$host_os dld.sl"
 
17665
    shlibpath_var=SHLIB_PATH
 
17666
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17667
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17668
    soname_spec='${libname}${release}${shared_ext}$major'
 
17669
    ;;
 
17670
  esac
 
17671
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17672
  postinstall_cmds='chmod 555 $lib'
 
17673
  ;;
 
17674
 
 
17675
irix5* | irix6* | nonstopux*)
 
17676
  case $host_os in
 
17677
    nonstopux*) version_type=nonstopux ;;
 
17678
    *)
 
17679
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17680
                version_type=linux
 
17681
        else
 
17682
                version_type=irix
 
17683
        fi ;;
 
17684
  esac
 
17685
  need_lib_prefix=no
 
17686
  need_version=no
 
17687
  soname_spec='${libname}${release}${shared_ext}$major'
 
17688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17689
  case $host_os in
 
17690
  irix5* | nonstopux*)
 
17691
    libsuff= shlibsuff=
 
17692
    ;;
 
17693
  *)
 
17694
    case $LD in # libtool.m4 will add one of these switches to LD
 
17695
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17696
      libsuff= shlibsuff= libmagic=32-bit;;
 
17697
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17698
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17699
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17700
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17701
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17702
    esac
 
17703
    ;;
 
17704
  esac
 
17705
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17706
  shlibpath_overrides_runpath=no
 
17707
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17708
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17709
  hardcode_into_libs=yes
 
17710
  ;;
 
17711
 
 
17712
# No shared lib support for Linux oldld, aout, or coff.
 
17713
linux*oldld* | linux*aout* | linux*coff*)
 
17714
  dynamic_linker=no
 
17715
  ;;
 
17716
 
 
17717
# This must be Linux ELF.
 
17718
linux*)
 
17719
  version_type=linux
 
17720
  need_lib_prefix=no
 
17721
  need_version=no
 
17722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17723
  soname_spec='${libname}${release}${shared_ext}$major'
 
17724
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17725
  shlibpath_var=LD_LIBRARY_PATH
 
17726
  shlibpath_overrides_runpath=no
 
17727
  # This implies no fast_install, which is unacceptable.
 
17728
  # Some rework will be needed to allow for fast_install
 
17729
  # before this can be enabled.
 
17730
  hardcode_into_libs=yes
 
17731
 
 
17732
  # Append ld.so.conf contents to the search path
 
17733
  if test -f /etc/ld.so.conf; then
 
17734
    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' ' '`
 
17735
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17736
  fi
 
17737
 
 
17738
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17739
  # powerpc, because MkLinux only supported shared libraries with the
 
17740
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17741
  # most powerpc-linux boxes support dynamic linking these days and
 
17742
  # people can always --disable-shared, the test was removed, and we
 
17743
  # assume the GNU/Linux dynamic linker is in use.
 
17744
  dynamic_linker='GNU/Linux ld.so'
 
17745
  ;;
 
17746
 
 
17747
netbsdelf*-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='NetBSD ld.elf_so'
 
17757
  ;;
 
17758
 
 
17759
knetbsd*-gnu)
 
17760
  version_type=linux
 
17761
  need_lib_prefix=no
 
17762
  need_version=no
 
17763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17764
  soname_spec='${libname}${release}${shared_ext}$major'
 
17765
  shlibpath_var=LD_LIBRARY_PATH
 
17766
  shlibpath_overrides_runpath=no
 
17767
  hardcode_into_libs=yes
 
17768
  dynamic_linker='GNU ld.so'
 
17769
  ;;
 
17770
 
 
17771
netbsd*)
 
17772
  version_type=sunos
 
17773
  need_lib_prefix=no
 
17774
  need_version=no
 
17775
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17776
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17777
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17778
    dynamic_linker='NetBSD (a.out) ld.so'
 
17779
  else
 
17780
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17781
    soname_spec='${libname}${release}${shared_ext}$major'
 
17782
    dynamic_linker='NetBSD ld.elf_so'
 
17783
  fi
 
17784
  shlibpath_var=LD_LIBRARY_PATH
 
17785
  shlibpath_overrides_runpath=yes
 
17786
  hardcode_into_libs=yes
 
17787
  ;;
 
17788
 
 
17789
newsos6)
 
17790
  version_type=linux
 
17791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17792
  shlibpath_var=LD_LIBRARY_PATH
 
17793
  shlibpath_overrides_runpath=yes
 
17794
  ;;
 
17795
 
 
17796
nto-qnx*)
 
17797
  version_type=linux
 
17798
  need_lib_prefix=no
 
17799
  need_version=no
 
17800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17801
  soname_spec='${libname}${release}${shared_ext}$major'
 
17802
  shlibpath_var=LD_LIBRARY_PATH
 
17803
  shlibpath_overrides_runpath=yes
 
17804
  ;;
 
17805
 
 
17806
openbsd*)
 
17807
  version_type=sunos
 
17808
  need_lib_prefix=no
 
17809
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17810
  case $host_os in
 
17811
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17812
    *)                         need_version=no  ;;
 
17813
  esac
 
17814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17815
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17816
  shlibpath_var=LD_LIBRARY_PATH
 
17817
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17818
    case $host_os in
 
17819
      openbsd2.[89] | openbsd2.[89].*)
 
17820
        shlibpath_overrides_runpath=no
 
17821
        ;;
 
17822
      *)
 
17823
        shlibpath_overrides_runpath=yes
 
17824
        ;;
 
17825
      esac
 
17826
  else
 
17827
    shlibpath_overrides_runpath=yes
 
17828
  fi
 
17829
  ;;
 
17830
 
 
17831
os2*)
 
17832
  libname_spec='$name'
 
17833
  shrext_cmds=".dll"
 
17834
  need_lib_prefix=no
 
17835
  library_names_spec='$libname${shared_ext} $libname.a'
 
17836
  dynamic_linker='OS/2 ld.exe'
 
17837
  shlibpath_var=LIBPATH
 
17838
  ;;
 
17839
 
 
17840
osf3* | osf4* | osf5*)
 
17841
  version_type=osf
 
17842
  need_lib_prefix=no
 
17843
  need_version=no
 
17844
  soname_spec='${libname}${release}${shared_ext}$major'
 
17845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17846
  shlibpath_var=LD_LIBRARY_PATH
 
17847
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17848
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17849
  ;;
 
17850
 
 
17851
sco3.2v5*)
 
17852
  version_type=osf
 
17853
  soname_spec='${libname}${release}${shared_ext}$major'
 
17854
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17855
  shlibpath_var=LD_LIBRARY_PATH
 
17856
  ;;
 
17857
 
 
17858
solaris*)
 
17859
  version_type=linux
 
17860
  need_lib_prefix=no
 
17861
  need_version=no
 
17862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17863
  soname_spec='${libname}${release}${shared_ext}$major'
 
17864
  shlibpath_var=LD_LIBRARY_PATH
 
17865
  shlibpath_overrides_runpath=yes
 
17866
  hardcode_into_libs=yes
 
17867
  # ldd complains unless libraries are executable
 
17868
  postinstall_cmds='chmod +x $lib'
 
17869
  ;;
 
17870
 
 
17871
sunos4*)
 
17872
  version_type=sunos
 
17873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17874
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17875
  shlibpath_var=LD_LIBRARY_PATH
 
17876
  shlibpath_overrides_runpath=yes
 
17877
  if test "$with_gnu_ld" = yes; then
 
17878
    need_lib_prefix=no
 
17879
  fi
 
17880
  need_version=yes
 
17881
  ;;
 
17882
 
 
17883
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17884
  version_type=linux
 
17885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17886
  soname_spec='${libname}${release}${shared_ext}$major'
 
17887
  shlibpath_var=LD_LIBRARY_PATH
 
17888
  case $host_vendor in
 
17889
    sni)
 
17890
      shlibpath_overrides_runpath=no
 
17891
      need_lib_prefix=no
 
17892
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17893
      runpath_var=LD_RUN_PATH
 
17894
      ;;
 
17895
    siemens)
 
17896
      need_lib_prefix=no
 
17897
      ;;
 
17898
    motorola)
 
17899
      need_lib_prefix=no
 
17900
      need_version=no
 
17901
      shlibpath_overrides_runpath=no
 
17902
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17903
      ;;
 
17904
  esac
 
17905
  ;;
 
17906
 
 
17907
sysv4*MP*)
 
17908
  if test -d /usr/nec ;then
 
17909
    version_type=linux
 
17910
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17911
    soname_spec='$libname${shared_ext}.$major'
 
17912
    shlibpath_var=LD_LIBRARY_PATH
 
17913
  fi
 
17914
  ;;
 
17915
 
 
17916
uts4*)
 
17917
  version_type=linux
 
17918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17919
  soname_spec='${libname}${release}${shared_ext}$major'
 
17920
  shlibpath_var=LD_LIBRARY_PATH
 
17921
  ;;
 
17922
 
 
17923
*)
 
17924
  dynamic_linker=no
 
17925
  ;;
 
17926
esac
 
17927
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17928
echo "${ECHO_T}$dynamic_linker" >&6
 
17929
test "$dynamic_linker" = no && can_build_shared=no
 
17930
 
 
17931
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17932
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17933
hardcode_action_GCJ=
 
17934
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17935
   test -n "$runpath_var_GCJ" || \
 
17936
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17937
 
 
17938
  # We can hardcode non-existant directories.
 
17939
  if test "$hardcode_direct_GCJ" != no &&
 
17940
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17941
     # have to relink, otherwise we might link with an installed library
 
17942
     # when we should be linking with a yet-to-be-installed one
 
17943
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17944
     test "$hardcode_minus_L_GCJ" != no; then
 
17945
    # Linking always hardcodes the temporary library directory.
 
17946
    hardcode_action_GCJ=relink
 
17947
  else
 
17948
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17949
    hardcode_action_GCJ=immediate
 
17950
  fi
 
17951
else
 
17952
  # We cannot hardcode anything, or else we can only hardcode existing
 
17953
  # directories.
 
17954
  hardcode_action_GCJ=unsupported
 
17955
fi
 
17956
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17957
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17958
 
 
17959
if test "$hardcode_action_GCJ" = relink; then
 
17960
  # Fast installation is not supported
 
17961
  enable_fast_install=no
 
17962
elif test "$shlibpath_overrides_runpath" = yes ||
 
17963
     test "$enable_shared" = no; then
 
17964
  # Fast installation is not necessary
 
17965
  enable_fast_install=needless
 
17966
fi
 
17967
 
 
17968
striplib=
 
17969
old_striplib=
 
17970
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17971
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17972
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17973
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17974
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17975
  echo "$as_me:$LINENO: result: yes" >&5
 
17976
echo "${ECHO_T}yes" >&6
 
17977
else
 
17978
# FIXME - insert some real tests, host_os isn't really good enough
 
17979
  case $host_os in
 
17980
   darwin*)
 
17981
       if test -n "$STRIP" ; then
 
17982
         striplib="$STRIP -x"
 
17983
         echo "$as_me:$LINENO: result: yes" >&5
 
17984
echo "${ECHO_T}yes" >&6
 
17985
       else
 
17986
  echo "$as_me:$LINENO: result: no" >&5
 
17987
echo "${ECHO_T}no" >&6
 
17988
fi
 
17989
       ;;
 
17990
   *)
 
17991
  echo "$as_me:$LINENO: result: no" >&5
 
17992
echo "${ECHO_T}no" >&6
 
17993
    ;;
 
17994
  esac
 
17995
fi
 
17996
 
 
17997
if test "x$enable_dlopen" != xyes; then
 
17998
  enable_dlopen=unknown
 
17999
  enable_dlopen_self=unknown
 
18000
  enable_dlopen_self_static=unknown
 
18001
else
 
18002
  lt_cv_dlopen=no
 
18003
  lt_cv_dlopen_libs=
 
18004
 
 
18005
  case $host_os in
 
18006
  beos*)
 
18007
    lt_cv_dlopen="load_add_on"
 
18008
    lt_cv_dlopen_libs=
 
18009
    lt_cv_dlopen_self=yes
 
18010
    ;;
 
18011
 
 
18012
  mingw* | pw32*)
 
18013
    lt_cv_dlopen="LoadLibrary"
 
18014
    lt_cv_dlopen_libs=
 
18015
   ;;
 
18016
 
 
18017
  cygwin*)
 
18018
    lt_cv_dlopen="dlopen"
 
18019
    lt_cv_dlopen_libs=
 
18020
   ;;
 
18021
 
 
18022
  darwin*)
 
18023
  # if libdl is installed we need to link against it
 
18024
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18025
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18026
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18028
else
 
18029
  ac_check_lib_save_LIBS=$LIBS
 
18030
LIBS="-ldl  $LIBS"
 
18031
cat >conftest.$ac_ext <<_ACEOF
 
18032
/* confdefs.h.  */
 
18033
_ACEOF
 
18034
cat confdefs.h >>conftest.$ac_ext
 
18035
cat >>conftest.$ac_ext <<_ACEOF
 
18036
/* end confdefs.h.  */
 
18037
 
 
18038
/* Override any gcc2 internal prototype to avoid an error.  */
 
18039
#ifdef __cplusplus
 
18040
extern "C"
 
18041
#endif
 
18042
/* We use char because int might match the return type of a gcc2
 
18043
   builtin and then its argument prototype would still apply.  */
 
18044
char dlopen ();
 
18045
int
 
18046
main ()
 
18047
{
 
18048
dlopen ();
 
18049
  ;
 
18050
  return 0;
 
18051
}
 
18052
_ACEOF
 
18053
rm -f conftest.$ac_objext conftest$ac_exeext
 
18054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18055
  (eval $ac_link) 2>conftest.er1
 
18056
  ac_status=$?
 
18057
  grep -v '^ *+' conftest.er1 >conftest.err
 
18058
  rm -f conftest.er1
 
18059
  cat conftest.err >&5
 
18060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18061
  (exit $ac_status); } &&
 
18062
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18064
  (eval $ac_try) 2>&5
 
18065
  ac_status=$?
 
18066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18067
  (exit $ac_status); }; } &&
 
18068
         { ac_try='test -s conftest$ac_exeext'
 
18069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18070
  (eval $ac_try) 2>&5
 
18071
  ac_status=$?
 
18072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18073
  (exit $ac_status); }; }; then
 
18074
  ac_cv_lib_dl_dlopen=yes
 
18075
else
 
18076
  echo "$as_me: failed program was:" >&5
 
18077
sed 's/^/| /' conftest.$ac_ext >&5
 
18078
 
 
18079
ac_cv_lib_dl_dlopen=no
 
18080
fi
 
18081
rm -f conftest.err conftest.$ac_objext \
 
18082
      conftest$ac_exeext conftest.$ac_ext
 
18083
LIBS=$ac_check_lib_save_LIBS
 
18084
fi
 
18085
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18086
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18087
if test $ac_cv_lib_dl_dlopen = yes; then
 
18088
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18089
else
 
18090
  
 
18091
    lt_cv_dlopen="dyld"
 
18092
    lt_cv_dlopen_libs=
 
18093
    lt_cv_dlopen_self=yes
 
18094
    
 
18095
fi
 
18096
 
 
18097
   ;;
 
18098
 
 
18099
  *)
 
18100
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18101
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18102
if test "${ac_cv_func_shl_load+set}" = set; then
 
18103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18104
else
 
18105
  cat >conftest.$ac_ext <<_ACEOF
 
18106
/* confdefs.h.  */
 
18107
_ACEOF
 
18108
cat confdefs.h >>conftest.$ac_ext
 
18109
cat >>conftest.$ac_ext <<_ACEOF
 
18110
/* end confdefs.h.  */
 
18111
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18112
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18113
#define shl_load innocuous_shl_load
 
18114
 
 
18115
/* System header to define __stub macros and hopefully few prototypes,
 
18116
    which can conflict with char shl_load (); below.
 
18117
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18118
    <limits.h> exists even on freestanding compilers.  */
 
18119
 
 
18120
#ifdef __STDC__
 
18121
# include <limits.h>
 
18122
#else
 
18123
# include <assert.h>
 
18124
#endif
 
18125
 
 
18126
#undef shl_load
 
18127
 
 
18128
/* Override any gcc2 internal prototype to avoid an error.  */
 
18129
#ifdef __cplusplus
 
18130
extern "C"
 
18131
{
 
18132
#endif
 
18133
/* We use char because int might match the return type of a gcc2
 
18134
   builtin and then its argument prototype would still apply.  */
 
18135
char shl_load ();
 
18136
/* The GNU C library defines this for functions which it implements
 
18137
    to always fail with ENOSYS.  Some functions are actually named
 
18138
    something starting with __ and the normal name is an alias.  */
 
18139
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18140
choke me
 
18141
#else
 
18142
char (*f) () = shl_load;
 
18143
#endif
 
18144
#ifdef __cplusplus
 
18145
}
 
18146
#endif
 
18147
 
 
18148
int
 
18149
main ()
 
18150
{
 
18151
return f != shl_load;
 
18152
  ;
 
18153
  return 0;
 
18154
}
 
18155
_ACEOF
 
18156
rm -f conftest.$ac_objext conftest$ac_exeext
 
18157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18158
  (eval $ac_link) 2>conftest.er1
 
18159
  ac_status=$?
 
18160
  grep -v '^ *+' conftest.er1 >conftest.err
 
18161
  rm -f conftest.er1
 
18162
  cat conftest.err >&5
 
18163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18164
  (exit $ac_status); } &&
 
18165
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18167
  (eval $ac_try) 2>&5
 
18168
  ac_status=$?
 
18169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18170
  (exit $ac_status); }; } &&
 
18171
         { ac_try='test -s conftest$ac_exeext'
 
18172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18173
  (eval $ac_try) 2>&5
 
18174
  ac_status=$?
 
18175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18176
  (exit $ac_status); }; }; then
 
18177
  ac_cv_func_shl_load=yes
 
18178
else
 
18179
  echo "$as_me: failed program was:" >&5
 
18180
sed 's/^/| /' conftest.$ac_ext >&5
 
18181
 
 
18182
ac_cv_func_shl_load=no
 
18183
fi
 
18184
rm -f conftest.err conftest.$ac_objext \
 
18185
      conftest$ac_exeext conftest.$ac_ext
 
18186
fi
 
18187
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18188
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18189
if test $ac_cv_func_shl_load = yes; then
 
18190
  lt_cv_dlopen="shl_load"
 
18191
else
 
18192
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18193
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18194
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18196
else
 
18197
  ac_check_lib_save_LIBS=$LIBS
 
18198
LIBS="-ldld  $LIBS"
 
18199
cat >conftest.$ac_ext <<_ACEOF
 
18200
/* confdefs.h.  */
 
18201
_ACEOF
 
18202
cat confdefs.h >>conftest.$ac_ext
 
18203
cat >>conftest.$ac_ext <<_ACEOF
 
18204
/* end confdefs.h.  */
 
18205
 
 
18206
/* Override any gcc2 internal prototype to avoid an error.  */
 
18207
#ifdef __cplusplus
 
18208
extern "C"
 
18209
#endif
 
18210
/* We use char because int might match the return type of a gcc2
 
18211
   builtin and then its argument prototype would still apply.  */
 
18212
char shl_load ();
 
18213
int
 
18214
main ()
 
18215
{
 
18216
shl_load ();
 
18217
  ;
 
18218
  return 0;
 
18219
}
 
18220
_ACEOF
 
18221
rm -f conftest.$ac_objext conftest$ac_exeext
 
18222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18223
  (eval $ac_link) 2>conftest.er1
 
18224
  ac_status=$?
 
18225
  grep -v '^ *+' conftest.er1 >conftest.err
 
18226
  rm -f conftest.er1
 
18227
  cat conftest.err >&5
 
18228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18229
  (exit $ac_status); } &&
 
18230
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18232
  (eval $ac_try) 2>&5
 
18233
  ac_status=$?
 
18234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18235
  (exit $ac_status); }; } &&
 
18236
         { ac_try='test -s conftest$ac_exeext'
 
18237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18238
  (eval $ac_try) 2>&5
 
18239
  ac_status=$?
 
18240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18241
  (exit $ac_status); }; }; then
 
18242
  ac_cv_lib_dld_shl_load=yes
 
18243
else
 
18244
  echo "$as_me: failed program was:" >&5
 
18245
sed 's/^/| /' conftest.$ac_ext >&5
 
18246
 
 
18247
ac_cv_lib_dld_shl_load=no
 
18248
fi
 
18249
rm -f conftest.err conftest.$ac_objext \
 
18250
      conftest$ac_exeext conftest.$ac_ext
 
18251
LIBS=$ac_check_lib_save_LIBS
 
18252
fi
 
18253
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18254
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18255
if test $ac_cv_lib_dld_shl_load = yes; then
 
18256
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18257
else
 
18258
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18259
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18260
if test "${ac_cv_func_dlopen+set}" = set; then
 
18261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18262
else
 
18263
  cat >conftest.$ac_ext <<_ACEOF
 
18264
/* confdefs.h.  */
 
18265
_ACEOF
 
18266
cat confdefs.h >>conftest.$ac_ext
 
18267
cat >>conftest.$ac_ext <<_ACEOF
 
18268
/* end confdefs.h.  */
 
18269
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18270
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18271
#define dlopen innocuous_dlopen
 
18272
 
 
18273
/* System header to define __stub macros and hopefully few prototypes,
 
18274
    which can conflict with char dlopen (); below.
 
18275
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18276
    <limits.h> exists even on freestanding compilers.  */
 
18277
 
 
18278
#ifdef __STDC__
 
18279
# include <limits.h>
 
18280
#else
 
18281
# include <assert.h>
 
18282
#endif
 
18283
 
 
18284
#undef dlopen
 
18285
 
 
18286
/* Override any gcc2 internal prototype to avoid an error.  */
 
18287
#ifdef __cplusplus
 
18288
extern "C"
 
18289
{
 
18290
#endif
 
18291
/* We use char because int might match the return type of a gcc2
 
18292
   builtin and then its argument prototype would still apply.  */
 
18293
char dlopen ();
 
18294
/* The GNU C library defines this for functions which it implements
 
18295
    to always fail with ENOSYS.  Some functions are actually named
 
18296
    something starting with __ and the normal name is an alias.  */
 
18297
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18298
choke me
 
18299
#else
 
18300
char (*f) () = dlopen;
 
18301
#endif
 
18302
#ifdef __cplusplus
 
18303
}
 
18304
#endif
 
18305
 
 
18306
int
 
18307
main ()
 
18308
{
 
18309
return f != dlopen;
 
18310
  ;
 
18311
  return 0;
 
18312
}
 
18313
_ACEOF
 
18314
rm -f conftest.$ac_objext conftest$ac_exeext
 
18315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18316
  (eval $ac_link) 2>conftest.er1
 
18317
  ac_status=$?
 
18318
  grep -v '^ *+' conftest.er1 >conftest.err
 
18319
  rm -f conftest.er1
 
18320
  cat conftest.err >&5
 
18321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18322
  (exit $ac_status); } &&
 
18323
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18325
  (eval $ac_try) 2>&5
 
18326
  ac_status=$?
 
18327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18328
  (exit $ac_status); }; } &&
 
18329
         { ac_try='test -s conftest$ac_exeext'
 
18330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18331
  (eval $ac_try) 2>&5
 
18332
  ac_status=$?
 
18333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18334
  (exit $ac_status); }; }; then
 
18335
  ac_cv_func_dlopen=yes
 
18336
else
 
18337
  echo "$as_me: failed program was:" >&5
 
18338
sed 's/^/| /' conftest.$ac_ext >&5
 
18339
 
 
18340
ac_cv_func_dlopen=no
 
18341
fi
 
18342
rm -f conftest.err conftest.$ac_objext \
 
18343
      conftest$ac_exeext conftest.$ac_ext
 
18344
fi
 
18345
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18346
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18347
if test $ac_cv_func_dlopen = yes; then
 
18348
  lt_cv_dlopen="dlopen"
 
18349
else
 
18350
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18351
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18352
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18354
else
 
18355
  ac_check_lib_save_LIBS=$LIBS
 
18356
LIBS="-ldl  $LIBS"
 
18357
cat >conftest.$ac_ext <<_ACEOF
 
18358
/* confdefs.h.  */
 
18359
_ACEOF
 
18360
cat confdefs.h >>conftest.$ac_ext
 
18361
cat >>conftest.$ac_ext <<_ACEOF
 
18362
/* end confdefs.h.  */
 
18363
 
 
18364
/* Override any gcc2 internal prototype to avoid an error.  */
 
18365
#ifdef __cplusplus
 
18366
extern "C"
 
18367
#endif
 
18368
/* We use char because int might match the return type of a gcc2
 
18369
   builtin and then its argument prototype would still apply.  */
 
18370
char dlopen ();
 
18371
int
 
18372
main ()
 
18373
{
 
18374
dlopen ();
 
18375
  ;
 
18376
  return 0;
 
18377
}
 
18378
_ACEOF
 
18379
rm -f conftest.$ac_objext conftest$ac_exeext
 
18380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18381
  (eval $ac_link) 2>conftest.er1
 
18382
  ac_status=$?
 
18383
  grep -v '^ *+' conftest.er1 >conftest.err
 
18384
  rm -f conftest.er1
 
18385
  cat conftest.err >&5
 
18386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18387
  (exit $ac_status); } &&
 
18388
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18390
  (eval $ac_try) 2>&5
 
18391
  ac_status=$?
 
18392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18393
  (exit $ac_status); }; } &&
 
18394
         { ac_try='test -s conftest$ac_exeext'
 
18395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18396
  (eval $ac_try) 2>&5
 
18397
  ac_status=$?
 
18398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18399
  (exit $ac_status); }; }; then
 
18400
  ac_cv_lib_dl_dlopen=yes
 
18401
else
 
18402
  echo "$as_me: failed program was:" >&5
 
18403
sed 's/^/| /' conftest.$ac_ext >&5
 
18404
 
 
18405
ac_cv_lib_dl_dlopen=no
 
18406
fi
 
18407
rm -f conftest.err conftest.$ac_objext \
 
18408
      conftest$ac_exeext conftest.$ac_ext
 
18409
LIBS=$ac_check_lib_save_LIBS
 
18410
fi
 
18411
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18412
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18413
if test $ac_cv_lib_dl_dlopen = yes; then
 
18414
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18415
else
 
18416
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18417
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18418
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18420
else
 
18421
  ac_check_lib_save_LIBS=$LIBS
 
18422
LIBS="-lsvld  $LIBS"
 
18423
cat >conftest.$ac_ext <<_ACEOF
 
18424
/* confdefs.h.  */
 
18425
_ACEOF
 
18426
cat confdefs.h >>conftest.$ac_ext
 
18427
cat >>conftest.$ac_ext <<_ACEOF
 
18428
/* end confdefs.h.  */
 
18429
 
 
18430
/* Override any gcc2 internal prototype to avoid an error.  */
 
18431
#ifdef __cplusplus
 
18432
extern "C"
 
18433
#endif
 
18434
/* We use char because int might match the return type of a gcc2
 
18435
   builtin and then its argument prototype would still apply.  */
 
18436
char dlopen ();
 
18437
int
 
18438
main ()
 
18439
{
 
18440
dlopen ();
 
18441
  ;
 
18442
  return 0;
 
18443
}
 
18444
_ACEOF
 
18445
rm -f conftest.$ac_objext conftest$ac_exeext
 
18446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18447
  (eval $ac_link) 2>conftest.er1
 
18448
  ac_status=$?
 
18449
  grep -v '^ *+' conftest.er1 >conftest.err
 
18450
  rm -f conftest.er1
 
18451
  cat conftest.err >&5
 
18452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18453
  (exit $ac_status); } &&
 
18454
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18456
  (eval $ac_try) 2>&5
 
18457
  ac_status=$?
 
18458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18459
  (exit $ac_status); }; } &&
 
18460
         { ac_try='test -s conftest$ac_exeext'
 
18461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18462
  (eval $ac_try) 2>&5
 
18463
  ac_status=$?
 
18464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18465
  (exit $ac_status); }; }; then
 
18466
  ac_cv_lib_svld_dlopen=yes
 
18467
else
 
18468
  echo "$as_me: failed program was:" >&5
 
18469
sed 's/^/| /' conftest.$ac_ext >&5
 
18470
 
 
18471
ac_cv_lib_svld_dlopen=no
 
18472
fi
 
18473
rm -f conftest.err conftest.$ac_objext \
 
18474
      conftest$ac_exeext conftest.$ac_ext
 
18475
LIBS=$ac_check_lib_save_LIBS
 
18476
fi
 
18477
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18478
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18479
if test $ac_cv_lib_svld_dlopen = yes; then
 
18480
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18481
else
 
18482
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18483
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18484
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18486
else
 
18487
  ac_check_lib_save_LIBS=$LIBS
 
18488
LIBS="-ldld  $LIBS"
 
18489
cat >conftest.$ac_ext <<_ACEOF
 
18490
/* confdefs.h.  */
 
18491
_ACEOF
 
18492
cat confdefs.h >>conftest.$ac_ext
 
18493
cat >>conftest.$ac_ext <<_ACEOF
 
18494
/* end confdefs.h.  */
 
18495
 
 
18496
/* Override any gcc2 internal prototype to avoid an error.  */
 
18497
#ifdef __cplusplus
 
18498
extern "C"
 
18499
#endif
 
18500
/* We use char because int might match the return type of a gcc2
 
18501
   builtin and then its argument prototype would still apply.  */
 
18502
char dld_link ();
 
18503
int
 
18504
main ()
 
18505
{
 
18506
dld_link ();
 
18507
  ;
 
18508
  return 0;
 
18509
}
 
18510
_ACEOF
 
18511
rm -f conftest.$ac_objext conftest$ac_exeext
 
18512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18513
  (eval $ac_link) 2>conftest.er1
 
18514
  ac_status=$?
 
18515
  grep -v '^ *+' conftest.er1 >conftest.err
 
18516
  rm -f conftest.er1
 
18517
  cat conftest.err >&5
 
18518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18519
  (exit $ac_status); } &&
 
18520
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18522
  (eval $ac_try) 2>&5
 
18523
  ac_status=$?
 
18524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18525
  (exit $ac_status); }; } &&
 
18526
         { ac_try='test -s conftest$ac_exeext'
 
18527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18528
  (eval $ac_try) 2>&5
 
18529
  ac_status=$?
 
18530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18531
  (exit $ac_status); }; }; then
 
18532
  ac_cv_lib_dld_dld_link=yes
 
18533
else
 
18534
  echo "$as_me: failed program was:" >&5
 
18535
sed 's/^/| /' conftest.$ac_ext >&5
 
18536
 
 
18537
ac_cv_lib_dld_dld_link=no
 
18538
fi
 
18539
rm -f conftest.err conftest.$ac_objext \
 
18540
      conftest$ac_exeext conftest.$ac_ext
 
18541
LIBS=$ac_check_lib_save_LIBS
 
18542
fi
 
18543
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18544
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18545
if test $ac_cv_lib_dld_dld_link = yes; then
 
18546
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18547
fi
 
18548
 
 
18549
              
 
18550
fi
 
18551
 
 
18552
            
 
18553
fi
 
18554
 
 
18555
          
 
18556
fi
 
18557
 
 
18558
        
 
18559
fi
 
18560
 
 
18561
      
 
18562
fi
 
18563
 
 
18564
    ;;
 
18565
  esac
 
18566
 
 
18567
  if test "x$lt_cv_dlopen" != xno; then
 
18568
    enable_dlopen=yes
 
18569
  else
 
18570
    enable_dlopen=no
 
18571
  fi
 
18572
 
 
18573
  case $lt_cv_dlopen in
 
18574
  dlopen)
 
18575
    save_CPPFLAGS="$CPPFLAGS"
 
18576
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18577
 
 
18578
    save_LDFLAGS="$LDFLAGS"
 
18579
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18580
 
 
18581
    save_LIBS="$LIBS"
 
18582
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18583
 
 
18584
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18585
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18586
if test "${lt_cv_dlopen_self+set}" = set; then
 
18587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18588
else
 
18589
          if test "$cross_compiling" = yes; then :
 
18590
  lt_cv_dlopen_self=cross
 
18591
else
 
18592
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18593
  lt_status=$lt_dlunknown
 
18594
  cat > conftest.$ac_ext <<EOF
 
18595
#line __oline__ "configure"
 
18596
#include "confdefs.h"
 
18597
 
 
18598
#if HAVE_DLFCN_H
 
18599
#include <dlfcn.h>
 
18600
#endif
 
18601
 
 
18602
#include <stdio.h>
 
18603
 
 
18604
#ifdef RTLD_GLOBAL
 
18605
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18606
#else
 
18607
#  ifdef DL_GLOBAL
 
18608
#    define LT_DLGLOBAL         DL_GLOBAL
 
18609
#  else
 
18610
#    define LT_DLGLOBAL         0
 
18611
#  endif
 
18612
#endif
 
18613
 
 
18614
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18615
   find out it does not work in some platform. */
 
18616
#ifndef LT_DLLAZY_OR_NOW
 
18617
#  ifdef RTLD_LAZY
 
18618
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18619
#  else
 
18620
#    ifdef DL_LAZY
 
18621
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18622
#    else
 
18623
#      ifdef RTLD_NOW
 
18624
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18625
#      else
 
18626
#        ifdef DL_NOW
 
18627
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18628
#        else
 
18629
#          define LT_DLLAZY_OR_NOW      0
 
18630
#        endif
 
18631
#      endif
 
18632
#    endif
 
18633
#  endif
 
18634
#endif
 
18635
 
 
18636
#ifdef __cplusplus
 
18637
extern "C" void exit (int);
 
18638
#endif
 
18639
 
 
18640
void fnord() { int i=42;}
 
18641
int main ()
 
18642
{
 
18643
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18644
  int status = $lt_dlunknown;
 
18645
 
 
18646
  if (self)
 
18647
    {
 
18648
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18649
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18650
      /* dlclose (self); */
 
18651
    }
 
18652
 
 
18653
    exit (status);
 
18654
}
 
18655
EOF
 
18656
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18657
  (eval $ac_link) 2>&5
 
18658
  ac_status=$?
 
18659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18660
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18661
    (./conftest; exit; ) >&5 2>/dev/null
 
18662
    lt_status=$?
 
18663
    case x$lt_status in
 
18664
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18665
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18666
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18667
    esac
 
18668
  else :
 
18669
    # compilation failed
 
18670
    lt_cv_dlopen_self=no
 
18671
  fi
 
18672
fi
 
18673
rm -fr conftest*
 
18674
 
 
18675
    
 
18676
fi
 
18677
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18678
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18679
 
 
18680
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18681
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18682
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18683
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18684
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18686
else
 
18687
          if test "$cross_compiling" = yes; then :
 
18688
  lt_cv_dlopen_self_static=cross
 
18689
else
 
18690
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18691
  lt_status=$lt_dlunknown
 
18692
  cat > conftest.$ac_ext <<EOF
 
18693
#line __oline__ "configure"
 
18694
#include "confdefs.h"
 
18695
 
 
18696
#if HAVE_DLFCN_H
 
18697
#include <dlfcn.h>
 
18698
#endif
 
18699
 
 
18700
#include <stdio.h>
 
18701
 
 
18702
#ifdef RTLD_GLOBAL
 
18703
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18704
#else
 
18705
#  ifdef DL_GLOBAL
 
18706
#    define LT_DLGLOBAL         DL_GLOBAL
 
18707
#  else
 
18708
#    define LT_DLGLOBAL         0
 
18709
#  endif
 
18710
#endif
 
18711
 
 
18712
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18713
   find out it does not work in some platform. */
 
18714
#ifndef LT_DLLAZY_OR_NOW
 
18715
#  ifdef RTLD_LAZY
 
18716
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18717
#  else
 
18718
#    ifdef DL_LAZY
 
18719
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18720
#    else
 
18721
#      ifdef RTLD_NOW
 
18722
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18723
#      else
 
18724
#        ifdef DL_NOW
 
18725
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18726
#        else
 
18727
#          define LT_DLLAZY_OR_NOW      0
 
18728
#        endif
 
18729
#      endif
 
18730
#    endif
 
18731
#  endif
 
18732
#endif
 
18733
 
 
18734
#ifdef __cplusplus
 
18735
extern "C" void exit (int);
 
18736
#endif
 
18737
 
 
18738
void fnord() { int i=42;}
 
18739
int main ()
 
18740
{
 
18741
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18742
  int status = $lt_dlunknown;
 
18743
 
 
18744
  if (self)
 
18745
    {
 
18746
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18747
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18748
      /* dlclose (self); */
 
18749
    }
 
18750
 
 
18751
    exit (status);
 
18752
}
 
18753
EOF
 
18754
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18755
  (eval $ac_link) 2>&5
 
18756
  ac_status=$?
 
18757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18758
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18759
    (./conftest; exit; ) >&5 2>/dev/null
 
18760
    lt_status=$?
 
18761
    case x$lt_status in
 
18762
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18763
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18764
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18765
    esac
 
18766
  else :
 
18767
    # compilation failed
 
18768
    lt_cv_dlopen_self_static=no
 
18769
  fi
 
18770
fi
 
18771
rm -fr conftest*
 
18772
 
 
18773
      
 
18774
fi
 
18775
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18776
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18777
    fi
 
18778
 
 
18779
    CPPFLAGS="$save_CPPFLAGS"
 
18780
    LDFLAGS="$save_LDFLAGS"
 
18781
    LIBS="$save_LIBS"
 
18782
    ;;
 
18783
  esac
 
18784
 
 
18785
  case $lt_cv_dlopen_self in
 
18786
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18787
  *) enable_dlopen_self=unknown ;;
 
18788
  esac
 
18789
 
 
18790
  case $lt_cv_dlopen_self_static in
 
18791
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18792
  *) enable_dlopen_self_static=unknown ;;
 
18793
  esac
 
18794
fi
 
18795
 
 
18796
 
 
18797
# The else clause should only fire when bootstrapping the
 
18798
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18799
# with your package, and you will get complaints that there are
 
18800
# no rules to generate ltmain.sh.
 
18801
if test -f "$ltmain"; then
 
18802
  # See if we are running on zsh, and set the options which allow our commands through
 
18803
  # without removal of \ escapes.
 
18804
  if test -n "${ZSH_VERSION+set}" ; then
 
18805
    setopt NO_GLOB_SUBST
 
18806
  fi
 
18807
  # Now quote all the things that may contain metacharacters while being
 
18808
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18809
  # variables and quote the copies for generation of the libtool script.
 
18810
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18811
    SED SHELL STRIP \
 
18812
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18813
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18814
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18815
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18816
    lt_cv_sys_global_symbol_to_c_name_address \
 
18817
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18818
    old_postinstall_cmds old_postuninstall_cmds \
 
18819
    compiler_GCJ \
 
18820
    CC_GCJ \
 
18821
    LD_GCJ \
 
18822
    lt_prog_compiler_wl_GCJ \
 
18823
    lt_prog_compiler_pic_GCJ \
 
18824
    lt_prog_compiler_static_GCJ \
 
18825
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18826
    export_dynamic_flag_spec_GCJ \
 
18827
    thread_safe_flag_spec_GCJ \
 
18828
    whole_archive_flag_spec_GCJ \
 
18829
    enable_shared_with_static_runtimes_GCJ \
 
18830
    old_archive_cmds_GCJ \
 
18831
    old_archive_from_new_cmds_GCJ \
 
18832
    predep_objects_GCJ \
 
18833
    postdep_objects_GCJ \
 
18834
    predeps_GCJ \
 
18835
    postdeps_GCJ \
 
18836
    compiler_lib_search_path_GCJ \
 
18837
    archive_cmds_GCJ \
 
18838
    archive_expsym_cmds_GCJ \
 
18839
    postinstall_cmds_GCJ \
 
18840
    postuninstall_cmds_GCJ \
 
18841
    old_archive_from_expsyms_cmds_GCJ \
 
18842
    allow_undefined_flag_GCJ \
 
18843
    no_undefined_flag_GCJ \
 
18844
    export_symbols_cmds_GCJ \
 
18845
    hardcode_libdir_flag_spec_GCJ \
 
18846
    hardcode_libdir_flag_spec_ld_GCJ \
 
18847
    hardcode_libdir_separator_GCJ \
 
18848
    hardcode_automatic_GCJ \
 
18849
    module_cmds_GCJ \
 
18850
    module_expsym_cmds_GCJ \
 
18851
    lt_cv_prog_compiler_c_o_GCJ \
 
18852
    exclude_expsyms_GCJ \
 
18853
    include_expsyms_GCJ; do
 
18854
 
 
18855
    case $var in
 
18856
    old_archive_cmds_GCJ | \
 
18857
    old_archive_from_new_cmds_GCJ | \
 
18858
    archive_cmds_GCJ | \
 
18859
    archive_expsym_cmds_GCJ | \
 
18860
    module_cmds_GCJ | \
 
18861
    module_expsym_cmds_GCJ | \
 
18862
    old_archive_from_expsyms_cmds_GCJ | \
 
18863
    export_symbols_cmds_GCJ | \
 
18864
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18865
    postinstall_cmds | postuninstall_cmds | \
 
18866
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18867
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18868
      # Double-quote double-evaled strings.
 
18869
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18870
      ;;
 
18871
    *)
 
18872
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18873
      ;;
 
18874
    esac
 
18875
  done
 
18876
 
 
18877
  case $lt_echo in
 
18878
  *'\$0 --fallback-echo"')
 
18879
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18880
    ;;
 
18881
  esac
 
18882
 
 
18883
cfgfile="$ofile"
 
18884
 
 
18885
  cat <<__EOF__ >> "$cfgfile"
 
18886
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18887
 
 
18888
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18889
 
 
18890
# Shell to use when invoking shell scripts.
 
18891
SHELL=$lt_SHELL
 
18892
 
 
18893
# Whether or not to build shared libraries.
 
18894
build_libtool_libs=$enable_shared
 
18895
 
 
18896
# Whether or not to build static libraries.
 
18897
build_old_libs=$enable_static
 
18898
 
 
18899
# Whether or not to add -lc for building shared libraries.
 
18900
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18901
 
 
18902
# Whether or not to disallow shared libs when runtime libs are static
 
18903
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18904
 
 
18905
# Whether or not to optimize for fast installation.
 
18906
fast_install=$enable_fast_install
 
18907
 
 
18908
# The host system.
 
18909
host_alias=$host_alias
 
18910
host=$host
 
18911
host_os=$host_os
 
18912
 
 
18913
# The build system.
 
18914
build_alias=$build_alias
 
18915
build=$build
 
18916
build_os=$build_os
 
18917
 
 
18918
# An echo program that does not interpret backslashes.
 
18919
echo=$lt_echo
 
18920
 
 
18921
# The archiver.
 
18922
AR=$lt_AR
 
18923
AR_FLAGS=$lt_AR_FLAGS
 
18924
 
 
18925
# A C compiler.
 
18926
LTCC=$lt_LTCC
 
18927
 
 
18928
# A language-specific compiler.
 
18929
CC=$lt_compiler_GCJ
 
18930
 
 
18931
# Is the compiler the GNU C compiler?
 
18932
with_gcc=$GCC_GCJ
 
18933
 
 
18934
# An ERE matcher.
 
18935
EGREP=$lt_EGREP
 
18936
 
 
18937
# The linker used to build libraries.
 
18938
LD=$lt_LD_GCJ
 
18939
 
 
18940
# Whether we need hard or soft links.
 
18941
LN_S=$lt_LN_S
 
18942
 
 
18943
# A BSD-compatible nm program.
 
18944
NM=$lt_NM
 
18945
 
 
18946
# A symbol stripping program
 
18947
STRIP=$lt_STRIP
 
18948
 
 
18949
# Used to examine libraries when file_magic_cmd begins "file"
 
18950
MAGIC_CMD=$MAGIC_CMD
 
18951
 
 
18952
# Used on cygwin: DLL creation program.
 
18953
DLLTOOL="$DLLTOOL"
 
18954
 
 
18955
# Used on cygwin: object dumper.
 
18956
OBJDUMP="$OBJDUMP"
 
18957
 
 
18958
# Used on cygwin: assembler.
 
18959
AS="$AS"
 
18960
 
 
18961
# The name of the directory that contains temporary libtool files.
 
18962
objdir=$objdir
 
18963
 
 
18964
# How to create reloadable object files.
 
18965
reload_flag=$lt_reload_flag
 
18966
reload_cmds=$lt_reload_cmds
 
18967
 
 
18968
# How to pass a linker flag through the compiler.
 
18969
wl=$lt_lt_prog_compiler_wl_GCJ
 
18970
 
 
18971
# Object file suffix (normally "o").
 
18972
objext="$ac_objext"
 
18973
 
 
18974
# Old archive suffix (normally "a").
 
18975
libext="$libext"
 
18976
 
 
18977
# Shared library suffix (normally ".so").
 
18978
shrext_cmds='$shrext_cmds'
 
18979
 
 
18980
# Executable file suffix (normally "").
 
18981
exeext="$exeext"
 
18982
 
 
18983
# Additional compiler flags for building library objects.
 
18984
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18985
pic_mode=$pic_mode
 
18986
 
 
18987
# What is the maximum length of a command?
 
18988
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18989
 
 
18990
# Does compiler simultaneously support -c and -o options?
 
18991
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18992
 
 
18993
# Must we lock files when doing compilation?
 
18994
need_locks=$lt_need_locks
 
18995
 
 
18996
# Do we need the lib prefix for modules?
 
18997
need_lib_prefix=$need_lib_prefix
 
18998
 
 
18999
# Do we need a version for libraries?
 
19000
need_version=$need_version
 
19001
 
 
19002
# Whether dlopen is supported.
 
19003
dlopen_support=$enable_dlopen
 
19004
 
 
19005
# Whether dlopen of programs is supported.
 
19006
dlopen_self=$enable_dlopen_self
 
19007
 
 
19008
# Whether dlopen of statically linked programs is supported.
 
19009
dlopen_self_static=$enable_dlopen_self_static
 
19010
 
 
19011
# Compiler flag to prevent dynamic linking.
 
19012
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19013
 
 
19014
# Compiler flag to turn off builtin functions.
 
19015
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19016
 
 
19017
# Compiler flag to allow reflexive dlopens.
 
19018
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19019
 
 
19020
# Compiler flag to generate shared objects directly from archives.
 
19021
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19022
 
 
19023
# Compiler flag to generate thread-safe objects.
 
19024
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19025
 
 
19026
# Library versioning type.
 
19027
version_type=$version_type
 
19028
 
 
19029
# Format of library name prefix.
 
19030
libname_spec=$lt_libname_spec
 
19031
 
 
19032
# List of archive names.  First name is the real one, the rest are links.
 
19033
# The last name is the one that the linker finds with -lNAME.
 
19034
library_names_spec=$lt_library_names_spec
 
19035
 
 
19036
# The coded name of the library, if different from the real name.
 
19037
soname_spec=$lt_soname_spec
 
19038
 
 
19039
# Commands used to build and install an old-style archive.
 
19040
RANLIB=$lt_RANLIB
 
19041
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19042
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19043
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19044
 
 
19045
# Create an old-style archive from a shared archive.
 
19046
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19047
 
 
19048
# Create a temporary old-style archive to link instead of a shared archive.
 
19049
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19050
 
 
19051
# Commands used to build and install a shared archive.
 
19052
archive_cmds=$lt_archive_cmds_GCJ
 
19053
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19054
postinstall_cmds=$lt_postinstall_cmds
 
19055
postuninstall_cmds=$lt_postuninstall_cmds
 
19056
 
 
19057
# Commands used to build a loadable module (assumed same as above if empty)
 
19058
module_cmds=$lt_module_cmds_GCJ
 
19059
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19060
 
 
19061
# Commands to strip libraries.
 
19062
old_striplib=$lt_old_striplib
 
19063
striplib=$lt_striplib
 
19064
 
 
19065
# Dependencies to place before the objects being linked to create a
 
19066
# shared library.
 
19067
predep_objects=$lt_predep_objects_GCJ
 
19068
 
 
19069
# Dependencies to place after the objects being linked to create a
 
19070
# shared library.
 
19071
postdep_objects=$lt_postdep_objects_GCJ
 
19072
 
 
19073
# Dependencies to place before the objects being linked to create a
 
19074
# shared library.
 
19075
predeps=$lt_predeps_GCJ
 
19076
 
 
19077
# Dependencies to place after the objects being linked to create a
 
19078
# shared library.
 
19079
postdeps=$lt_postdeps_GCJ
 
19080
 
 
19081
# The library search path used internally by the compiler when linking
 
19082
# a shared library.
 
19083
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19084
 
 
19085
# Method to check whether dependent libraries are shared objects.
 
19086
deplibs_check_method=$lt_deplibs_check_method
 
19087
 
 
19088
# Command to use when deplibs_check_method == file_magic.
 
19089
file_magic_cmd=$lt_file_magic_cmd
 
19090
 
 
19091
# Flag that allows shared libraries with undefined symbols to be built.
 
19092
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19093
 
 
19094
# Flag that forces no undefined symbols.
 
19095
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19096
 
 
19097
# Commands used to finish a libtool library installation in a directory.
 
19098
finish_cmds=$lt_finish_cmds
 
19099
 
 
19100
# Same as above, but a single script fragment to be evaled but not shown.
 
19101
finish_eval=$lt_finish_eval
 
19102
 
 
19103
# Take the output of nm and produce a listing of raw symbols and C names.
 
19104
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19105
 
 
19106
# Transform the output of nm in a proper C declaration
 
19107
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19108
 
 
19109
# Transform the output of nm in a C name address pair
 
19110
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19111
 
 
19112
# This is the shared library runtime path variable.
 
19113
runpath_var=$runpath_var
 
19114
 
 
19115
# This is the shared library path variable.
 
19116
shlibpath_var=$shlibpath_var
 
19117
 
 
19118
# Is shlibpath searched before the hard-coded library search path?
 
19119
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19120
 
 
19121
# How to hardcode a shared library path into an executable.
 
19122
hardcode_action=$hardcode_action_GCJ
 
19123
 
 
19124
# Whether we should hardcode library paths into libraries.
 
19125
hardcode_into_libs=$hardcode_into_libs
 
19126
 
 
19127
# Flag to hardcode \$libdir into a binary during linking.
 
19128
# This must work even if \$libdir does not exist.
 
19129
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19130
 
 
19131
# If ld is used when linking, flag to hardcode \$libdir into
 
19132
# a binary during linking. This must work even if \$libdir does
 
19133
# not exist.
 
19134
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19135
 
 
19136
# Whether we need a single -rpath flag with a separated argument.
 
19137
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19138
 
 
19139
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19140
# resulting binary.
 
19141
hardcode_direct=$hardcode_direct_GCJ
 
19142
 
 
19143
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19144
# resulting binary.
 
19145
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19146
 
 
19147
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19148
# the resulting binary.
 
19149
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19150
 
 
19151
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19152
# and all subsequent libraries and executables linked against it.
 
19153
hardcode_automatic=$hardcode_automatic_GCJ
 
19154
 
 
19155
# Variables whose values should be saved in libtool wrapper scripts and
 
19156
# restored at relink time.
 
19157
variables_saved_for_relink="$variables_saved_for_relink"
 
19158
 
 
19159
# Whether libtool must link a program against all its dependency libraries.
 
19160
link_all_deplibs=$link_all_deplibs_GCJ
 
19161
 
 
19162
# Compile-time system search path for libraries
 
19163
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19164
 
 
19165
# Run-time system search path for libraries
 
19166
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19167
 
 
19168
# Fix the shell variable \$srcfile for the compiler.
 
19169
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19170
 
 
19171
# Set to yes if exported symbols are required.
 
19172
always_export_symbols=$always_export_symbols_GCJ
 
19173
 
 
19174
# The commands to list exported symbols.
 
19175
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19176
 
 
19177
# The commands to extract the exported symbol list from a shared archive.
 
19178
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19179
 
 
19180
# Symbols that should not be listed in the preloaded symbols.
 
19181
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19182
 
 
19183
# Symbols that must always be exported.
 
19184
include_expsyms=$lt_include_expsyms_GCJ
 
19185
 
 
19186
# ### END LIBTOOL TAG CONFIG: $tagname
 
19187
 
 
19188
__EOF__
 
19189
 
 
19190
 
 
19191
else
 
19192
  # If there is no Makefile yet, we rely on a make rule to execute
 
19193
  # `config.status --recheck' to rerun these tests and create the
 
19194
  # libtool script then.
 
19195
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19196
  if test -f "$ltmain_in"; then
 
19197
    test -f Makefile && make "$ltmain"
 
19198
  fi
 
19199
fi
 
19200
 
 
19201
 
 
19202
ac_ext=c
 
19203
ac_cpp='$CPP $CPPFLAGS'
 
19204
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19205
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19206
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19207
 
 
19208
CC="$lt_save_CC"
 
19209
 
 
19210
        else
 
19211
          tagname=""
 
19212
        fi
 
19213
        ;;
 
19214
 
 
19215
      RC)
 
19216
        
 
19217
 
 
19218
 
 
19219
# Source file extension for RC test sources.
 
19220
ac_ext=rc
 
19221
 
 
19222
# Object file extension for compiled RC test sources.
 
19223
objext=o
 
19224
objext_RC=$objext
 
19225
 
 
19226
# Code to be used in simple compile tests
 
19227
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19228
 
 
19229
# Code to be used in simple link tests
 
19230
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19231
 
 
19232
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19233
 
 
19234
# If no C compiler was specified, use CC.
 
19235
LTCC=${LTCC-"$CC"}
 
19236
 
 
19237
# Allow CC to be a program name with arguments.
 
19238
compiler=$CC
 
19239
 
 
19240
 
 
19241
# save warnings/boilerplate of simple test code
 
19242
ac_outfile=conftest.$ac_objext
 
19243
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19244
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19245
_lt_compiler_boilerplate=`cat conftest.err`
 
19246
$rm conftest*
 
19247
 
 
19248
ac_outfile=conftest.$ac_objext
 
19249
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19250
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19251
_lt_linker_boilerplate=`cat conftest.err`
 
19252
$rm conftest*
 
19253
 
 
19254
 
 
19255
# Allow CC to be a program name with arguments.
 
19256
lt_save_CC="$CC"
 
19257
CC=${RC-"windres"}
 
19258
compiler=$CC
 
19259
compiler_RC=$CC
 
19260
for cc_temp in $compiler""; do
 
19261
  case $cc_temp in
 
19262
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19263
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19264
    \-*) ;;
 
19265
    *) break;;
 
19266
  esac
 
19267
done
 
19268
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19269
 
 
19270
lt_cv_prog_compiler_c_o_RC=yes
 
19271
 
 
19272
# The else clause should only fire when bootstrapping the
 
19273
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19274
# with your package, and you will get complaints that there are
 
19275
# no rules to generate ltmain.sh.
 
19276
if test -f "$ltmain"; then
 
19277
  # See if we are running on zsh, and set the options which allow our commands through
 
19278
  # without removal of \ escapes.
 
19279
  if test -n "${ZSH_VERSION+set}" ; then
 
19280
    setopt NO_GLOB_SUBST
 
19281
  fi
 
19282
  # Now quote all the things that may contain metacharacters while being
 
19283
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19284
  # variables and quote the copies for generation of the libtool script.
 
19285
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19286
    SED SHELL STRIP \
 
19287
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19288
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19289
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19290
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19291
    lt_cv_sys_global_symbol_to_c_name_address \
 
19292
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19293
    old_postinstall_cmds old_postuninstall_cmds \
 
19294
    compiler_RC \
 
19295
    CC_RC \
 
19296
    LD_RC \
 
19297
    lt_prog_compiler_wl_RC \
 
19298
    lt_prog_compiler_pic_RC \
 
19299
    lt_prog_compiler_static_RC \
 
19300
    lt_prog_compiler_no_builtin_flag_RC \
 
19301
    export_dynamic_flag_spec_RC \
 
19302
    thread_safe_flag_spec_RC \
 
19303
    whole_archive_flag_spec_RC \
 
19304
    enable_shared_with_static_runtimes_RC \
 
19305
    old_archive_cmds_RC \
 
19306
    old_archive_from_new_cmds_RC \
 
19307
    predep_objects_RC \
 
19308
    postdep_objects_RC \
 
19309
    predeps_RC \
 
19310
    postdeps_RC \
 
19311
    compiler_lib_search_path_RC \
 
19312
    archive_cmds_RC \
 
19313
    archive_expsym_cmds_RC \
 
19314
    postinstall_cmds_RC \
 
19315
    postuninstall_cmds_RC \
 
19316
    old_archive_from_expsyms_cmds_RC \
 
19317
    allow_undefined_flag_RC \
 
19318
    no_undefined_flag_RC \
 
19319
    export_symbols_cmds_RC \
 
19320
    hardcode_libdir_flag_spec_RC \
 
19321
    hardcode_libdir_flag_spec_ld_RC \
 
19322
    hardcode_libdir_separator_RC \
 
19323
    hardcode_automatic_RC \
 
19324
    module_cmds_RC \
 
19325
    module_expsym_cmds_RC \
 
19326
    lt_cv_prog_compiler_c_o_RC \
 
19327
    exclude_expsyms_RC \
 
19328
    include_expsyms_RC; do
 
19329
 
 
19330
    case $var in
 
19331
    old_archive_cmds_RC | \
 
19332
    old_archive_from_new_cmds_RC | \
 
19333
    archive_cmds_RC | \
 
19334
    archive_expsym_cmds_RC | \
 
19335
    module_cmds_RC | \
 
19336
    module_expsym_cmds_RC | \
 
19337
    old_archive_from_expsyms_cmds_RC | \
 
19338
    export_symbols_cmds_RC | \
 
19339
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19340
    postinstall_cmds | postuninstall_cmds | \
 
19341
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19342
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19343
      # Double-quote double-evaled strings.
 
19344
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19345
      ;;
 
19346
    *)
 
19347
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19348
      ;;
 
19349
    esac
 
19350
  done
 
19351
 
 
19352
  case $lt_echo in
 
19353
  *'\$0 --fallback-echo"')
 
19354
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19355
    ;;
 
19356
  esac
 
19357
 
 
19358
cfgfile="$ofile"
 
19359
 
 
19360
  cat <<__EOF__ >> "$cfgfile"
 
19361
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19362
 
 
19363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19364
 
 
19365
# Shell to use when invoking shell scripts.
 
19366
SHELL=$lt_SHELL
 
19367
 
 
19368
# Whether or not to build shared libraries.
 
19369
build_libtool_libs=$enable_shared
 
19370
 
 
19371
# Whether or not to build static libraries.
 
19372
build_old_libs=$enable_static
 
19373
 
 
19374
# Whether or not to add -lc for building shared libraries.
 
19375
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19376
 
 
19377
# Whether or not to disallow shared libs when runtime libs are static
 
19378
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19379
 
 
19380
# Whether or not to optimize for fast installation.
 
19381
fast_install=$enable_fast_install
 
19382
 
 
19383
# The host system.
 
19384
host_alias=$host_alias
 
19385
host=$host
 
19386
host_os=$host_os
 
19387
 
 
19388
# The build system.
 
19389
build_alias=$build_alias
 
19390
build=$build
 
19391
build_os=$build_os
 
19392
 
 
19393
# An echo program that does not interpret backslashes.
 
19394
echo=$lt_echo
 
19395
 
 
19396
# The archiver.
 
19397
AR=$lt_AR
 
19398
AR_FLAGS=$lt_AR_FLAGS
 
19399
 
 
19400
# A C compiler.
 
19401
LTCC=$lt_LTCC
 
19402
 
 
19403
# A language-specific compiler.
 
19404
CC=$lt_compiler_RC
 
19405
 
 
19406
# Is the compiler the GNU C compiler?
 
19407
with_gcc=$GCC_RC
 
19408
 
 
19409
# An ERE matcher.
 
19410
EGREP=$lt_EGREP
 
19411
 
 
19412
# The linker used to build libraries.
 
19413
LD=$lt_LD_RC
 
19414
 
 
19415
# Whether we need hard or soft links.
 
19416
LN_S=$lt_LN_S
 
19417
 
 
19418
# A BSD-compatible nm program.
 
19419
NM=$lt_NM
 
19420
 
 
19421
# A symbol stripping program
 
19422
STRIP=$lt_STRIP
 
19423
 
 
19424
# Used to examine libraries when file_magic_cmd begins "file"
 
19425
MAGIC_CMD=$MAGIC_CMD
 
19426
 
 
19427
# Used on cygwin: DLL creation program.
 
19428
DLLTOOL="$DLLTOOL"
 
19429
 
 
19430
# Used on cygwin: object dumper.
 
19431
OBJDUMP="$OBJDUMP"
 
19432
 
 
19433
# Used on cygwin: assembler.
 
19434
AS="$AS"
 
19435
 
 
19436
# The name of the directory that contains temporary libtool files.
 
19437
objdir=$objdir
 
19438
 
 
19439
# How to create reloadable object files.
 
19440
reload_flag=$lt_reload_flag
 
19441
reload_cmds=$lt_reload_cmds
 
19442
 
 
19443
# How to pass a linker flag through the compiler.
 
19444
wl=$lt_lt_prog_compiler_wl_RC
 
19445
 
 
19446
# Object file suffix (normally "o").
 
19447
objext="$ac_objext"
 
19448
 
 
19449
# Old archive suffix (normally "a").
 
19450
libext="$libext"
 
19451
 
 
19452
# Shared library suffix (normally ".so").
 
19453
shrext_cmds='$shrext_cmds'
 
19454
 
 
19455
# Executable file suffix (normally "").
 
19456
exeext="$exeext"
 
19457
 
 
19458
# Additional compiler flags for building library objects.
 
19459
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19460
pic_mode=$pic_mode
 
19461
 
 
19462
# What is the maximum length of a command?
 
19463
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19464
 
 
19465
# Does compiler simultaneously support -c and -o options?
 
19466
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19467
 
 
19468
# Must we lock files when doing compilation?
 
19469
need_locks=$lt_need_locks
 
19470
 
 
19471
# Do we need the lib prefix for modules?
 
19472
need_lib_prefix=$need_lib_prefix
 
19473
 
 
19474
# Do we need a version for libraries?
 
19475
need_version=$need_version
 
19476
 
 
19477
# Whether dlopen is supported.
 
19478
dlopen_support=$enable_dlopen
 
19479
 
 
19480
# Whether dlopen of programs is supported.
 
19481
dlopen_self=$enable_dlopen_self
 
19482
 
 
19483
# Whether dlopen of statically linked programs is supported.
 
19484
dlopen_self_static=$enable_dlopen_self_static
 
19485
 
 
19486
# Compiler flag to prevent dynamic linking.
 
19487
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19488
 
 
19489
# Compiler flag to turn off builtin functions.
 
19490
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19491
 
 
19492
# Compiler flag to allow reflexive dlopens.
 
19493
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19494
 
 
19495
# Compiler flag to generate shared objects directly from archives.
 
19496
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19497
 
 
19498
# Compiler flag to generate thread-safe objects.
 
19499
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19500
 
 
19501
# Library versioning type.
 
19502
version_type=$version_type
 
19503
 
 
19504
# Format of library name prefix.
 
19505
libname_spec=$lt_libname_spec
 
19506
 
 
19507
# List of archive names.  First name is the real one, the rest are links.
 
19508
# The last name is the one that the linker finds with -lNAME.
 
19509
library_names_spec=$lt_library_names_spec
 
19510
 
 
19511
# The coded name of the library, if different from the real name.
 
19512
soname_spec=$lt_soname_spec
 
19513
 
 
19514
# Commands used to build and install an old-style archive.
 
19515
RANLIB=$lt_RANLIB
 
19516
old_archive_cmds=$lt_old_archive_cmds_RC
 
19517
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19518
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19519
 
 
19520
# Create an old-style archive from a shared archive.
 
19521
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19522
 
 
19523
# Create a temporary old-style archive to link instead of a shared archive.
 
19524
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19525
 
 
19526
# Commands used to build and install a shared archive.
 
19527
archive_cmds=$lt_archive_cmds_RC
 
19528
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19529
postinstall_cmds=$lt_postinstall_cmds
 
19530
postuninstall_cmds=$lt_postuninstall_cmds
 
19531
 
 
19532
# Commands used to build a loadable module (assumed same as above if empty)
 
19533
module_cmds=$lt_module_cmds_RC
 
19534
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19535
 
 
19536
# Commands to strip libraries.
 
19537
old_striplib=$lt_old_striplib
 
19538
striplib=$lt_striplib
 
19539
 
 
19540
# Dependencies to place before the objects being linked to create a
 
19541
# shared library.
 
19542
predep_objects=$lt_predep_objects_RC
 
19543
 
 
19544
# Dependencies to place after the objects being linked to create a
 
19545
# shared library.
 
19546
postdep_objects=$lt_postdep_objects_RC
 
19547
 
 
19548
# Dependencies to place before the objects being linked to create a
 
19549
# shared library.
 
19550
predeps=$lt_predeps_RC
 
19551
 
 
19552
# Dependencies to place after the objects being linked to create a
 
19553
# shared library.
 
19554
postdeps=$lt_postdeps_RC
 
19555
 
 
19556
# The library search path used internally by the compiler when linking
 
19557
# a shared library.
 
19558
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19559
 
 
19560
# Method to check whether dependent libraries are shared objects.
 
19561
deplibs_check_method=$lt_deplibs_check_method
 
19562
 
 
19563
# Command to use when deplibs_check_method == file_magic.
 
19564
file_magic_cmd=$lt_file_magic_cmd
 
19565
 
 
19566
# Flag that allows shared libraries with undefined symbols to be built.
 
19567
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19568
 
 
19569
# Flag that forces no undefined symbols.
 
19570
no_undefined_flag=$lt_no_undefined_flag_RC
 
19571
 
 
19572
# Commands used to finish a libtool library installation in a directory.
 
19573
finish_cmds=$lt_finish_cmds
 
19574
 
 
19575
# Same as above, but a single script fragment to be evaled but not shown.
 
19576
finish_eval=$lt_finish_eval
 
19577
 
 
19578
# Take the output of nm and produce a listing of raw symbols and C names.
 
19579
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19580
 
 
19581
# Transform the output of nm in a proper C declaration
 
19582
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19583
 
 
19584
# Transform the output of nm in a C name address pair
 
19585
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19586
 
 
19587
# This is the shared library runtime path variable.
 
19588
runpath_var=$runpath_var
 
19589
 
 
19590
# This is the shared library path variable.
 
19591
shlibpath_var=$shlibpath_var
 
19592
 
 
19593
# Is shlibpath searched before the hard-coded library search path?
 
19594
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19595
 
 
19596
# How to hardcode a shared library path into an executable.
 
19597
hardcode_action=$hardcode_action_RC
 
19598
 
 
19599
# Whether we should hardcode library paths into libraries.
 
19600
hardcode_into_libs=$hardcode_into_libs
 
19601
 
 
19602
# Flag to hardcode \$libdir into a binary during linking.
 
19603
# This must work even if \$libdir does not exist.
 
19604
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19605
 
 
19606
# If ld is used when linking, flag to hardcode \$libdir into
 
19607
# a binary during linking. This must work even if \$libdir does
 
19608
# not exist.
 
19609
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19610
 
 
19611
# Whether we need a single -rpath flag with a separated argument.
 
19612
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19613
 
 
19614
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19615
# resulting binary.
 
19616
hardcode_direct=$hardcode_direct_RC
 
19617
 
 
19618
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19619
# resulting binary.
 
19620
hardcode_minus_L=$hardcode_minus_L_RC
 
19621
 
 
19622
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19623
# the resulting binary.
 
19624
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19625
 
 
19626
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19627
# and all subsequent libraries and executables linked against it.
 
19628
hardcode_automatic=$hardcode_automatic_RC
 
19629
 
 
19630
# Variables whose values should be saved in libtool wrapper scripts and
 
19631
# restored at relink time.
 
19632
variables_saved_for_relink="$variables_saved_for_relink"
 
19633
 
 
19634
# Whether libtool must link a program against all its dependency libraries.
 
19635
link_all_deplibs=$link_all_deplibs_RC
 
19636
 
 
19637
# Compile-time system search path for libraries
 
19638
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19639
 
 
19640
# Run-time system search path for libraries
 
19641
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19642
 
 
19643
# Fix the shell variable \$srcfile for the compiler.
 
19644
fix_srcfile_path="$fix_srcfile_path_RC"
 
19645
 
 
19646
# Set to yes if exported symbols are required.
 
19647
always_export_symbols=$always_export_symbols_RC
 
19648
 
 
19649
# The commands to list exported symbols.
 
19650
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19651
 
 
19652
# The commands to extract the exported symbol list from a shared archive.
 
19653
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19654
 
 
19655
# Symbols that should not be listed in the preloaded symbols.
 
19656
exclude_expsyms=$lt_exclude_expsyms_RC
 
19657
 
 
19658
# Symbols that must always be exported.
 
19659
include_expsyms=$lt_include_expsyms_RC
 
19660
 
 
19661
# ### END LIBTOOL TAG CONFIG: $tagname
 
19662
 
 
19663
__EOF__
 
19664
 
 
19665
 
 
19666
else
 
19667
  # If there is no Makefile yet, we rely on a make rule to execute
 
19668
  # `config.status --recheck' to rerun these tests and create the
 
19669
  # libtool script then.
 
19670
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19671
  if test -f "$ltmain_in"; then
 
19672
    test -f Makefile && make "$ltmain"
 
19673
  fi
 
19674
fi
 
19675
 
 
19676
 
 
19677
ac_ext=c
 
19678
ac_cpp='$CPP $CPPFLAGS'
 
19679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19682
 
 
19683
CC="$lt_save_CC"
 
19684
 
 
19685
        ;;
 
19686
 
 
19687
      *)
 
19688
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19689
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19690
   { (exit 1); exit 1; }; }
 
19691
        ;;
 
19692
      esac
 
19693
 
 
19694
      # Append the new tag name to the list of available tags.
 
19695
      if test -n "$tagname" ; then
 
19696
      available_tags="$available_tags $tagname"
 
19697
    fi
 
19698
    fi
 
19699
  done
 
19700
  IFS="$lt_save_ifs"
 
19701
 
 
19702
  # Now substitute the updated list of available tags.
 
19703
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19704
    mv "${ofile}T" "$ofile"
 
19705
    chmod +x "$ofile"
 
19706
  else
 
19707
    rm -f "${ofile}T"
 
19708
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19709
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19710
   { (exit 1); exit 1; }; }
 
19711
  fi
 
19712
fi
 
19713
 
 
19714
 
 
19715
 
 
19716
# This can be used to rebuild libtool when needed
 
19717
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19718
 
 
19719
# Always use our own libtool.
 
19720
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19721
 
 
19722
# Prevent multiple expansion
 
19723
 
 
19724
 
 
19725
 
 
19726
 
 
19727
 
 
19728
 
 
19729
 
 
19730
 
 
19731
 
 
19732
 
 
19733
 
 
19734
  
 
19735
 
 
19736
  
 
19737
 
 
19738
 
 
19739
  
 
19740
       
 
19741
       
 
19742
 
 
19743
 
 
19744
 
 
19745
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
19746
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
19747
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
19748
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19749
else
 
19750
  ac_check_lib_save_LIBS=$LIBS
 
19751
LIBS="-lcposix  $LIBS"
 
19752
cat >conftest.$ac_ext <<_ACEOF
 
19753
/* confdefs.h.  */
 
19754
_ACEOF
 
19755
cat confdefs.h >>conftest.$ac_ext
 
19756
cat >>conftest.$ac_ext <<_ACEOF
 
19757
/* end confdefs.h.  */
 
19758
 
 
19759
/* Override any gcc2 internal prototype to avoid an error.  */
 
19760
#ifdef __cplusplus
 
19761
extern "C"
 
19762
#endif
 
19763
/* We use char because int might match the return type of a gcc2
 
19764
   builtin and then its argument prototype would still apply.  */
 
19765
char strerror ();
 
19766
int
 
19767
main ()
 
19768
{
 
19769
strerror ();
 
19770
  ;
 
19771
  return 0;
 
19772
}
 
19773
_ACEOF
 
19774
rm -f conftest.$ac_objext conftest$ac_exeext
 
19775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19776
  (eval $ac_link) 2>conftest.er1
 
19777
  ac_status=$?
 
19778
  grep -v '^ *+' conftest.er1 >conftest.err
 
19779
  rm -f conftest.er1
 
19780
  cat conftest.err >&5
 
19781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19782
  (exit $ac_status); } &&
 
19783
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19785
  (eval $ac_try) 2>&5
 
19786
  ac_status=$?
 
19787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19788
  (exit $ac_status); }; } &&
 
19789
         { ac_try='test -s conftest$ac_exeext'
 
19790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19791
  (eval $ac_try) 2>&5
 
19792
  ac_status=$?
 
19793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19794
  (exit $ac_status); }; }; then
 
19795
  ac_cv_lib_cposix_strerror=yes
 
19796
else
 
19797
  echo "$as_me: failed program was:" >&5
 
19798
sed 's/^/| /' conftest.$ac_ext >&5
 
19799
 
 
19800
ac_cv_lib_cposix_strerror=no
 
19801
fi
 
19802
rm -f conftest.err conftest.$ac_objext \
 
19803
      conftest$ac_exeext conftest.$ac_ext
 
19804
LIBS=$ac_check_lib_save_LIBS
 
19805
fi
 
19806
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
19807
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
19808
if test $ac_cv_lib_cposix_strerror = yes; then
 
19809
  LIBS="$LIBS -lcposix"
 
19810
fi
 
19811
 
 
19812
  
 
19813
 
 
19814
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
19815
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
19816
if test "${ac_cv_c_bigendian+set}" = set; then
 
19817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19818
else
 
19819
  # See if sys/param.h defines the BYTE_ORDER macro.
 
19820
cat >conftest.$ac_ext <<_ACEOF
 
19821
/* confdefs.h.  */
 
19822
_ACEOF
 
19823
cat confdefs.h >>conftest.$ac_ext
 
19824
cat >>conftest.$ac_ext <<_ACEOF
 
19825
/* end confdefs.h.  */
 
19826
#include <sys/types.h>
 
19827
#include <sys/param.h>
 
19828
 
 
19829
int
 
19830
main ()
 
19831
{
 
19832
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
19833
 bogus endian macros
 
19834
#endif
 
19835
 
 
19836
  ;
 
19837
  return 0;
 
19838
}
 
19839
_ACEOF
 
19840
rm -f conftest.$ac_objext
 
19841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19842
  (eval $ac_compile) 2>conftest.er1
 
19843
  ac_status=$?
 
19844
  grep -v '^ *+' conftest.er1 >conftest.err
 
19845
  rm -f conftest.er1
 
19846
  cat conftest.err >&5
 
19847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19848
  (exit $ac_status); } &&
 
19849
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19851
  (eval $ac_try) 2>&5
 
19852
  ac_status=$?
 
19853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19854
  (exit $ac_status); }; } &&
 
19855
         { ac_try='test -s conftest.$ac_objext'
 
19856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19857
  (eval $ac_try) 2>&5
 
19858
  ac_status=$?
 
19859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19860
  (exit $ac_status); }; }; then
 
19861
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
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
 
19875
 not big endian
 
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
  ac_cv_c_bigendian=yes
 
19904
else
 
19905
  echo "$as_me: failed program was:" >&5
 
19906
sed 's/^/| /' conftest.$ac_ext >&5
 
19907
 
 
19908
ac_cv_c_bigendian=no
 
19909
fi
 
19910
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19911
else
 
19912
  echo "$as_me: failed program was:" >&5
 
19913
sed 's/^/| /' conftest.$ac_ext >&5
 
19914
 
 
19915
# It does not; compile a test program.
 
19916
if test "$cross_compiling" = yes; then
 
19917
  # try to guess the endianness by grepping values into an object file
 
19918
  ac_cv_c_bigendian=unknown
 
19919
  cat >conftest.$ac_ext <<_ACEOF
 
19920
/* confdefs.h.  */
 
19921
_ACEOF
 
19922
cat confdefs.h >>conftest.$ac_ext
 
19923
cat >>conftest.$ac_ext <<_ACEOF
 
19924
/* end confdefs.h.  */
 
19925
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
19926
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
19927
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
19928
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
19929
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
19930
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
19931
int
 
19932
main ()
 
19933
{
 
19934
 _ascii (); _ebcdic (); 
 
19935
  ;
 
19936
  return 0;
 
19937
}
 
19938
_ACEOF
 
19939
rm -f conftest.$ac_objext
 
19940
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19941
  (eval $ac_compile) 2>conftest.er1
 
19942
  ac_status=$?
 
19943
  grep -v '^ *+' conftest.er1 >conftest.err
 
19944
  rm -f conftest.er1
 
19945
  cat conftest.err >&5
 
19946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19947
  (exit $ac_status); } &&
 
19948
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19950
  (eval $ac_try) 2>&5
 
19951
  ac_status=$?
 
19952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19953
  (exit $ac_status); }; } &&
 
19954
         { ac_try='test -s conftest.$ac_objext'
 
19955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19956
  (eval $ac_try) 2>&5
 
19957
  ac_status=$?
 
19958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19959
  (exit $ac_status); }; }; then
 
19960
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
19961
  ac_cv_c_bigendian=yes
 
19962
fi
 
19963
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
19964
  if test "$ac_cv_c_bigendian" = unknown; then
 
19965
    ac_cv_c_bigendian=no
 
19966
  else
 
19967
    # finding both strings is unlikely to happen, but who knows?
 
19968
    ac_cv_c_bigendian=unknown
 
19969
  fi
 
19970
fi
 
19971
else
 
19972
  echo "$as_me: failed program was:" >&5
 
19973
sed 's/^/| /' conftest.$ac_ext >&5
 
19974
 
 
19975
fi
 
19976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19977
else
 
19978
  cat >conftest.$ac_ext <<_ACEOF
 
19979
/* confdefs.h.  */
 
19980
_ACEOF
 
19981
cat confdefs.h >>conftest.$ac_ext
 
19982
cat >>conftest.$ac_ext <<_ACEOF
 
19983
/* end confdefs.h.  */
 
19984
int
 
19985
main ()
 
19986
{
 
19987
  /* Are we little or big endian?  From Harbison&Steele.  */
 
19988
  union
 
19989
  {
 
19990
    long l;
 
19991
    char c[sizeof (long)];
 
19992
  } u;
 
19993
  u.l = 1;
 
19994
  exit (u.c[sizeof (long) - 1] == 1);
 
19995
}
 
19996
_ACEOF
 
19997
rm -f conftest$ac_exeext
 
19998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19999
  (eval $ac_link) 2>&5
 
20000
  ac_status=$?
 
20001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20002
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20004
  (eval $ac_try) 2>&5
 
20005
  ac_status=$?
 
20006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20007
  (exit $ac_status); }; }; then
 
20008
  ac_cv_c_bigendian=no
 
20009
else
 
20010
  echo "$as_me: program exited with status $ac_status" >&5
 
20011
echo "$as_me: failed program was:" >&5
 
20012
sed 's/^/| /' conftest.$ac_ext >&5
 
20013
 
 
20014
( exit $ac_status )
 
20015
ac_cv_c_bigendian=yes
 
20016
fi
 
20017
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20018
fi
 
20019
fi
 
20020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20021
fi
 
20022
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
20023
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
20024
case $ac_cv_c_bigendian in
 
20025
  yes)
 
20026
    
 
20027
cat >>confdefs.h <<\_ACEOF
 
20028
@%:@define WORDS_BIGENDIAN 1
 
20029
_ACEOF
 
20030
 ;;
 
20031
  no)
 
20032
     ;;
 
20033
  *)
 
20034
    { { echo "$as_me:$LINENO: error: unknown endianness
 
20035
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
20036
echo "$as_me: error: unknown endianness
 
20037
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
20038
   { (exit 1); exit 1; }; } ;;
 
20039
esac
 
20040
 
 
20041
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
20042
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
20043
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
20044
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
20045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20046
else
 
20047
  cat >conftest.make <<\_ACEOF
 
20048
all:
 
20049
        @echo 'ac_maketemp="$(MAKE)"'
 
20050
_ACEOF
 
20051
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
20052
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
20053
if test -n "$ac_maketemp"; then
 
20054
  eval ac_cv_prog_make_${ac_make}_set=yes
 
20055
else
 
20056
  eval ac_cv_prog_make_${ac_make}_set=no
 
20057
fi
 
20058
rm -f conftest.make
 
20059
fi
 
20060
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
20061
  echo "$as_me:$LINENO: result: yes" >&5
 
20062
echo "${ECHO_T}yes" >&6
 
20063
  SET_MAKE=
 
20064
else
 
20065
  echo "$as_me:$LINENO: result: no" >&5
 
20066
echo "${ECHO_T}no" >&6
 
20067
  SET_MAKE="MAKE=${MAKE-make}"
 
20068
fi
 
20069
 
 
20070
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20071
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20072
if test "${ac_cv_header_stdc+set}" = set; then
 
20073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20074
else
 
20075
  cat >conftest.$ac_ext <<_ACEOF
 
20076
/* confdefs.h.  */
 
20077
_ACEOF
 
20078
cat confdefs.h >>conftest.$ac_ext
 
20079
cat >>conftest.$ac_ext <<_ACEOF
 
20080
/* end confdefs.h.  */
 
20081
#include <stdlib.h>
 
20082
#include <stdarg.h>
 
20083
#include <string.h>
 
20084
#include <float.h>
 
20085
 
 
20086
int
 
20087
main ()
 
20088
{
 
20089
 
 
20090
  ;
 
20091
  return 0;
 
20092
}
 
20093
_ACEOF
 
20094
rm -f conftest.$ac_objext
 
20095
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20096
  (eval $ac_compile) 2>conftest.er1
 
20097
  ac_status=$?
 
20098
  grep -v '^ *+' conftest.er1 >conftest.err
 
20099
  rm -f conftest.er1
 
20100
  cat conftest.err >&5
 
20101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20102
  (exit $ac_status); } &&
 
20103
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20105
  (eval $ac_try) 2>&5
 
20106
  ac_status=$?
 
20107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20108
  (exit $ac_status); }; } &&
 
20109
         { ac_try='test -s conftest.$ac_objext'
 
20110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20111
  (eval $ac_try) 2>&5
 
20112
  ac_status=$?
 
20113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20114
  (exit $ac_status); }; }; then
 
20115
  ac_cv_header_stdc=yes
 
20116
else
 
20117
  echo "$as_me: failed program was:" >&5
 
20118
sed 's/^/| /' conftest.$ac_ext >&5
 
20119
 
 
20120
ac_cv_header_stdc=no
 
20121
fi
 
20122
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20123
 
 
20124
if test $ac_cv_header_stdc = yes; then
 
20125
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20126
  cat >conftest.$ac_ext <<_ACEOF
 
20127
/* confdefs.h.  */
 
20128
_ACEOF
 
20129
cat confdefs.h >>conftest.$ac_ext
 
20130
cat >>conftest.$ac_ext <<_ACEOF
 
20131
/* end confdefs.h.  */
 
20132
#include <string.h>
 
20133
 
 
20134
_ACEOF
 
20135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20136
  $EGREP "memchr" >/dev/null 2>&1; then
 
20137
  :
 
20138
else
 
20139
  ac_cv_header_stdc=no
 
20140
fi
 
20141
rm -f conftest*
 
20142
 
 
20143
fi
 
20144
 
 
20145
if test $ac_cv_header_stdc = yes; then
 
20146
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20147
  cat >conftest.$ac_ext <<_ACEOF
 
20148
/* confdefs.h.  */
 
20149
_ACEOF
 
20150
cat confdefs.h >>conftest.$ac_ext
 
20151
cat >>conftest.$ac_ext <<_ACEOF
 
20152
/* end confdefs.h.  */
 
20153
#include <stdlib.h>
 
20154
 
 
20155
_ACEOF
 
20156
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20157
  $EGREP "free" >/dev/null 2>&1; then
 
20158
  :
 
20159
else
 
20160
  ac_cv_header_stdc=no
 
20161
fi
 
20162
rm -f conftest*
 
20163
 
 
20164
fi
 
20165
 
 
20166
if test $ac_cv_header_stdc = yes; then
 
20167
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20168
  if test "$cross_compiling" = yes; then
 
20169
  :
 
20170
else
 
20171
  cat >conftest.$ac_ext <<_ACEOF
 
20172
/* confdefs.h.  */
 
20173
_ACEOF
 
20174
cat confdefs.h >>conftest.$ac_ext
 
20175
cat >>conftest.$ac_ext <<_ACEOF
 
20176
/* end confdefs.h.  */
 
20177
#include <ctype.h>
 
20178
#if ((' ' & 0x0FF) == 0x020)
 
20179
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20180
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20181
#else
 
20182
# define ISLOWER(c) \
 
20183
                   (('a' <= (c) && (c) <= 'i') \
 
20184
                     || ('j' <= (c) && (c) <= 'r') \
 
20185
                     || ('s' <= (c) && (c) <= 'z'))
 
20186
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20187
#endif
 
20188
 
 
20189
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20190
int
 
20191
main ()
 
20192
{
 
20193
  int i;
 
20194
  for (i = 0; i < 256; i++)
 
20195
    if (XOR (islower (i), ISLOWER (i))
 
20196
        || toupper (i) != TOUPPER (i))
 
20197
      exit(2);
 
20198
  exit (0);
 
20199
}
 
20200
_ACEOF
 
20201
rm -f conftest$ac_exeext
 
20202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20203
  (eval $ac_link) 2>&5
 
20204
  ac_status=$?
 
20205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20206
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20208
  (eval $ac_try) 2>&5
 
20209
  ac_status=$?
 
20210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20211
  (exit $ac_status); }; }; then
 
20212
  :
 
20213
else
 
20214
  echo "$as_me: program exited with status $ac_status" >&5
 
20215
echo "$as_me: failed program was:" >&5
 
20216
sed 's/^/| /' conftest.$ac_ext >&5
 
20217
 
 
20218
( exit $ac_status )
 
20219
ac_cv_header_stdc=no
 
20220
fi
 
20221
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20222
fi
 
20223
fi
 
20224
fi
 
20225
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20226
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20227
if test $ac_cv_header_stdc = yes; then
 
20228
  
 
20229
cat >>confdefs.h <<\_ACEOF
 
20230
@%:@define STDC_HEADERS 1
 
20231
_ACEOF
 
20232
 
 
20233
fi
 
20234
 
 
20235
 
 
20236
 
 
20237
# Check whether --with-opensp-includes or --without-opensp-includes was given.
 
20238
if test "${with_opensp_includes+set}" = set; then
 
20239
  withval="$with_opensp_includes"
 
20240
  OPENSPINCLUDES="$with_opensp_includes"
 
20241
else
 
20242
  OPENSPINCLUDES="" 
 
20243
fi; 
 
20244
 
 
20245
 
 
20246
# Check whether --with-opensp-libs or --without-opensp-libs was given.
 
20247
if test "${with_opensp_libs+set}" = set; then
 
20248
  withval="$with_opensp_libs"
 
20249
  OPENSPLIBPATH="$with_opensp_libs"
 
20250
else
 
20251
  OPENSPLIBPATH="/usr/lib"
 
20252
fi; 
 
20253
                        
 
20254
                        echo $OPENSPLIBPATH
 
20255
for d in /usr/include/OpenSP /usr/local/include/OpenSP /usr/include/sp/generic /usr/local/include/sp/generic; do
 
20256
    if test "x$OPENSPINCLUDES" = x; then
 
20257
        save_CPPFLAGS="$CPPFLAGS"
 
20258
        CPPFLAGS="$CPPFLAGS -I$d"
 
20259
        echo "$as_me:$LINENO: checking for ParserEventGenerator.h in $d" >&5
 
20260
echo $ECHO_N "checking for ParserEventGenerator.h in $d... $ECHO_C" >&6
 
20261
        cat >conftest.$ac_ext <<_ACEOF
 
20262
/* confdefs.h.  */
 
20263
_ACEOF
 
20264
cat confdefs.h >>conftest.$ac_ext
 
20265
cat >>conftest.$ac_ext <<_ACEOF
 
20266
/* end confdefs.h.  */
 
20267
#include <ParserEventGeneratorKit.h>
 
20268
_ACEOF
 
20269
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20270
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20271
  ac_status=$?
 
20272
  grep -v '^ *+' conftest.er1 >conftest.err
 
20273
  rm -f conftest.er1
 
20274
  cat conftest.err >&5
 
20275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20276
  (exit $ac_status); } >/dev/null; then
 
20277
  if test -s conftest.err; then
 
20278
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20279
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20280
  else
 
20281
    ac_cpp_err=
 
20282
  fi
 
20283
else
 
20284
  ac_cpp_err=yes
 
20285
fi
 
20286
if test -z "$ac_cpp_err"; then
 
20287
   echo "$as_me:$LINENO: result: yes" >&5
 
20288
echo "${ECHO_T}yes" >&6; OPENSPINCLUDES=$d 
 
20289
else
 
20290
  echo "$as_me: failed program was:" >&5
 
20291
sed 's/^/| /' conftest.$ac_ext >&5
 
20292
 
 
20293
   echo "$as_me:$LINENO: result: no" >&5
 
20294
echo "${ECHO_T}no" >&6 
 
20295
fi
 
20296
rm -f conftest.err conftest.$ac_ext
 
20297
        CPPFLAGS="$save_CPPFLAGS"
 
20298
    fi
 
20299
done
 
20300
 
 
20301
 
 
20302
##Detect if OpenSP was compiled with SP_MULTI_BYTE, and put the result in config.h
 
20303
##
 
20304
 
 
20305
#if 0
 
20306
##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
 
20307
## So --with-opensp-multibyte is now the default.
 
20308
 
 
20309
#endif
 
20310
 
 
20311
 
 
20312
# Check whether --with-no-opensp-multibyte or --without-no-opensp-multibyte was given.
 
20313
if test "${with_no_opensp_multibyte+set}" = set; then
 
20314
  withval="$with_no_opensp_multibyte"
 
20315
  
 
20316
else
 
20317
  
 
20318
cat >>confdefs.h <<\_ACEOF
 
20319
@%:@define SP_MULTI_BYTE 1
 
20320
_ACEOF
 
20321
         
 
20322
fi; 
 
20323
                        
 
20324
##if test x"$SP_MULTI_BYTE" == x ;then
 
20325
##CHECK_SP_MULTI_BYTE
 
20326
##fi
 
20327
 
 
20328
ac_save_CPPFLAGS="$CPPFLAGS"
 
20329
if test "x$OPENSPINCLUDES" != x ; then
 
20330
  CPPFLAGS="-I$OPENSPINCLUDES $CPPFLAGS"
 
20331
fi
 
20332
ac_ext=cc
 
20333
ac_cpp='$CXXCPP $CPPFLAGS'
 
20334
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20335
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20336
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20337
 
 
20338
 
 
20339
 
 
20340
 
 
20341
for ac_header in ParserEventGeneratorKit.h SGMLApplication.h EventGenerator.h
 
20342
do
 
20343
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20344
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20346
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20348
else
 
20349
  cat >conftest.$ac_ext <<_ACEOF
 
20350
/* confdefs.h.  */
 
20351
_ACEOF
 
20352
cat confdefs.h >>conftest.$ac_ext
 
20353
cat >>conftest.$ac_ext <<_ACEOF
 
20354
/* end confdefs.h.  */
 
20355
 
 
20356
 
 
20357
@%:@include <$ac_header>
 
20358
_ACEOF
 
20359
rm -f conftest.$ac_objext
 
20360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20361
  (eval $ac_compile) 2>conftest.er1
 
20362
  ac_status=$?
 
20363
  grep -v '^ *+' conftest.er1 >conftest.err
 
20364
  rm -f conftest.er1
 
20365
  cat conftest.err >&5
 
20366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20367
  (exit $ac_status); } &&
 
20368
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20370
  (eval $ac_try) 2>&5
 
20371
  ac_status=$?
 
20372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20373
  (exit $ac_status); }; } &&
 
20374
         { ac_try='test -s conftest.$ac_objext'
 
20375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20376
  (eval $ac_try) 2>&5
 
20377
  ac_status=$?
 
20378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20379
  (exit $ac_status); }; }; then
 
20380
  eval "$as_ac_Header=yes"
 
20381
else
 
20382
  echo "$as_me: failed program was:" >&5
 
20383
sed 's/^/| /' conftest.$ac_ext >&5
 
20384
 
 
20385
eval "$as_ac_Header=no"
 
20386
fi
 
20387
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20388
fi
 
20389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20391
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20392
  cat >>confdefs.h <<_ACEOF
 
20393
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20394
_ACEOF
 
20395
  
 
20396
else
 
20397
   { { echo "$as_me:$LINENO: error: OpenSP includes not found" >&5
 
20398
echo "$as_me: error: OpenSP includes not found" >&2;}
 
20399
   { (exit 1); exit 1; }; } 
 
20400
fi
 
20401
 
 
20402
done
 
20403
 
 
20404
                                
 
20405
OPENSPLIBS="-L$OPENSPLIBPATH -losp"
 
20406
ac_save_LIBS="$LIBS"
 
20407
LIBS="$OPENSPLIBS $LIBS"
 
20408
 
 
20409
echo "$as_me:$LINENO: checking for libosp" >&5
 
20410
echo $ECHO_N "checking for libosp... $ECHO_C" >&6
 
20411
##dnl This is code from the opensp documentation, I modified it a little
 
20412
##dnl It is really just a link test rather than a run test, it does nothing
 
20413
ac_ext=cc
 
20414
ac_cpp='$CXXCPP $CPPFLAGS'
 
20415
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20416
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20417
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20418
 
 
20419
        if test "$cross_compiling" = yes; then
 
20420
  echo "$as_me:$LINENO: result: unknown, assumed OK" >&5
 
20421
echo "${ECHO_T}unknown, assumed OK" >&6
 
20422
else
 
20423
  cat >conftest.$ac_ext <<_ACEOF
 
20424
/* confdefs.h.  */
 
20425
_ACEOF
 
20426
cat confdefs.h >>conftest.$ac_ext
 
20427
cat >>conftest.$ac_ext <<_ACEOF
 
20428
/* end confdefs.h.  */
 
20429
 
 
20430
                #include "ParserEventGeneratorKit.h"
 
20431
                using namespace std;
 
20432
                class OutlineApplication : public SGMLApplication {
 
20433
                public:
 
20434
                  OutlineApplication() { }
 
20435
                  void startElement(const StartElementEvent &event) {
 
20436
                  }
 
20437
                  void endElement(const EndElementEvent &) { }
 
20438
 
 
20439
                };
 
20440
                int main(int argc, char **argv)
 
20441
                {
 
20442
                  ParserEventGeneratorKit parserKit;
 
20443
                  EventGenerator *egp = parserKit.makeEventGenerator(argc - 1, argv + 1);
 
20444
                  OutlineApplication app;
 
20445
                }
 
20446
        
 
20447
_ACEOF
 
20448
rm -f conftest$ac_exeext
 
20449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20450
  (eval $ac_link) 2>&5
 
20451
  ac_status=$?
 
20452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20453
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20455
  (eval $ac_try) 2>&5
 
20456
  ac_status=$?
 
20457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20458
  (exit $ac_status); }; }; then
 
20459
  echo "$as_me:$LINENO: result: yes" >&5
 
20460
echo "${ECHO_T}yes" >&6
 
20461
else
 
20462
  echo "$as_me: program exited with status $ac_status" >&5
 
20463
echo "$as_me: failed program was:" >&5
 
20464
sed 's/^/| /' conftest.$ac_ext >&5
 
20465
 
 
20466
( exit $ac_status )
 
20467
echo "$as_me:$LINENO: result: no" >&5
 
20468
echo "${ECHO_T}no" >&6
 
20469
        { { echo "$as_me:$LINENO: error: unable to link a test program, is OpenSP installed?" >&5
 
20470
echo "$as_me: error: unable to link a test program, is OpenSP installed?" >&2;}
 
20471
   { (exit 1); exit 1; }; }
 
20472
fi
 
20473
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20474
fi
 
20475
                                
 
20476
CPPFLAGS="$ac_save_CPPFLAGS"
 
20477
LIBS="$ac_save_LIBS"            
 
20478
 
 
20479
 
 
20480
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
 
20481
# ----------------------------------------------------------------------------
 
20482
 
 
20483
 
 
20484
# check for doxygen
 
20485
# ----------------------------------------------------------------------------
 
20486
 
 
20487
# Check whether --enable-doxygen or --disable-doxygen was given.
 
20488
if test "${enable_doxygen+set}" = set; then
 
20489
  enableval="$enable_doxygen"
 
20490
  
 
20491
fi; 
 
20492
# Check whether --enable-dot or --disable-dot was given.
 
20493
if test "${enable_dot+set}" = set; then
 
20494
  enableval="$enable_dot"
 
20495
  
 
20496
fi;               
 
20497
# Check whether --enable-html-docs or --disable-html-docs was given.
 
20498
if test "${enable_html_docs+set}" = set; then
 
20499
  enableval="$enable_html_docs"
 
20500
  
 
20501
else
 
20502
   enable_html_docs=yes
 
20503
fi;               
 
20504
# Check whether --enable-latex-docs or --disable-latex-docs was given.
 
20505
if test "${enable_latex_docs+set}" = set; then
 
20506
  enableval="$enable_latex_docs"
 
20507
  
 
20508
else
 
20509
   enable_latex_docs=no
 
20510
fi;               
 
20511
if test "x$enable_doxygen" = xno; then
 
20512
        enable_doc=no
 
20513
else 
 
20514
        # Extract the first word of "doxygen", so it can be a program name with args.
 
20515
set dummy doxygen; ac_word=$2
 
20516
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20518
if test "${ac_cv_path_DOXYGEN+set}" = set; then
 
20519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20520
else
 
20521
  case $DOXYGEN in
 
20522
  [\\/]* | ?:[\\/]*)
 
20523
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
 
20524
  ;;
 
20525
  *)
 
20526
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20527
for as_dir in $PATH
 
20528
do
 
20529
  IFS=$as_save_IFS
 
20530
  test -z "$as_dir" && as_dir=.
 
20531
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20532
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20533
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
 
20534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20535
    break 2
 
20536
  fi
 
20537
done
 
20538
done
 
20539
 
 
20540
  ;;
 
20541
esac
 
20542
fi
 
20543
DOXYGEN=$ac_cv_path_DOXYGEN
 
20544
 
 
20545
if test -n "$DOXYGEN"; then
 
20546
  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
 
20547
echo "${ECHO_T}$DOXYGEN" >&6
 
20548
else
 
20549
  echo "$as_me:$LINENO: result: no" >&5
 
20550
echo "${ECHO_T}no" >&6
 
20551
fi
 
20552
 
 
20553
        if test x$DOXYGEN = x; then
 
20554
                if test "x$enable_doxygen" = xyes; then
 
20555
                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
 
20556
echo "$as_me: error: could not find doxygen" >&2;}
 
20557
   { (exit 1); exit 1; }; }
 
20558
                fi
 
20559
                enable_doc=no
 
20560
        else
 
20561
                enable_doc=yes
 
20562
                # Extract the first word of "dot", so it can be a program name with args.
 
20563
set dummy dot; ac_word=$2
 
20564
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20566
if test "${ac_cv_path_DOT+set}" = set; then
 
20567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20568
else
 
20569
  case $DOT in
 
20570
  [\\/]* | ?:[\\/]*)
 
20571
  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
 
20572
  ;;
 
20573
  *)
 
20574
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20575
for as_dir in $PATH
 
20576
do
 
20577
  IFS=$as_save_IFS
 
20578
  test -z "$as_dir" && as_dir=.
 
20579
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20580
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20581
    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
 
20582
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20583
    break 2
 
20584
  fi
 
20585
done
 
20586
done
 
20587
 
 
20588
  ;;
 
20589
esac
 
20590
fi
 
20591
DOT=$ac_cv_path_DOT
 
20592
 
 
20593
if test -n "$DOT"; then
 
20594
  echo "$as_me:$LINENO: result: $DOT" >&5
 
20595
echo "${ECHO_T}$DOT" >&6
 
20596
else
 
20597
  echo "$as_me:$LINENO: result: no" >&5
 
20598
echo "${ECHO_T}no" >&6
 
20599
fi
 
20600
 
 
20601
        fi
 
20602
fi
 
20603
 
 
20604
 
 
20605
if test x$enable_doc = xyes; then
 
20606
  DOC_TRUE=
 
20607
  DOC_FALSE='#'
 
20608
else
 
20609
  DOC_TRUE='#'
 
20610
  DOC_FALSE=
 
20611
fi
 
20612
 
 
20613
 
 
20614
if test x$DOT = x; then
 
20615
        if test "x$enable_dot" = xyes; then
 
20616
                { { echo "$as_me:$LINENO: error: could not find dot" >&5
 
20617
echo "$as_me: error: could not find dot" >&2;}
 
20618
   { (exit 1); exit 1; }; }
 
20619
        fi
 
20620
        enable_dot=no
 
20621
else
 
20622
        enable_dot=yes
 
20623
fi
 
20624
 
 
20625
 
 
20626
if test x$enable_doc = xtrue; then
 
20627
  ENABLE_DOXYGEN_TRUE=
 
20628
  ENABLE_DOXYGEN_FALSE='#'
 
20629
else
 
20630
  ENABLE_DOXYGEN_TRUE='#'
 
20631
  ENABLE_DOXYGEN_FALSE=
 
20632
fi
 
20633
 
 
20634
 
 
20635
 
 
20636
 
 
20637
 
 
20638
 
 
20639
# Check if getopt_long is available
 
20640
# ----------------------------------------------------------------------------
 
20641
 
 
20642
 
 
20643
 
 
20644
  # clean out junk possibly left behind by a previous configuration
 
20645
  rm -f lib/getopt.h
 
20646
  # Check for getopt_long support
 
20647
  
 
20648
for ac_header in getopt.h
 
20649
do
 
20650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20651
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20652
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20654
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20656
fi
 
20657
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20658
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20659
else
 
20660
  # Is the header compilable?
 
20661
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20662
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20663
cat >conftest.$ac_ext <<_ACEOF
 
20664
/* confdefs.h.  */
 
20665
_ACEOF
 
20666
cat confdefs.h >>conftest.$ac_ext
 
20667
cat >>conftest.$ac_ext <<_ACEOF
 
20668
/* end confdefs.h.  */
 
20669
$ac_includes_default
 
20670
@%:@include <$ac_header>
 
20671
_ACEOF
 
20672
rm -f conftest.$ac_objext
 
20673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20674
  (eval $ac_compile) 2>conftest.er1
 
20675
  ac_status=$?
 
20676
  grep -v '^ *+' conftest.er1 >conftest.err
 
20677
  rm -f conftest.er1
 
20678
  cat conftest.err >&5
 
20679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20680
  (exit $ac_status); } &&
 
20681
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20683
  (eval $ac_try) 2>&5
 
20684
  ac_status=$?
 
20685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20686
  (exit $ac_status); }; } &&
 
20687
         { ac_try='test -s conftest.$ac_objext'
 
20688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20689
  (eval $ac_try) 2>&5
 
20690
  ac_status=$?
 
20691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20692
  (exit $ac_status); }; }; then
 
20693
  ac_header_compiler=yes
 
20694
else
 
20695
  echo "$as_me: failed program was:" >&5
 
20696
sed 's/^/| /' conftest.$ac_ext >&5
 
20697
 
 
20698
ac_header_compiler=no
 
20699
fi
 
20700
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20701
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20702
echo "${ECHO_T}$ac_header_compiler" >&6
 
20703
 
 
20704
# Is the header present?
 
20705
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20706
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20707
cat >conftest.$ac_ext <<_ACEOF
 
20708
/* confdefs.h.  */
 
20709
_ACEOF
 
20710
cat confdefs.h >>conftest.$ac_ext
 
20711
cat >>conftest.$ac_ext <<_ACEOF
 
20712
/* end confdefs.h.  */
 
20713
@%:@include <$ac_header>
 
20714
_ACEOF
 
20715
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20716
  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
 
20723
  if test -s conftest.err; then
 
20724
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
20725
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
20726
  else
 
20727
    ac_cpp_err=
 
20728
  fi
 
20729
else
 
20730
  ac_cpp_err=yes
 
20731
fi
 
20732
if test -z "$ac_cpp_err"; then
 
20733
  ac_header_preproc=yes
 
20734
else
 
20735
  echo "$as_me: failed program was:" >&5
 
20736
sed 's/^/| /' conftest.$ac_ext >&5
 
20737
 
 
20738
  ac_header_preproc=no
 
20739
fi
 
20740
rm -f conftest.err conftest.$ac_ext
 
20741
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20742
echo "${ECHO_T}$ac_header_preproc" >&6
 
20743
 
 
20744
# So?  What about this header?
 
20745
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
20746
  yes:no: )
 
20747
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20748
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20749
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20750
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20751
    ac_header_preproc=yes
 
20752
    ;;
 
20753
  no:yes:* )
 
20754
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20755
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20756
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20757
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20758
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20759
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20760
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20761
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20762
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20763
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20764
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20765
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20766
    (
 
20767
      cat <<\_ASBOX
 
20768
@%:@@%:@ ------------------------------------------ @%:@@%:@
 
20769
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
 
20770
@%:@@%:@ ------------------------------------------ @%:@@%:@
 
20771
_ASBOX
 
20772
    ) |
 
20773
      sed "s/^/$as_me: WARNING:     /" >&2
 
20774
    ;;
 
20775
esac
 
20776
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20777
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20778
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20780
else
 
20781
  eval "$as_ac_Header=\$ac_header_preproc"
 
20782
fi
 
20783
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20784
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20785
 
 
20786
fi
 
20787
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20788
  cat >>confdefs.h <<_ACEOF
 
20789
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20790
_ACEOF
 
20791
 
 
20792
fi
 
20793
 
 
20794
done
 
20795
 
 
20796
  
 
20797
for ac_func in getopt_long
 
20798
do
 
20799
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20800
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20801
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20802
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20804
else
 
20805
  cat >conftest.$ac_ext <<_ACEOF
 
20806
/* confdefs.h.  */
 
20807
_ACEOF
 
20808
cat confdefs.h >>conftest.$ac_ext
 
20809
cat >>conftest.$ac_ext <<_ACEOF
 
20810
/* end confdefs.h.  */
 
20811
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20812
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20813
#define $ac_func innocuous_$ac_func
 
20814
 
 
20815
/* System header to define __stub macros and hopefully few prototypes,
 
20816
    which can conflict with char $ac_func (); below.
 
20817
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20818
    <limits.h> exists even on freestanding compilers.  */
 
20819
 
 
20820
#ifdef __STDC__
 
20821
# include <limits.h>
 
20822
#else
 
20823
# include <assert.h>
 
20824
#endif
 
20825
 
 
20826
#undef $ac_func
 
20827
 
 
20828
/* Override any gcc2 internal prototype to avoid an error.  */
 
20829
#ifdef __cplusplus
 
20830
extern "C"
 
20831
{
 
20832
#endif
 
20833
/* We use char because int might match the return type of a gcc2
 
20834
   builtin and then its argument prototype would still apply.  */
 
20835
char $ac_func ();
 
20836
/* The GNU C library defines this for functions which it implements
 
20837
    to always fail with ENOSYS.  Some functions are actually named
 
20838
    something starting with __ and the normal name is an alias.  */
 
20839
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20840
choke me
 
20841
#else
 
20842
char (*f) () = $ac_func;
 
20843
#endif
 
20844
#ifdef __cplusplus
 
20845
}
 
20846
#endif
 
20847
 
 
20848
int
 
20849
main ()
 
20850
{
 
20851
return f != $ac_func;
 
20852
  ;
 
20853
  return 0;
 
20854
}
 
20855
_ACEOF
 
20856
rm -f conftest.$ac_objext conftest$ac_exeext
 
20857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20858
  (eval $ac_link) 2>conftest.er1
 
20859
  ac_status=$?
 
20860
  grep -v '^ *+' conftest.er1 >conftest.err
 
20861
  rm -f conftest.er1
 
20862
  cat conftest.err >&5
 
20863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20864
  (exit $ac_status); } &&
 
20865
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20867
  (eval $ac_try) 2>&5
 
20868
  ac_status=$?
 
20869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20870
  (exit $ac_status); }; } &&
 
20871
         { ac_try='test -s conftest$ac_exeext'
 
20872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20873
  (eval $ac_try) 2>&5
 
20874
  ac_status=$?
 
20875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20876
  (exit $ac_status); }; }; then
 
20877
  eval "$as_ac_var=yes"
 
20878
else
 
20879
  echo "$as_me: failed program was:" >&5
 
20880
sed 's/^/| /' conftest.$ac_ext >&5
 
20881
 
 
20882
eval "$as_ac_var=no"
 
20883
fi
 
20884
rm -f conftest.err conftest.$ac_objext \
 
20885
      conftest$ac_exeext conftest.$ac_ext
 
20886
fi
 
20887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20888
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20889
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20890
  cat >>confdefs.h <<_ACEOF
 
20891
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20892
_ACEOF
 
20893
 
 
20894
else
 
20895
  # FreeBSD has a gnugetopt library for this
 
20896
    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
 
20897
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
 
20898
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
 
20899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20900
else
 
20901
  ac_check_lib_save_LIBS=$LIBS
 
20902
LIBS="-lgnugetopt  $LIBS"
 
20903
cat >conftest.$ac_ext <<_ACEOF
 
20904
/* confdefs.h.  */
 
20905
_ACEOF
 
20906
cat confdefs.h >>conftest.$ac_ext
 
20907
cat >>conftest.$ac_ext <<_ACEOF
 
20908
/* end confdefs.h.  */
 
20909
 
 
20910
/* Override any gcc2 internal prototype to avoid an error.  */
 
20911
#ifdef __cplusplus
 
20912
extern "C"
 
20913
#endif
 
20914
/* We use char because int might match the return type of a gcc2
 
20915
   builtin and then its argument prototype would still apply.  */
 
20916
char getopt_long ();
 
20917
int
 
20918
main ()
 
20919
{
 
20920
getopt_long ();
 
20921
  ;
 
20922
  return 0;
 
20923
}
 
20924
_ACEOF
 
20925
rm -f conftest.$ac_objext conftest$ac_exeext
 
20926
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20927
  (eval $ac_link) 2>conftest.er1
 
20928
  ac_status=$?
 
20929
  grep -v '^ *+' conftest.er1 >conftest.err
 
20930
  rm -f conftest.er1
 
20931
  cat conftest.err >&5
 
20932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20933
  (exit $ac_status); } &&
 
20934
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20936
  (eval $ac_try) 2>&5
 
20937
  ac_status=$?
 
20938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20939
  (exit $ac_status); }; } &&
 
20940
         { ac_try='test -s conftest$ac_exeext'
 
20941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20942
  (eval $ac_try) 2>&5
 
20943
  ac_status=$?
 
20944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20945
  (exit $ac_status); }; }; then
 
20946
  ac_cv_lib_gnugetopt_getopt_long=yes
 
20947
else
 
20948
  echo "$as_me: failed program was:" >&5
 
20949
sed 's/^/| /' conftest.$ac_ext >&5
 
20950
 
 
20951
ac_cv_lib_gnugetopt_getopt_long=no
 
20952
fi
 
20953
rm -f conftest.err conftest.$ac_objext \
 
20954
      conftest$ac_exeext conftest.$ac_ext
 
20955
LIBS=$ac_check_lib_save_LIBS
 
20956
fi
 
20957
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
 
20958
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
 
20959
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
 
20960
  cat >>confdefs.h <<\_ACEOF
 
20961
@%:@define HAVE_GETOPT_LONG 1
 
20962
_ACEOF
 
20963
 
 
20964
else
 
20965
  # use the GNU replacement
 
20966
      case $LIB@&t@OBJS in
 
20967
    "getopt.$ac_objext"   | \
 
20968
  *" getopt.$ac_objext"   | \
 
20969
    "getopt.$ac_objext "* | \
 
20970
  *" getopt.$ac_objext "* ) ;;
 
20971
  *) LIB@&t@OBJS="$LIB@&t@OBJS getopt.$ac_objext" ;;
 
20972
esac
 
20973
 
 
20974
      case $LIB@&t@OBJS in
 
20975
    "getopt1.$ac_objext"   | \
 
20976
  *" getopt1.$ac_objext"   | \
 
20977
    "getopt1.$ac_objext "* | \
 
20978
  *" getopt1.$ac_objext "* ) ;;
 
20979
  *) LIB@&t@OBJS="$LIB@&t@OBJS getopt1.$ac_objext" ;;
 
20980
esac
 
20981
 
 
20982
                ac_config_links="$ac_config_links lib/getopt.h:lib/gnugetopt.h"
 
20983
 
 
20984
fi
 
20985
 
 
20986
fi
 
20987
done
 
20988
 
 
20989
 
 
20990
 
 
20991
if test "$ac_cv_func_getopt_long" = no  ; then
 
20992
  NO_GETOPTLONG_TRUE=
 
20993
  NO_GETOPTLONG_FALSE='#'
 
20994
else
 
20995
  NO_GETOPTLONG_TRUE='#'
 
20996
  NO_GETOPTLONG_FALSE=
 
20997
fi
 
20998
 
 
20999
 
 
21000
# gengetopt command line parser generation
 
21001
# Check whether --enable-gengetopt or --disable-gengetopt was given.
 
21002
if test "${enable_gengetopt+set}" = set; then
 
21003
  enableval="$enable_gengetopt"
 
21004
  case "${enableval}" in
 
21005
  yes) gengetopt=yes ;;
 
21006
  no)  gengetopt=no ;;
 
21007
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-gengetopt" >&5
 
21008
echo "$as_me: error: bad value ${enableval} for --disable-gengetopt" >&2;}
 
21009
   { (exit 1); exit 1; }; } ;;
 
21010
esac
 
21011
else
 
21012
  gengetopt=yes
 
21013
fi; 
 
21014
 
 
21015
if test x$gengetopt = xyes ; then
 
21016
   # Extract the first word of "gengetopt", so it can be a program name with args.
 
21017
set dummy gengetopt; ac_word=$2
 
21018
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21020
if test "${ac_cv_prog_have_gengetopt+set}" = set; then
 
21021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21022
else
 
21023
  if test -n "$have_gengetopt"; then
 
21024
  ac_cv_prog_have_gengetopt="$have_gengetopt" # Let the user override the test.
 
21025
else
 
21026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21027
for as_dir in $PATH
 
21028
do
 
21029
  IFS=$as_save_IFS
 
21030
  test -z "$as_dir" && as_dir=.
 
21031
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21032
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21033
    ac_cv_prog_have_gengetopt="yes"
 
21034
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21035
    break 2
 
21036
  fi
 
21037
done
 
21038
done
 
21039
 
 
21040
  test -z "$ac_cv_prog_have_gengetopt" && ac_cv_prog_have_gengetopt="no"
 
21041
fi
 
21042
fi
 
21043
have_gengetopt=$ac_cv_prog_have_gengetopt
 
21044
if test -n "$have_gengetopt"; then
 
21045
  echo "$as_me:$LINENO: result: $have_gengetopt" >&5
 
21046
echo "${ECHO_T}$have_gengetopt" >&6
 
21047
else
 
21048
  echo "$as_me:$LINENO: result: no" >&5
 
21049
echo "${ECHO_T}no" >&6
 
21050
fi
 
21051
 
 
21052
 
 
21053
   if test x$have_gengetopt = xno ; then
 
21054
     { echo "$as_me:$LINENO: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&5
 
21055
echo "$as_me: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&2;}
 
21056
     gengetopt=no
 
21057
   fi
 
21058
fi
 
21059
 
 
21060
 
 
21061
 
 
21062
if test "x$gengetopt" = xyes; then
 
21063
  USE_GENGETOPT_TRUE=
 
21064
  USE_GENGETOPT_FALSE='#'
 
21065
else
 
21066
  USE_GENGETOPT_TRUE='#'
 
21067
  USE_GENGETOPT_FALSE=
 
21068
fi
 
21069
 
 
21070
 
 
21071
 
 
21072
 
 
21073
 
 
21074
 
 
21075
# check for curl
 
21076
# ----------------------------------------------------------------------------
 
21077
 
 
21078
 if test "${my_cv_curl_vers+set}" = set; then
 
21079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21080
else
 
21081
  
 
21082
 my_cv_curl_vers=NONE
 
21083
  check="7.9.7"
 
21084
  check_hex="070907"
 
21085
 
 
21086
 echo "$as_me:$LINENO: checking for curl >= $check" >&5
 
21087
echo $ECHO_N "checking for curl >= $check... $ECHO_C" >&6
 
21088
 
 
21089
 if eval curl-config --version 2>/dev/null >/dev/null; then
 
21090
   ver=`curl-config --version | sed -e "s/libcurl //g"`
 
21091
#   hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'`
 
21092
#   ok=`echo "ibase=16; if($hex_ver>=$check_hex) $hex_ver else 0" | bc`
 
21093
 
 
21094
   if test x$ok != x0; then
 
21095
     my_cv_curl_vers="$ver"
 
21096
     echo "$as_me:$LINENO: result: $my_cv_curl_vers" >&5
 
21097
echo "${ECHO_T}$my_cv_curl_vers" >&6
 
21098
   else
 
21099
     echo "$as_me:$LINENO: result: FAILED" >&5
 
21100
echo "${ECHO_T}FAILED" >&6
 
21101
     { echo "$as_me:$LINENO: WARNING: $ver is too old. Need version $check or higher." >&5
 
21102
echo "$as_me: WARNING: $ver is too old. Need version $check or higher." >&2;}
 
21103
   fi
 
21104
 else
 
21105
   echo "$as_me:$LINENO: result: FAILED" >&5
 
21106
echo "${ECHO_T}FAILED" >&6
 
21107
   { { echo "$as_me:$LINENO: error: curl-config was not found" >&5
 
21108
echo "$as_me: error: curl-config was not found" >&2;}
 
21109
   { (exit 1); exit 1; }; }
 
21110
 fi
 
21111
 
 
21112
fi
 
21113
 
 
21114
 
 
21115
 
 
21116
if test x$my_cv_curl_vers != xNONE; then
 
21117
 
 
21118
cat >>confdefs.h <<\_ACEOF
 
21119
@%:@define HAVE_CURL 
 
21120
_ACEOF
 
21121
 
 
21122
fi
 
21123
 
 
21124
 
 
21125
 
 
21126
LIBOFX_DTD_DIR='${datadir}/libofx/dtd'
 
21127
 
 
21128
 
 
21129
                        
 
21130
                                                                                          ac_config_files="$ac_config_files Makefile libofx.spec lib/Makefile inc/Makefile dtd/Makefile doc/Makefile ofx2qif/Makefile ofxdump/Makefile ofxconnect/Makefile"
 
21131
cat >confcache <<\_ACEOF
 
21132
# This file is a shell script that caches the results of configure
 
21133
# tests run on this system so they can be shared between configure
 
21134
# scripts and configure runs, see configure's option --config-cache.
 
21135
# It is not useful on other systems.  If it contains results you don't
 
21136
# want to keep, you may remove or edit it.
 
21137
#
 
21138
# config.status only pays attention to the cache file if you give it
 
21139
# the --recheck option to rerun configure.
 
21140
#
 
21141
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21142
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21143
# following values.
 
21144
 
 
21145
_ACEOF
 
21146
 
 
21147
# The following way of writing the cache mishandles newlines in values,
 
21148
# but we know of no workaround that is simple, portable, and efficient.
 
21149
# So, don't put newlines in cache variables' values.
 
21150
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21151
# and sets the high bit in the cache file unless we assign to the vars.
 
21152
{
 
21153
  (set) 2>&1 |
 
21154
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
21155
    *ac_space=\ *)
 
21156
      # `set' does not quote correctly, so add quotes (double-quote
 
21157
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21158
      sed -n \
 
21159
        "s/'/'\\\\''/g;
 
21160
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21161
      ;;
 
21162
    *)
 
21163
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21164
      sed -n \
 
21165
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21166
      ;;
 
21167
    esac;
 
21168
} |
 
21169
  sed '
 
21170
     t clear
 
21171
     : clear
 
21172
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21173
     t end
 
21174
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21175
     : end' >>confcache
 
21176
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
21177
  if test -w $cache_file; then
 
21178
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21179
    cat confcache >$cache_file
 
21180
  else
 
21181
    echo "not updating unwritable cache $cache_file"
 
21182
  fi
 
21183
fi
 
21184
rm -f confcache
 
21185
 
 
21186
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21187
# Let make expand exec_prefix.
 
21188
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21189
 
 
21190
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21191
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21192
# trailing colons and then remove the whole line if VPATH becomes empty
 
21193
# (actually we leave an empty line to preserve line numbers).
 
21194
if test "x$srcdir" = x.; then
 
21195
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21196
s/:*\$(srcdir):*/:/;
 
21197
s/:*\${srcdir}:*/:/;
 
21198
s/:*@srcdir@:*/:/;
 
21199
s/^\([^=]*=[     ]*\):*/\1/;
 
21200
s/:*$//;
 
21201
s/^[^=]*=[       ]*$//;
 
21202
}'
 
21203
fi
 
21204
 
 
21205
DEFS=-DHAVE_CONFIG_H
 
21206
 
 
21207
ac_libobjs=
 
21208
ac_ltlibobjs=
 
21209
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
21210
  # 1. Remove the extension, and $U if already installed.
 
21211
  ac_i=`echo "$ac_i" |
 
21212
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21213
  # 2. Add them.
 
21214
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
21215
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21216
done
 
21217
LIB@&t@OBJS=$ac_libobjs
 
21218
 
 
21219
LTLIBOBJS=$ac_ltlibobjs
 
21220
 
 
21221
 
 
21222
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21223
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21224
Usually this means the macro was only invoked conditionally." >&5
 
21225
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21226
Usually this means the macro was only invoked conditionally." >&2;}
 
21227
   { (exit 1); exit 1; }; }
 
21228
fi
 
21229
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21230
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21231
Usually this means the macro was only invoked conditionally." >&5
 
21232
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21233
Usually this means the macro was only invoked conditionally." >&2;}
 
21234
   { (exit 1); exit 1; }; }
 
21235
fi
 
21236
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21237
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21238
Usually this means the macro was only invoked conditionally." >&5
 
21239
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21240
Usually this means the macro was only invoked conditionally." >&2;}
 
21241
   { (exit 1); exit 1; }; }
 
21242
fi
 
21243
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21244
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21245
Usually this means the macro was only invoked conditionally." >&5
 
21246
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21247
Usually this means the macro was only invoked conditionally." >&2;}
 
21248
   { (exit 1); exit 1; }; }
 
21249
fi
 
21250
if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
 
21251
  { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
 
21252
Usually this means the macro was only invoked conditionally." >&5
 
21253
echo "$as_me: error: conditional \"DOC\" was never defined.
 
21254
Usually this means the macro was only invoked conditionally." >&2;}
 
21255
   { (exit 1); exit 1; }; }
 
21256
fi
 
21257
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
 
21258
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOXYGEN\" was never defined.
 
21259
Usually this means the macro was only invoked conditionally." >&5
 
21260
echo "$as_me: error: conditional \"ENABLE_DOXYGEN\" was never defined.
 
21261
Usually this means the macro was only invoked conditionally." >&2;}
 
21262
   { (exit 1); exit 1; }; }
 
21263
fi
 
21264
if test -z "${NO_GETOPTLONG_TRUE}" && test -z "${NO_GETOPTLONG_FALSE}"; then
 
21265
  { { echo "$as_me:$LINENO: error: conditional \"NO_GETOPTLONG\" was never defined.
 
21266
Usually this means the macro was only invoked conditionally." >&5
 
21267
echo "$as_me: error: conditional \"NO_GETOPTLONG\" 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 "${USE_GENGETOPT_TRUE}" && test -z "${USE_GENGETOPT_FALSE}"; then
 
21272
  { { echo "$as_me:$LINENO: error: conditional \"USE_GENGETOPT\" was never defined.
 
21273
Usually this means the macro was only invoked conditionally." >&5
 
21274
echo "$as_me: error: conditional \"USE_GENGETOPT\" was never defined.
 
21275
Usually this means the macro was only invoked conditionally." >&2;}
 
21276
   { (exit 1); exit 1; }; }
 
21277
fi
 
21278
 
 
21279
: ${CONFIG_STATUS=./config.status}
 
21280
ac_clean_files_save=$ac_clean_files
 
21281
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21282
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21283
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21284
cat >$CONFIG_STATUS <<_ACEOF
 
21285
#! $SHELL
 
21286
# Generated by $as_me.
 
21287
# Run this file to recreate the current configuration.
 
21288
# Compiler output produced by configure, useful for debugging
 
21289
# configure, is in config.log if it exists.
 
21290
 
 
21291
debug=false
 
21292
ac_cs_recheck=false
 
21293
ac_cs_silent=false
 
21294
SHELL=\${CONFIG_SHELL-$SHELL}
 
21295
_ACEOF
 
21296
 
 
21297
cat >>$CONFIG_STATUS <<\_ACEOF
 
21298
## --------------------- ##
 
21299
## M4sh Initialization.  ##
 
21300
## --------------------- ##
 
21301
 
 
21302
# Be Bourne compatible
 
21303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21304
  emulate sh
 
21305
  NULLCMD=:
 
21306
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21307
  # is contrary to our usage.  Disable this feature.
 
21308
  alias -g '${1+"$@"}'='"$@"'
 
21309
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21310
  set -o posix
 
21311
fi
 
21312
DUALCASE=1; export DUALCASE # for MKS sh
 
21313
 
 
21314
# Support unset when possible.
 
21315
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
21316
  as_unset=unset
 
21317
else
 
21318
  as_unset=false
 
21319
fi
 
21320
 
 
21321
 
 
21322
# Work around bugs in pre-3.0 UWIN ksh.
 
21323
$as_unset ENV MAIL MAILPATH
 
21324
PS1='$ '
 
21325
PS2='> '
 
21326
PS4='+ '
 
21327
 
 
21328
# NLS nuisances.
 
21329
for as_var in \
 
21330
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
21331
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
21332
  LC_TELEPHONE LC_TIME
 
21333
do
 
21334
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
21335
    eval $as_var=C; export $as_var
 
21336
  else
 
21337
    $as_unset $as_var
 
21338
  fi
 
21339
done
 
21340
 
 
21341
# Required to use basename.
 
21342
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21343
  as_expr=expr
 
21344
else
 
21345
  as_expr=false
 
21346
fi
 
21347
 
 
21348
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
21349
  as_basename=basename
 
21350
else
 
21351
  as_basename=false
 
21352
fi
 
21353
 
 
21354
 
 
21355
# Name of the executable.
 
21356
as_me=`$as_basename "$0" ||
 
21357
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
21358
         X"$0" : 'X\(//\)$' \| \
 
21359
         X"$0" : 'X\(/\)$' \| \
 
21360
         .     : '\(.\)' 2>/dev/null ||
 
21361
echo X/"$0" |
 
21362
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
21363
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
21364
          /^X\/\(\/\).*/{ s//\1/; q; }
 
21365
          s/.*/./; q'`
 
21366
 
 
21367
 
 
21368
# PATH needs CR, and LINENO needs CR and PATH.
 
21369
# Avoid depending upon Character Ranges.
 
21370
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21371
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21372
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21373
as_cr_digits='0123456789'
 
21374
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21375
 
 
21376
# The user is always right.
 
21377
if test "${PATH_SEPARATOR+set}" != set; then
 
21378
  echo "#! /bin/sh" >conf$$.sh
 
21379
  echo  "exit 0"   >>conf$$.sh
 
21380
  chmod +x conf$$.sh
 
21381
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21382
    PATH_SEPARATOR=';'
 
21383
  else
 
21384
    PATH_SEPARATOR=:
 
21385
  fi
 
21386
  rm -f conf$$.sh
 
21387
fi
 
21388
 
 
21389
 
 
21390
  as_lineno_1=$LINENO
 
21391
  as_lineno_2=$LINENO
 
21392
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21393
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21394
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
21395
  # Find who we are.  Look in the path if we contain no path at all
 
21396
  # relative or not.
 
21397
  case $0 in
 
21398
    *[\\/]* ) as_myself=$0 ;;
 
21399
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21400
for as_dir in $PATH
 
21401
do
 
21402
  IFS=$as_save_IFS
 
21403
  test -z "$as_dir" && as_dir=.
 
21404
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21405
done
 
21406
 
 
21407
       ;;
 
21408
  esac
 
21409
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
21410
  # in which case we are not to be found in the path.
 
21411
  if test "x$as_myself" = x; then
 
21412
    as_myself=$0
 
21413
  fi
 
21414
  if test ! -f "$as_myself"; then
 
21415
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
21416
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
21417
   { (exit 1); exit 1; }; }
 
21418
  fi
 
21419
  case $CONFIG_SHELL in
 
21420
  '')
 
21421
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21422
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
21423
do
 
21424
  IFS=$as_save_IFS
 
21425
  test -z "$as_dir" && as_dir=.
 
21426
  for as_base in sh bash ksh sh5; do
 
21427
         case $as_dir in
 
21428
         /*)
 
21429
           if ("$as_dir/$as_base" -c '
 
21430
  as_lineno_1=$LINENO
 
21431
  as_lineno_2=$LINENO
 
21432
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21433
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21434
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
21435
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
21436
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
21437
             CONFIG_SHELL=$as_dir/$as_base
 
21438
             export CONFIG_SHELL
 
21439
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
21440
           fi;;
 
21441
         esac
 
21442
       done
 
21443
done
 
21444
;;
 
21445
  esac
 
21446
 
 
21447
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
21448
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
21449
  # line-number line before each line; the second 'sed' does the real
 
21450
  # work.  The second script uses 'N' to pair each line-number line
 
21451
  # with the numbered line, and appends trailing '-' during
 
21452
  # substitution so that $LINENO is not a special case at line end.
 
21453
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
21454
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
21455
  sed '=' <$as_myself |
 
21456
    sed '
 
21457
      N
 
21458
      s,$,-,
 
21459
      : loop
 
21460
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
21461
      t loop
 
21462
      s,-$,,
 
21463
      s,^['$as_cr_digits']*\n,,
 
21464
    ' >$as_me.lineno &&
 
21465
  chmod +x $as_me.lineno ||
 
21466
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
21467
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
21468
   { (exit 1); exit 1; }; }
 
21469
 
 
21470
  # Don't try to exec as it changes $[0], causing all sort of problems
 
21471
  # (the dirname of $[0] is not the place where we might find the
 
21472
  # original and so on.  Autoconf is especially sensible to this).
 
21473
  . ./$as_me.lineno
 
21474
  # Exit status is that of the last command.
 
21475
  exit
 
21476
}
 
21477
 
 
21478
 
 
21479
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
21480
  *c*,-n*) ECHO_N= ECHO_C='
 
21481
' ECHO_T='      ' ;;
 
21482
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
21483
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
21484
esac
 
21485
 
 
21486
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21487
  as_expr=expr
 
21488
else
 
21489
  as_expr=false
 
21490
fi
 
21491
 
 
21492
rm -f conf$$ conf$$.exe conf$$.file
 
21493
echo >conf$$.file
 
21494
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
21495
  # We could just check for DJGPP; but this test a) works b) is more generic
 
21496
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
21497
  if test -f conf$$.exe; then
 
21498
    # Don't use ln at all; we don't have any links
 
21499
    as_ln_s='cp -p'
 
21500
  else
 
21501
    as_ln_s='ln -s'
 
21502
  fi
 
21503
elif ln conf$$.file conf$$ 2>/dev/null; then
 
21504
  as_ln_s=ln
 
21505
else
 
21506
  as_ln_s='cp -p'
 
21507
fi
 
21508
rm -f conf$$ conf$$.exe conf$$.file
 
21509
 
 
21510
if mkdir -p . 2>/dev/null; then
 
21511
  as_mkdir_p=:
 
21512
else
 
21513
  test -d ./-p && rmdir ./-p
 
21514
  as_mkdir_p=false
 
21515
fi
 
21516
 
 
21517
as_executable_p="test -f"
 
21518
 
 
21519
# Sed expression to map a string onto a valid CPP name.
 
21520
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
21521
 
 
21522
# Sed expression to map a string onto a valid variable name.
 
21523
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
21524
 
 
21525
 
 
21526
# IFS
 
21527
# We need space, tab and new line, in precisely that order.
 
21528
as_nl='
 
21529
'
 
21530
IFS="   $as_nl"
 
21531
 
 
21532
# CDPATH.
 
21533
$as_unset CDPATH
 
21534
 
 
21535
exec 6>&1
 
21536
 
 
21537
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
21538
# report actual input values of CONFIG_FILES etc. instead of their
 
21539
# values after options handling.  Logging --version etc. is OK.
 
21540
exec 5>>config.log
 
21541
{
 
21542
  echo
 
21543
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
21544
@%:@@%:@ Running $as_me. @%:@@%:@
 
21545
_ASBOX
 
21546
} >&5
 
21547
cat >&5 <<_CSEOF
 
21548
 
 
21549
This file was extended by $as_me, which was
 
21550
generated by GNU Autoconf 2.59.  Invocation command line was
 
21551
 
 
21552
  CONFIG_FILES    = $CONFIG_FILES
 
21553
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
21554
  CONFIG_LINKS    = $CONFIG_LINKS
 
21555
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
21556
  $ $0 $@
 
21557
 
 
21558
_CSEOF
 
21559
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
21560
echo >&5
 
21561
_ACEOF
 
21562
 
 
21563
# Files that config.status was made for.
 
21564
if test -n "$ac_config_files"; then
 
21565
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
21566
fi
 
21567
 
 
21568
if test -n "$ac_config_headers"; then
 
21569
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
21570
fi
 
21571
 
 
21572
if test -n "$ac_config_links"; then
 
21573
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
21574
fi
 
21575
 
 
21576
if test -n "$ac_config_commands"; then
 
21577
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
21578
fi
 
21579
 
 
21580
cat >>$CONFIG_STATUS <<\_ACEOF
 
21581
 
 
21582
ac_cs_usage="\
 
21583
\`$as_me' instantiates files from templates according to the
 
21584
current configuration.
 
21585
 
 
21586
Usage: $0 [OPTIONS] [FILE]...
 
21587
 
 
21588
  -h, --help       print this help, then exit
 
21589
  -V, --version    print version number, then exit
 
21590
  -q, --quiet      do not print progress messages
 
21591
  -d, --debug      don't remove temporary files
 
21592
      --recheck    update $as_me by reconfiguring in the same conditions
 
21593
  --file=FILE[:TEMPLATE]
 
21594
                   instantiate the configuration file FILE
 
21595
  --header=FILE[:TEMPLATE]
 
21596
                   instantiate the configuration header FILE
 
21597
 
 
21598
Configuration files:
 
21599
$config_files
 
21600
 
 
21601
Configuration headers:
 
21602
$config_headers
 
21603
 
 
21604
Configuration links:
 
21605
$config_links
 
21606
 
 
21607
Configuration commands:
 
21608
$config_commands
 
21609
 
 
21610
Report bugs to <bug-autoconf@gnu.org>."
 
21611
_ACEOF
 
21612
 
 
21613
cat >>$CONFIG_STATUS <<_ACEOF
 
21614
ac_cs_version="\\
 
21615
config.status
 
21616
configured by $0, generated by GNU Autoconf 2.59,
 
21617
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
21618
 
 
21619
Copyright (C) 2003 Free Software Foundation, Inc.
 
21620
This config.status script is free software; the Free Software Foundation
 
21621
gives unlimited permission to copy, distribute and modify it."
 
21622
srcdir=$srcdir
 
21623
INSTALL="$INSTALL"
 
21624
_ACEOF
 
21625
 
 
21626
cat >>$CONFIG_STATUS <<\_ACEOF
 
21627
# If no file are specified by the user, then we need to provide default
 
21628
# value.  By we need to know if files were specified by the user.
 
21629
ac_need_defaults=:
 
21630
while test $# != 0
 
21631
do
 
21632
  case $1 in
 
21633
  --*=*)
 
21634
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
21635
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
21636
    ac_shift=:
 
21637
    ;;
 
21638
  -*)
 
21639
    ac_option=$1
 
21640
    ac_optarg=$2
 
21641
    ac_shift=shift
 
21642
    ;;
 
21643
  *) # This is not an option, so the user has probably given explicit
 
21644
     # arguments.
 
21645
     ac_option=$1
 
21646
     ac_need_defaults=false;;
 
21647
  esac
 
21648
 
 
21649
  case $ac_option in
 
21650
  # Handling of the options.
 
21651
_ACEOF
 
21652
cat >>$CONFIG_STATUS <<\_ACEOF
 
21653
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21654
    ac_cs_recheck=: ;;
 
21655
  --version | --vers* | -V )
 
21656
    echo "$ac_cs_version"; exit 0 ;;
 
21657
  --he | --h)
 
21658
    # Conflict between --help and --header
 
21659
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
21660
Try \`$0 --help' for more information." >&5
 
21661
echo "$as_me: error: ambiguous option: $1
 
21662
Try \`$0 --help' for more information." >&2;}
 
21663
   { (exit 1); exit 1; }; };;
 
21664
  --help | --hel | -h )
 
21665
    echo "$ac_cs_usage"; exit 0 ;;
 
21666
  --debug | --d* | -d )
 
21667
    debug=: ;;
 
21668
  --file | --fil | --fi | --f )
 
21669
    $ac_shift
 
21670
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21671
    ac_need_defaults=false;;
 
21672
  --header | --heade | --head | --hea )
 
21673
    $ac_shift
 
21674
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21675
    ac_need_defaults=false;;
 
21676
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21677
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21678
    ac_cs_silent=: ;;
 
21679
 
 
21680
  # This is an error.
 
21681
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21682
Try \`$0 --help' for more information." >&5
 
21683
echo "$as_me: error: unrecognized option: $1
 
21684
Try \`$0 --help' for more information." >&2;}
 
21685
   { (exit 1); exit 1; }; } ;;
 
21686
 
 
21687
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21688
 
 
21689
  esac
 
21690
  shift
 
21691
done
 
21692
 
 
21693
ac_configure_extra_args=
 
21694
 
 
21695
if $ac_cs_silent; then
 
21696
  exec 6>/dev/null
 
21697
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21698
fi
 
21699
 
 
21700
_ACEOF
 
21701
cat >>$CONFIG_STATUS <<_ACEOF
 
21702
if \$ac_cs_recheck; then
 
21703
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21704
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21705
fi
 
21706
 
 
21707
_ACEOF
 
21708
 
 
21709
cat >>$CONFIG_STATUS <<_ACEOF
 
21710
#
 
21711
# INIT-COMMANDS section.
 
21712
#
 
21713
 
 
21714
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21715
 
 
21716
_ACEOF
 
21717
 
 
21718
 
 
21719
 
 
21720
cat >>$CONFIG_STATUS <<\_ACEOF
 
21721
for ac_config_target in $ac_config_targets
 
21722
do
 
21723
  case "$ac_config_target" in
 
21724
  # Handling of arguments.
 
21725
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21726
  "libofx.spec" ) CONFIG_FILES="$CONFIG_FILES libofx.spec" ;;
 
21727
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
21728
  "inc/Makefile" ) CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
 
21729
  "dtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dtd/Makefile" ;;
 
21730
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
21731
  "ofx2qif/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofx2qif/Makefile" ;;
 
21732
  "ofxdump/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxdump/Makefile" ;;
 
21733
  "ofxconnect/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxconnect/Makefile" ;;
 
21734
  "lib/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/getopt.h:lib/gnugetopt.h" ;;
 
21735
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21736
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21737
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21738
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21739
   { (exit 1); exit 1; }; };;
 
21740
  esac
 
21741
done
 
21742
 
 
21743
# If the user did not use the arguments to specify the items to instantiate,
 
21744
# then the envvar interface is used.  Set only those that are not.
 
21745
# We use the long form for the default assignment because of an extremely
 
21746
# bizarre bug on SunOS 4.1.3.
 
21747
if $ac_need_defaults; then
 
21748
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21749
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21750
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 
21751
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21752
fi
 
21753
 
 
21754
# Have a temporary directory for convenience.  Make it in the build tree
 
21755
# simply because there is no reason to put it here, and in addition,
 
21756
# creating and moving files from /tmp can sometimes cause problems.
 
21757
# Create a temporary directory, and hook for its removal unless debugging.
 
21758
$debug ||
 
21759
{
 
21760
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21761
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21762
}
 
21763
 
 
21764
# Create a (secure) tmp directory for tmp files.
 
21765
 
 
21766
{
 
21767
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21768
  test -n "$tmp" && test -d "$tmp"
 
21769
}  ||
 
21770
{
 
21771
  tmp=./confstat$$-$RANDOM
 
21772
  (umask 077 && mkdir $tmp)
 
21773
} ||
 
21774
{
 
21775
   echo "$me: cannot create a temporary directory in ." >&2
 
21776
   { (exit 1); exit 1; }
 
21777
}
 
21778
 
 
21779
_ACEOF
 
21780
 
 
21781
cat >>$CONFIG_STATUS <<_ACEOF
 
21782
 
 
21783
#
 
21784
# CONFIG_FILES section.
 
21785
#
 
21786
 
 
21787
# No need to generate the scripts if there are no CONFIG_FILES.
 
21788
# This happens for instance when ./config.status config.h
 
21789
if test -n "\$CONFIG_FILES"; then
 
21790
  # Protect against being on the right side of a sed subst in config.status.
 
21791
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21792
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21793
s,@SHELL@,$SHELL,;t t
 
21794
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21795
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21796
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21797
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21798
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21799
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21800
s,@exec_prefix@,$exec_prefix,;t t
 
21801
s,@prefix@,$prefix,;t t
 
21802
s,@program_transform_name@,$program_transform_name,;t t
 
21803
s,@bindir@,$bindir,;t t
 
21804
s,@sbindir@,$sbindir,;t t
 
21805
s,@libexecdir@,$libexecdir,;t t
 
21806
s,@datadir@,$datadir,;t t
 
21807
s,@sysconfdir@,$sysconfdir,;t t
 
21808
s,@sharedstatedir@,$sharedstatedir,;t t
 
21809
s,@localstatedir@,$localstatedir,;t t
 
21810
s,@libdir@,$libdir,;t t
 
21811
s,@includedir@,$includedir,;t t
 
21812
s,@oldincludedir@,$oldincludedir,;t t
 
21813
s,@infodir@,$infodir,;t t
 
21814
s,@mandir@,$mandir,;t t
 
21815
s,@build_alias@,$build_alias,;t t
 
21816
s,@host_alias@,$host_alias,;t t
 
21817
s,@target_alias@,$target_alias,;t t
 
21818
s,@DEFS@,$DEFS,;t t
 
21819
s,@ECHO_C@,$ECHO_C,;t t
 
21820
s,@ECHO_N@,$ECHO_N,;t t
 
21821
s,@ECHO_T@,$ECHO_T,;t t
 
21822
s,@LIBS@,$LIBS,;t t
 
21823
s,@CC@,$CC,;t t
 
21824
s,@CFLAGS@,$CFLAGS,;t t
 
21825
s,@LDFLAGS@,$LDFLAGS,;t t
 
21826
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
21827
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
21828
s,@EXEEXT@,$EXEEXT,;t t
 
21829
s,@OBJEXT@,$OBJEXT,;t t
 
21830
s,@CXX@,$CXX,;t t
 
21831
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21832
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
21833
s,@LIBOFX_MAJOR_VERSION@,$LIBOFX_MAJOR_VERSION,;t t
 
21834
s,@LIBOFX_MINOR_VERSION@,$LIBOFX_MINOR_VERSION,;t t
 
21835
s,@LIBOFX_MICRO_VERSION@,$LIBOFX_MICRO_VERSION,;t t
 
21836
s,@LIBOFX_VERSION@,$LIBOFX_VERSION,;t t
 
21837
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
21838
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
21839
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
21840
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
21841
s,@PACKAGE@,$PACKAGE,;t t
 
21842
s,@VERSION@,$VERSION,;t t
 
21843
s,@ACLOCAL@,$ACLOCAL,;t t
 
21844
s,@AUTOCONF@,$AUTOCONF,;t t
 
21845
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21846
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21847
s,@MAKEINFO@,$MAKEINFO,;t t
 
21848
s,@install_sh@,$install_sh,;t t
 
21849
s,@STRIP@,$STRIP,;t t
 
21850
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21851
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21852
s,@mkdir_p@,$mkdir_p,;t t
 
21853
s,@AWK@,$AWK,;t t
 
21854
s,@SET_MAKE@,$SET_MAKE,;t t
 
21855
s,@am__leading_dot@,$am__leading_dot,;t t
 
21856
s,@AMTAR@,$AMTAR,;t t
 
21857
s,@am__tar@,$am__tar,;t t
 
21858
s,@am__untar@,$am__untar,;t t
 
21859
s,@DEPDIR@,$DEPDIR,;t t
 
21860
s,@am__include@,$am__include,;t t
 
21861
s,@am__quote@,$am__quote,;t t
 
21862
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
21863
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
21864
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
21865
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
21866
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
21867
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
21868
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
21869
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
21870
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
21871
s,@LIBOFX_SO_CURRENT@,$LIBOFX_SO_CURRENT,;t t
 
21872
s,@LIBOFX_SO_REVISION@,$LIBOFX_SO_REVISION,;t t
 
21873
s,@LIBOFX_SO_AGE@,$LIBOFX_SO_AGE,;t t
 
21874
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
21875
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
21876
s,@MAINT@,$MAINT,;t t
 
21877
s,@build@,$build,;t t
 
21878
s,@build_cpu@,$build_cpu,;t t
 
21879
s,@build_vendor@,$build_vendor,;t t
 
21880
s,@build_os@,$build_os,;t t
 
21881
s,@host@,$host,;t t
 
21882
s,@host_cpu@,$host_cpu,;t t
 
21883
s,@host_vendor@,$host_vendor,;t t
 
21884
s,@host_os@,$host_os,;t t
 
21885
s,@EGREP@,$EGREP,;t t
 
21886
s,@LN_S@,$LN_S,;t t
 
21887
s,@ECHO@,$ECHO,;t t
 
21888
s,@AR@,$AR,;t t
 
21889
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
21890
s,@RANLIB@,$RANLIB,;t t
 
21891
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21892
s,@CPP@,$CPP,;t t
 
21893
s,@CXXCPP@,$CXXCPP,;t t
 
21894
s,@F77@,$F77,;t t
 
21895
s,@FFLAGS@,$FFLAGS,;t t
 
21896
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
21897
s,@LIBTOOL@,$LIBTOOL,;t t
 
21898
s,@DOXYGEN@,$DOXYGEN,;t t
 
21899
s,@DOT@,$DOT,;t t
 
21900
s,@DOC_TRUE@,$DOC_TRUE,;t t
 
21901
s,@DOC_FALSE@,$DOC_FALSE,;t t
 
21902
s,@ENABLE_DOXYGEN_TRUE@,$ENABLE_DOXYGEN_TRUE,;t t
 
21903
s,@ENABLE_DOXYGEN_FALSE@,$ENABLE_DOXYGEN_FALSE,;t t
 
21904
s,@enable_dot@,$enable_dot,;t t
 
21905
s,@enable_html_docs@,$enable_html_docs,;t t
 
21906
s,@enable_latex_docs@,$enable_latex_docs,;t t
 
21907
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
 
21908
s,@NO_GETOPTLONG_TRUE@,$NO_GETOPTLONG_TRUE,;t t
 
21909
s,@NO_GETOPTLONG_FALSE@,$NO_GETOPTLONG_FALSE,;t t
 
21910
s,@have_gengetopt@,$have_gengetopt,;t t
 
21911
s,@USE_GENGETOPT_TRUE@,$USE_GENGETOPT_TRUE,;t t
 
21912
s,@USE_GENGETOPT_FALSE@,$USE_GENGETOPT_FALSE,;t t
 
21913
s,@OPENSPINCLUDES@,$OPENSPINCLUDES,;t t
 
21914
s,@OPENSPLIBS@,$OPENSPLIBS,;t t
 
21915
s,@LIBOFX_DTD_DIR@,$LIBOFX_DTD_DIR,;t t
 
21916
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21917
CEOF
 
21918
 
 
21919
_ACEOF
 
21920
 
 
21921
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21922
  # Split the substitutions into bite-sized pieces for seds with
 
21923
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21924
  ac_max_sed_lines=48
 
21925
  ac_sed_frag=1 # Number of current file.
 
21926
  ac_beg=1 # First line for current file.
 
21927
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21928
  ac_more_lines=:
 
21929
  ac_sed_cmds=
 
21930
  while $ac_more_lines; do
 
21931
    if test $ac_beg -gt 1; then
 
21932
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21933
    else
 
21934
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21935
    fi
 
21936
    if test ! -s $tmp/subs.frag; then
 
21937
      ac_more_lines=false
 
21938
    else
 
21939
      # The purpose of the label and of the branching condition is to
 
21940
      # speed up the sed processing (if there are no `@' at all, there
 
21941
      # is no need to browse any of the substitutions).
 
21942
      # These are the two extra sed commands mentioned above.
 
21943
      (echo ':t
 
21944
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21945
      if test -z "$ac_sed_cmds"; then
 
21946
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21947
      else
 
21948
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21949
      fi
 
21950
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21951
      ac_beg=$ac_end
 
21952
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21953
    fi
 
21954
  done
 
21955
  if test -z "$ac_sed_cmds"; then
 
21956
    ac_sed_cmds=cat
 
21957
  fi
 
21958
fi # test -n "$CONFIG_FILES"
 
21959
 
 
21960
_ACEOF
 
21961
cat >>$CONFIG_STATUS <<\_ACEOF
 
21962
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
21963
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21964
  case $ac_file in
 
21965
  - | *:- | *:-:* ) # input from stdin
 
21966
        cat >$tmp/stdin
 
21967
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21968
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21969
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21970
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21971
  * )   ac_file_in=$ac_file.in ;;
 
21972
  esac
 
21973
 
 
21974
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
21975
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21976
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21977
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21978
         X"$ac_file" : 'X\(//\)$' \| \
 
21979
         X"$ac_file" : 'X\(/\)' \| \
 
21980
         .     : '\(.\)' 2>/dev/null ||
 
21981
echo X"$ac_file" |
 
21982
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21983
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21984
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21985
          /^X\(\/\).*/{ s//\1/; q; }
 
21986
          s/.*/./; q'`
 
21987
  { if $as_mkdir_p; then
 
21988
    mkdir -p "$ac_dir"
 
21989
  else
 
21990
    as_dir="$ac_dir"
 
21991
    as_dirs=
 
21992
    while test ! -d "$as_dir"; do
 
21993
      as_dirs="$as_dir $as_dirs"
 
21994
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21995
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21996
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21997
         X"$as_dir" : 'X\(//\)$' \| \
 
21998
         X"$as_dir" : 'X\(/\)' \| \
 
21999
         .     : '\(.\)' 2>/dev/null ||
 
22000
echo X"$as_dir" |
 
22001
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22002
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22003
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22004
          /^X\(\/\).*/{ s//\1/; q; }
 
22005
          s/.*/./; q'`
 
22006
    done
 
22007
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22008
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22009
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22010
   { (exit 1); exit 1; }; }; }
 
22011
 
 
22012
  ac_builddir=.
 
22013
 
 
22014
if test "$ac_dir" != .; then
 
22015
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22016
  # A "../" for each directory in $ac_dir_suffix.
 
22017
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22018
else
 
22019
  ac_dir_suffix= ac_top_builddir=
 
22020
fi
 
22021
 
 
22022
case $srcdir in
 
22023
  .)  # No --srcdir option.  We are building in place.
 
22024
    ac_srcdir=.
 
22025
    if test -z "$ac_top_builddir"; then
 
22026
       ac_top_srcdir=.
 
22027
    else
 
22028
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22029
    fi ;;
 
22030
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22031
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22032
    ac_top_srcdir=$srcdir ;;
 
22033
  *) # Relative path.
 
22034
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22035
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22036
esac
 
22037
 
 
22038
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22039
# the directories may not exist.
 
22040
case `pwd` in
 
22041
.) ac_abs_builddir="$ac_dir";;
 
22042
*)
 
22043
  case "$ac_dir" in
 
22044
  .) ac_abs_builddir=`pwd`;;
 
22045
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22046
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22047
  esac;;
 
22048
esac
 
22049
case $ac_abs_builddir in
 
22050
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22051
*)
 
22052
  case ${ac_top_builddir}. in
 
22053
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22054
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22055
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22056
  esac;;
 
22057
esac
 
22058
case $ac_abs_builddir in
 
22059
.) ac_abs_srcdir=$ac_srcdir;;
 
22060
*)
 
22061
  case $ac_srcdir in
 
22062
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22063
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22064
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22065
  esac;;
 
22066
esac
 
22067
case $ac_abs_builddir in
 
22068
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22069
*)
 
22070
  case $ac_top_srcdir in
 
22071
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22072
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22073
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22074
  esac;;
 
22075
esac
 
22076
 
 
22077
 
 
22078
  case $INSTALL in
 
22079
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22080
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22081
  esac
 
22082
 
 
22083
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22084
  # use $as_me), people would be surprised to read:
 
22085
  #    /* config.h.  Generated by config.status.  */
 
22086
  if test x"$ac_file" = x-; then
 
22087
    configure_input=
 
22088
  else
 
22089
    configure_input="$ac_file.  "
 
22090
  fi
 
22091
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
22092
                                     sed 's,.*/,,'` by configure."
 
22093
 
 
22094
  # First look for the input files in the build tree, otherwise in the
 
22095
  # src tree.
 
22096
  ac_file_inputs=`IFS=:
 
22097
    for f in $ac_file_in; do
 
22098
      case $f in
 
22099
      -) echo $tmp/stdin ;;
 
22100
      [\\/$]*)
 
22101
         # Absolute (can't be DOS-style, as IFS=:)
 
22102
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22103
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22104
   { (exit 1); exit 1; }; }
 
22105
         echo "$f";;
 
22106
      *) # Relative
 
22107
         if test -f "$f"; then
 
22108
           # Build tree
 
22109
           echo "$f"
 
22110
         elif test -f "$srcdir/$f"; then
 
22111
           # Source tree
 
22112
           echo "$srcdir/$f"
 
22113
         else
 
22114
           # /dev/null tree
 
22115
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22116
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22117
   { (exit 1); exit 1; }; }
 
22118
         fi;;
 
22119
      esac
 
22120
    done` || { (exit 1); exit 1; }
 
22121
 
 
22122
  if test x"$ac_file" != x-; then
 
22123
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22124
echo "$as_me: creating $ac_file" >&6;}
 
22125
    rm -f "$ac_file"
 
22126
  fi
 
22127
_ACEOF
 
22128
cat >>$CONFIG_STATUS <<_ACEOF
 
22129
  sed "$ac_vpsub
 
22130
$extrasub
 
22131
_ACEOF
 
22132
cat >>$CONFIG_STATUS <<\_ACEOF
 
22133
:t
 
22134
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22135
s,@configure_input@,$configure_input,;t t
 
22136
s,@srcdir@,$ac_srcdir,;t t
 
22137
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
22138
s,@top_srcdir@,$ac_top_srcdir,;t t
 
22139
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
22140
s,@builddir@,$ac_builddir,;t t
 
22141
s,@abs_builddir@,$ac_abs_builddir,;t t
 
22142
s,@top_builddir@,$ac_top_builddir,;t t
 
22143
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
22144
s,@INSTALL@,$ac_INSTALL,;t t
 
22145
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
22146
  rm -f $tmp/stdin
 
22147
  if test x"$ac_file" != x-; then
 
22148
    mv $tmp/out $ac_file
 
22149
  else
 
22150
    cat $tmp/out
 
22151
    rm -f $tmp/out
 
22152
  fi
 
22153
 
 
22154
done
 
22155
_ACEOF
 
22156
cat >>$CONFIG_STATUS <<\_ACEOF
 
22157
 
 
22158
#
 
22159
# CONFIG_HEADER section.
 
22160
#
 
22161
 
 
22162
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22163
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22164
#
 
22165
# ac_d sets the value in "#define NAME VALUE" lines.
 
22166
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22167
ac_dB='[         ].*$,\1#\2'
 
22168
ac_dC=' '
 
22169
ac_dD=',;t'
 
22170
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22171
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22172
ac_uB='$,\1#\2define\3'
 
22173
ac_uC=' '
 
22174
ac_uD=',;t'
 
22175
 
 
22176
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22177
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22178
  case $ac_file in
 
22179
  - | *:- | *:-:* ) # input from stdin
 
22180
        cat >$tmp/stdin
 
22181
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22182
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22183
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22184
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22185
  * )   ac_file_in=$ac_file.in ;;
 
22186
  esac
 
22187
 
 
22188
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22189
echo "$as_me: creating $ac_file" >&6;}
 
22190
 
 
22191
  # First look for the input files in the build tree, otherwise in the
 
22192
  # src tree.
 
22193
  ac_file_inputs=`IFS=:
 
22194
    for f in $ac_file_in; do
 
22195
      case $f in
 
22196
      -) echo $tmp/stdin ;;
 
22197
      [\\/$]*)
 
22198
         # Absolute (can't be DOS-style, as IFS=:)
 
22199
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22200
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22201
   { (exit 1); exit 1; }; }
 
22202
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22203
         echo "$f";;
 
22204
      *) # Relative
 
22205
         if test -f "$f"; then
 
22206
           # Build tree
 
22207
           echo "$f"
 
22208
         elif test -f "$srcdir/$f"; then
 
22209
           # Source tree
 
22210
           echo "$srcdir/$f"
 
22211
         else
 
22212
           # /dev/null tree
 
22213
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22214
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22215
   { (exit 1); exit 1; }; }
 
22216
         fi;;
 
22217
      esac
 
22218
    done` || { (exit 1); exit 1; }
 
22219
  # Remove the trailing spaces.
 
22220
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22221
 
 
22222
_ACEOF
 
22223
 
 
22224
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22225
# `conftest.undefs', that substitutes the proper values into
 
22226
# config.h.in to produce config.h.  The first handles `#define'
 
22227
# templates, and the second `#undef' templates.
 
22228
# And first: Protect against being on the right side of a sed subst in
 
22229
# config.status.  Protect against being in an unquoted here document
 
22230
# in config.status.
 
22231
rm -f conftest.defines conftest.undefs
 
22232
# Using a here document instead of a string reduces the quoting nightmare.
 
22233
# Putting comments in sed scripts is not portable.
 
22234
#
 
22235
# `end' is used to avoid that the second main sed command (meant for
 
22236
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22237
# See the Autoconf documentation for `clear'.
 
22238
cat >confdef2sed.sed <<\_ACEOF
 
22239
s/[\\&,]/\\&/g
 
22240
s,[\\$`],\\&,g
 
22241
t clear
 
22242
: clear
 
22243
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22244
t end
 
22245
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22246
: end
 
22247
_ACEOF
 
22248
# If some macros were called several times there might be several times
 
22249
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22250
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22251
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22252
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22253
rm -f confdef2sed.sed
 
22254
 
 
22255
# This sed command replaces #undef with comments.  This is necessary, for
 
22256
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22257
# on some systems where configure will not decide to define it.
 
22258
cat >>conftest.undefs <<\_ACEOF
 
22259
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22260
_ACEOF
 
22261
 
 
22262
# Break up conftest.defines because some shells have a limit on the size
 
22263
# of here documents, and old seds have small limits too (100 cmds).
 
22264
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22265
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22266
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22267
echo '  :' >>$CONFIG_STATUS
 
22268
rm -f conftest.tail
 
22269
while grep . conftest.defines >/dev/null
 
22270
do
 
22271
  # Write a limited-size here document to $tmp/defines.sed.
 
22272
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22273
  # Speed up: don't consider the non `#define' lines.
 
22274
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22275
  # Work around the forget-to-reset-the-flag bug.
 
22276
  echo 't clr' >>$CONFIG_STATUS
 
22277
  echo ': clr' >>$CONFIG_STATUS
 
22278
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22279
  echo 'CEOF
 
22280
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22281
  rm -f $tmp/in
 
22282
  mv $tmp/out $tmp/in
 
22283
' >>$CONFIG_STATUS
 
22284
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22285
  rm -f conftest.defines
 
22286
  mv conftest.tail conftest.defines
 
22287
done
 
22288
rm -f conftest.defines
 
22289
echo '  fi # grep' >>$CONFIG_STATUS
 
22290
echo >>$CONFIG_STATUS
 
22291
 
 
22292
# Break up conftest.undefs because some shells have a limit on the size
 
22293
# of here documents, and old seds have small limits too (100 cmds).
 
22294
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
22295
rm -f conftest.tail
 
22296
while grep . conftest.undefs >/dev/null
 
22297
do
 
22298
  # Write a limited-size here document to $tmp/undefs.sed.
 
22299
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
22300
  # Speed up: don't consider the non `#undef'
 
22301
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
22302
  # Work around the forget-to-reset-the-flag bug.
 
22303
  echo 't clr' >>$CONFIG_STATUS
 
22304
  echo ': clr' >>$CONFIG_STATUS
 
22305
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
22306
  echo 'CEOF
 
22307
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
22308
  rm -f $tmp/in
 
22309
  mv $tmp/out $tmp/in
 
22310
' >>$CONFIG_STATUS
 
22311
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
22312
  rm -f conftest.undefs
 
22313
  mv conftest.tail conftest.undefs
 
22314
done
 
22315
rm -f conftest.undefs
 
22316
 
 
22317
cat >>$CONFIG_STATUS <<\_ACEOF
 
22318
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22319
  # use $as_me), people would be surprised to read:
 
22320
  #    /* config.h.  Generated by config.status.  */
 
22321
  if test x"$ac_file" = x-; then
 
22322
    echo "/* Generated by configure.  */" >$tmp/config.h
 
22323
  else
 
22324
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
22325
  fi
 
22326
  cat $tmp/in >>$tmp/config.h
 
22327
  rm -f $tmp/in
 
22328
  if test x"$ac_file" != x-; then
 
22329
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
22330
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
22331
echo "$as_me: $ac_file is unchanged" >&6;}
 
22332
    else
 
22333
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22334
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22335
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22336
         X"$ac_file" : 'X\(//\)$' \| \
 
22337
         X"$ac_file" : 'X\(/\)' \| \
 
22338
         .     : '\(.\)' 2>/dev/null ||
 
22339
echo X"$ac_file" |
 
22340
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22341
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22342
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22343
          /^X\(\/\).*/{ s//\1/; q; }
 
22344
          s/.*/./; q'`
 
22345
      { if $as_mkdir_p; then
 
22346
    mkdir -p "$ac_dir"
 
22347
  else
 
22348
    as_dir="$ac_dir"
 
22349
    as_dirs=
 
22350
    while test ! -d "$as_dir"; do
 
22351
      as_dirs="$as_dir $as_dirs"
 
22352
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22353
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22354
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22355
         X"$as_dir" : 'X\(//\)$' \| \
 
22356
         X"$as_dir" : 'X\(/\)' \| \
 
22357
         .     : '\(.\)' 2>/dev/null ||
 
22358
echo X"$as_dir" |
 
22359
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22360
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22361
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22362
          /^X\(\/\).*/{ s//\1/; q; }
 
22363
          s/.*/./; q'`
 
22364
    done
 
22365
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22366
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22367
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22368
   { (exit 1); exit 1; }; }; }
 
22369
 
 
22370
      rm -f $ac_file
 
22371
      mv $tmp/config.h $ac_file
 
22372
    fi
 
22373
  else
 
22374
    cat $tmp/config.h
 
22375
    rm -f $tmp/config.h
 
22376
  fi
 
22377
# Compute $ac_file's index in $config_headers.
 
22378
_am_stamp_count=1
 
22379
for _am_header in $config_headers :; do
 
22380
  case $_am_header in
 
22381
    $ac_file | $ac_file:* )
 
22382
      break ;;
 
22383
    * )
 
22384
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
22385
  esac
 
22386
done
 
22387
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
22388
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22389
         X$ac_file : 'X\(//\)[^/]' \| \
 
22390
         X$ac_file : 'X\(//\)$' \| \
 
22391
         X$ac_file : 'X\(/\)' \| \
 
22392
         .     : '\(.\)' 2>/dev/null ||
 
22393
echo X$ac_file |
 
22394
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22395
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22396
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22397
          /^X\(\/\).*/{ s//\1/; q; }
 
22398
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22399
done
 
22400
_ACEOF
 
22401
cat >>$CONFIG_STATUS <<\_ACEOF
 
22402
 
 
22403
#
 
22404
# CONFIG_LINKS section.
 
22405
#
 
22406
 
 
22407
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
 
22408
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
22409
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22410
 
 
22411
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
 
22412
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
 
22413
 
 
22414
  if test ! -r $srcdir/$ac_source; then
 
22415
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
 
22416
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
 
22417
   { (exit 1); exit 1; }; }
 
22418
  fi
 
22419
  rm -f $ac_dest
 
22420
 
 
22421
  # Make relative symlinks.
 
22422
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
22423
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22424
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
22425
         X"$ac_dest" : 'X\(//\)$' \| \
 
22426
         X"$ac_dest" : 'X\(/\)' \| \
 
22427
         .     : '\(.\)' 2>/dev/null ||
 
22428
echo X"$ac_dest" |
 
22429
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22430
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22431
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22432
          /^X\(\/\).*/{ s//\1/; q; }
 
22433
          s/.*/./; q'`
 
22434
  { if $as_mkdir_p; then
 
22435
    mkdir -p "$ac_dest_dir"
 
22436
  else
 
22437
    as_dir="$ac_dest_dir"
 
22438
    as_dirs=
 
22439
    while test ! -d "$as_dir"; do
 
22440
      as_dirs="$as_dir $as_dirs"
 
22441
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22442
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22443
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22444
         X"$as_dir" : 'X\(//\)$' \| \
 
22445
         X"$as_dir" : 'X\(/\)' \| \
 
22446
         .     : '\(.\)' 2>/dev/null ||
 
22447
echo X"$as_dir" |
 
22448
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22449
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22450
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22451
          /^X\(\/\).*/{ s//\1/; q; }
 
22452
          s/.*/./; q'`
 
22453
    done
 
22454
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22455
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
 
22456
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
 
22457
   { (exit 1); exit 1; }; }; }
 
22458
 
 
22459
  ac_builddir=.
 
22460
 
 
22461
if test "$ac_dest_dir" != .; then
 
22462
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
 
22463
  # A "../" for each directory in $ac_dir_suffix.
 
22464
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22465
else
 
22466
  ac_dir_suffix= ac_top_builddir=
 
22467
fi
 
22468
 
 
22469
case $srcdir in
 
22470
  .)  # No --srcdir option.  We are building in place.
 
22471
    ac_srcdir=.
 
22472
    if test -z "$ac_top_builddir"; then
 
22473
       ac_top_srcdir=.
 
22474
    else
 
22475
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22476
    fi ;;
 
22477
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22478
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22479
    ac_top_srcdir=$srcdir ;;
 
22480
  *) # Relative path.
 
22481
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22482
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22483
esac
 
22484
 
 
22485
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22486
# the directories may not exist.
 
22487
case `pwd` in
 
22488
.) ac_abs_builddir="$ac_dest_dir";;
 
22489
*)
 
22490
  case "$ac_dest_dir" in
 
22491
  .) ac_abs_builddir=`pwd`;;
 
22492
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
 
22493
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
 
22494
  esac;;
 
22495
esac
 
22496
case $ac_abs_builddir in
 
22497
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22498
*)
 
22499
  case ${ac_top_builddir}. in
 
22500
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22501
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22502
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22503
  esac;;
 
22504
esac
 
22505
case $ac_abs_builddir in
 
22506
.) ac_abs_srcdir=$ac_srcdir;;
 
22507
*)
 
22508
  case $ac_srcdir in
 
22509
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22510
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22511
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22512
  esac;;
 
22513
esac
 
22514
case $ac_abs_builddir in
 
22515
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22516
*)
 
22517
  case $ac_top_srcdir in
 
22518
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22519
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22520
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22521
  esac;;
 
22522
esac
 
22523
 
 
22524
 
 
22525
  case $srcdir in
 
22526
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
 
22527
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
 
22528
  esac
 
22529
 
 
22530
  # Try a symlink, then a hard link, then a copy.
 
22531
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 
22532
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
 
22533
    cp -p $srcdir/$ac_source $ac_dest ||
 
22534
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
 
22535
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
 
22536
   { (exit 1); exit 1; }; }
 
22537
done
 
22538
_ACEOF
 
22539
cat >>$CONFIG_STATUS <<\_ACEOF
 
22540
 
 
22541
#
 
22542
# CONFIG_COMMANDS section.
 
22543
#
 
22544
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
22545
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
22546
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22547
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
22548
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22549
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
22550
         X"$ac_dest" : 'X\(//\)$' \| \
 
22551
         X"$ac_dest" : 'X\(/\)' \| \
 
22552
         .     : '\(.\)' 2>/dev/null ||
 
22553
echo X"$ac_dest" |
 
22554
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22555
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22556
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22557
          /^X\(\/\).*/{ s//\1/; q; }
 
22558
          s/.*/./; q'`
 
22559
  { if $as_mkdir_p; then
 
22560
    mkdir -p "$ac_dir"
 
22561
  else
 
22562
    as_dir="$ac_dir"
 
22563
    as_dirs=
 
22564
    while test ! -d "$as_dir"; do
 
22565
      as_dirs="$as_dir $as_dirs"
 
22566
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22567
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22568
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22569
         X"$as_dir" : 'X\(//\)$' \| \
 
22570
         X"$as_dir" : 'X\(/\)' \| \
 
22571
         .     : '\(.\)' 2>/dev/null ||
 
22572
echo X"$as_dir" |
 
22573
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22574
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22575
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22576
          /^X\(\/\).*/{ s//\1/; q; }
 
22577
          s/.*/./; q'`
 
22578
    done
 
22579
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22580
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22581
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22582
   { (exit 1); exit 1; }; }; }
 
22583
 
 
22584
  ac_builddir=.
 
22585
 
 
22586
if test "$ac_dir" != .; then
 
22587
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22588
  # A "../" for each directory in $ac_dir_suffix.
 
22589
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22590
else
 
22591
  ac_dir_suffix= ac_top_builddir=
 
22592
fi
 
22593
 
 
22594
case $srcdir in
 
22595
  .)  # No --srcdir option.  We are building in place.
 
22596
    ac_srcdir=.
 
22597
    if test -z "$ac_top_builddir"; then
 
22598
       ac_top_srcdir=.
 
22599
    else
 
22600
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22601
    fi ;;
 
22602
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22603
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22604
    ac_top_srcdir=$srcdir ;;
 
22605
  *) # Relative path.
 
22606
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22607
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22608
esac
 
22609
 
 
22610
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22611
# the directories may not exist.
 
22612
case `pwd` in
 
22613
.) ac_abs_builddir="$ac_dir";;
 
22614
*)
 
22615
  case "$ac_dir" in
 
22616
  .) ac_abs_builddir=`pwd`;;
 
22617
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22618
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22619
  esac;;
 
22620
esac
 
22621
case $ac_abs_builddir in
 
22622
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22623
*)
 
22624
  case ${ac_top_builddir}. in
 
22625
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22626
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22627
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22628
  esac;;
 
22629
esac
 
22630
case $ac_abs_builddir in
 
22631
.) ac_abs_srcdir=$ac_srcdir;;
 
22632
*)
 
22633
  case $ac_srcdir in
 
22634
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22635
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22636
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22637
  esac;;
 
22638
esac
 
22639
case $ac_abs_builddir in
 
22640
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22641
*)
 
22642
  case $ac_top_srcdir in
 
22643
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22644
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22645
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22646
  esac;;
 
22647
esac
 
22648
 
 
22649
 
 
22650
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
22651
echo "$as_me: executing $ac_dest commands" >&6;}
 
22652
  case $ac_dest in
 
22653
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22654
  # Strip MF so we end up with the name of the file.
 
22655
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
22656
  # Check whether this is an Automake generated Makefile or not.
 
22657
  # We used to match only the files named `Makefile.in', but
 
22658
  # some people rename them; so instead we look at the file content.
 
22659
  # Grep'ing the first line is not enough: some people post-process
 
22660
  # each Makefile.in and add a new line on top of each file to say so.
 
22661
  # So let's grep whole file.
 
22662
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
22663
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
22664
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22665
         X"$mf" : 'X\(//\)[^/]' \| \
 
22666
         X"$mf" : 'X\(//\)$' \| \
 
22667
         X"$mf" : 'X\(/\)' \| \
 
22668
         .     : '\(.\)' 2>/dev/null ||
 
22669
echo X"$mf" |
 
22670
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22671
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22672
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22673
          /^X\(\/\).*/{ s//\1/; q; }
 
22674
          s/.*/./; q'`
 
22675
  else
 
22676
    continue
 
22677
  fi
 
22678
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22679
  # from the Makefile without running `make'.
 
22680
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
22681
  test -z "$DEPDIR" && continue
 
22682
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22683
  test -z "am__include" && continue
 
22684
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
22685
  # When using ansi2knr, U may be empty or an underscore; expand it
 
22686
  U=`sed -n 's/^U = //p' < "$mf"`
 
22687
  # Find all dependency output files, they are included files with
 
22688
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22689
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22690
  # expansion.
 
22691
  for file in `sed -n "
 
22692
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
22693
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
22694
    # Make sure the directory exists.
 
22695
    test -f "$dirpart/$file" && continue
 
22696
    fdir=`(dirname "$file") 2>/dev/null ||
 
22697
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22698
         X"$file" : 'X\(//\)[^/]' \| \
 
22699
         X"$file" : 'X\(//\)$' \| \
 
22700
         X"$file" : 'X\(/\)' \| \
 
22701
         .     : '\(.\)' 2>/dev/null ||
 
22702
echo X"$file" |
 
22703
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22704
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22705
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22706
          /^X\(\/\).*/{ s//\1/; q; }
 
22707
          s/.*/./; q'`
 
22708
    { if $as_mkdir_p; then
 
22709
    mkdir -p $dirpart/$fdir
 
22710
  else
 
22711
    as_dir=$dirpart/$fdir
 
22712
    as_dirs=
 
22713
    while test ! -d "$as_dir"; do
 
22714
      as_dirs="$as_dir $as_dirs"
 
22715
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22716
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22717
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22718
         X"$as_dir" : 'X\(//\)$' \| \
 
22719
         X"$as_dir" : 'X\(/\)' \| \
 
22720
         .     : '\(.\)' 2>/dev/null ||
 
22721
echo X"$as_dir" |
 
22722
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22723
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22724
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22725
          /^X\(\/\).*/{ s//\1/; q; }
 
22726
          s/.*/./; q'`
 
22727
    done
 
22728
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22729
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
22730
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
22731
   { (exit 1); exit 1; }; }; }
 
22732
 
 
22733
    # echo "creating $dirpart/$file"
 
22734
    echo '# dummy' > "$dirpart/$file"
 
22735
  done
 
22736
done
 
22737
 ;;
 
22738
  esac
 
22739
done
 
22740
_ACEOF
 
22741
 
 
22742
cat >>$CONFIG_STATUS <<\_ACEOF
 
22743
 
 
22744
{ (exit 0); exit 0; }
 
22745
_ACEOF
 
22746
chmod +x $CONFIG_STATUS
 
22747
ac_clean_files=$ac_clean_files_save
 
22748
 
 
22749
 
 
22750
# configure is writing to config.log, and then calls config.status.
 
22751
# config.status does its own redirection, appending to config.log.
 
22752
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22753
# by configure, so config.status won't be able to write to it; its
 
22754
# output is simply discarded.  So we exec the FD to /dev/null,
 
22755
# effectively closing config.log, so it can be properly (re)opened and
 
22756
# appended to by config.status.  When coming back to configure, we
 
22757
# need to make the FD available again.
 
22758
if test "$no_create" != yes; then
 
22759
  ac_cs_success=:
 
22760
  ac_config_status_args=
 
22761
  test "$silent" = yes &&
 
22762
    ac_config_status_args="$ac_config_status_args --quiet"
 
22763
  exec 5>/dev/null
 
22764
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22765
  exec 5>>config.log
 
22766
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22767
  # would make configure fail if this is the last instruction.
 
22768
  $ac_cs_success || { (exit 1); exit 1; }
 
22769
fi
 
22770
 
 
22771