~dabisu/hashit/hashit

« back to all changes in this revision

Viewing changes to misc/libghthash-0.5.0/configure

  • Committer: david
  • Date: 2006-05-16 23:29:04 UTC
  • Revision ID: svn-v3-none:e77c6e7c-37ec-0310-b0de-ec2fc1d4588f::10
* misc cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59.
6
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
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
#
12
408
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
16
 
ac_help="$ac_help
17
 
  --enable-static[=PKGS]  build static libraries [default=yes]"
18
 
ac_help="$ac_help
19
 
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20
 
ac_help="$ac_help
21
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22
 
ac_help="$ac_help
23
 
  --disable-libtool-lock  avoid locking (might break parallel builds)"
24
 
ac_help="$ac_help
25
 
  --enable-debug          enable debugging and disable optimisations [default=no]"
 
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="src/hash_table.c"
 
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 MAJOR_VERSION MINOR_VERSION MICRO_VERSION INTERFACE_AGE BINARY_AGE VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INT32_T LIBOBJS LTLIBOBJS'
 
467
ac_subst_files=''
26
468
 
27
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
28
472
# The variables have the same names as the options, with
29
473
# dashes changed to underlines.
30
 
build=NONE
31
 
cache_file=./config.cache
 
474
cache_file=/dev/null
32
475
exec_prefix=NONE
33
 
host=NONE
34
476
no_create=
35
 
nonopt=NONE
36
477
no_recursion=
37
478
prefix=NONE
38
479
program_prefix=NONE
41
482
silent=
42
483
site=
43
484
srcdir=
44
 
target=NONE
45
485
verbose=
46
486
x_includes=NONE
47
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.
48
494
bindir='${exec_prefix}/bin'
49
495
sbindir='${exec_prefix}/sbin'
50
496
libexecdir='${exec_prefix}/libexec'
58
504
infodir='${prefix}/info'
59
505
mandir='${prefix}/man'
60
506
 
61
 
# Initialize some other variables.
62
 
subdirs=
63
 
MFLAGS= MAKEFLAGS=
64
 
SHELL=${CONFIG_SHELL-/bin/sh}
65
 
# Maximum number of lines to put in a shell here document.
66
 
ac_max_here_lines=12
67
 
 
68
507
ac_prev=
69
508
for ac_option
70
509
do
71
 
 
72
510
  # If the previous option needs an argument, assign it.
73
511
  if test -n "$ac_prev"; then
74
512
    eval "$ac_prev=\$ac_option"
76
514
    continue
77
515
  fi
78
516
 
79
 
  case "$ac_option" in
80
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81
 
  *) ac_optarg= ;;
82
 
  esac
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
83
518
 
84
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
85
520
 
86
 
  case "$ac_option" in
 
521
  case $ac_option in
87
522
 
88
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
89
524
    ac_prev=bindir ;;
90
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91
 
    bindir="$ac_optarg" ;;
 
526
    bindir=$ac_optarg ;;
92
527
 
93
528
  -build | --build | --buil | --bui | --bu)
94
 
    ac_prev=build ;;
 
529
    ac_prev=build_alias ;;
95
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96
 
    build="$ac_optarg" ;;
 
531
    build_alias=$ac_optarg ;;
97
532
 
98
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
99
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100
535
    ac_prev=cache_file ;;
101
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103
 
    cache_file="$ac_optarg" ;;
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
104
542
 
105
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106
544
    ac_prev=datadir ;;
107
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108
546
  | --da=*)
109
 
    datadir="$ac_optarg" ;;
 
547
    datadir=$ac_optarg ;;
110
548
 
111
549
  -disable-* | --disable-*)
112
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
113
551
    # Reject names that are not valid shell variable names.
114
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116
 
    fi
117
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118
 
    eval "enable_${ac_feature}=no" ;;
 
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" ;;
119
557
 
120
558
  -enable-* | --enable-*)
121
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
122
560
    # Reject names that are not valid shell variable names.
123
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125
 
    fi
126
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127
 
    case "$ac_option" in
128
 
      *=*) ;;
 
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"`;;
129
567
      *) ac_optarg=yes ;;
130
568
    esac
131
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
132
570
 
133
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139
577
  | --exec=* | --exe=* | --ex=*)
140
 
    exec_prefix="$ac_optarg" ;;
 
578
    exec_prefix=$ac_optarg ;;
141
579
 
142
580
  -gas | --gas | --ga | --g)
143
581
    # Obsolete; use --with-gas.
144
582
    with_gas=yes ;;
145
583
 
146
 
  -help | --help | --hel | --he)
147
 
    # Omit some internal or obsolete options to make the list less imposing.
148
 
    # This message is too long to be a string in the A/UX 3.1 sh.
149
 
    cat << EOF
150
 
Usage: configure [options] [host]
151
 
Options: [defaults in brackets after descriptions]
152
 
Configuration:
153
 
  --cache-file=FILE       cache test results in FILE
154
 
  --help                  print this message
155
 
  --no-create             do not create output files
156
 
  --quiet, --silent       do not print \`checking...' messages
157
 
  --version               print the version of autoconf that created configure
158
 
Directory and file names:
159
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
160
 
                          [$ac_default_prefix]
161
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162
 
                          [same as prefix]
163
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
164
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
165
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
166
 
  --datadir=DIR           read-only architecture-independent data in DIR
167
 
                          [PREFIX/share]
168
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170
 
                          [PREFIX/com]
171
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
172
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
173
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
174
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
175
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
176
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
177
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
178
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
179
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
180
 
  --program-transform-name=PROGRAM
181
 
                          run sed PROGRAM on installed program names
182
 
EOF
183
 
    cat << EOF
184
 
Host type:
185
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
186
 
  --host=HOST             configure for HOST [guessed]
187
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
188
 
Features and packages:
189
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
190
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
191
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
192
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
193
 
  --x-includes=DIR        X include files are in DIR
194
 
  --x-libraries=DIR       X library files are in DIR
195
 
EOF
196
 
    if test -n "$ac_help"; then
197
 
      echo "--enable and --with options recognized:$ac_help"
198
 
    fi
199
 
    exit 0 ;;
 
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 ;;
200
590
 
201
591
  -host | --host | --hos | --ho)
202
 
    ac_prev=host ;;
 
592
    ac_prev=host_alias ;;
203
593
  -host=* | --host=* | --hos=* | --ho=*)
204
 
    host="$ac_optarg" ;;
 
594
    host_alias=$ac_optarg ;;
205
595
 
206
596
  -includedir | --includedir | --includedi | --included | --include \
207
597
  | --includ | --inclu | --incl | --inc)
208
598
    ac_prev=includedir ;;
209
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
211
 
    includedir="$ac_optarg" ;;
 
601
    includedir=$ac_optarg ;;
212
602
 
213
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
214
604
    ac_prev=infodir ;;
215
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216
 
    infodir="$ac_optarg" ;;
 
606
    infodir=$ac_optarg ;;
217
607
 
218
608
  -libdir | --libdir | --libdi | --libd)
219
609
    ac_prev=libdir ;;
220
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
221
 
    libdir="$ac_optarg" ;;
 
611
    libdir=$ac_optarg ;;
222
612
 
223
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224
614
  | --libexe | --libex | --libe)
225
615
    ac_prev=libexecdir ;;
226
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227
617
  | --libexe=* | --libex=* | --libe=*)
228
 
    libexecdir="$ac_optarg" ;;
 
618
    libexecdir=$ac_optarg ;;
229
619
 
230
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
231
621
  | --localstate | --localstat | --localsta | --localst \
234
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237
 
    localstatedir="$ac_optarg" ;;
 
627
    localstatedir=$ac_optarg ;;
238
628
 
239
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240
630
    ac_prev=mandir ;;
241
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242
 
    mandir="$ac_optarg" ;;
 
632
    mandir=$ac_optarg ;;
243
633
 
244
634
  -nfp | --nfp | --nf)
245
635
    # Obsolete; use --without-fp.
246
636
    with_fp=no ;;
247
637
 
248
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249
 
  | --no-cr | --no-c)
 
639
  | --no-cr | --no-c | -n)
250
640
    no_create=yes ;;
251
641
 
252
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263
 
    oldincludedir="$ac_optarg" ;;
 
653
    oldincludedir=$ac_optarg ;;
264
654
 
265
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266
656
    ac_prev=prefix ;;
267
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268
 
    prefix="$ac_optarg" ;;
 
658
    prefix=$ac_optarg ;;
269
659
 
270
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
271
661
  | --program-pre | --program-pr | --program-p)
272
662
    ac_prev=program_prefix ;;
273
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
274
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275
 
    program_prefix="$ac_optarg" ;;
 
665
    program_prefix=$ac_optarg ;;
276
666
 
277
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
278
668
  | --program-suf | --program-su | --program-s)
279
669
    ac_prev=program_suffix ;;
280
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
281
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282
 
    program_suffix="$ac_optarg" ;;
 
672
    program_suffix=$ac_optarg ;;
283
673
 
284
674
  -program-transform-name | --program-transform-name \
285
675
  | --program-transform-nam | --program-transform-na \
296
686
  | --program-transfo=* | --program-transf=* \
297
687
  | --program-trans=* | --program-tran=* \
298
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
299
 
    program_transform_name="$ac_optarg" ;;
 
689
    program_transform_name=$ac_optarg ;;
300
690
 
301
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302
692
  | -silent | --silent | --silen | --sile | --sil)
306
696
    ac_prev=sbindir ;;
307
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308
698
  | --sbi=* | --sb=*)
309
 
    sbindir="$ac_optarg" ;;
 
699
    sbindir=$ac_optarg ;;
310
700
 
311
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
312
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319
709
  | --sha=* | --sh=*)
320
 
    sharedstatedir="$ac_optarg" ;;
 
710
    sharedstatedir=$ac_optarg ;;
321
711
 
322
712
  -site | --site | --sit)
323
713
    ac_prev=site ;;
324
714
  -site=* | --site=* | --sit=*)
325
 
    site="$ac_optarg" ;;
 
715
    site=$ac_optarg ;;
326
716
 
327
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328
718
    ac_prev=srcdir ;;
329
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330
 
    srcdir="$ac_optarg" ;;
 
720
    srcdir=$ac_optarg ;;
331
721
 
332
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333
723
  | --syscon | --sysco | --sysc | --sys | --sy)
334
724
    ac_prev=sysconfdir ;;
335
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337
 
    sysconfdir="$ac_optarg" ;;
 
727
    sysconfdir=$ac_optarg ;;
338
728
 
339
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
340
 
    ac_prev=target ;;
 
730
    ac_prev=target_alias ;;
341
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342
 
    target="$ac_optarg" ;;
 
732
    target_alias=$ac_optarg ;;
343
733
 
344
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
345
735
    verbose=yes ;;
346
736
 
347
 
  -version | --version | --versio | --versi | --vers)
348
 
    echo "configure generated by autoconf version 2.13"
349
 
    exit 0 ;;
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
350
739
 
351
740
  -with-* | --with-*)
352
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
353
742
    # Reject names that are not valid shell variable names.
354
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356
 
    fi
 
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; }; }
357
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
358
 
    case "$ac_option" in
359
 
      *=*) ;;
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
360
749
      *) ac_optarg=yes ;;
361
750
    esac
362
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
363
752
 
364
753
  -without-* | --without-*)
365
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
366
755
    # Reject names that are not valid shell variable names.
367
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369
 
    fi
370
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
371
 
    eval "with_${ac_package}=no" ;;
 
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" ;;
372
761
 
373
762
  --x)
374
763
    # Obsolete; use --with-x.
379
768
    ac_prev=x_includes ;;
380
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382
 
    x_includes="$ac_optarg" ;;
 
771
    x_includes=$ac_optarg ;;
383
772
 
384
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
385
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386
775
    ac_prev=x_libraries ;;
387
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389
 
    x_libraries="$ac_optarg" ;;
 
778
    x_libraries=$ac_optarg ;;
390
779
 
391
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
392
783
    ;;
393
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
 
394
795
  *)
395
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
397
 
    fi
398
 
    if test "x$nonopt" != xNONE; then
399
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400
 
    fi
401
 
    nonopt="$ac_option"
 
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}
402
801
    ;;
403
802
 
404
803
  esac
405
804
done
406
805
 
407
806
if test -n "$ac_prev"; then
408
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409
 
fi
410
 
 
411
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
 
 
413
 
# File descriptor usage:
414
 
# 0 standard input
415
 
# 1 file creation
416
 
# 2 errors and warnings
417
 
# 3 some systems may open it to /dev/tty
418
 
# 4 used on the Kubota Titan
419
 
# 6 checking for... messages and results
420
 
# 5 compiler messages saved in config.log
421
 
if test "$silent" = yes; then
422
 
  exec 6>/dev/null
423
 
else
424
 
  exec 6>&1
425
 
fi
426
 
exec 5>./config.log
427
 
 
428
 
echo "\
429
 
This file contains any messages produced by compilers while
430
 
running configure, to aid debugging if configure makes a mistake.
431
 
" 1>&5
432
 
 
433
 
# Strip out --no-create and --no-recursion so they do not pile up.
434
 
# Also quote any args containing shell metacharacters.
435
 
ac_configure_args=
436
 
for ac_arg
437
 
do
438
 
  case "$ac_arg" in
439
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440
 
  | --no-cr | --no-c) ;;
441
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446
 
  esac
447
 
done
448
 
 
449
 
# NLS nuisances.
450
 
# Only set these to C if already set.  These must not be set unconditionally
451
 
# because not all systems understand e.g. LANG=C (notably SCO).
452
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453
 
# Non-C LC_CTYPE values break the ctype check.
454
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
455
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
458
 
 
459
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
460
 
rm -rf conftest* confdefs.h
461
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
462
 
echo > confdefs.h
463
 
 
464
 
# A filename unique to this package, relative to the directory that
465
 
# configure is in, which we can look for to find out if srcdir is correct.
466
 
ac_unique_file=src/hash_table.c
 
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
 
467
858
 
468
859
# Find the source files, if location was not specified.
469
860
if test -z "$srcdir"; then
470
861
  ac_srcdir_defaulted=yes
471
862
  # Try the directory containing this script, then its parent.
472
 
  ac_prog=$0
473
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
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'`
475
875
  srcdir=$ac_confdir
476
876
  if test ! -r $srcdir/$ac_unique_file; then
477
877
    srcdir=..
481
881
fi
482
882
if test ! -r $srcdir/$ac_unique_file; then
483
883
  if test "$ac_srcdir_defaulted" = yes; then
484
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
485
886
  else
486
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
487
889
  fi
488
890
fi
489
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
 
 
 
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_CPP_set=${CPP+set}
 
924
ac_env_CPP_value=$CPP
 
925
ac_cv_env_CPP_set=${CPP+set}
 
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
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
  --enable-shared[=PKGS]
 
1027
                          build shared libraries [default=yes]
 
1028
  --enable-static[=PKGS]
 
1029
                          build static libraries [default=yes]
 
1030
  --enable-fast-install[=PKGS]
 
1031
                          optimize for fast installation [default=yes]
 
1032
  --disable-dependency-tracking  speeds up one-time build
 
1033
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1034
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1035
  --enable-debug          enable debugging and disable optimisations default=no
 
1036
 
 
1037
Optional Packages:
 
1038
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1039
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1040
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1041
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1042
                          both]
 
1043
  --with-tags[=TAGS]
 
1044
                          include additional configurations [automatic]
 
1045
 
 
1046
Some influential environment variables:
 
1047
  CC          C compiler command
 
1048
  CFLAGS      C compiler flags
 
1049
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1050
              nonstandard directory <lib dir>
 
1051
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1052
              headers in a nonstandard directory <include dir>
 
1053
  CPP         C preprocessor
 
1054
  CXX         C++ compiler command
 
1055
  CXXFLAGS    C++ compiler flags
 
1056
  CXXCPP      C++ preprocessor
 
1057
  F77         Fortran 77 compiler command
 
1058
  FFLAGS      Fortran 77 compiler flags
 
1059
 
 
1060
Use these variables to override the choices made by `configure' or to help
 
1061
it to find libraries and programs with nonstandard names/locations.
 
1062
 
 
1063
_ACEOF
 
1064
fi
 
1065
 
 
1066
if test "$ac_init_help" = "recursive"; then
 
1067
  # If there are subdirs, report their specific --help.
 
1068
  ac_popdir=`pwd`
 
1069
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1070
    test -d $ac_dir || continue
 
1071
    ac_builddir=.
 
1072
 
 
1073
if test "$ac_dir" != .; then
 
1074
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1075
  # A "../" for each directory in $ac_dir_suffix.
 
1076
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1077
else
 
1078
  ac_dir_suffix= ac_top_builddir=
 
1079
fi
 
1080
 
 
1081
case $srcdir in
 
1082
  .)  # No --srcdir option.  We are building in place.
 
1083
    ac_srcdir=.
 
1084
    if test -z "$ac_top_builddir"; then
 
1085
       ac_top_srcdir=.
 
1086
    else
 
1087
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1088
    fi ;;
 
1089
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1090
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1091
    ac_top_srcdir=$srcdir ;;
 
1092
  *) # Relative path.
 
1093
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1094
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1095
esac
 
1096
 
 
1097
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1098
# the directories may not exist.
 
1099
case `pwd` in
 
1100
.) ac_abs_builddir="$ac_dir";;
 
1101
*)
 
1102
  case "$ac_dir" in
 
1103
  .) ac_abs_builddir=`pwd`;;
 
1104
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1105
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1106
  esac;;
 
1107
esac
 
1108
case $ac_abs_builddir in
 
1109
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1110
*)
 
1111
  case ${ac_top_builddir}. in
 
1112
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1113
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1114
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1115
  esac;;
 
1116
esac
 
1117
case $ac_abs_builddir in
 
1118
.) ac_abs_srcdir=$ac_srcdir;;
 
1119
*)
 
1120
  case $ac_srcdir in
 
1121
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1122
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1123
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1124
  esac;;
 
1125
esac
 
1126
case $ac_abs_builddir in
 
1127
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1128
*)
 
1129
  case $ac_top_srcdir in
 
1130
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1131
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1132
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1133
  esac;;
 
1134
esac
 
1135
 
 
1136
    cd $ac_dir
 
1137
    # Check for guested configure; otherwise get Cygnus style configure.
 
1138
    if test -f $ac_srcdir/configure.gnu; then
 
1139
      echo
 
1140
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1141
    elif test -f $ac_srcdir/configure; then
 
1142
      echo
 
1143
      $SHELL $ac_srcdir/configure  --help=recursive
 
1144
    elif test -f $ac_srcdir/configure.ac ||
 
1145
           test -f $ac_srcdir/configure.in; then
 
1146
      echo
 
1147
      $ac_configure --help
 
1148
    else
 
1149
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1150
    fi
 
1151
    cd $ac_popdir
 
1152
  done
 
1153
fi
 
1154
 
 
1155
test -n "$ac_init_help" && exit 0
 
1156
if $ac_init_version; then
 
1157
  cat <<\_ACEOF
 
1158
 
 
1159
Copyright (C) 2003 Free Software Foundation, Inc.
 
1160
This configure script is free software; the Free Software Foundation
 
1161
gives unlimited permission to copy, distribute and modify it.
 
1162
_ACEOF
 
1163
  exit 0
 
1164
fi
 
1165
exec 5>config.log
 
1166
cat >&5 <<_ACEOF
 
1167
This file contains any messages produced by compilers while
 
1168
running configure, to aid debugging if configure makes a mistake.
 
1169
 
 
1170
It was created by $as_me, which was
 
1171
generated by GNU Autoconf 2.59.  Invocation command line was
 
1172
 
 
1173
  $ $0 $@
 
1174
 
 
1175
_ACEOF
 
1176
{
 
1177
cat <<_ASUNAME
 
1178
## --------- ##
 
1179
## Platform. ##
 
1180
## --------- ##
 
1181
 
 
1182
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1183
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1184
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1185
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1186
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1187
 
 
1188
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1189
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1190
 
 
1191
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1192
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1193
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1194
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1195
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1196
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1197
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1198
 
 
1199
_ASUNAME
 
1200
 
 
1201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1202
for as_dir in $PATH
 
1203
do
 
1204
  IFS=$as_save_IFS
 
1205
  test -z "$as_dir" && as_dir=.
 
1206
  echo "PATH: $as_dir"
 
1207
done
 
1208
 
 
1209
} >&5
 
1210
 
 
1211
cat >&5 <<_ACEOF
 
1212
 
 
1213
 
 
1214
## ----------- ##
 
1215
## Core tests. ##
 
1216
## ----------- ##
 
1217
 
 
1218
_ACEOF
 
1219
 
 
1220
 
 
1221
# Keep a trace of the command line.
 
1222
# Strip out --no-create and --no-recursion so they do not pile up.
 
1223
# Strip out --silent because we don't want to record it for future runs.
 
1224
# Also quote any args containing shell meta-characters.
 
1225
# Make two passes to allow for proper duplicate-argument suppression.
 
1226
ac_configure_args=
 
1227
ac_configure_args0=
 
1228
ac_configure_args1=
 
1229
ac_sep=
 
1230
ac_must_keep_next=false
 
1231
for ac_pass in 1 2
 
1232
do
 
1233
  for ac_arg
 
1234
  do
 
1235
    case $ac_arg in
 
1236
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1237
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1238
    | -silent | --silent | --silen | --sile | --sil)
 
1239
      continue ;;
 
1240
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1241
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1242
    esac
 
1243
    case $ac_pass in
 
1244
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1245
    2)
 
1246
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1247
      if test $ac_must_keep_next = true; then
 
1248
        ac_must_keep_next=false # Got value, back to normal.
 
1249
      else
 
1250
        case $ac_arg in
 
1251
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1252
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1253
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1254
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1255
            case "$ac_configure_args0 " in
 
1256
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1257
            esac
 
1258
            ;;
 
1259
          -* ) ac_must_keep_next=true ;;
 
1260
        esac
 
1261
      fi
 
1262
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1263
      # Get rid of the leading space.
 
1264
      ac_sep=" "
 
1265
      ;;
 
1266
    esac
 
1267
  done
 
1268
done
 
1269
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1270
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1271
 
 
1272
# When interrupted or exit'd, cleanup temporary files, and complete
 
1273
# config.log.  We remove comments because anyway the quotes in there
 
1274
# would cause problems or look ugly.
 
1275
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1276
# such as our DU 5.0 friend, will then `close' the trap.
 
1277
trap 'exit_status=$?
 
1278
  # Save into config.log some information that might help in debugging.
 
1279
  {
 
1280
    echo
 
1281
 
 
1282
    cat <<\_ASBOX
 
1283
## ---------------- ##
 
1284
## Cache variables. ##
 
1285
## ---------------- ##
 
1286
_ASBOX
 
1287
    echo
 
1288
    # The following way of writing the cache mishandles newlines in values,
 
1289
{
 
1290
  (set) 2>&1 |
 
1291
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1292
    *ac_space=\ *)
 
1293
      sed -n \
 
1294
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1295
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1296
      ;;
 
1297
    *)
 
1298
      sed -n \
 
1299
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1300
      ;;
 
1301
    esac;
 
1302
}
 
1303
    echo
 
1304
 
 
1305
    cat <<\_ASBOX
 
1306
## ----------------- ##
 
1307
## Output variables. ##
 
1308
## ----------------- ##
 
1309
_ASBOX
 
1310
    echo
 
1311
    for ac_var in $ac_subst_vars
 
1312
    do
 
1313
      eval ac_val=$`echo $ac_var`
 
1314
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1315
    done | sort
 
1316
    echo
 
1317
 
 
1318
    if test -n "$ac_subst_files"; then
 
1319
      cat <<\_ASBOX
 
1320
## ------------- ##
 
1321
## Output files. ##
 
1322
## ------------- ##
 
1323
_ASBOX
 
1324
      echo
 
1325
      for ac_var in $ac_subst_files
 
1326
      do
 
1327
        eval ac_val=$`echo $ac_var`
 
1328
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1329
      done | sort
 
1330
      echo
 
1331
    fi
 
1332
 
 
1333
    if test -s confdefs.h; then
 
1334
      cat <<\_ASBOX
 
1335
## ----------- ##
 
1336
## confdefs.h. ##
 
1337
## ----------- ##
 
1338
_ASBOX
 
1339
      echo
 
1340
      sed "/^$/d" confdefs.h | sort
 
1341
      echo
 
1342
    fi
 
1343
    test "$ac_signal" != 0 &&
 
1344
      echo "$as_me: caught signal $ac_signal"
 
1345
    echo "$as_me: exit $exit_status"
 
1346
  } >&5
 
1347
  rm -f core *.core &&
 
1348
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1349
    exit $exit_status
 
1350
     ' 0
 
1351
for ac_signal in 1 2 13 15; do
 
1352
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1353
done
 
1354
ac_signal=0
 
1355
 
 
1356
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1357
rm -rf conftest* confdefs.h
 
1358
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1359
echo >confdefs.h
 
1360
 
 
1361
# Predefined preprocessor variables.
 
1362
 
 
1363
cat >>confdefs.h <<_ACEOF
 
1364
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1365
_ACEOF
 
1366
 
 
1367
 
 
1368
cat >>confdefs.h <<_ACEOF
 
1369
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1370
_ACEOF
 
1371
 
 
1372
 
 
1373
cat >>confdefs.h <<_ACEOF
 
1374
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1375
_ACEOF
 
1376
 
 
1377
 
 
1378
cat >>confdefs.h <<_ACEOF
 
1379
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1380
_ACEOF
 
1381
 
 
1382
 
 
1383
cat >>confdefs.h <<_ACEOF
 
1384
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1385
_ACEOF
 
1386
 
 
1387
 
 
1388
# Let the site file select an alternate cache file if it wants to.
491
1389
# Prefer explicitly selected file to automatically selected ones.
492
1390
if test -z "$CONFIG_SITE"; then
493
1391
  if test "x$prefix" != xNONE; then
498
1396
fi
499
1397
for ac_site_file in $CONFIG_SITE; do
500
1398
  if test -r "$ac_site_file"; then
501
 
    echo "loading site script $ac_site_file"
 
1399
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1400
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1401
    sed 's/^/| /' "$ac_site_file" >&5
502
1402
    . "$ac_site_file"
503
1403
  fi
504
1404
done
505
1405
 
506
1406
if test -r "$cache_file"; then
507
 
  echo "loading cache $cache_file"
508
 
  . $cache_file
 
1407
  # Some versions of bash will fail to source /dev/null (special
 
1408
  # files actually), so we avoid doing that.
 
1409
  if test -f "$cache_file"; then
 
1410
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1411
echo "$as_me: loading cache $cache_file" >&6;}
 
1412
    case $cache_file in
 
1413
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1414
      *)                      . ./$cache_file;;
 
1415
    esac
 
1416
  fi
509
1417
else
510
 
  echo "creating cache $cache_file"
511
 
  > $cache_file
 
1418
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1419
echo "$as_me: creating cache $cache_file" >&6;}
 
1420
  >$cache_file
 
1421
fi
 
1422
 
 
1423
# Check that the precious variables saved in the cache have kept the same
 
1424
# value.
 
1425
ac_cache_corrupted=false
 
1426
for ac_var in `(set) 2>&1 |
 
1427
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1428
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1429
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1430
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1431
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1432
  case $ac_old_set,$ac_new_set in
 
1433
    set,)
 
1434
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1435
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1436
      ac_cache_corrupted=: ;;
 
1437
    ,set)
 
1438
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1439
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1440
      ac_cache_corrupted=: ;;
 
1441
    ,);;
 
1442
    *)
 
1443
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1444
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1445
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1446
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1447
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1448
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1449
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1450
        ac_cache_corrupted=:
 
1451
      fi;;
 
1452
  esac
 
1453
  # Pass precious variables to config.status.
 
1454
  if test "$ac_new_set" = set; then
 
1455
    case $ac_new_val in
 
1456
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1457
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1458
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1459
    esac
 
1460
    case " $ac_configure_args " in
 
1461
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1462
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1463
    esac
 
1464
  fi
 
1465
done
 
1466
if $ac_cache_corrupted; then
 
1467
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1468
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1469
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1470
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1471
   { (exit 1); exit 1; }; }
512
1472
fi
513
1473
 
514
1474
ac_ext=c
515
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516
1475
ac_cpp='$CPP $CPPFLAGS'
517
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519
 
cross_compiling=$ac_cv_prog_cc_cross
520
 
 
521
 
ac_exeext=
522
 
ac_objext=o
523
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526
 
    ac_n= ac_c='
527
 
' ac_t='        '
528
 
  else
529
 
    ac_n=-n ac_c= ac_t=
530
 
  fi
531
 
else
532
 
  ac_n= ac_c='\c' ac_t=
533
 
fi
 
1476
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1477
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1478
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
534
1496
 
535
1497
 
536
1498
 
537
1499
# Check for sizes of different types
538
1500
 
539
1501
 
540
 
# Set various version strings - taken gratefully from the 
 
1502
# Set various version strings - taken gratefully from the
541
1503
# SDL sources which was taken from the GTk sources
542
1504
#
543
1505
# Making releases:
574
1536
 
575
1537
 
576
1538
#automake configuration
 
1539
am__api_version="1.9"
577
1540
ac_aux_dir=
578
1541
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
579
1542
  if test -f $ac_dir/install-sh; then
584
1547
    ac_aux_dir=$ac_dir
585
1548
    ac_install_sh="$ac_aux_dir/install.sh -c"
586
1549
    break
 
1550
  elif test -f $ac_dir/shtool; then
 
1551
    ac_aux_dir=$ac_dir
 
1552
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1553
    break
587
1554
  fi
588
1555
done
589
1556
if test -z "$ac_aux_dir"; then
590
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
1557
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1558
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1559
   { (exit 1); exit 1; }; }
591
1560
fi
592
 
ac_config_guess=$ac_aux_dir/config.guess
593
 
ac_config_sub=$ac_aux_dir/config.sub
594
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
1561
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1562
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1563
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
595
1564
 
596
1565
# Find a good install program.  We prefer a C program (faster),
597
1566
# so one script is as good as another.  But avoid the broken or
600
1569
# SunOS /usr/etc/install
601
1570
# IRIX /sbin/install
602
1571
# AIX /bin/install
 
1572
# AmigaOS /C/install, which installs bootblocks on floppy discs
603
1573
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
604
1574
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
605
1575
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1576
# OS/2's system install, which has a completely different semantic
606
1577
# ./install, which can be erroneously created by make from ./install.sh.
607
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
608
 
echo "configure:609: checking for a BSD compatible install" >&5
 
1578
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1579
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
609
1580
if test -z "$INSTALL"; then
610
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
611
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1581
if test "${ac_cv_path_install+set}" = set; then
 
1582
  echo $ECHO_N "(cached) $ECHO_C" >&6
612
1583
else
613
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
614
 
  for ac_dir in $PATH; do
615
 
    # Account for people who put trailing slashes in PATH elements.
616
 
    case "$ac_dir/" in
617
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
618
 
    *)
619
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
620
 
      # Don't use installbsd from OSF since it installs stuff as root
621
 
      # by default.
622
 
      for ac_prog in ginstall scoinst install; do
623
 
        if test -f $ac_dir/$ac_prog; then
 
1584
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1585
for as_dir in $PATH
 
1586
do
 
1587
  IFS=$as_save_IFS
 
1588
  test -z "$as_dir" && as_dir=.
 
1589
  # Account for people who put trailing slashes in PATH elements.
 
1590
case $as_dir/ in
 
1591
  ./ | .// | /cC/* | \
 
1592
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1593
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1594
  /usr/ucb/* ) ;;
 
1595
  *)
 
1596
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1597
    # Don't use installbsd from OSF since it installs stuff as root
 
1598
    # by default.
 
1599
    for ac_prog in ginstall scoinst install; do
 
1600
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1601
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
624
1602
          if test $ac_prog = install &&
625
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1603
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
626
1604
            # AIX install.  It has an incompatible calling convention.
627
1605
            :
 
1606
          elif test $ac_prog = install &&
 
1607
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1608
            # program-specific install script used by HP pwplus--don't use.
 
1609
            :
628
1610
          else
629
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
630
 
            break 2
 
1611
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1612
            break 3
631
1613
          fi
632
1614
        fi
633
1615
      done
634
 
      ;;
635
 
    esac
636
 
  done
637
 
  IFS="$ac_save_IFS"
 
1616
    done
 
1617
    ;;
 
1618
esac
 
1619
done
 
1620
 
638
1621
 
639
1622
fi
640
1623
  if test "${ac_cv_path_install+set}" = set; then
641
 
    INSTALL="$ac_cv_path_install"
 
1624
    INSTALL=$ac_cv_path_install
642
1625
  else
643
1626
    # As a last resort, use the slow shell script.  We don't cache a
644
1627
    # path for INSTALL within a source directory, because that will
645
1628
    # break other packages using the cache if that directory is
646
1629
    # removed, or if the path is relative.
647
 
    INSTALL="$ac_install_sh"
 
1630
    INSTALL=$ac_install_sh
648
1631
  fi
649
1632
fi
650
 
echo "$ac_t""$INSTALL" 1>&6
 
1633
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1634
echo "${ECHO_T}$INSTALL" >&6
651
1635
 
652
1636
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
653
1637
# It thinks the first close brace ends the variable substitution.
654
1638
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
655
1639
 
656
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1640
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
657
1641
 
658
1642
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
659
1643
 
660
 
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
661
 
echo "configure:662: checking whether build environment is sane" >&5
 
1644
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1645
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
662
1646
# Just in case
663
1647
sleep 1
664
 
echo timestamp > conftestfile
 
1648
echo timestamp > conftest.file
665
1649
# Do `set' in a subshell so we don't clobber the current shell's
666
1650
# arguments.  Must try -L first in case configure is actually a
667
1651
# symlink; some systems play weird games with the mod time of symlinks
668
1652
# (eg FreeBSD returns the mod time of the symlink's containing
669
1653
# directory).
670
1654
if (
671
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1655
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
672
1656
   if test "$*" = "X"; then
673
1657
      # -L didn't work.
674
 
      set X `ls -t $srcdir/configure conftestfile`
 
1658
      set X `ls -t $srcdir/configure conftest.file`
675
1659
   fi
676
 
   if test "$*" != "X $srcdir/configure conftestfile" \
677
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1660
   rm -f conftest.file
 
1661
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1662
      && test "$*" != "X conftest.file $srcdir/configure"; then
678
1663
 
679
1664
      # If neither matched, then we have a broken ls.  This can happen
680
1665
      # if, for instance, CONFIG_SHELL is bash and it inherits a
681
1666
      # broken ls alias from the environment.  This has actually
682
1667
      # happened.  Such a system could not be considered "sane".
683
 
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
684
 
alias in your environment" 1>&2; exit 1; }
 
1668
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1669
alias in your environment" >&5
 
1670
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1671
alias in your environment" >&2;}
 
1672
   { (exit 1); exit 1; }; }
685
1673
   fi
686
1674
 
687
 
   test "$2" = conftestfile
 
1675
   test "$2" = conftest.file
688
1676
   )
689
1677
then
690
1678
   # Ok.
691
1679
   :
692
1680
else
693
 
   { echo "configure: error: newly created file is older than distributed files!
694
 
Check your system clock" 1>&2; exit 1; }
695
 
fi
696
 
rm -f conftest*
697
 
echo "$ac_t""yes" 1>&6
698
 
if test "$program_transform_name" = s,x,x,; then
699
 
  program_transform_name=
700
 
else
701
 
  # Double any \ or $.  echo might interpret backslashes.
702
 
  cat <<\EOF_SED > conftestsed
703
 
s,\\,\\\\,g; s,\$,$$,g
704
 
EOF_SED
705
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
706
 
  rm -f conftestsed
707
 
fi
 
1681
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1682
Check your system clock" >&5
 
1683
echo "$as_me: error: newly created file is older than distributed files!
 
1684
Check your system clock" >&2;}
 
1685
   { (exit 1); exit 1; }; }
 
1686
fi
 
1687
echo "$as_me:$LINENO: result: yes" >&5
 
1688
echo "${ECHO_T}yes" >&6
708
1689
test "$program_prefix" != NONE &&
709
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
1690
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
710
1691
# Use a double $ so make ignores it.
711
1692
test "$program_suffix" != NONE &&
712
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
713
 
 
714
 
# sed with no file args requires a program.
715
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
716
 
 
717
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
718
 
echo "configure:719: checking whether ${MAKE-make} sets \${MAKE}" >&5
719
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
720
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
721
 
  echo $ac_n "(cached) $ac_c" 1>&6
722
 
else
723
 
  cat > conftestmake <<\EOF
 
1693
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1694
# Double any \ or $.  echo might interpret backslashes.
 
1695
# By default was `s,x,x', remove it if useless.
 
1696
cat <<\_ACEOF >conftest.sed
 
1697
s/[\\$]/&&/g;s/;s,x,x,$//
 
1698
_ACEOF
 
1699
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1700
rm conftest.sed
 
1701
 
 
1702
# expand $ac_aux_dir to an absolute path
 
1703
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1704
 
 
1705
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1706
# Use eval to expand $SHELL
 
1707
if eval "$MISSING --run true"; then
 
1708
  am_missing_run="$MISSING --run "
 
1709
else
 
1710
  am_missing_run=
 
1711
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1712
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1713
fi
 
1714
 
 
1715
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1716
  # We used to keeping the `.' as first argument, in order to
 
1717
  # allow $(mkdir_p) to be used without argument.  As in
 
1718
  #   $(mkdir_p) $(somedir)
 
1719
  # where $(somedir) is conditionally defined.  However this is wrong
 
1720
  # for two reasons:
 
1721
  #  1. if the package is installed by a user who cannot write `.'
 
1722
  #     make install will fail,
 
1723
  #  2. the above comment should most certainly read
 
1724
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1725
  #     so it does not work when $(somedir) is undefined and
 
1726
  #     $(DESTDIR) is not.
 
1727
  #  To support the latter case, we have to write
 
1728
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1729
  #  so the `.' trick is pointless.
 
1730
  mkdir_p='mkdir -p --'
 
1731
else
 
1732
  # On NextStep and OpenStep, the `mkdir' command does not
 
1733
  # recognize any option.  It will interpret all options as
 
1734
  # directories to create, and then abort because `.' already
 
1735
  # exists.
 
1736
  for d in ./-p ./--version;
 
1737
  do
 
1738
    test -d $d && rmdir $d
 
1739
  done
 
1740
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1741
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1742
    mkdir_p='$(mkinstalldirs)'
 
1743
  else
 
1744
    mkdir_p='$(install_sh) -d'
 
1745
  fi
 
1746
fi
 
1747
 
 
1748
for ac_prog in gawk mawk nawk awk
 
1749
do
 
1750
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1751
set dummy $ac_prog; ac_word=$2
 
1752
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1753
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1754
if test "${ac_cv_prog_AWK+set}" = set; then
 
1755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1756
else
 
1757
  if test -n "$AWK"; then
 
1758
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1759
else
 
1760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1761
for as_dir in $PATH
 
1762
do
 
1763
  IFS=$as_save_IFS
 
1764
  test -z "$as_dir" && as_dir=.
 
1765
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1766
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1767
    ac_cv_prog_AWK="$ac_prog"
 
1768
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1769
    break 2
 
1770
  fi
 
1771
done
 
1772
done
 
1773
 
 
1774
fi
 
1775
fi
 
1776
AWK=$ac_cv_prog_AWK
 
1777
if test -n "$AWK"; then
 
1778
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1779
echo "${ECHO_T}$AWK" >&6
 
1780
else
 
1781
  echo "$as_me:$LINENO: result: no" >&5
 
1782
echo "${ECHO_T}no" >&6
 
1783
fi
 
1784
 
 
1785
  test -n "$AWK" && break
 
1786
done
 
1787
 
 
1788
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1789
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1790
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1791
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1793
else
 
1794
  cat >conftest.make <<\_ACEOF
724
1795
all:
725
 
        @echo 'ac_maketemp="${MAKE}"'
726
 
EOF
 
1796
        @echo 'ac_maketemp="$(MAKE)"'
 
1797
_ACEOF
727
1798
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
728
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
1799
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
729
1800
if test -n "$ac_maketemp"; then
730
1801
  eval ac_cv_prog_make_${ac_make}_set=yes
731
1802
else
732
1803
  eval ac_cv_prog_make_${ac_make}_set=no
733
1804
fi
734
 
rm -f conftestmake
 
1805
rm -f conftest.make
735
1806
fi
736
1807
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
737
 
  echo "$ac_t""yes" 1>&6
 
1808
  echo "$as_me:$LINENO: result: yes" >&5
 
1809
echo "${ECHO_T}yes" >&6
738
1810
  SET_MAKE=
739
1811
else
740
 
  echo "$ac_t""no" 1>&6
 
1812
  echo "$as_me:$LINENO: result: no" >&5
 
1813
echo "${ECHO_T}no" >&6
741
1814
  SET_MAKE="MAKE=${MAKE-make}"
742
1815
fi
743
1816
 
744
 
 
745
 
PACKAGE=libghthash
746
 
 
747
 
VERSION=$VERSION
748
 
 
749
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
750
 
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
751
 
fi
752
 
cat >> confdefs.h <<EOF
 
1817
rm -rf .tst 2>/dev/null
 
1818
mkdir .tst 2>/dev/null
 
1819
if test -d .tst; then
 
1820
  am__leading_dot=.
 
1821
else
 
1822
  am__leading_dot=_
 
1823
fi
 
1824
rmdir .tst 2>/dev/null
 
1825
 
 
1826
# test to see if srcdir already configured
 
1827
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1828
   test -f $srcdir/config.status; then
 
1829
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1830
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1831
   { (exit 1); exit 1; }; }
 
1832
fi
 
1833
 
 
1834
# test whether we have cygpath
 
1835
if test -z "$CYGPATH_W"; then
 
1836
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1837
    CYGPATH_W='cygpath -w'
 
1838
  else
 
1839
    CYGPATH_W=echo
 
1840
  fi
 
1841
fi
 
1842
 
 
1843
 
 
1844
# Define the identity of the package.
 
1845
 PACKAGE=libghthash
 
1846
 VERSION=$VERSION
 
1847
 
 
1848
 
 
1849
cat >>confdefs.h <<_ACEOF
753
1850
#define PACKAGE "$PACKAGE"
754
 
EOF
755
 
 
756
 
cat >> confdefs.h <<EOF
 
1851
_ACEOF
 
1852
 
 
1853
 
 
1854
cat >>confdefs.h <<_ACEOF
757
1855
#define VERSION "$VERSION"
758
 
EOF
759
 
 
760
 
 
761
 
 
762
 
missing_dir=`cd $ac_aux_dir && pwd`
763
 
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
764
 
echo "configure:765: checking for working aclocal" >&5
765
 
# Run test in a subshell; some versions of sh will print an error if
766
 
# an executable is not found, even if stderr is redirected.
767
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
768
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
769
 
   ACLOCAL=aclocal
770
 
   echo "$ac_t""found" 1>&6
771
 
else
772
 
   ACLOCAL="$missing_dir/missing aclocal"
773
 
   echo "$ac_t""missing" 1>&6
774
 
fi
775
 
 
776
 
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
777
 
echo "configure:778: checking for working autoconf" >&5
778
 
# Run test in a subshell; some versions of sh will print an error if
779
 
# an executable is not found, even if stderr is redirected.
780
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
781
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
782
 
   AUTOCONF=autoconf
783
 
   echo "$ac_t""found" 1>&6
784
 
else
785
 
   AUTOCONF="$missing_dir/missing autoconf"
786
 
   echo "$ac_t""missing" 1>&6
787
 
fi
788
 
 
789
 
echo $ac_n "checking for working automake""... $ac_c" 1>&6
790
 
echo "configure:791: checking for working automake" >&5
791
 
# Run test in a subshell; some versions of sh will print an error if
792
 
# an executable is not found, even if stderr is redirected.
793
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
794
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
795
 
   AUTOMAKE=automake
796
 
   echo "$ac_t""found" 1>&6
797
 
else
798
 
   AUTOMAKE="$missing_dir/missing automake"
799
 
   echo "$ac_t""missing" 1>&6
800
 
fi
801
 
 
802
 
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
803
 
echo "configure:804: checking for working autoheader" >&5
804
 
# Run test in a subshell; some versions of sh will print an error if
805
 
# an executable is not found, even if stderr is redirected.
806
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
807
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
808
 
   AUTOHEADER=autoheader
809
 
   echo "$ac_t""found" 1>&6
810
 
else
811
 
   AUTOHEADER="$missing_dir/missing autoheader"
812
 
   echo "$ac_t""missing" 1>&6
813
 
fi
814
 
 
815
 
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
816
 
echo "configure:817: checking for working makeinfo" >&5
817
 
# Run test in a subshell; some versions of sh will print an error if
818
 
# an executable is not found, even if stderr is redirected.
819
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
820
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
821
 
   MAKEINFO=makeinfo
822
 
   echo "$ac_t""found" 1>&6
823
 
else
824
 
   MAKEINFO="$missing_dir/missing makeinfo"
825
 
   echo "$ac_t""missing" 1>&6
826
 
fi
 
1856
_ACEOF
 
1857
 
 
1858
# Some tools Automake needs.
 
1859
 
 
1860
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1861
 
 
1862
 
 
1863
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1864
 
 
1865
 
 
1866
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1867
 
 
1868
 
 
1869
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1870
 
 
1871
 
 
1872
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1873
 
 
1874
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1875
 
 
1876
# Installed binaries are usually stripped using `strip' when the user
 
1877
# run `make install-strip'.  However `strip' might not be the right
 
1878
# tool to use in cross-compilation environments, therefore Automake
 
1879
# will honor the `STRIP' environment variable to overrule this program.
 
1880
if test "$cross_compiling" != no; then
 
1881
  if test -n "$ac_tool_prefix"; then
 
1882
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1883
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1884
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1886
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1888
else
 
1889
  if test -n "$STRIP"; then
 
1890
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1891
else
 
1892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1893
for as_dir in $PATH
 
1894
do
 
1895
  IFS=$as_save_IFS
 
1896
  test -z "$as_dir" && as_dir=.
 
1897
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1898
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1899
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1900
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1901
    break 2
 
1902
  fi
 
1903
done
 
1904
done
 
1905
 
 
1906
fi
 
1907
fi
 
1908
STRIP=$ac_cv_prog_STRIP
 
1909
if test -n "$STRIP"; then
 
1910
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1911
echo "${ECHO_T}$STRIP" >&6
 
1912
else
 
1913
  echo "$as_me:$LINENO: result: no" >&5
 
1914
echo "${ECHO_T}no" >&6
 
1915
fi
 
1916
 
 
1917
fi
 
1918
if test -z "$ac_cv_prog_STRIP"; then
 
1919
  ac_ct_STRIP=$STRIP
 
1920
  # Extract the first word of "strip", so it can be a program name with args.
 
1921
set dummy strip; ac_word=$2
 
1922
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1924
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1926
else
 
1927
  if test -n "$ac_ct_STRIP"; then
 
1928
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1929
else
 
1930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1931
for as_dir in $PATH
 
1932
do
 
1933
  IFS=$as_save_IFS
 
1934
  test -z "$as_dir" && as_dir=.
 
1935
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1936
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1937
    ac_cv_prog_ac_ct_STRIP="strip"
 
1938
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1939
    break 2
 
1940
  fi
 
1941
done
 
1942
done
 
1943
 
 
1944
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1945
fi
 
1946
fi
 
1947
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1948
if test -n "$ac_ct_STRIP"; then
 
1949
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1950
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1951
else
 
1952
  echo "$as_me:$LINENO: result: no" >&5
 
1953
echo "${ECHO_T}no" >&6
 
1954
fi
 
1955
 
 
1956
  STRIP=$ac_ct_STRIP
 
1957
else
 
1958
  STRIP="$ac_cv_prog_STRIP"
 
1959
fi
 
1960
 
 
1961
fi
 
1962
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1963
 
 
1964
# We need awk for the "check" target.  The system "awk" is bad on
 
1965
# some platforms.
 
1966
# Always define AMTAR for backward compatibility.
 
1967
 
 
1968
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1969
 
 
1970
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1971
 
 
1972
 
 
1973
 
827
1974
 
828
1975
 
829
1976
 
830
1977
#autoheader configuration
831
 
 
832
 
 
 
1978
          ac_config_headers="$ac_config_headers config.h"
833
1979
 
834
1980
 
835
1981
#check for programs
837
1983
if test "${enable_shared+set}" = set; then
838
1984
  enableval="$enable_shared"
839
1985
  p=${PACKAGE-default}
840
 
case "$enableval" in
841
 
yes) enable_shared=yes ;;
842
 
no) enable_shared=no ;;
843
 
*)
844
 
  enable_shared=no
845
 
  # Look at the argument we got.  We use all the common list separators.
846
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
847
 
  for pkg in $enableval; do
848
 
    if test "X$pkg" = "X$p"; then
849
 
      enable_shared=yes
850
 
    fi
851
 
  done
852
 
  IFS="$ac_save_ifs"
853
 
  ;;
854
 
esac
 
1986
    case $enableval in
 
1987
    yes) enable_shared=yes ;;
 
1988
    no) enable_shared=no ;;
 
1989
    *)
 
1990
      enable_shared=no
 
1991
      # Look at the argument we got.  We use all the common list separators.
 
1992
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1993
      for pkg in $enableval; do
 
1994
        IFS="$lt_save_ifs"
 
1995
        if test "X$pkg" = "X$p"; then
 
1996
          enable_shared=yes
 
1997
        fi
 
1998
      done
 
1999
      IFS="$lt_save_ifs"
 
2000
      ;;
 
2001
    esac
855
2002
else
856
2003
  enable_shared=yes
857
 
fi
 
2004
fi;
858
2005
 
859
2006
# Check whether --enable-static or --disable-static was given.
860
2007
if test "${enable_static+set}" = set; then
861
2008
  enableval="$enable_static"
862
2009
  p=${PACKAGE-default}
863
 
case "$enableval" in
864
 
yes) enable_static=yes ;;
865
 
no) enable_static=no ;;
866
 
*)
867
 
  enable_static=no
868
 
  # Look at the argument we got.  We use all the common list separators.
869
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
870
 
  for pkg in $enableval; do
871
 
    if test "X$pkg" = "X$p"; then
872
 
      enable_static=yes
873
 
    fi
874
 
  done
875
 
  IFS="$ac_save_ifs"
876
 
  ;;
877
 
esac
 
2010
    case $enableval in
 
2011
    yes) enable_static=yes ;;
 
2012
    no) enable_static=no ;;
 
2013
    *)
 
2014
     enable_static=no
 
2015
      # Look at the argument we got.  We use all the common list separators.
 
2016
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2017
      for pkg in $enableval; do
 
2018
        IFS="$lt_save_ifs"
 
2019
        if test "X$pkg" = "X$p"; then
 
2020
          enable_static=yes
 
2021
        fi
 
2022
      done
 
2023
      IFS="$lt_save_ifs"
 
2024
      ;;
 
2025
    esac
878
2026
else
879
2027
  enable_static=yes
880
 
fi
 
2028
fi;
881
2029
 
882
2030
# Check whether --enable-fast-install or --disable-fast-install was given.
883
2031
if test "${enable_fast_install+set}" = set; then
884
2032
  enableval="$enable_fast_install"
885
2033
  p=${PACKAGE-default}
886
 
case "$enableval" in
887
 
yes) enable_fast_install=yes ;;
888
 
no) enable_fast_install=no ;;
889
 
*)
890
 
  enable_fast_install=no
891
 
  # Look at the argument we got.  We use all the common list separators.
892
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
893
 
  for pkg in $enableval; do
894
 
    if test "X$pkg" = "X$p"; then
895
 
      enable_fast_install=yes
896
 
    fi
897
 
  done
898
 
  IFS="$ac_save_ifs"
899
 
  ;;
900
 
esac
 
2034
    case $enableval in
 
2035
    yes) enable_fast_install=yes ;;
 
2036
    no) enable_fast_install=no ;;
 
2037
    *)
 
2038
      enable_fast_install=no
 
2039
      # Look at the argument we got.  We use all the common list separators.
 
2040
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2041
      for pkg in $enableval; do
 
2042
        IFS="$lt_save_ifs"
 
2043
        if test "X$pkg" = "X$p"; then
 
2044
          enable_fast_install=yes
 
2045
        fi
 
2046
      done
 
2047
      IFS="$lt_save_ifs"
 
2048
      ;;
 
2049
    esac
901
2050
else
902
2051
  enable_fast_install=yes
903
 
fi
904
 
 
 
2052
fi;
905
2053
 
906
2054
# Make sure we can run config.sub.
907
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
908
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
909
 
fi
910
 
 
911
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
912
 
echo "configure:913: checking host system type" >&5
913
 
 
914
 
host_alias=$host
915
 
case "$host_alias" in
916
 
NONE)
917
 
  case $nonopt in
918
 
  NONE)
919
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
920
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
921
 
    fi ;;
922
 
  *) host_alias=$nonopt ;;
923
 
  esac ;;
924
 
esac
925
 
 
926
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
927
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
928
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
929
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
930
 
echo "$ac_t""$host" 1>&6
931
 
 
932
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
933
 
echo "configure:934: checking build system type" >&5
934
 
 
935
 
build_alias=$build
936
 
case "$build_alias" in
937
 
NONE)
938
 
  case $nonopt in
939
 
  NONE) build_alias=$host_alias ;;
940
 
  *) build_alias=$nonopt ;;
941
 
  esac ;;
942
 
esac
943
 
 
944
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
945
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948
 
echo "$ac_t""$build" 1>&6
949
 
 
950
 
# Extract the first word of "ranlib", so it can be a program name with args.
951
 
set dummy ranlib; ac_word=$2
952
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953
 
echo "configure:954: checking for $ac_word" >&5
954
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
955
 
  echo $ac_n "(cached) $ac_c" 1>&6
956
 
else
957
 
  if test -n "$RANLIB"; then
958
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
959
 
else
960
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
961
 
  ac_dummy="$PATH"
962
 
  for ac_dir in $ac_dummy; do
963
 
    test -z "$ac_dir" && ac_dir=.
964
 
    if test -f $ac_dir/$ac_word; then
965
 
      ac_cv_prog_RANLIB="ranlib"
966
 
      break
967
 
    fi
968
 
  done
969
 
  IFS="$ac_save_ifs"
970
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
971
 
fi
972
 
fi
973
 
RANLIB="$ac_cv_prog_RANLIB"
974
 
if test -n "$RANLIB"; then
975
 
  echo "$ac_t""$RANLIB" 1>&6
976
 
else
977
 
  echo "$ac_t""no" 1>&6
978
 
fi
979
 
 
980
 
# Extract the first word of "gcc", so it can be a program name with args.
 
2055
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2056
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2057
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2058
   { (exit 1); exit 1; }; }
 
2059
 
 
2060
echo "$as_me:$LINENO: checking build system type" >&5
 
2061
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2062
if test "${ac_cv_build+set}" = set; then
 
2063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2064
else
 
2065
  ac_cv_build_alias=$build_alias
 
2066
test -z "$ac_cv_build_alias" &&
 
2067
  ac_cv_build_alias=`$ac_config_guess`
 
2068
test -z "$ac_cv_build_alias" &&
 
2069
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2070
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2071
   { (exit 1); exit 1; }; }
 
2072
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2073
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2074
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2075
   { (exit 1); exit 1; }; }
 
2076
 
 
2077
fi
 
2078
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2079
echo "${ECHO_T}$ac_cv_build" >&6
 
2080
build=$ac_cv_build
 
2081
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2082
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2083
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2084
 
 
2085
 
 
2086
echo "$as_me:$LINENO: checking host system type" >&5
 
2087
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2088
if test "${ac_cv_host+set}" = set; then
 
2089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2090
else
 
2091
  ac_cv_host_alias=$host_alias
 
2092
test -z "$ac_cv_host_alias" &&
 
2093
  ac_cv_host_alias=$ac_cv_build_alias
 
2094
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2095
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2096
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2097
   { (exit 1); exit 1; }; }
 
2098
 
 
2099
fi
 
2100
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2101
echo "${ECHO_T}$ac_cv_host" >&6
 
2102
host=$ac_cv_host
 
2103
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2104
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2105
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2106
 
 
2107
 
 
2108
DEPDIR="${am__leading_dot}deps"
 
2109
 
 
2110
          ac_config_commands="$ac_config_commands depfiles"
 
2111
 
 
2112
 
 
2113
am_make=${MAKE-make}
 
2114
cat > confinc << 'END'
 
2115
am__doit:
 
2116
        @echo done
 
2117
.PHONY: am__doit
 
2118
END
 
2119
# If we don't find an include directive, just comment out the code.
 
2120
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2121
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2122
am__include="#"
 
2123
am__quote=
 
2124
_am_result=none
 
2125
# First try GNU make style include.
 
2126
echo "include confinc" > confmf
 
2127
# We grep out `Entering directory' and `Leaving directory'
 
2128
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2129
# In particular we don't look at `^make:' because GNU make might
 
2130
# be invoked under some other name (usually "gmake"), in which
 
2131
# case it prints its new name instead of `make'.
 
2132
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2133
   am__include=include
 
2134
   am__quote=
 
2135
   _am_result=GNU
 
2136
fi
 
2137
# Now try BSD make style include.
 
2138
if test "$am__include" = "#"; then
 
2139
   echo '.include "confinc"' > confmf
 
2140
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2141
      am__include=.include
 
2142
      am__quote="\""
 
2143
      _am_result=BSD
 
2144
   fi
 
2145
fi
 
2146
 
 
2147
 
 
2148
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2149
echo "${ECHO_T}$_am_result" >&6
 
2150
rm -f confinc confmf
 
2151
 
 
2152
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2153
if test "${enable_dependency_tracking+set}" = set; then
 
2154
  enableval="$enable_dependency_tracking"
 
2155
 
 
2156
fi;
 
2157
if test "x$enable_dependency_tracking" != xno; then
 
2158
  am_depcomp="$ac_aux_dir/depcomp"
 
2159
  AMDEPBACKSLASH='\'
 
2160
fi
 
2161
 
 
2162
 
 
2163
if test "x$enable_dependency_tracking" != xno; then
 
2164
  AMDEP_TRUE=
 
2165
  AMDEP_FALSE='#'
 
2166
else
 
2167
  AMDEP_TRUE='#'
 
2168
  AMDEP_FALSE=
 
2169
fi
 
2170
 
 
2171
 
 
2172
 
 
2173
ac_ext=c
 
2174
ac_cpp='$CPP $CPPFLAGS'
 
2175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2178
if test -n "$ac_tool_prefix"; then
 
2179
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2180
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2181
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2183
if test "${ac_cv_prog_CC+set}" = set; then
 
2184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2185
else
 
2186
  if test -n "$CC"; then
 
2187
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2188
else
 
2189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2190
for as_dir in $PATH
 
2191
do
 
2192
  IFS=$as_save_IFS
 
2193
  test -z "$as_dir" && as_dir=.
 
2194
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2195
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2196
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2197
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2198
    break 2
 
2199
  fi
 
2200
done
 
2201
done
 
2202
 
 
2203
fi
 
2204
fi
 
2205
CC=$ac_cv_prog_CC
 
2206
if test -n "$CC"; then
 
2207
  echo "$as_me:$LINENO: result: $CC" >&5
 
2208
echo "${ECHO_T}$CC" >&6
 
2209
else
 
2210
  echo "$as_me:$LINENO: result: no" >&5
 
2211
echo "${ECHO_T}no" >&6
 
2212
fi
 
2213
 
 
2214
fi
 
2215
if test -z "$ac_cv_prog_CC"; then
 
2216
  ac_ct_CC=$CC
 
2217
  # Extract the first word of "gcc", so it can be a program name with args.
981
2218
set dummy gcc; ac_word=$2
982
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983
 
echo "configure:984: checking for $ac_word" >&5
984
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2219
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2221
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2223
else
 
2224
  if test -n "$ac_ct_CC"; then
 
2225
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2226
else
 
2227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2228
for as_dir in $PATH
 
2229
do
 
2230
  IFS=$as_save_IFS
 
2231
  test -z "$as_dir" && as_dir=.
 
2232
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2233
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2234
    ac_cv_prog_ac_ct_CC="gcc"
 
2235
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2236
    break 2
 
2237
  fi
 
2238
done
 
2239
done
 
2240
 
 
2241
fi
 
2242
fi
 
2243
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2244
if test -n "$ac_ct_CC"; then
 
2245
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2246
echo "${ECHO_T}$ac_ct_CC" >&6
 
2247
else
 
2248
  echo "$as_me:$LINENO: result: no" >&5
 
2249
echo "${ECHO_T}no" >&6
 
2250
fi
 
2251
 
 
2252
  CC=$ac_ct_CC
 
2253
else
 
2254
  CC="$ac_cv_prog_CC"
 
2255
fi
 
2256
 
 
2257
if test -z "$CC"; then
 
2258
  if test -n "$ac_tool_prefix"; then
 
2259
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2260
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2261
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2263
if test "${ac_cv_prog_CC+set}" = set; then
 
2264
  echo $ECHO_N "(cached) $ECHO_C" >&6
986
2265
else
987
2266
  if test -n "$CC"; then
988
2267
  ac_cv_prog_CC="$CC" # Let the user override the test.
989
2268
else
990
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
991
 
  ac_dummy="$PATH"
992
 
  for ac_dir in $ac_dummy; do
993
 
    test -z "$ac_dir" && ac_dir=.
994
 
    if test -f $ac_dir/$ac_word; then
995
 
      ac_cv_prog_CC="gcc"
996
 
      break
997
 
    fi
998
 
  done
999
 
  IFS="$ac_save_ifs"
1000
 
fi
1001
 
fi
1002
 
CC="$ac_cv_prog_CC"
 
2269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2270
for as_dir in $PATH
 
2271
do
 
2272
  IFS=$as_save_IFS
 
2273
  test -z "$as_dir" && as_dir=.
 
2274
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2275
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2276
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2277
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2278
    break 2
 
2279
  fi
 
2280
done
 
2281
done
 
2282
 
 
2283
fi
 
2284
fi
 
2285
CC=$ac_cv_prog_CC
1003
2286
if test -n "$CC"; then
1004
 
  echo "$ac_t""$CC" 1>&6
1005
 
else
1006
 
  echo "$ac_t""no" 1>&6
1007
 
fi
1008
 
 
 
2287
  echo "$as_me:$LINENO: result: $CC" >&5
 
2288
echo "${ECHO_T}$CC" >&6
 
2289
else
 
2290
  echo "$as_me:$LINENO: result: no" >&5
 
2291
echo "${ECHO_T}no" >&6
 
2292
fi
 
2293
 
 
2294
fi
 
2295
if test -z "$ac_cv_prog_CC"; then
 
2296
  ac_ct_CC=$CC
 
2297
  # Extract the first word of "cc", so it can be a program name with args.
 
2298
set dummy cc; ac_word=$2
 
2299
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2300
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2301
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2303
else
 
2304
  if test -n "$ac_ct_CC"; then
 
2305
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2306
else
 
2307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2308
for as_dir in $PATH
 
2309
do
 
2310
  IFS=$as_save_IFS
 
2311
  test -z "$as_dir" && as_dir=.
 
2312
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2313
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2314
    ac_cv_prog_ac_ct_CC="cc"
 
2315
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2316
    break 2
 
2317
  fi
 
2318
done
 
2319
done
 
2320
 
 
2321
fi
 
2322
fi
 
2323
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2324
if test -n "$ac_ct_CC"; then
 
2325
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2326
echo "${ECHO_T}$ac_ct_CC" >&6
 
2327
else
 
2328
  echo "$as_me:$LINENO: result: no" >&5
 
2329
echo "${ECHO_T}no" >&6
 
2330
fi
 
2331
 
 
2332
  CC=$ac_ct_CC
 
2333
else
 
2334
  CC="$ac_cv_prog_CC"
 
2335
fi
 
2336
 
 
2337
fi
1009
2338
if test -z "$CC"; then
1010
2339
  # Extract the first word of "cc", so it can be a program name with args.
1011
2340
set dummy cc; ac_word=$2
1012
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013
 
echo "configure:1014: checking for $ac_word" >&5
1014
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1015
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2341
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2343
if test "${ac_cv_prog_CC+set}" = set; then
 
2344
  echo $ECHO_N "(cached) $ECHO_C" >&6
1016
2345
else
1017
2346
  if test -n "$CC"; then
1018
2347
  ac_cv_prog_CC="$CC" # Let the user override the test.
1019
2348
else
1020
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1021
2349
  ac_prog_rejected=no
1022
 
  ac_dummy="$PATH"
1023
 
  for ac_dir in $ac_dummy; do
1024
 
    test -z "$ac_dir" && ac_dir=.
1025
 
    if test -f $ac_dir/$ac_word; then
1026
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1027
 
        ac_prog_rejected=yes
1028
 
        continue
1029
 
      fi
1030
 
      ac_cv_prog_CC="cc"
1031
 
      break
1032
 
    fi
1033
 
  done
1034
 
  IFS="$ac_save_ifs"
 
2350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2351
for as_dir in $PATH
 
2352
do
 
2353
  IFS=$as_save_IFS
 
2354
  test -z "$as_dir" && as_dir=.
 
2355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2356
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2357
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2358
       ac_prog_rejected=yes
 
2359
       continue
 
2360
     fi
 
2361
    ac_cv_prog_CC="cc"
 
2362
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2363
    break 2
 
2364
  fi
 
2365
done
 
2366
done
 
2367
 
1035
2368
if test $ac_prog_rejected = yes; then
1036
2369
  # We found a bogon in the path, so make sure we never use it.
1037
2370
  set dummy $ac_cv_prog_CC
1038
2371
  shift
1039
 
  if test $# -gt 0; then
 
2372
  if test $# != 0; then
1040
2373
    # We chose a different compiler from the bogus one.
1041
2374
    # However, it has the same basename, so the bogon will be chosen
1042
2375
    # first if we set CC to just the basename; use the full file name.
1043
2376
    shift
1044
 
    set dummy "$ac_dir/$ac_word" "$@"
1045
 
    shift
1046
 
    ac_cv_prog_CC="$@"
 
2377
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1047
2378
  fi
1048
2379
fi
1049
2380
fi
1050
2381
fi
1051
 
CC="$ac_cv_prog_CC"
 
2382
CC=$ac_cv_prog_CC
1052
2383
if test -n "$CC"; then
1053
 
  echo "$ac_t""$CC" 1>&6
 
2384
  echo "$as_me:$LINENO: result: $CC" >&5
 
2385
echo "${ECHO_T}$CC" >&6
1054
2386
else
1055
 
  echo "$ac_t""no" 1>&6
 
2387
  echo "$as_me:$LINENO: result: no" >&5
 
2388
echo "${ECHO_T}no" >&6
1056
2389
fi
1057
2390
 
1058
 
  if test -z "$CC"; then
1059
 
    case "`uname -s`" in
1060
 
    *win32* | *WIN32*)
1061
 
      # Extract the first word of "cl", so it can be a program name with args.
1062
 
set dummy cl; ac_word=$2
1063
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064
 
echo "configure:1065: checking for $ac_word" >&5
1065
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2391
fi
 
2392
if test -z "$CC"; then
 
2393
  if test -n "$ac_tool_prefix"; then
 
2394
  for ac_prog in cl
 
2395
  do
 
2396
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2397
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2398
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2400
if test "${ac_cv_prog_CC+set}" = set; then
 
2401
  echo $ECHO_N "(cached) $ECHO_C" >&6
1067
2402
else
1068
2403
  if test -n "$CC"; then
1069
2404
  ac_cv_prog_CC="$CC" # Let the user override the test.
1070
2405
else
1071
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1072
 
  ac_dummy="$PATH"
1073
 
  for ac_dir in $ac_dummy; do
1074
 
    test -z "$ac_dir" && ac_dir=.
1075
 
    if test -f $ac_dir/$ac_word; then
1076
 
      ac_cv_prog_CC="cl"
1077
 
      break
1078
 
    fi
 
2406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2407
for as_dir in $PATH
 
2408
do
 
2409
  IFS=$as_save_IFS
 
2410
  test -z "$as_dir" && as_dir=.
 
2411
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2412
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2413
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2414
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2415
    break 2
 
2416
  fi
 
2417
done
 
2418
done
 
2419
 
 
2420
fi
 
2421
fi
 
2422
CC=$ac_cv_prog_CC
 
2423
if test -n "$CC"; then
 
2424
  echo "$as_me:$LINENO: result: $CC" >&5
 
2425
echo "${ECHO_T}$CC" >&6
 
2426
else
 
2427
  echo "$as_me:$LINENO: result: no" >&5
 
2428
echo "${ECHO_T}no" >&6
 
2429
fi
 
2430
 
 
2431
    test -n "$CC" && break
1079
2432
  done
1080
 
  IFS="$ac_save_ifs"
1081
 
fi
1082
 
fi
1083
 
CC="$ac_cv_prog_CC"
1084
 
if test -n "$CC"; then
1085
 
  echo "$ac_t""$CC" 1>&6
1086
 
else
1087
 
  echo "$ac_t""no" 1>&6
1088
 
fi
1089
 
 ;;
1090
 
    esac
 
2433
fi
 
2434
if test -z "$CC"; then
 
2435
  ac_ct_CC=$CC
 
2436
  for ac_prog in cl
 
2437
do
 
2438
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2439
set dummy $ac_prog; ac_word=$2
 
2440
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2442
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2444
else
 
2445
  if test -n "$ac_ct_CC"; then
 
2446
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2447
else
 
2448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2449
for as_dir in $PATH
 
2450
do
 
2451
  IFS=$as_save_IFS
 
2452
  test -z "$as_dir" && as_dir=.
 
2453
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2454
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2455
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2456
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2457
    break 2
1091
2458
  fi
1092
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1093
 
fi
1094
 
 
1095
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1096
 
echo "configure:1097: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1097
 
 
1098
 
ac_ext=c
1099
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1100
 
ac_cpp='$CPP $CPPFLAGS'
1101
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1102
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1103
 
cross_compiling=$ac_cv_prog_cc_cross
1104
 
 
1105
 
cat > conftest.$ac_ext << EOF
1106
 
 
1107
 
#line 1108 "configure"
1108
 
#include "confdefs.h"
1109
 
 
1110
 
main(){return(0);}
1111
 
EOF
1112
 
if { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1113
 
  ac_cv_prog_cc_works=yes
1114
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1115
 
  if (./conftest; exit) 2>/dev/null; then
1116
 
    ac_cv_prog_cc_cross=no
 
2459
done
 
2460
done
 
2461
 
 
2462
fi
 
2463
fi
 
2464
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2465
if test -n "$ac_ct_CC"; then
 
2466
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2467
echo "${ECHO_T}$ac_ct_CC" >&6
 
2468
else
 
2469
  echo "$as_me:$LINENO: result: no" >&5
 
2470
echo "${ECHO_T}no" >&6
 
2471
fi
 
2472
 
 
2473
  test -n "$ac_ct_CC" && break
 
2474
done
 
2475
 
 
2476
  CC=$ac_ct_CC
 
2477
fi
 
2478
 
 
2479
fi
 
2480
 
 
2481
 
 
2482
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2483
See \`config.log' for more details." >&5
 
2484
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2485
See \`config.log' for more details." >&2;}
 
2486
   { (exit 1); exit 1; }; }
 
2487
 
 
2488
# Provide some information about the compiler.
 
2489
echo "$as_me:$LINENO:" \
 
2490
     "checking for C compiler version" >&5
 
2491
ac_compiler=`set X $ac_compile; echo $2`
 
2492
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2493
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2494
  ac_status=$?
 
2495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2496
  (exit $ac_status); }
 
2497
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2498
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2499
  ac_status=$?
 
2500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2501
  (exit $ac_status); }
 
2502
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2503
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2504
  ac_status=$?
 
2505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2506
  (exit $ac_status); }
 
2507
 
 
2508
cat >conftest.$ac_ext <<_ACEOF
 
2509
/* confdefs.h.  */
 
2510
_ACEOF
 
2511
cat confdefs.h >>conftest.$ac_ext
 
2512
cat >>conftest.$ac_ext <<_ACEOF
 
2513
/* end confdefs.h.  */
 
2514
 
 
2515
int
 
2516
main ()
 
2517
{
 
2518
 
 
2519
  ;
 
2520
  return 0;
 
2521
}
 
2522
_ACEOF
 
2523
ac_clean_files_save=$ac_clean_files
 
2524
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2525
# Try to create an executable without -o first, disregard a.out.
 
2526
# It will help us diagnose broken compilers, and finding out an intuition
 
2527
# of exeext.
 
2528
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2529
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2530
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2531
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2532
  (eval $ac_link_default) 2>&5
 
2533
  ac_status=$?
 
2534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2535
  (exit $ac_status); }; then
 
2536
  # Find the output, starting from the most likely.  This scheme is
 
2537
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2538
# resort.
 
2539
 
 
2540
# Be careful to initialize this variable, since it used to be cached.
 
2541
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2542
ac_cv_exeext=
 
2543
# b.out is created by i960 compilers.
 
2544
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2545
do
 
2546
  test -f "$ac_file" || continue
 
2547
  case $ac_file in
 
2548
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2549
        ;;
 
2550
    conftest.$ac_ext )
 
2551
        # This is the source file.
 
2552
        ;;
 
2553
    [ab].out )
 
2554
        # We found the default executable, but exeext='' is most
 
2555
        # certainly right.
 
2556
        break;;
 
2557
    *.* )
 
2558
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2559
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2560
        # but it would be cool to find out if it's true.  Does anybody
 
2561
        # maintain Libtool? --akim.
 
2562
        export ac_cv_exeext
 
2563
        break;;
 
2564
    * )
 
2565
        break;;
 
2566
  esac
 
2567
done
 
2568
else
 
2569
  echo "$as_me: failed program was:" >&5
 
2570
sed 's/^/| /' conftest.$ac_ext >&5
 
2571
 
 
2572
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2573
See \`config.log' for more details." >&5
 
2574
echo "$as_me: error: C compiler cannot create executables
 
2575
See \`config.log' for more details." >&2;}
 
2576
   { (exit 77); exit 77; }; }
 
2577
fi
 
2578
 
 
2579
ac_exeext=$ac_cv_exeext
 
2580
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2581
echo "${ECHO_T}$ac_file" >&6
 
2582
 
 
2583
# Check the compiler produces executables we can run.  If not, either
 
2584
# the compiler is broken, or we cross compile.
 
2585
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2586
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2587
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2588
# If not cross compiling, check that we can run a simple program.
 
2589
if test "$cross_compiling" != yes; then
 
2590
  if { ac_try='./$ac_file'
 
2591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2592
  (eval $ac_try) 2>&5
 
2593
  ac_status=$?
 
2594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2595
  (exit $ac_status); }; }; then
 
2596
    cross_compiling=no
1117
2597
  else
1118
 
    ac_cv_prog_cc_cross=yes
 
2598
    if test "$cross_compiling" = maybe; then
 
2599
        cross_compiling=yes
 
2600
    else
 
2601
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2602
If you meant to cross compile, use \`--host'.
 
2603
See \`config.log' for more details." >&5
 
2604
echo "$as_me: error: cannot run C compiled programs.
 
2605
If you meant to cross compile, use \`--host'.
 
2606
See \`config.log' for more details." >&2;}
 
2607
   { (exit 1); exit 1; }; }
 
2608
    fi
1119
2609
  fi
1120
 
else
1121
 
  echo "configure: failed program was:" >&5
1122
 
  cat conftest.$ac_ext >&5
1123
 
  ac_cv_prog_cc_works=no
1124
 
fi
1125
 
rm -fr conftest*
1126
 
ac_ext=c
1127
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1128
 
ac_cpp='$CPP $CPPFLAGS'
1129
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1130
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1131
 
cross_compiling=$ac_cv_prog_cc_cross
1132
 
 
1133
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1134
 
if test $ac_cv_prog_cc_works = no; then
1135
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1136
 
fi
1137
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1138
 
echo "configure:1139: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1139
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1140
 
cross_compiling=$ac_cv_prog_cc_cross
1141
 
 
1142
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1143
 
echo "configure:1144: checking whether we are using GNU C" >&5
1144
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1145
 
  echo $ac_n "(cached) $ac_c" 1>&6
1146
 
else
1147
 
  cat > conftest.c <<EOF
1148
 
#ifdef __GNUC__
1149
 
  yes;
 
2610
fi
 
2611
echo "$as_me:$LINENO: result: yes" >&5
 
2612
echo "${ECHO_T}yes" >&6
 
2613
 
 
2614
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2615
ac_clean_files=$ac_clean_files_save
 
2616
# Check the compiler produces executables we can run.  If not, either
 
2617
# the compiler is broken, or we cross compile.
 
2618
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2619
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2620
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2621
echo "${ECHO_T}$cross_compiling" >&6
 
2622
 
 
2623
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2624
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2626
  (eval $ac_link) 2>&5
 
2627
  ac_status=$?
 
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2629
  (exit $ac_status); }; then
 
2630
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2631
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2632
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2633
# `rm'.
 
2634
for ac_file in conftest.exe conftest conftest.*; do
 
2635
  test -f "$ac_file" || continue
 
2636
  case $ac_file in
 
2637
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2638
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2639
          export ac_cv_exeext
 
2640
          break;;
 
2641
    * ) break;;
 
2642
  esac
 
2643
done
 
2644
else
 
2645
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2646
See \`config.log' for more details." >&5
 
2647
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2648
See \`config.log' for more details." >&2;}
 
2649
   { (exit 1); exit 1; }; }
 
2650
fi
 
2651
 
 
2652
rm -f conftest$ac_cv_exeext
 
2653
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2654
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2655
 
 
2656
rm -f conftest.$ac_ext
 
2657
EXEEXT=$ac_cv_exeext
 
2658
ac_exeext=$EXEEXT
 
2659
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2660
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2661
if test "${ac_cv_objext+set}" = set; then
 
2662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2663
else
 
2664
  cat >conftest.$ac_ext <<_ACEOF
 
2665
/* confdefs.h.  */
 
2666
_ACEOF
 
2667
cat confdefs.h >>conftest.$ac_ext
 
2668
cat >>conftest.$ac_ext <<_ACEOF
 
2669
/* end confdefs.h.  */
 
2670
 
 
2671
int
 
2672
main ()
 
2673
{
 
2674
 
 
2675
  ;
 
2676
  return 0;
 
2677
}
 
2678
_ACEOF
 
2679
rm -f conftest.o conftest.obj
 
2680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2681
  (eval $ac_compile) 2>&5
 
2682
  ac_status=$?
 
2683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2684
  (exit $ac_status); }; then
 
2685
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2686
  case $ac_file in
 
2687
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2688
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2689
       break;;
 
2690
  esac
 
2691
done
 
2692
else
 
2693
  echo "$as_me: failed program was:" >&5
 
2694
sed 's/^/| /' conftest.$ac_ext >&5
 
2695
 
 
2696
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2697
See \`config.log' for more details." >&5
 
2698
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2699
See \`config.log' for more details." >&2;}
 
2700
   { (exit 1); exit 1; }; }
 
2701
fi
 
2702
 
 
2703
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2704
fi
 
2705
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2706
echo "${ECHO_T}$ac_cv_objext" >&6
 
2707
OBJEXT=$ac_cv_objext
 
2708
ac_objext=$OBJEXT
 
2709
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2710
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2711
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2713
else
 
2714
  cat >conftest.$ac_ext <<_ACEOF
 
2715
/* confdefs.h.  */
 
2716
_ACEOF
 
2717
cat confdefs.h >>conftest.$ac_ext
 
2718
cat >>conftest.$ac_ext <<_ACEOF
 
2719
/* end confdefs.h.  */
 
2720
 
 
2721
int
 
2722
main ()
 
2723
{
 
2724
#ifndef __GNUC__
 
2725
       choke me
1150
2726
#endif
1151
 
EOF
1152
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1153
 
  ac_cv_prog_gcc=yes
1154
 
else
1155
 
  ac_cv_prog_gcc=no
1156
 
fi
1157
 
fi
1158
 
 
1159
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1160
 
 
1161
 
if test $ac_cv_prog_gcc = yes; then
1162
 
  GCC=yes
1163
 
else
1164
 
  GCC=
1165
 
fi
1166
 
 
1167
 
ac_test_CFLAGS="${CFLAGS+set}"
1168
 
ac_save_CFLAGS="$CFLAGS"
1169
 
CFLAGS=
1170
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1171
 
echo "configure:1172: checking whether ${CC-cc} accepts -g" >&5
1172
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1173
 
  echo $ac_n "(cached) $ac_c" 1>&6
1174
 
else
1175
 
  echo 'void f(){}' > conftest.c
1176
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
2727
 
 
2728
  ;
 
2729
  return 0;
 
2730
}
 
2731
_ACEOF
 
2732
rm -f conftest.$ac_objext
 
2733
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2734
  (eval $ac_compile) 2>conftest.er1
 
2735
  ac_status=$?
 
2736
  grep -v '^ *+' conftest.er1 >conftest.err
 
2737
  rm -f conftest.er1
 
2738
  cat conftest.err >&5
 
2739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2740
  (exit $ac_status); } &&
 
2741
         { ac_try='test -z "$ac_c_werror_flag"
 
2742
                         || test ! -s conftest.err'
 
2743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2744
  (eval $ac_try) 2>&5
 
2745
  ac_status=$?
 
2746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2747
  (exit $ac_status); }; } &&
 
2748
         { ac_try='test -s conftest.$ac_objext'
 
2749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2750
  (eval $ac_try) 2>&5
 
2751
  ac_status=$?
 
2752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2753
  (exit $ac_status); }; }; then
 
2754
  ac_compiler_gnu=yes
 
2755
else
 
2756
  echo "$as_me: failed program was:" >&5
 
2757
sed 's/^/| /' conftest.$ac_ext >&5
 
2758
 
 
2759
ac_compiler_gnu=no
 
2760
fi
 
2761
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2762
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2763
 
 
2764
fi
 
2765
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2766
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2767
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2768
ac_test_CFLAGS=${CFLAGS+set}
 
2769
ac_save_CFLAGS=$CFLAGS
 
2770
CFLAGS="-g"
 
2771
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2772
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2773
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2775
else
 
2776
  cat >conftest.$ac_ext <<_ACEOF
 
2777
/* confdefs.h.  */
 
2778
_ACEOF
 
2779
cat confdefs.h >>conftest.$ac_ext
 
2780
cat >>conftest.$ac_ext <<_ACEOF
 
2781
/* end confdefs.h.  */
 
2782
 
 
2783
int
 
2784
main ()
 
2785
{
 
2786
 
 
2787
  ;
 
2788
  return 0;
 
2789
}
 
2790
_ACEOF
 
2791
rm -f conftest.$ac_objext
 
2792
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2793
  (eval $ac_compile) 2>conftest.er1
 
2794
  ac_status=$?
 
2795
  grep -v '^ *+' conftest.er1 >conftest.err
 
2796
  rm -f conftest.er1
 
2797
  cat conftest.err >&5
 
2798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2799
  (exit $ac_status); } &&
 
2800
         { ac_try='test -z "$ac_c_werror_flag"
 
2801
                         || test ! -s conftest.err'
 
2802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2803
  (eval $ac_try) 2>&5
 
2804
  ac_status=$?
 
2805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2806
  (exit $ac_status); }; } &&
 
2807
         { ac_try='test -s conftest.$ac_objext'
 
2808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2809
  (eval $ac_try) 2>&5
 
2810
  ac_status=$?
 
2811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2812
  (exit $ac_status); }; }; then
1177
2813
  ac_cv_prog_cc_g=yes
1178
2814
else
1179
 
  ac_cv_prog_cc_g=no
1180
 
fi
1181
 
rm -f conftest*
1182
 
 
1183
 
fi
1184
 
 
1185
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2815
  echo "$as_me: failed program was:" >&5
 
2816
sed 's/^/| /' conftest.$ac_ext >&5
 
2817
 
 
2818
ac_cv_prog_cc_g=no
 
2819
fi
 
2820
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2821
fi
 
2822
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2823
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1186
2824
if test "$ac_test_CFLAGS" = set; then
1187
 
  CFLAGS="$ac_save_CFLAGS"
 
2825
  CFLAGS=$ac_save_CFLAGS
1188
2826
elif test $ac_cv_prog_cc_g = yes; then
1189
2827
  if test "$GCC" = yes; then
1190
2828
    CFLAGS="-g -O2"
1198
2836
    CFLAGS=
1199
2837
  fi
1200
2838
fi
 
2839
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2840
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2841
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2843
else
 
2844
  ac_cv_prog_cc_stdc=no
 
2845
ac_save_CC=$CC
 
2846
cat >conftest.$ac_ext <<_ACEOF
 
2847
/* confdefs.h.  */
 
2848
_ACEOF
 
2849
cat confdefs.h >>conftest.$ac_ext
 
2850
cat >>conftest.$ac_ext <<_ACEOF
 
2851
/* end confdefs.h.  */
 
2852
#include <stdarg.h>
 
2853
#include <stdio.h>
 
2854
#include <sys/types.h>
 
2855
#include <sys/stat.h>
 
2856
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2857
struct buf { int x; };
 
2858
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2859
static char *e (p, i)
 
2860
     char **p;
 
2861
     int i;
 
2862
{
 
2863
  return p[i];
 
2864
}
 
2865
static char *f (char * (*g) (char **, int), char **p, ...)
 
2866
{
 
2867
  char *s;
 
2868
  va_list v;
 
2869
  va_start (v,p);
 
2870
  s = g (p, va_arg (v,int));
 
2871
  va_end (v);
 
2872
  return s;
 
2873
}
 
2874
 
 
2875
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2876
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2877
   These don't provoke an error unfortunately, instead are silently treated
 
2878
   as 'x'.  The following induces an error, until -std1 is added to get
 
2879
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2880
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2881
   that's true only with -std1.  */
 
2882
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2883
 
 
2884
int test (int i, double x);
 
2885
struct s1 {int (*f) (int a);};
 
2886
struct s2 {int (*f) (double a);};
 
2887
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2888
int argc;
 
2889
char **argv;
 
2890
int
 
2891
main ()
 
2892
{
 
2893
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2894
  ;
 
2895
  return 0;
 
2896
}
 
2897
_ACEOF
 
2898
# Don't try gcc -ansi; that turns off useful extensions and
 
2899
# breaks some systems' header files.
 
2900
# AIX                   -qlanglvl=ansi
 
2901
# Ultrix and OSF/1      -std1
 
2902
# HP-UX 10.20 and later -Ae
 
2903
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2904
# SVR4                  -Xc -D__EXTENSIONS__
 
2905
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2906
do
 
2907
  CC="$ac_save_CC $ac_arg"
 
2908
  rm -f conftest.$ac_objext
 
2909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2910
  (eval $ac_compile) 2>conftest.er1
 
2911
  ac_status=$?
 
2912
  grep -v '^ *+' conftest.er1 >conftest.err
 
2913
  rm -f conftest.er1
 
2914
  cat conftest.err >&5
 
2915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2916
  (exit $ac_status); } &&
 
2917
         { ac_try='test -z "$ac_c_werror_flag"
 
2918
                         || test ! -s conftest.err'
 
2919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2920
  (eval $ac_try) 2>&5
 
2921
  ac_status=$?
 
2922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2923
  (exit $ac_status); }; } &&
 
2924
         { ac_try='test -s conftest.$ac_objext'
 
2925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2926
  (eval $ac_try) 2>&5
 
2927
  ac_status=$?
 
2928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2929
  (exit $ac_status); }; }; then
 
2930
  ac_cv_prog_cc_stdc=$ac_arg
 
2931
break
 
2932
else
 
2933
  echo "$as_me: failed program was:" >&5
 
2934
sed 's/^/| /' conftest.$ac_ext >&5
 
2935
 
 
2936
fi
 
2937
rm -f conftest.err conftest.$ac_objext
 
2938
done
 
2939
rm -f conftest.$ac_ext conftest.$ac_objext
 
2940
CC=$ac_save_CC
 
2941
 
 
2942
fi
 
2943
 
 
2944
case "x$ac_cv_prog_cc_stdc" in
 
2945
  x|xno)
 
2946
    echo "$as_me:$LINENO: result: none needed" >&5
 
2947
echo "${ECHO_T}none needed" >&6 ;;
 
2948
  *)
 
2949
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2950
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2951
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2952
esac
 
2953
 
 
2954
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2955
# in C++ we need to declare it.  In case someone uses the same compiler
 
2956
# for both compiling C and C++ we need to have the C++ compiler decide
 
2957
# the declaration of exit, since it's the most demanding environment.
 
2958
cat >conftest.$ac_ext <<_ACEOF
 
2959
#ifndef __cplusplus
 
2960
  choke me
 
2961
#endif
 
2962
_ACEOF
 
2963
rm -f conftest.$ac_objext
 
2964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2965
  (eval $ac_compile) 2>conftest.er1
 
2966
  ac_status=$?
 
2967
  grep -v '^ *+' conftest.er1 >conftest.err
 
2968
  rm -f conftest.er1
 
2969
  cat conftest.err >&5
 
2970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2971
  (exit $ac_status); } &&
 
2972
         { ac_try='test -z "$ac_c_werror_flag"
 
2973
                         || test ! -s conftest.err'
 
2974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2975
  (eval $ac_try) 2>&5
 
2976
  ac_status=$?
 
2977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2978
  (exit $ac_status); }; } &&
 
2979
         { ac_try='test -s conftest.$ac_objext'
 
2980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2981
  (eval $ac_try) 2>&5
 
2982
  ac_status=$?
 
2983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2984
  (exit $ac_status); }; }; then
 
2985
  for ac_declaration in \
 
2986
   '' \
 
2987
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2988
   'extern "C" void std::exit (int); using std::exit;' \
 
2989
   'extern "C" void exit (int) throw ();' \
 
2990
   'extern "C" void exit (int);' \
 
2991
   'void exit (int);'
 
2992
do
 
2993
  cat >conftest.$ac_ext <<_ACEOF
 
2994
/* confdefs.h.  */
 
2995
_ACEOF
 
2996
cat confdefs.h >>conftest.$ac_ext
 
2997
cat >>conftest.$ac_ext <<_ACEOF
 
2998
/* end confdefs.h.  */
 
2999
$ac_declaration
 
3000
#include <stdlib.h>
 
3001
int
 
3002
main ()
 
3003
{
 
3004
exit (42);
 
3005
  ;
 
3006
  return 0;
 
3007
}
 
3008
_ACEOF
 
3009
rm -f conftest.$ac_objext
 
3010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3011
  (eval $ac_compile) 2>conftest.er1
 
3012
  ac_status=$?
 
3013
  grep -v '^ *+' conftest.er1 >conftest.err
 
3014
  rm -f conftest.er1
 
3015
  cat conftest.err >&5
 
3016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3017
  (exit $ac_status); } &&
 
3018
         { ac_try='test -z "$ac_c_werror_flag"
 
3019
                         || test ! -s conftest.err'
 
3020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3021
  (eval $ac_try) 2>&5
 
3022
  ac_status=$?
 
3023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3024
  (exit $ac_status); }; } &&
 
3025
         { ac_try='test -s conftest.$ac_objext'
 
3026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3027
  (eval $ac_try) 2>&5
 
3028
  ac_status=$?
 
3029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3030
  (exit $ac_status); }; }; then
 
3031
  :
 
3032
else
 
3033
  echo "$as_me: failed program was:" >&5
 
3034
sed 's/^/| /' conftest.$ac_ext >&5
 
3035
 
 
3036
continue
 
3037
fi
 
3038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3039
  cat >conftest.$ac_ext <<_ACEOF
 
3040
/* confdefs.h.  */
 
3041
_ACEOF
 
3042
cat confdefs.h >>conftest.$ac_ext
 
3043
cat >>conftest.$ac_ext <<_ACEOF
 
3044
/* end confdefs.h.  */
 
3045
$ac_declaration
 
3046
int
 
3047
main ()
 
3048
{
 
3049
exit (42);
 
3050
  ;
 
3051
  return 0;
 
3052
}
 
3053
_ACEOF
 
3054
rm -f conftest.$ac_objext
 
3055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3056
  (eval $ac_compile) 2>conftest.er1
 
3057
  ac_status=$?
 
3058
  grep -v '^ *+' conftest.er1 >conftest.err
 
3059
  rm -f conftest.er1
 
3060
  cat conftest.err >&5
 
3061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3062
  (exit $ac_status); } &&
 
3063
         { ac_try='test -z "$ac_c_werror_flag"
 
3064
                         || test ! -s conftest.err'
 
3065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3066
  (eval $ac_try) 2>&5
 
3067
  ac_status=$?
 
3068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3069
  (exit $ac_status); }; } &&
 
3070
         { ac_try='test -s conftest.$ac_objext'
 
3071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3072
  (eval $ac_try) 2>&5
 
3073
  ac_status=$?
 
3074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3075
  (exit $ac_status); }; }; then
 
3076
  break
 
3077
else
 
3078
  echo "$as_me: failed program was:" >&5
 
3079
sed 's/^/| /' conftest.$ac_ext >&5
 
3080
 
 
3081
fi
 
3082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3083
done
 
3084
rm -f conftest*
 
3085
if test -n "$ac_declaration"; then
 
3086
  echo '#ifdef __cplusplus' >>confdefs.h
 
3087
  echo $ac_declaration      >>confdefs.h
 
3088
  echo '#endif'             >>confdefs.h
 
3089
fi
 
3090
 
 
3091
else
 
3092
  echo "$as_me: failed program was:" >&5
 
3093
sed 's/^/| /' conftest.$ac_ext >&5
 
3094
 
 
3095
fi
 
3096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3097
ac_ext=c
 
3098
ac_cpp='$CPP $CPPFLAGS'
 
3099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3102
 
 
3103
depcc="$CC"   am_compiler_list=
 
3104
 
 
3105
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3106
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3107
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3109
else
 
3110
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3111
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3112
  # making bogus files that we don't know about and never remove.  For
 
3113
  # instance it was reported that on HP-UX the gcc test will end up
 
3114
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3115
  # in D'.
 
3116
  mkdir conftest.dir
 
3117
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3118
  # using a relative directory.
 
3119
  cp "$am_depcomp" conftest.dir
 
3120
  cd conftest.dir
 
3121
  # We will build objects and dependencies in a subdirectory because
 
3122
  # it helps to detect inapplicable dependency modes.  For instance
 
3123
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3124
  # side effect of compilation, but ICC will put the dependencies in
 
3125
  # the current directory while Tru64 will put them in the object
 
3126
  # directory.
 
3127
  mkdir sub
 
3128
 
 
3129
  am_cv_CC_dependencies_compiler_type=none
 
3130
  if test "$am_compiler_list" = ""; then
 
3131
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3132
  fi
 
3133
  for depmode in $am_compiler_list; do
 
3134
    # Setup a source with many dependencies, because some compilers
 
3135
    # like to wrap large dependency lists on column 80 (with \), and
 
3136
    # we should not choose a depcomp mode which is confused by this.
 
3137
    #
 
3138
    # We need to recreate these files for each test, as the compiler may
 
3139
    # overwrite some of them when testing with obscure command lines.
 
3140
    # This happens at least with the AIX C compiler.
 
3141
    : > sub/conftest.c
 
3142
    for i in 1 2 3 4 5 6; do
 
3143
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3144
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3145
      # Solaris 8's {/usr,}/bin/sh.
 
3146
      touch sub/conftst$i.h
 
3147
    done
 
3148
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3149
 
 
3150
    case $depmode in
 
3151
    nosideeffect)
 
3152
      # after this tag, mechanisms are not by side-effect, so they'll
 
3153
      # only be used when explicitly requested
 
3154
      if test "x$enable_dependency_tracking" = xyes; then
 
3155
        continue
 
3156
      else
 
3157
        break
 
3158
      fi
 
3159
      ;;
 
3160
    none) break ;;
 
3161
    esac
 
3162
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3163
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3164
    # handle `-M -o', and we need to detect this.
 
3165
    if depmode=$depmode \
 
3166
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3167
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3168
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3169
         >/dev/null 2>conftest.err &&
 
3170
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3171
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3172
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3173
      # icc doesn't choke on unknown options, it will just issue warnings
 
3174
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3175
      # that says an option was ignored or not supported.
 
3176
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3177
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3178
      # The diagnosis changed in icc 8.0:
 
3179
      #   icc: Command line remark: option '-MP' not supported
 
3180
      if (grep 'ignoring option' conftest.err ||
 
3181
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3182
        am_cv_CC_dependencies_compiler_type=$depmode
 
3183
        break
 
3184
      fi
 
3185
    fi
 
3186
  done
 
3187
 
 
3188
  cd ..
 
3189
  rm -rf conftest.dir
 
3190
else
 
3191
  am_cv_CC_dependencies_compiler_type=none
 
3192
fi
 
3193
 
 
3194
fi
 
3195
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3196
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3197
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3198
 
 
3199
 
 
3200
 
 
3201
if
 
3202
  test "x$enable_dependency_tracking" != xno \
 
3203
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3204
  am__fastdepCC_TRUE=
 
3205
  am__fastdepCC_FALSE='#'
 
3206
else
 
3207
  am__fastdepCC_TRUE='#'
 
3208
  am__fastdepCC_FALSE=
 
3209
fi
 
3210
 
 
3211
 
 
3212
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3213
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3214
if test "${lt_cv_path_SED+set}" = set; then
 
3215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3216
else
 
3217
  # Loop through the user's path and test for sed and gsed.
 
3218
# Then use that list of sed's as ones to test for truncation.
 
3219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3220
for as_dir in $PATH
 
3221
do
 
3222
  IFS=$as_save_IFS
 
3223
  test -z "$as_dir" && as_dir=.
 
3224
  for lt_ac_prog in sed gsed; do
 
3225
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3226
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3227
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3228
      fi
 
3229
    done
 
3230
  done
 
3231
done
 
3232
lt_ac_max=0
 
3233
lt_ac_count=0
 
3234
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3235
# along with /bin/sed that truncates output.
 
3236
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3237
  test ! -f $lt_ac_sed && continue
 
3238
  cat /dev/null > conftest.in
 
3239
  lt_ac_count=0
 
3240
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3241
  # Check for GNU sed and select it if it is found.
 
3242
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3243
    lt_cv_path_SED=$lt_ac_sed
 
3244
    break
 
3245
  fi
 
3246
  while true; do
 
3247
    cat conftest.in conftest.in >conftest.tmp
 
3248
    mv conftest.tmp conftest.in
 
3249
    cp conftest.in conftest.nl
 
3250
    echo >>conftest.nl
 
3251
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3252
    cmp -s conftest.out conftest.nl || break
 
3253
    # 10000 chars as input seems more than enough
 
3254
    test $lt_ac_count -gt 10 && break
 
3255
    lt_ac_count=`expr $lt_ac_count + 1`
 
3256
    if test $lt_ac_count -gt $lt_ac_max; then
 
3257
      lt_ac_max=$lt_ac_count
 
3258
      lt_cv_path_SED=$lt_ac_sed
 
3259
    fi
 
3260
  done
 
3261
done
 
3262
 
 
3263
fi
 
3264
 
 
3265
SED=$lt_cv_path_SED
 
3266
echo "$as_me:$LINENO: result: $SED" >&5
 
3267
echo "${ECHO_T}$SED" >&6
 
3268
 
 
3269
echo "$as_me:$LINENO: checking for egrep" >&5
 
3270
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3271
if test "${ac_cv_prog_egrep+set}" = set; then
 
3272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3273
else
 
3274
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3275
    then ac_cv_prog_egrep='grep -E'
 
3276
    else ac_cv_prog_egrep='egrep'
 
3277
    fi
 
3278
fi
 
3279
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3280
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3281
 EGREP=$ac_cv_prog_egrep
 
3282
 
 
3283
 
1201
3284
 
1202
3285
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1203
3286
if test "${with_gnu_ld+set}" = set; then
1205
3288
  test "$withval" = no || with_gnu_ld=yes
1206
3289
else
1207
3290
  with_gnu_ld=no
1208
 
fi
1209
 
 
 
3291
fi;
1210
3292
ac_prog=ld
1211
 
if test "$ac_cv_prog_gcc" = yes; then
 
3293
if test "$GCC" = yes; then
1212
3294
  # Check if gcc -print-prog-name=ld gives a path.
1213
 
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1214
 
echo "configure:1215: checking for ld used by GCC" >&5
1215
 
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1216
 
  case "$ac_prog" in
 
3295
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3296
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3297
  case $host in
 
3298
  *-*-mingw*)
 
3299
    # gcc leaves a trailing carriage return which upsets mingw
 
3300
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3301
  *)
 
3302
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3303
  esac
 
3304
  case $ac_prog in
1217
3305
    # Accept absolute paths.
1218
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
3306
    [\\/]* | ?:[\\/]*)
1219
3307
      re_direlt='/[^/][^/]*/\.\./'
1220
 
      # Canonicalize the path of ld
1221
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3308
      # Canonicalize the pathname of ld
 
3309
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1222
3310
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1223
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3311
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1224
3312
      done
1225
3313
      test -z "$LD" && LD="$ac_prog"
1226
3314
      ;;
1234
3322
    ;;
1235
3323
  esac
1236
3324
elif test "$with_gnu_ld" = yes; then
1237
 
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1238
 
echo "configure:1239: checking for GNU ld" >&5
 
3325
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3326
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1239
3327
else
1240
 
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1241
 
echo "configure:1242: checking for non-GNU ld" >&5
 
3328
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3329
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1242
3330
fi
1243
 
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1244
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3331
if test "${lt_cv_path_LD+set}" = set; then
 
3332
  echo $ECHO_N "(cached) $ECHO_C" >&6
1245
3333
else
1246
3334
  if test -z "$LD"; then
1247
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3335
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1248
3336
  for ac_dir in $PATH; do
 
3337
    IFS="$lt_save_ifs"
1249
3338
    test -z "$ac_dir" && ac_dir=.
1250
3339
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1251
 
      ac_cv_path_LD="$ac_dir/$ac_prog"
 
3340
      lt_cv_path_LD="$ac_dir/$ac_prog"
1252
3341
      # Check to see if the program is GNU ld.  I'd rather use --version,
1253
 
      # but apparently some GNU ld's only accept -v.
 
3342
      # but apparently some variants of GNU ld only accept -v.
1254
3343
      # Break only if it was the GNU/non-GNU ld that we prefer.
1255
 
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3344
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3345
      *GNU* | *'with BFD'*)
1256
3346
        test "$with_gnu_ld" != no && break
1257
 
      else
 
3347
        ;;
 
3348
      *)
1258
3349
        test "$with_gnu_ld" != yes && break
1259
 
      fi
 
3350
        ;;
 
3351
      esac
1260
3352
    fi
1261
3353
  done
1262
 
  IFS="$ac_save_ifs"
 
3354
  IFS="$lt_save_ifs"
1263
3355
else
1264
 
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
 
3356
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1265
3357
fi
1266
3358
fi
1267
3359
 
1268
 
LD="$ac_cv_path_LD"
 
3360
LD="$lt_cv_path_LD"
1269
3361
if test -n "$LD"; then
1270
 
  echo "$ac_t""$LD" 1>&6
1271
 
else
1272
 
  echo "$ac_t""no" 1>&6
1273
 
fi
1274
 
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1275
 
 
1276
 
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1277
 
echo "configure:1278: checking if the linker ($LD) is GNU ld" >&5
1278
 
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1279
 
  echo $ac_n "(cached) $ac_c" 1>&6
1280
 
else
1281
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1282
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1283
 
  ac_cv_prog_gnu_ld=yes
1284
 
else
1285
 
  ac_cv_prog_gnu_ld=no
1286
 
fi
1287
 
fi
1288
 
 
1289
 
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1290
 
 
1291
 
 
1292
 
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1293
 
echo "configure:1294: checking for BSD-compatible nm" >&5
1294
 
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1295
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3362
  echo "$as_me:$LINENO: result: $LD" >&5
 
3363
echo "${ECHO_T}$LD" >&6
 
3364
else
 
3365
  echo "$as_me:$LINENO: result: no" >&5
 
3366
echo "${ECHO_T}no" >&6
 
3367
fi
 
3368
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3369
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3370
   { (exit 1); exit 1; }; }
 
3371
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3372
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3373
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3375
else
 
3376
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3377
case `$LD -v 2>&1 </dev/null` in
 
3378
*GNU* | *'with BFD'*)
 
3379
  lt_cv_prog_gnu_ld=yes
 
3380
  ;;
 
3381
*)
 
3382
  lt_cv_prog_gnu_ld=no
 
3383
  ;;
 
3384
esac
 
3385
fi
 
3386
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3387
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3388
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3389
 
 
3390
 
 
3391
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3392
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3393
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3395
else
 
3396
  lt_cv_ld_reload_flag='-r'
 
3397
fi
 
3398
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3399
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3400
reload_flag=$lt_cv_ld_reload_flag
 
3401
case $reload_flag in
 
3402
"" | " "*) ;;
 
3403
*) reload_flag=" $reload_flag" ;;
 
3404
esac
 
3405
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3406
case $host_os in
 
3407
  darwin*)
 
3408
    if test "$GCC" = yes; then
 
3409
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3410
    else
 
3411
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3412
    fi
 
3413
    ;;
 
3414
esac
 
3415
 
 
3416
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3417
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3418
if test "${lt_cv_path_NM+set}" = set; then
 
3419
  echo $ECHO_N "(cached) $ECHO_C" >&6
1296
3420
else
1297
3421
  if test -n "$NM"; then
1298
3422
  # Let the user override the test.
1299
 
  ac_cv_path_NM="$NM"
 
3423
  lt_cv_path_NM="$NM"
1300
3424
else
1301
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1302
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1303
 
    test -z "$ac_dir" && ac_dir=.
1304
 
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1305
 
      # Check to see if the nm accepts a BSD-compat flag.
1306
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1307
 
      #   nm: unknown option "B" ignored
1308
 
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1309
 
        ac_cv_path_NM="$ac_dir/nm -B"
1310
 
        break
1311
 
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1312
 
        ac_cv_path_NM="$ac_dir/nm -p"
1313
 
        break
1314
 
      else
1315
 
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1316
 
        continue # so that we can try to find one that supports BSD flags
 
3425
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3426
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3427
    lt_nm_to_check="$lt_nm_to_check nm"
 
3428
  fi
 
3429
  for lt_tmp_nm in $lt_nm_to_check; do
 
3430
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3431
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3432
      IFS="$lt_save_ifs"
 
3433
      test -z "$ac_dir" && ac_dir=.
 
3434
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3435
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3436
        # Check to see if the nm accepts a BSD-compat flag.
 
3437
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3438
        #   nm: unknown option "B" ignored
 
3439
        # Tru64's nm complains that /dev/null is an invalid object file
 
3440
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3441
        */dev/null* | *'Invalid file or object type'*)
 
3442
          lt_cv_path_NM="$tmp_nm -B"
 
3443
          break
 
3444
          ;;
 
3445
        *)
 
3446
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3447
          */dev/null*)
 
3448
            lt_cv_path_NM="$tmp_nm -p"
 
3449
            break
 
3450
            ;;
 
3451
          *)
 
3452
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3453
            continue # so that we can try to find one that supports BSD flags
 
3454
            ;;
 
3455
          esac
 
3456
          ;;
 
3457
        esac
1317
3458
      fi
1318
 
    fi
 
3459
    done
 
3460
    IFS="$lt_save_ifs"
1319
3461
  done
1320
 
  IFS="$ac_save_ifs"
1321
 
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1322
 
fi
1323
 
fi
1324
 
 
1325
 
NM="$ac_cv_path_NM"
1326
 
echo "$ac_t""$NM" 1>&6
1327
 
 
1328
 
 
1329
 
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1330
 
echo "configure:1331: checking whether ln -s works" >&5
1331
 
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1332
 
  echo $ac_n "(cached) $ac_c" 1>&6
1333
 
else
1334
 
  rm -f conftestdata
1335
 
if ln -s X conftestdata 2>/dev/null
1336
 
then
1337
 
  rm -f conftestdata
1338
 
  ac_cv_prog_LN_S="ln -s"
1339
 
else
1340
 
  ac_cv_prog_LN_S=ln
1341
 
fi
1342
 
fi
1343
 
LN_S="$ac_cv_prog_LN_S"
1344
 
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1345
 
  echo "$ac_t""yes" 1>&6
1346
 
else
1347
 
  echo "$ac_t""no" 1>&6
1348
 
fi
1349
 
 
1350
 
 
1351
 
# Check for any special flags to pass to ltconfig.
1352
 
libtool_flags="--cache-file=$cache_file"
1353
 
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1354
 
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1355
 
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1356
 
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1357
 
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 
3462
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3463
fi
 
3464
fi
 
3465
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3466
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3467
NM="$lt_cv_path_NM"
 
3468
 
 
3469
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3470
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3471
LN_S=$as_ln_s
 
3472
if test "$LN_S" = "ln -s"; then
 
3473
  echo "$as_me:$LINENO: result: yes" >&5
 
3474
echo "${ECHO_T}yes" >&6
 
3475
else
 
3476
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3477
echo "${ECHO_T}no, using $LN_S" >&6
 
3478
fi
 
3479
 
 
3480
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3481
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3482
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3484
else
 
3485
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3486
lt_cv_file_magic_test_file=
 
3487
lt_cv_deplibs_check_method='unknown'
 
3488
# Need to set the preceding variable on all platforms that support
 
3489
# interlibrary dependencies.
 
3490
# 'none' -- dependencies not supported.
 
3491
# `unknown' -- same as none, but documents that we really don't know.
 
3492
# 'pass_all' -- all dependencies passed with no checks.
 
3493
# 'test_compile' -- check by making test program.
 
3494
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3495
# which responds to the $file_magic_cmd with a given extended regex.
 
3496
# If you have `file' or equivalent on your system and you're not sure
 
3497
# whether `pass_all' will *always* work, you probably want this one.
 
3498
 
 
3499
case $host_os in
 
3500
aix4* | aix5*)
 
3501
  lt_cv_deplibs_check_method=pass_all
 
3502
  ;;
 
3503
 
 
3504
beos*)
 
3505
  lt_cv_deplibs_check_method=pass_all
 
3506
  ;;
 
3507
 
 
3508
bsdi[45]*)
 
3509
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3510
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3511
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3512
  ;;
 
3513
 
 
3514
cygwin*)
 
3515
  # func_win32_libid is a shell function defined in ltmain.sh
 
3516
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3517
  lt_cv_file_magic_cmd='func_win32_libid'
 
3518
  ;;
 
3519
 
 
3520
mingw* | pw32*)
 
3521
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3522
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3523
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3524
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3525
  ;;
 
3526
 
 
3527
darwin* | rhapsody*)
 
3528
  lt_cv_deplibs_check_method=pass_all
 
3529
  ;;
 
3530
 
 
3531
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3532
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3533
    case $host_cpu in
 
3534
    i*86 )
 
3535
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3536
      # Let's accept both of them until this is cleared up.
 
3537
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
3538
      lt_cv_file_magic_cmd=/usr/bin/file
 
3539
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3540
      ;;
 
3541
    esac
 
3542
  else
 
3543
    lt_cv_deplibs_check_method=pass_all
 
3544
  fi
 
3545
  ;;
 
3546
 
 
3547
gnu*)
 
3548
  lt_cv_deplibs_check_method=pass_all
 
3549
  ;;
 
3550
 
 
3551
hpux10.20* | hpux11*)
 
3552
  lt_cv_file_magic_cmd=/usr/bin/file
 
3553
  case $host_cpu in
 
3554
  ia64*)
 
3555
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3556
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3557
    ;;
 
3558
  hppa*64*)
 
3559
    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]'
 
3560
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3561
    ;;
 
3562
  *)
 
3563
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3564
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3565
    ;;
 
3566
  esac
 
3567
  ;;
 
3568
 
 
3569
interix3*)
 
3570
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3571
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3572
  ;;
 
3573
 
 
3574
irix5* | irix6* | nonstopux*)
 
3575
  case $LD in
 
3576
  *-32|*"-32 ") libmagic=32-bit;;
 
3577
  *-n32|*"-n32 ") libmagic=N32;;
 
3578
  *-64|*"-64 ") libmagic=64-bit;;
 
3579
  *) libmagic=never-match;;
 
3580
  esac
 
3581
  lt_cv_deplibs_check_method=pass_all
 
3582
  ;;
 
3583
 
 
3584
# This must be Linux ELF.
 
3585
linux*)
 
3586
  lt_cv_deplibs_check_method=pass_all
 
3587
  ;;
 
3588
 
 
3589
netbsd*)
 
3590
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3591
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3592
  else
 
3593
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3594
  fi
 
3595
  ;;
 
3596
 
 
3597
newos6*)
 
3598
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3599
  lt_cv_file_magic_cmd=/usr/bin/file
 
3600
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3601
  ;;
 
3602
 
 
3603
nto-qnx*)
 
3604
  lt_cv_deplibs_check_method=unknown
 
3605
  ;;
 
3606
 
 
3607
openbsd*)
 
3608
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3609
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3610
  else
 
3611
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3612
  fi
 
3613
  ;;
 
3614
 
 
3615
osf3* | osf4* | osf5*)
 
3616
  lt_cv_deplibs_check_method=pass_all
 
3617
  ;;
 
3618
 
 
3619
solaris*)
 
3620
  lt_cv_deplibs_check_method=pass_all
 
3621
  ;;
 
3622
 
 
3623
sysv4 | sysv4.3*)
 
3624
  case $host_vendor in
 
3625
  motorola)
 
3626
    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]'
 
3627
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3628
    ;;
 
3629
  ncr)
 
3630
    lt_cv_deplibs_check_method=pass_all
 
3631
    ;;
 
3632
  sequent)
 
3633
    lt_cv_file_magic_cmd='/bin/file'
 
3634
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3635
    ;;
 
3636
  sni)
 
3637
    lt_cv_file_magic_cmd='/bin/file'
 
3638
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3639
    lt_cv_file_magic_test_file=/lib/libc.so
 
3640
    ;;
 
3641
  siemens)
 
3642
    lt_cv_deplibs_check_method=pass_all
 
3643
    ;;
 
3644
  pc)
 
3645
    lt_cv_deplibs_check_method=pass_all
 
3646
    ;;
 
3647
  esac
 
3648
  ;;
 
3649
 
 
3650
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3651
  lt_cv_deplibs_check_method=pass_all
 
3652
  ;;
 
3653
esac
 
3654
 
 
3655
fi
 
3656
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3657
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3658
file_magic_cmd=$lt_cv_file_magic_cmd
 
3659
deplibs_check_method=$lt_cv_deplibs_check_method
 
3660
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3661
 
 
3662
 
 
3663
 
 
3664
 
 
3665
# If no C compiler was specified, use CC.
 
3666
LTCC=${LTCC-"$CC"}
 
3667
 
 
3668
# If no C compiler flags were specified, use CFLAGS.
 
3669
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3670
 
 
3671
# Allow CC to be a program name with arguments.
 
3672
compiler=$CC
1358
3673
 
1359
3674
 
1360
3675
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1361
3676
if test "${enable_libtool_lock+set}" = set; then
1362
3677
  enableval="$enable_libtool_lock"
1363
 
  :
1364
 
fi
1365
3678
 
1366
 
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1367
 
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
 
3679
fi;
 
3680
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1368
3681
 
1369
3682
# Some flags need to be propagated to the compiler or linker for good
1370
3683
# libtool support.
1371
 
case "$host" in
 
3684
case $host in
 
3685
ia64-*-hpux*)
 
3686
  # Find out which ABI we are using.
 
3687
  echo 'int i;' > conftest.$ac_ext
 
3688
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3689
  (eval $ac_compile) 2>&5
 
3690
  ac_status=$?
 
3691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3692
  (exit $ac_status); }; then
 
3693
    case `/usr/bin/file conftest.$ac_objext` in
 
3694
    *ELF-32*)
 
3695
      HPUX_IA64_MODE="32"
 
3696
      ;;
 
3697
    *ELF-64*)
 
3698
      HPUX_IA64_MODE="64"
 
3699
      ;;
 
3700
    esac
 
3701
  fi
 
3702
  rm -rf conftest*
 
3703
  ;;
1372
3704
*-*-irix6*)
1373
3705
  # Find out which ABI we are using.
1374
 
  echo '#line 1375 "configure"' > conftest.$ac_ext
1375
 
  if { (eval echo configure:1376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1376
 
    case "`/usr/bin/file conftest.o`" in
 
3706
  echo '#line 3706 "configure"' > conftest.$ac_ext
 
3707
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3708
  (eval $ac_compile) 2>&5
 
3709
  ac_status=$?
 
3710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3711
  (exit $ac_status); }; then
 
3712
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3713
    case `/usr/bin/file conftest.$ac_objext` in
 
3714
    *32-bit*)
 
3715
      LD="${LD-ld} -melf32bsmip"
 
3716
      ;;
 
3717
    *N32*)
 
3718
      LD="${LD-ld} -melf32bmipn32"
 
3719
      ;;
 
3720
    *64-bit*)
 
3721
      LD="${LD-ld} -melf64bmip"
 
3722
      ;;
 
3723
    esac
 
3724
   else
 
3725
    case `/usr/bin/file conftest.$ac_objext` in
1377
3726
    *32-bit*)
1378
3727
      LD="${LD-ld} -32"
1379
3728
      ;;
1384
3733
      LD="${LD-ld} -64"
1385
3734
      ;;
1386
3735
    esac
 
3736
   fi
 
3737
  fi
 
3738
  rm -rf conftest*
 
3739
  ;;
 
3740
 
 
3741
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3742
  # Find out which ABI we are using.
 
3743
  echo 'int i;' > conftest.$ac_ext
 
3744
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3745
  (eval $ac_compile) 2>&5
 
3746
  ac_status=$?
 
3747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3748
  (exit $ac_status); }; then
 
3749
    case `/usr/bin/file conftest.o` in
 
3750
    *32-bit*)
 
3751
      case $host in
 
3752
        x86_64-*linux*)
 
3753
          LD="${LD-ld} -m elf_i386"
 
3754
          ;;
 
3755
        ppc64-*linux*|powerpc64-*linux*)
 
3756
          LD="${LD-ld} -m elf32ppclinux"
 
3757
          ;;
 
3758
        s390x-*linux*)
 
3759
          LD="${LD-ld} -m elf_s390"
 
3760
          ;;
 
3761
        sparc64-*linux*)
 
3762
          LD="${LD-ld} -m elf32_sparc"
 
3763
          ;;
 
3764
      esac
 
3765
      ;;
 
3766
    *64-bit*)
 
3767
      case $host in
 
3768
        x86_64-*linux*)
 
3769
          LD="${LD-ld} -m elf_x86_64"
 
3770
          ;;
 
3771
        ppc*-*linux*|powerpc*-*linux*)
 
3772
          LD="${LD-ld} -m elf64ppc"
 
3773
          ;;
 
3774
        s390*-*linux*)
 
3775
          LD="${LD-ld} -m elf64_s390"
 
3776
          ;;
 
3777
        sparc*-*linux*)
 
3778
          LD="${LD-ld} -m elf64_sparc"
 
3779
          ;;
 
3780
      esac
 
3781
      ;;
 
3782
    esac
1387
3783
  fi
1388
3784
  rm -rf conftest*
1389
3785
  ;;
1392
3788
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1393
3789
  SAVE_CFLAGS="$CFLAGS"
1394
3790
  CFLAGS="$CFLAGS -belf"
1395
 
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1396
 
echo "configure:1397: checking whether the C compiler needs -belf" >&5
1397
 
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1398
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3791
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3792
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3793
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3794
  echo $ECHO_N "(cached) $ECHO_C" >&6
1399
3795
else
1400
 
  
1401
 
     ac_ext=c
1402
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3796
  ac_ext=c
1403
3797
ac_cpp='$CPP $CPPFLAGS'
1404
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406
 
cross_compiling=$ac_cv_prog_cc_cross
1407
 
 
1408
 
     cat > conftest.$ac_ext <<EOF
1409
 
#line 1410 "configure"
1410
 
#include "confdefs.h"
1411
 
 
1412
 
int main() {
1413
 
 
1414
 
; return 0; }
1415
 
EOF
1416
 
if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1417
 
  rm -rf conftest*
 
3798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3799
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3800
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3801
 
 
3802
     cat >conftest.$ac_ext <<_ACEOF
 
3803
/* confdefs.h.  */
 
3804
_ACEOF
 
3805
cat confdefs.h >>conftest.$ac_ext
 
3806
cat >>conftest.$ac_ext <<_ACEOF
 
3807
/* end confdefs.h.  */
 
3808
 
 
3809
int
 
3810
main ()
 
3811
{
 
3812
 
 
3813
  ;
 
3814
  return 0;
 
3815
}
 
3816
_ACEOF
 
3817
rm -f conftest.$ac_objext conftest$ac_exeext
 
3818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3819
  (eval $ac_link) 2>conftest.er1
 
3820
  ac_status=$?
 
3821
  grep -v '^ *+' conftest.er1 >conftest.err
 
3822
  rm -f conftest.er1
 
3823
  cat conftest.err >&5
 
3824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3825
  (exit $ac_status); } &&
 
3826
         { ac_try='test -z "$ac_c_werror_flag"
 
3827
                         || test ! -s conftest.err'
 
3828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3829
  (eval $ac_try) 2>&5
 
3830
  ac_status=$?
 
3831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3832
  (exit $ac_status); }; } &&
 
3833
         { ac_try='test -s conftest$ac_exeext'
 
3834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3835
  (eval $ac_try) 2>&5
 
3836
  ac_status=$?
 
3837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3838
  (exit $ac_status); }; }; then
1418
3839
  lt_cv_cc_needs_belf=yes
1419
3840
else
1420
 
  echo "configure: failed program was:" >&5
1421
 
  cat conftest.$ac_ext >&5
1422
 
  rm -rf conftest*
1423
 
  lt_cv_cc_needs_belf=no
 
3841
  echo "$as_me: failed program was:" >&5
 
3842
sed 's/^/| /' conftest.$ac_ext >&5
 
3843
 
 
3844
lt_cv_cc_needs_belf=no
1424
3845
fi
1425
 
rm -f conftest*
 
3846
rm -f conftest.err conftest.$ac_objext \
 
3847
      conftest$ac_exeext conftest.$ac_ext
1426
3848
     ac_ext=c
1427
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1428
3849
ac_cpp='$CPP $CPPFLAGS'
1429
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1430
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1431
 
cross_compiling=$ac_cv_prog_cc_cross
 
3850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432
3853
 
1433
3854
fi
1434
 
 
1435
 
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 
3855
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3856
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1436
3857
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1437
3858
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1438
3859
    CFLAGS="$SAVE_CFLAGS"
1439
3860
  fi
1440
3861
  ;;
1441
 
 
1442
 
 
1443
 
esac
1444
 
 
1445
 
 
1446
 
# Save cache, so that ltconfig can load it
1447
 
cat > confcache <<\EOF
1448
 
# This file is a shell script that caches the results of configure
1449
 
# tests run on this system so they can be shared between configure
1450
 
# scripts and configure runs.  It is not useful on other systems.
1451
 
# If it contains results you don't want to keep, you may remove or edit it.
1452
 
#
1453
 
# By default, configure uses ./config.cache as the cache file,
1454
 
# creating it if it does not exist already.  You can give configure
1455
 
# the --cache-file=FILE option to use a different cache file; that is
1456
 
# what configure does when it calls configure scripts in
1457
 
# subdirectories, so they share the cache.
1458
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1459
 
# config.status only pays attention to the cache file if you give it the
1460
 
# --recheck option to rerun configure.
1461
 
#
1462
 
EOF
1463
 
# The following way of writing the cache mishandles newlines in values,
1464
 
# but we know of no workaround that is simple, portable, and efficient.
1465
 
# So, don't put newlines in cache variables' values.
1466
 
# Ultrix sh set writes to stderr and can't be redirected directly,
1467
 
# and sets the high bit in the cache file unless we assign to the vars.
1468
 
(set) 2>&1 |
1469
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1470
 
  *ac_space=\ *)
1471
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
1472
 
    # turns \\\\ into \\, and sed turns \\ into \).
1473
 
    sed -n \
1474
 
      -e "s/'/'\\\\''/g" \
1475
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1476
 
    ;;
1477
 
  *)
1478
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1479
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1480
 
    ;;
1481
 
  esac >> confcache
1482
 
if cmp -s $cache_file confcache; then
1483
 
  :
1484
 
else
1485
 
  if test -w $cache_file; then
1486
 
    echo "updating cache $cache_file"
1487
 
    cat confcache > $cache_file
1488
 
  else
1489
 
    echo "not updating unwritable cache $cache_file"
1490
 
  fi
1491
 
fi
1492
 
rm -f confcache
1493
 
 
1494
 
 
1495
 
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1496
 
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1497
 
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1498
 
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1499
 
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1500
 
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1501
 
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1502
 
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1503
 
 
1504
 
# Reload cache, that may have been modified by ltconfig
1505
 
if test -r "$cache_file"; then
1506
 
  echo "loading cache $cache_file"
1507
 
  . $cache_file
1508
 
else
1509
 
  echo "creating cache $cache_file"
1510
 
  > $cache_file
1511
 
fi
 
3862
sparc*-*solaris*)
 
3863
  # Find out which ABI we are using.
 
3864
  echo 'int i;' > conftest.$ac_ext
 
3865
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3866
  (eval $ac_compile) 2>&5
 
3867
  ac_status=$?
 
3868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3869
  (exit $ac_status); }; then
 
3870
    case `/usr/bin/file conftest.o` in
 
3871
    *64-bit*)
 
3872
      case $lt_cv_prog_gnu_ld in
 
3873
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3874
      *)    LD="${LD-ld} -64" ;;
 
3875
      esac
 
3876
      ;;
 
3877
    esac
 
3878
  fi
 
3879
  rm -rf conftest*
 
3880
  ;;
 
3881
 
 
3882
 
 
3883
esac
 
3884
 
 
3885
need_locks="$enable_libtool_lock"
 
3886
 
 
3887
 
 
3888
ac_ext=c
 
3889
ac_cpp='$CPP $CPPFLAGS'
 
3890
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3891
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3892
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3893
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3894
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3895
# On Suns, sometimes $CPP names a directory.
 
3896
if test -n "$CPP" && test -d "$CPP"; then
 
3897
  CPP=
 
3898
fi
 
3899
if test -z "$CPP"; then
 
3900
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3902
else
 
3903
      # Double quotes because CPP needs to be expanded
 
3904
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3905
    do
 
3906
      ac_preproc_ok=false
 
3907
for ac_c_preproc_warn_flag in '' yes
 
3908
do
 
3909
  # Use a header file that comes with gcc, so configuring glibc
 
3910
  # with a fresh cross-compiler works.
 
3911
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3912
  # <limits.h> exists even on freestanding compilers.
 
3913
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3914
  # not just through cpp. "Syntax error" is here to catch this case.
 
3915
  cat >conftest.$ac_ext <<_ACEOF
 
3916
/* confdefs.h.  */
 
3917
_ACEOF
 
3918
cat confdefs.h >>conftest.$ac_ext
 
3919
cat >>conftest.$ac_ext <<_ACEOF
 
3920
/* end confdefs.h.  */
 
3921
#ifdef __STDC__
 
3922
# include <limits.h>
 
3923
#else
 
3924
# include <assert.h>
 
3925
#endif
 
3926
                     Syntax error
 
3927
_ACEOF
 
3928
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3929
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3930
  ac_status=$?
 
3931
  grep -v '^ *+' conftest.er1 >conftest.err
 
3932
  rm -f conftest.er1
 
3933
  cat conftest.err >&5
 
3934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3935
  (exit $ac_status); } >/dev/null; then
 
3936
  if test -s conftest.err; then
 
3937
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3938
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3939
  else
 
3940
    ac_cpp_err=
 
3941
  fi
 
3942
else
 
3943
  ac_cpp_err=yes
 
3944
fi
 
3945
if test -z "$ac_cpp_err"; then
 
3946
  :
 
3947
else
 
3948
  echo "$as_me: failed program was:" >&5
 
3949
sed 's/^/| /' conftest.$ac_ext >&5
 
3950
 
 
3951
  # Broken: fails on valid input.
 
3952
continue
 
3953
fi
 
3954
rm -f conftest.err conftest.$ac_ext
 
3955
 
 
3956
  # OK, works on sane cases.  Now check whether non-existent headers
 
3957
  # can be detected and how.
 
3958
  cat >conftest.$ac_ext <<_ACEOF
 
3959
/* confdefs.h.  */
 
3960
_ACEOF
 
3961
cat confdefs.h >>conftest.$ac_ext
 
3962
cat >>conftest.$ac_ext <<_ACEOF
 
3963
/* end confdefs.h.  */
 
3964
#include <ac_nonexistent.h>
 
3965
_ACEOF
 
3966
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3967
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3968
  ac_status=$?
 
3969
  grep -v '^ *+' conftest.er1 >conftest.err
 
3970
  rm -f conftest.er1
 
3971
  cat conftest.err >&5
 
3972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3973
  (exit $ac_status); } >/dev/null; then
 
3974
  if test -s conftest.err; then
 
3975
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3976
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3977
  else
 
3978
    ac_cpp_err=
 
3979
  fi
 
3980
else
 
3981
  ac_cpp_err=yes
 
3982
fi
 
3983
if test -z "$ac_cpp_err"; then
 
3984
  # Broken: success on invalid input.
 
3985
continue
 
3986
else
 
3987
  echo "$as_me: failed program was:" >&5
 
3988
sed 's/^/| /' conftest.$ac_ext >&5
 
3989
 
 
3990
  # Passes both tests.
 
3991
ac_preproc_ok=:
 
3992
break
 
3993
fi
 
3994
rm -f conftest.err conftest.$ac_ext
 
3995
 
 
3996
done
 
3997
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3998
rm -f conftest.err conftest.$ac_ext
 
3999
if $ac_preproc_ok; then
 
4000
  break
 
4001
fi
 
4002
 
 
4003
    done
 
4004
    ac_cv_prog_CPP=$CPP
 
4005
 
 
4006
fi
 
4007
  CPP=$ac_cv_prog_CPP
 
4008
else
 
4009
  ac_cv_prog_CPP=$CPP
 
4010
fi
 
4011
echo "$as_me:$LINENO: result: $CPP" >&5
 
4012
echo "${ECHO_T}$CPP" >&6
 
4013
ac_preproc_ok=false
 
4014
for ac_c_preproc_warn_flag in '' yes
 
4015
do
 
4016
  # Use a header file that comes with gcc, so configuring glibc
 
4017
  # with a fresh cross-compiler works.
 
4018
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4019
  # <limits.h> exists even on freestanding compilers.
 
4020
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4021
  # not just through cpp. "Syntax error" is here to catch this case.
 
4022
  cat >conftest.$ac_ext <<_ACEOF
 
4023
/* confdefs.h.  */
 
4024
_ACEOF
 
4025
cat confdefs.h >>conftest.$ac_ext
 
4026
cat >>conftest.$ac_ext <<_ACEOF
 
4027
/* end confdefs.h.  */
 
4028
#ifdef __STDC__
 
4029
# include <limits.h>
 
4030
#else
 
4031
# include <assert.h>
 
4032
#endif
 
4033
                     Syntax error
 
4034
_ACEOF
 
4035
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4036
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4037
  ac_status=$?
 
4038
  grep -v '^ *+' conftest.er1 >conftest.err
 
4039
  rm -f conftest.er1
 
4040
  cat conftest.err >&5
 
4041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4042
  (exit $ac_status); } >/dev/null; then
 
4043
  if test -s conftest.err; then
 
4044
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4045
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4046
  else
 
4047
    ac_cpp_err=
 
4048
  fi
 
4049
else
 
4050
  ac_cpp_err=yes
 
4051
fi
 
4052
if test -z "$ac_cpp_err"; then
 
4053
  :
 
4054
else
 
4055
  echo "$as_me: failed program was:" >&5
 
4056
sed 's/^/| /' conftest.$ac_ext >&5
 
4057
 
 
4058
  # Broken: fails on valid input.
 
4059
continue
 
4060
fi
 
4061
rm -f conftest.err conftest.$ac_ext
 
4062
 
 
4063
  # OK, works on sane cases.  Now check whether non-existent headers
 
4064
  # can be detected and how.
 
4065
  cat >conftest.$ac_ext <<_ACEOF
 
4066
/* confdefs.h.  */
 
4067
_ACEOF
 
4068
cat confdefs.h >>conftest.$ac_ext
 
4069
cat >>conftest.$ac_ext <<_ACEOF
 
4070
/* end confdefs.h.  */
 
4071
#include <ac_nonexistent.h>
 
4072
_ACEOF
 
4073
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4074
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4075
  ac_status=$?
 
4076
  grep -v '^ *+' conftest.er1 >conftest.err
 
4077
  rm -f conftest.er1
 
4078
  cat conftest.err >&5
 
4079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4080
  (exit $ac_status); } >/dev/null; then
 
4081
  if test -s conftest.err; then
 
4082
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4083
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4084
  else
 
4085
    ac_cpp_err=
 
4086
  fi
 
4087
else
 
4088
  ac_cpp_err=yes
 
4089
fi
 
4090
if test -z "$ac_cpp_err"; then
 
4091
  # Broken: success on invalid input.
 
4092
continue
 
4093
else
 
4094
  echo "$as_me: failed program was:" >&5
 
4095
sed 's/^/| /' conftest.$ac_ext >&5
 
4096
 
 
4097
  # Passes both tests.
 
4098
ac_preproc_ok=:
 
4099
break
 
4100
fi
 
4101
rm -f conftest.err conftest.$ac_ext
 
4102
 
 
4103
done
 
4104
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4105
rm -f conftest.err conftest.$ac_ext
 
4106
if $ac_preproc_ok; then
 
4107
  :
 
4108
else
 
4109
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4110
See \`config.log' for more details." >&5
 
4111
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4112
See \`config.log' for more details." >&2;}
 
4113
   { (exit 1); exit 1; }; }
 
4114
fi
 
4115
 
 
4116
ac_ext=c
 
4117
ac_cpp='$CPP $CPPFLAGS'
 
4118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4121
 
 
4122
 
 
4123
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4124
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4125
if test "${ac_cv_header_stdc+set}" = set; then
 
4126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4127
else
 
4128
  cat >conftest.$ac_ext <<_ACEOF
 
4129
/* confdefs.h.  */
 
4130
_ACEOF
 
4131
cat confdefs.h >>conftest.$ac_ext
 
4132
cat >>conftest.$ac_ext <<_ACEOF
 
4133
/* end confdefs.h.  */
 
4134
#include <stdlib.h>
 
4135
#include <stdarg.h>
 
4136
#include <string.h>
 
4137
#include <float.h>
 
4138
 
 
4139
int
 
4140
main ()
 
4141
{
 
4142
 
 
4143
  ;
 
4144
  return 0;
 
4145
}
 
4146
_ACEOF
 
4147
rm -f conftest.$ac_objext
 
4148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4149
  (eval $ac_compile) 2>conftest.er1
 
4150
  ac_status=$?
 
4151
  grep -v '^ *+' conftest.er1 >conftest.err
 
4152
  rm -f conftest.er1
 
4153
  cat conftest.err >&5
 
4154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4155
  (exit $ac_status); } &&
 
4156
         { ac_try='test -z "$ac_c_werror_flag"
 
4157
                         || test ! -s conftest.err'
 
4158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4159
  (eval $ac_try) 2>&5
 
4160
  ac_status=$?
 
4161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4162
  (exit $ac_status); }; } &&
 
4163
         { ac_try='test -s conftest.$ac_objext'
 
4164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4165
  (eval $ac_try) 2>&5
 
4166
  ac_status=$?
 
4167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4168
  (exit $ac_status); }; }; then
 
4169
  ac_cv_header_stdc=yes
 
4170
else
 
4171
  echo "$as_me: failed program was:" >&5
 
4172
sed 's/^/| /' conftest.$ac_ext >&5
 
4173
 
 
4174
ac_cv_header_stdc=no
 
4175
fi
 
4176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4177
 
 
4178
if test $ac_cv_header_stdc = yes; then
 
4179
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4180
  cat >conftest.$ac_ext <<_ACEOF
 
4181
/* confdefs.h.  */
 
4182
_ACEOF
 
4183
cat confdefs.h >>conftest.$ac_ext
 
4184
cat >>conftest.$ac_ext <<_ACEOF
 
4185
/* end confdefs.h.  */
 
4186
#include <string.h>
 
4187
 
 
4188
_ACEOF
 
4189
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4190
  $EGREP "memchr" >/dev/null 2>&1; then
 
4191
  :
 
4192
else
 
4193
  ac_cv_header_stdc=no
 
4194
fi
 
4195
rm -f conftest*
 
4196
 
 
4197
fi
 
4198
 
 
4199
if test $ac_cv_header_stdc = yes; then
 
4200
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4201
  cat >conftest.$ac_ext <<_ACEOF
 
4202
/* confdefs.h.  */
 
4203
_ACEOF
 
4204
cat confdefs.h >>conftest.$ac_ext
 
4205
cat >>conftest.$ac_ext <<_ACEOF
 
4206
/* end confdefs.h.  */
 
4207
#include <stdlib.h>
 
4208
 
 
4209
_ACEOF
 
4210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4211
  $EGREP "free" >/dev/null 2>&1; then
 
4212
  :
 
4213
else
 
4214
  ac_cv_header_stdc=no
 
4215
fi
 
4216
rm -f conftest*
 
4217
 
 
4218
fi
 
4219
 
 
4220
if test $ac_cv_header_stdc = yes; then
 
4221
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4222
  if test "$cross_compiling" = yes; then
 
4223
  :
 
4224
else
 
4225
  cat >conftest.$ac_ext <<_ACEOF
 
4226
/* confdefs.h.  */
 
4227
_ACEOF
 
4228
cat confdefs.h >>conftest.$ac_ext
 
4229
cat >>conftest.$ac_ext <<_ACEOF
 
4230
/* end confdefs.h.  */
 
4231
#include <ctype.h>
 
4232
#if ((' ' & 0x0FF) == 0x020)
 
4233
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4234
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4235
#else
 
4236
# define ISLOWER(c) \
 
4237
                   (('a' <= (c) && (c) <= 'i') \
 
4238
                     || ('j' <= (c) && (c) <= 'r') \
 
4239
                     || ('s' <= (c) && (c) <= 'z'))
 
4240
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4241
#endif
 
4242
 
 
4243
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4244
int
 
4245
main ()
 
4246
{
 
4247
  int i;
 
4248
  for (i = 0; i < 256; i++)
 
4249
    if (XOR (islower (i), ISLOWER (i))
 
4250
        || toupper (i) != TOUPPER (i))
 
4251
      exit(2);
 
4252
  exit (0);
 
4253
}
 
4254
_ACEOF
 
4255
rm -f conftest$ac_exeext
 
4256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4257
  (eval $ac_link) 2>&5
 
4258
  ac_status=$?
 
4259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4260
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4262
  (eval $ac_try) 2>&5
 
4263
  ac_status=$?
 
4264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4265
  (exit $ac_status); }; }; then
 
4266
  :
 
4267
else
 
4268
  echo "$as_me: program exited with status $ac_status" >&5
 
4269
echo "$as_me: failed program was:" >&5
 
4270
sed 's/^/| /' conftest.$ac_ext >&5
 
4271
 
 
4272
( exit $ac_status )
 
4273
ac_cv_header_stdc=no
 
4274
fi
 
4275
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4276
fi
 
4277
fi
 
4278
fi
 
4279
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4280
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4281
if test $ac_cv_header_stdc = yes; then
 
4282
 
 
4283
cat >>confdefs.h <<\_ACEOF
 
4284
#define STDC_HEADERS 1
 
4285
_ACEOF
 
4286
 
 
4287
fi
 
4288
 
 
4289
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4290
 
 
4291
 
 
4292
 
 
4293
 
 
4294
 
 
4295
 
 
4296
 
 
4297
 
 
4298
 
 
4299
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4300
                  inttypes.h stdint.h unistd.h
 
4301
do
 
4302
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4303
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4304
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4307
else
 
4308
  cat >conftest.$ac_ext <<_ACEOF
 
4309
/* confdefs.h.  */
 
4310
_ACEOF
 
4311
cat confdefs.h >>conftest.$ac_ext
 
4312
cat >>conftest.$ac_ext <<_ACEOF
 
4313
/* end confdefs.h.  */
 
4314
$ac_includes_default
 
4315
 
 
4316
#include <$ac_header>
 
4317
_ACEOF
 
4318
rm -f conftest.$ac_objext
 
4319
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4320
  (eval $ac_compile) 2>conftest.er1
 
4321
  ac_status=$?
 
4322
  grep -v '^ *+' conftest.er1 >conftest.err
 
4323
  rm -f conftest.er1
 
4324
  cat conftest.err >&5
 
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4326
  (exit $ac_status); } &&
 
4327
         { ac_try='test -z "$ac_c_werror_flag"
 
4328
                         || test ! -s conftest.err'
 
4329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4330
  (eval $ac_try) 2>&5
 
4331
  ac_status=$?
 
4332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4333
  (exit $ac_status); }; } &&
 
4334
         { ac_try='test -s conftest.$ac_objext'
 
4335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4336
  (eval $ac_try) 2>&5
 
4337
  ac_status=$?
 
4338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4339
  (exit $ac_status); }; }; then
 
4340
  eval "$as_ac_Header=yes"
 
4341
else
 
4342
  echo "$as_me: failed program was:" >&5
 
4343
sed 's/^/| /' conftest.$ac_ext >&5
 
4344
 
 
4345
eval "$as_ac_Header=no"
 
4346
fi
 
4347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4348
fi
 
4349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4351
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4352
  cat >>confdefs.h <<_ACEOF
 
4353
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4354
_ACEOF
 
4355
 
 
4356
fi
 
4357
 
 
4358
done
 
4359
 
 
4360
 
 
4361
 
 
4362
for ac_header in dlfcn.h
 
4363
do
 
4364
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4365
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4366
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4367
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4370
fi
 
4371
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4372
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4373
else
 
4374
  # Is the header compilable?
 
4375
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4376
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4377
cat >conftest.$ac_ext <<_ACEOF
 
4378
/* confdefs.h.  */
 
4379
_ACEOF
 
4380
cat confdefs.h >>conftest.$ac_ext
 
4381
cat >>conftest.$ac_ext <<_ACEOF
 
4382
/* end confdefs.h.  */
 
4383
$ac_includes_default
 
4384
#include <$ac_header>
 
4385
_ACEOF
 
4386
rm -f conftest.$ac_objext
 
4387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4388
  (eval $ac_compile) 2>conftest.er1
 
4389
  ac_status=$?
 
4390
  grep -v '^ *+' conftest.er1 >conftest.err
 
4391
  rm -f conftest.er1
 
4392
  cat conftest.err >&5
 
4393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4394
  (exit $ac_status); } &&
 
4395
         { ac_try='test -z "$ac_c_werror_flag"
 
4396
                         || test ! -s conftest.err'
 
4397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4398
  (eval $ac_try) 2>&5
 
4399
  ac_status=$?
 
4400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4401
  (exit $ac_status); }; } &&
 
4402
         { ac_try='test -s conftest.$ac_objext'
 
4403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4404
  (eval $ac_try) 2>&5
 
4405
  ac_status=$?
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); }; }; then
 
4408
  ac_header_compiler=yes
 
4409
else
 
4410
  echo "$as_me: failed program was:" >&5
 
4411
sed 's/^/| /' conftest.$ac_ext >&5
 
4412
 
 
4413
ac_header_compiler=no
 
4414
fi
 
4415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4416
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4417
echo "${ECHO_T}$ac_header_compiler" >&6
 
4418
 
 
4419
# Is the header present?
 
4420
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4421
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4422
cat >conftest.$ac_ext <<_ACEOF
 
4423
/* confdefs.h.  */
 
4424
_ACEOF
 
4425
cat confdefs.h >>conftest.$ac_ext
 
4426
cat >>conftest.$ac_ext <<_ACEOF
 
4427
/* end confdefs.h.  */
 
4428
#include <$ac_header>
 
4429
_ACEOF
 
4430
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4431
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4432
  ac_status=$?
 
4433
  grep -v '^ *+' conftest.er1 >conftest.err
 
4434
  rm -f conftest.er1
 
4435
  cat conftest.err >&5
 
4436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4437
  (exit $ac_status); } >/dev/null; then
 
4438
  if test -s conftest.err; then
 
4439
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4440
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4441
  else
 
4442
    ac_cpp_err=
 
4443
  fi
 
4444
else
 
4445
  ac_cpp_err=yes
 
4446
fi
 
4447
if test -z "$ac_cpp_err"; then
 
4448
  ac_header_preproc=yes
 
4449
else
 
4450
  echo "$as_me: failed program was:" >&5
 
4451
sed 's/^/| /' conftest.$ac_ext >&5
 
4452
 
 
4453
  ac_header_preproc=no
 
4454
fi
 
4455
rm -f conftest.err conftest.$ac_ext
 
4456
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4457
echo "${ECHO_T}$ac_header_preproc" >&6
 
4458
 
 
4459
# So?  What about this header?
 
4460
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4461
  yes:no: )
 
4462
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4463
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4464
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4465
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4466
    ac_header_preproc=yes
 
4467
    ;;
 
4468
  no:yes:* )
 
4469
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4470
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4471
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4472
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4473
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4474
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4475
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4476
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4477
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4478
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4479
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4480
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4481
    (
 
4482
      cat <<\_ASBOX
 
4483
## ------------------------------------------ ##
 
4484
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4485
## ------------------------------------------ ##
 
4486
_ASBOX
 
4487
    ) |
 
4488
      sed "s/^/$as_me: WARNING:     /" >&2
 
4489
    ;;
 
4490
esac
 
4491
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4492
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4493
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4495
else
 
4496
  eval "$as_ac_Header=\$ac_header_preproc"
 
4497
fi
 
4498
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4499
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4500
 
 
4501
fi
 
4502
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4503
  cat >>confdefs.h <<_ACEOF
 
4504
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4505
_ACEOF
 
4506
 
 
4507
fi
 
4508
 
 
4509
done
 
4510
 
 
4511
ac_ext=cc
 
4512
ac_cpp='$CXXCPP $CPPFLAGS'
 
4513
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4514
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4515
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4516
if test -n "$ac_tool_prefix"; then
 
4517
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4518
  do
 
4519
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4520
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4521
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4523
if test "${ac_cv_prog_CXX+set}" = set; then
 
4524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4525
else
 
4526
  if test -n "$CXX"; then
 
4527
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4528
else
 
4529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4530
for as_dir in $PATH
 
4531
do
 
4532
  IFS=$as_save_IFS
 
4533
  test -z "$as_dir" && as_dir=.
 
4534
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4535
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4536
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4537
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4538
    break 2
 
4539
  fi
 
4540
done
 
4541
done
 
4542
 
 
4543
fi
 
4544
fi
 
4545
CXX=$ac_cv_prog_CXX
 
4546
if test -n "$CXX"; then
 
4547
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4548
echo "${ECHO_T}$CXX" >&6
 
4549
else
 
4550
  echo "$as_me:$LINENO: result: no" >&5
 
4551
echo "${ECHO_T}no" >&6
 
4552
fi
 
4553
 
 
4554
    test -n "$CXX" && break
 
4555
  done
 
4556
fi
 
4557
if test -z "$CXX"; then
 
4558
  ac_ct_CXX=$CXX
 
4559
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4560
do
 
4561
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4562
set dummy $ac_prog; ac_word=$2
 
4563
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4564
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4565
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4567
else
 
4568
  if test -n "$ac_ct_CXX"; then
 
4569
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4570
else
 
4571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4572
for as_dir in $PATH
 
4573
do
 
4574
  IFS=$as_save_IFS
 
4575
  test -z "$as_dir" && as_dir=.
 
4576
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4577
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4578
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4579
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4580
    break 2
 
4581
  fi
 
4582
done
 
4583
done
 
4584
 
 
4585
fi
 
4586
fi
 
4587
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4588
if test -n "$ac_ct_CXX"; then
 
4589
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4590
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4591
else
 
4592
  echo "$as_me:$LINENO: result: no" >&5
 
4593
echo "${ECHO_T}no" >&6
 
4594
fi
 
4595
 
 
4596
  test -n "$ac_ct_CXX" && break
 
4597
done
 
4598
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4599
 
 
4600
  CXX=$ac_ct_CXX
 
4601
fi
 
4602
 
 
4603
 
 
4604
# Provide some information about the compiler.
 
4605
echo "$as_me:$LINENO:" \
 
4606
     "checking for C++ compiler version" >&5
 
4607
ac_compiler=`set X $ac_compile; echo $2`
 
4608
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4609
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4610
  ac_status=$?
 
4611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4612
  (exit $ac_status); }
 
4613
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4614
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4615
  ac_status=$?
 
4616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4617
  (exit $ac_status); }
 
4618
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4619
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4620
  ac_status=$?
 
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4622
  (exit $ac_status); }
 
4623
 
 
4624
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4625
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4626
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4628
else
 
4629
  cat >conftest.$ac_ext <<_ACEOF
 
4630
/* confdefs.h.  */
 
4631
_ACEOF
 
4632
cat confdefs.h >>conftest.$ac_ext
 
4633
cat >>conftest.$ac_ext <<_ACEOF
 
4634
/* end confdefs.h.  */
 
4635
 
 
4636
int
 
4637
main ()
 
4638
{
 
4639
#ifndef __GNUC__
 
4640
       choke me
 
4641
#endif
 
4642
 
 
4643
  ;
 
4644
  return 0;
 
4645
}
 
4646
_ACEOF
 
4647
rm -f conftest.$ac_objext
 
4648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4649
  (eval $ac_compile) 2>conftest.er1
 
4650
  ac_status=$?
 
4651
  grep -v '^ *+' conftest.er1 >conftest.err
 
4652
  rm -f conftest.er1
 
4653
  cat conftest.err >&5
 
4654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4655
  (exit $ac_status); } &&
 
4656
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4657
                         || test ! -s conftest.err'
 
4658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4659
  (eval $ac_try) 2>&5
 
4660
  ac_status=$?
 
4661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4662
  (exit $ac_status); }; } &&
 
4663
         { ac_try='test -s conftest.$ac_objext'
 
4664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4665
  (eval $ac_try) 2>&5
 
4666
  ac_status=$?
 
4667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4668
  (exit $ac_status); }; }; then
 
4669
  ac_compiler_gnu=yes
 
4670
else
 
4671
  echo "$as_me: failed program was:" >&5
 
4672
sed 's/^/| /' conftest.$ac_ext >&5
 
4673
 
 
4674
ac_compiler_gnu=no
 
4675
fi
 
4676
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4677
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4678
 
 
4679
fi
 
4680
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4681
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4682
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4683
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4684
ac_save_CXXFLAGS=$CXXFLAGS
 
4685
CXXFLAGS="-g"
 
4686
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4687
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4688
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4690
else
 
4691
  cat >conftest.$ac_ext <<_ACEOF
 
4692
/* confdefs.h.  */
 
4693
_ACEOF
 
4694
cat confdefs.h >>conftest.$ac_ext
 
4695
cat >>conftest.$ac_ext <<_ACEOF
 
4696
/* end confdefs.h.  */
 
4697
 
 
4698
int
 
4699
main ()
 
4700
{
 
4701
 
 
4702
  ;
 
4703
  return 0;
 
4704
}
 
4705
_ACEOF
 
4706
rm -f conftest.$ac_objext
 
4707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4708
  (eval $ac_compile) 2>conftest.er1
 
4709
  ac_status=$?
 
4710
  grep -v '^ *+' conftest.er1 >conftest.err
 
4711
  rm -f conftest.er1
 
4712
  cat conftest.err >&5
 
4713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4714
  (exit $ac_status); } &&
 
4715
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4716
                         || test ! -s conftest.err'
 
4717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4718
  (eval $ac_try) 2>&5
 
4719
  ac_status=$?
 
4720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4721
  (exit $ac_status); }; } &&
 
4722
         { ac_try='test -s conftest.$ac_objext'
 
4723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4724
  (eval $ac_try) 2>&5
 
4725
  ac_status=$?
 
4726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4727
  (exit $ac_status); }; }; then
 
4728
  ac_cv_prog_cxx_g=yes
 
4729
else
 
4730
  echo "$as_me: failed program was:" >&5
 
4731
sed 's/^/| /' conftest.$ac_ext >&5
 
4732
 
 
4733
ac_cv_prog_cxx_g=no
 
4734
fi
 
4735
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4736
fi
 
4737
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4738
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4739
if test "$ac_test_CXXFLAGS" = set; then
 
4740
  CXXFLAGS=$ac_save_CXXFLAGS
 
4741
elif test $ac_cv_prog_cxx_g = yes; then
 
4742
  if test "$GXX" = yes; then
 
4743
    CXXFLAGS="-g -O2"
 
4744
  else
 
4745
    CXXFLAGS="-g"
 
4746
  fi
 
4747
else
 
4748
  if test "$GXX" = yes; then
 
4749
    CXXFLAGS="-O2"
 
4750
  else
 
4751
    CXXFLAGS=
 
4752
  fi
 
4753
fi
 
4754
for ac_declaration in \
 
4755
   '' \
 
4756
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4757
   'extern "C" void std::exit (int); using std::exit;' \
 
4758
   'extern "C" void exit (int) throw ();' \
 
4759
   'extern "C" void exit (int);' \
 
4760
   'void exit (int);'
 
4761
do
 
4762
  cat >conftest.$ac_ext <<_ACEOF
 
4763
/* confdefs.h.  */
 
4764
_ACEOF
 
4765
cat confdefs.h >>conftest.$ac_ext
 
4766
cat >>conftest.$ac_ext <<_ACEOF
 
4767
/* end confdefs.h.  */
 
4768
$ac_declaration
 
4769
#include <stdlib.h>
 
4770
int
 
4771
main ()
 
4772
{
 
4773
exit (42);
 
4774
  ;
 
4775
  return 0;
 
4776
}
 
4777
_ACEOF
 
4778
rm -f conftest.$ac_objext
 
4779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4780
  (eval $ac_compile) 2>conftest.er1
 
4781
  ac_status=$?
 
4782
  grep -v '^ *+' conftest.er1 >conftest.err
 
4783
  rm -f conftest.er1
 
4784
  cat conftest.err >&5
 
4785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4786
  (exit $ac_status); } &&
 
4787
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4788
                         || test ! -s conftest.err'
 
4789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4790
  (eval $ac_try) 2>&5
 
4791
  ac_status=$?
 
4792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4793
  (exit $ac_status); }; } &&
 
4794
         { ac_try='test -s conftest.$ac_objext'
 
4795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4796
  (eval $ac_try) 2>&5
 
4797
  ac_status=$?
 
4798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4799
  (exit $ac_status); }; }; then
 
4800
  :
 
4801
else
 
4802
  echo "$as_me: failed program was:" >&5
 
4803
sed 's/^/| /' conftest.$ac_ext >&5
 
4804
 
 
4805
continue
 
4806
fi
 
4807
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4808
  cat >conftest.$ac_ext <<_ACEOF
 
4809
/* confdefs.h.  */
 
4810
_ACEOF
 
4811
cat confdefs.h >>conftest.$ac_ext
 
4812
cat >>conftest.$ac_ext <<_ACEOF
 
4813
/* end confdefs.h.  */
 
4814
$ac_declaration
 
4815
int
 
4816
main ()
 
4817
{
 
4818
exit (42);
 
4819
  ;
 
4820
  return 0;
 
4821
}
 
4822
_ACEOF
 
4823
rm -f conftest.$ac_objext
 
4824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4825
  (eval $ac_compile) 2>conftest.er1
 
4826
  ac_status=$?
 
4827
  grep -v '^ *+' conftest.er1 >conftest.err
 
4828
  rm -f conftest.er1
 
4829
  cat conftest.err >&5
 
4830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4831
  (exit $ac_status); } &&
 
4832
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4833
                         || test ! -s conftest.err'
 
4834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4835
  (eval $ac_try) 2>&5
 
4836
  ac_status=$?
 
4837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4838
  (exit $ac_status); }; } &&
 
4839
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
4845
  break
 
4846
else
 
4847
  echo "$as_me: failed program was:" >&5
 
4848
sed 's/^/| /' conftest.$ac_ext >&5
 
4849
 
 
4850
fi
 
4851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4852
done
 
4853
rm -f conftest*
 
4854
if test -n "$ac_declaration"; then
 
4855
  echo '#ifdef __cplusplus' >>confdefs.h
 
4856
  echo $ac_declaration      >>confdefs.h
 
4857
  echo '#endif'             >>confdefs.h
 
4858
fi
 
4859
 
 
4860
ac_ext=cc
 
4861
ac_cpp='$CXXCPP $CPPFLAGS'
 
4862
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4863
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4864
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4865
 
 
4866
depcc="$CXX"  am_compiler_list=
 
4867
 
 
4868
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4869
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4870
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4872
else
 
4873
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4874
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4875
  # making bogus files that we don't know about and never remove.  For
 
4876
  # instance it was reported that on HP-UX the gcc test will end up
 
4877
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4878
  # in D'.
 
4879
  mkdir conftest.dir
 
4880
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4881
  # using a relative directory.
 
4882
  cp "$am_depcomp" conftest.dir
 
4883
  cd conftest.dir
 
4884
  # We will build objects and dependencies in a subdirectory because
 
4885
  # it helps to detect inapplicable dependency modes.  For instance
 
4886
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4887
  # side effect of compilation, but ICC will put the dependencies in
 
4888
  # the current directory while Tru64 will put them in the object
 
4889
  # directory.
 
4890
  mkdir sub
 
4891
 
 
4892
  am_cv_CXX_dependencies_compiler_type=none
 
4893
  if test "$am_compiler_list" = ""; then
 
4894
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4895
  fi
 
4896
  for depmode in $am_compiler_list; do
 
4897
    # Setup a source with many dependencies, because some compilers
 
4898
    # like to wrap large dependency lists on column 80 (with \), and
 
4899
    # we should not choose a depcomp mode which is confused by this.
 
4900
    #
 
4901
    # We need to recreate these files for each test, as the compiler may
 
4902
    # overwrite some of them when testing with obscure command lines.
 
4903
    # This happens at least with the AIX C compiler.
 
4904
    : > sub/conftest.c
 
4905
    for i in 1 2 3 4 5 6; do
 
4906
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4907
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4908
      # Solaris 8's {/usr,}/bin/sh.
 
4909
      touch sub/conftst$i.h
 
4910
    done
 
4911
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4912
 
 
4913
    case $depmode in
 
4914
    nosideeffect)
 
4915
      # after this tag, mechanisms are not by side-effect, so they'll
 
4916
      # only be used when explicitly requested
 
4917
      if test "x$enable_dependency_tracking" = xyes; then
 
4918
        continue
 
4919
      else
 
4920
        break
 
4921
      fi
 
4922
      ;;
 
4923
    none) break ;;
 
4924
    esac
 
4925
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4926
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4927
    # handle `-M -o', and we need to detect this.
 
4928
    if depmode=$depmode \
 
4929
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4930
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4931
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4932
         >/dev/null 2>conftest.err &&
 
4933
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4934
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4935
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4936
      # icc doesn't choke on unknown options, it will just issue warnings
 
4937
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4938
      # that says an option was ignored or not supported.
 
4939
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4940
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4941
      # The diagnosis changed in icc 8.0:
 
4942
      #   icc: Command line remark: option '-MP' not supported
 
4943
      if (grep 'ignoring option' conftest.err ||
 
4944
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4945
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4946
        break
 
4947
      fi
 
4948
    fi
 
4949
  done
 
4950
 
 
4951
  cd ..
 
4952
  rm -rf conftest.dir
 
4953
else
 
4954
  am_cv_CXX_dependencies_compiler_type=none
 
4955
fi
 
4956
 
 
4957
fi
 
4958
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4959
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4960
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4961
 
 
4962
 
 
4963
 
 
4964
if
 
4965
  test "x$enable_dependency_tracking" != xno \
 
4966
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4967
  am__fastdepCXX_TRUE=
 
4968
  am__fastdepCXX_FALSE='#'
 
4969
else
 
4970
  am__fastdepCXX_TRUE='#'
 
4971
  am__fastdepCXX_FALSE=
 
4972
fi
 
4973
 
 
4974
 
 
4975
 
 
4976
 
 
4977
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4978
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4979
    (test "X$CXX" != "Xg++"))) ; then
 
4980
  ac_ext=cc
 
4981
ac_cpp='$CXXCPP $CPPFLAGS'
 
4982
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4983
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4984
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4985
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4986
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4987
if test -z "$CXXCPP"; then
 
4988
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4990
else
 
4991
      # Double quotes because CXXCPP needs to be expanded
 
4992
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4993
    do
 
4994
      ac_preproc_ok=false
 
4995
for ac_cxx_preproc_warn_flag in '' yes
 
4996
do
 
4997
  # Use a header file that comes with gcc, so configuring glibc
 
4998
  # with a fresh cross-compiler works.
 
4999
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5000
  # <limits.h> exists even on freestanding compilers.
 
5001
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5002
  # not just through cpp. "Syntax error" is here to catch this case.
 
5003
  cat >conftest.$ac_ext <<_ACEOF
 
5004
/* confdefs.h.  */
 
5005
_ACEOF
 
5006
cat confdefs.h >>conftest.$ac_ext
 
5007
cat >>conftest.$ac_ext <<_ACEOF
 
5008
/* end confdefs.h.  */
 
5009
#ifdef __STDC__
 
5010
# include <limits.h>
 
5011
#else
 
5012
# include <assert.h>
 
5013
#endif
 
5014
                     Syntax error
 
5015
_ACEOF
 
5016
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5017
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5018
  ac_status=$?
 
5019
  grep -v '^ *+' conftest.er1 >conftest.err
 
5020
  rm -f conftest.er1
 
5021
  cat conftest.err >&5
 
5022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5023
  (exit $ac_status); } >/dev/null; then
 
5024
  if test -s conftest.err; then
 
5025
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5026
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5027
  else
 
5028
    ac_cpp_err=
 
5029
  fi
 
5030
else
 
5031
  ac_cpp_err=yes
 
5032
fi
 
5033
if test -z "$ac_cpp_err"; then
 
5034
  :
 
5035
else
 
5036
  echo "$as_me: failed program was:" >&5
 
5037
sed 's/^/| /' conftest.$ac_ext >&5
 
5038
 
 
5039
  # Broken: fails on valid input.
 
5040
continue
 
5041
fi
 
5042
rm -f conftest.err conftest.$ac_ext
 
5043
 
 
5044
  # OK, works on sane cases.  Now check whether non-existent headers
 
5045
  # can be detected and how.
 
5046
  cat >conftest.$ac_ext <<_ACEOF
 
5047
/* confdefs.h.  */
 
5048
_ACEOF
 
5049
cat confdefs.h >>conftest.$ac_ext
 
5050
cat >>conftest.$ac_ext <<_ACEOF
 
5051
/* end confdefs.h.  */
 
5052
#include <ac_nonexistent.h>
 
5053
_ACEOF
 
5054
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5055
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5056
  ac_status=$?
 
5057
  grep -v '^ *+' conftest.er1 >conftest.err
 
5058
  rm -f conftest.er1
 
5059
  cat conftest.err >&5
 
5060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5061
  (exit $ac_status); } >/dev/null; then
 
5062
  if test -s conftest.err; then
 
5063
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5064
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5065
  else
 
5066
    ac_cpp_err=
 
5067
  fi
 
5068
else
 
5069
  ac_cpp_err=yes
 
5070
fi
 
5071
if test -z "$ac_cpp_err"; then
 
5072
  # Broken: success on invalid input.
 
5073
continue
 
5074
else
 
5075
  echo "$as_me: failed program was:" >&5
 
5076
sed 's/^/| /' conftest.$ac_ext >&5
 
5077
 
 
5078
  # Passes both tests.
 
5079
ac_preproc_ok=:
 
5080
break
 
5081
fi
 
5082
rm -f conftest.err conftest.$ac_ext
 
5083
 
 
5084
done
 
5085
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5086
rm -f conftest.err conftest.$ac_ext
 
5087
if $ac_preproc_ok; then
 
5088
  break
 
5089
fi
 
5090
 
 
5091
    done
 
5092
    ac_cv_prog_CXXCPP=$CXXCPP
 
5093
 
 
5094
fi
 
5095
  CXXCPP=$ac_cv_prog_CXXCPP
 
5096
else
 
5097
  ac_cv_prog_CXXCPP=$CXXCPP
 
5098
fi
 
5099
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5100
echo "${ECHO_T}$CXXCPP" >&6
 
5101
ac_preproc_ok=false
 
5102
for ac_cxx_preproc_warn_flag in '' yes
 
5103
do
 
5104
  # Use a header file that comes with gcc, so configuring glibc
 
5105
  # with a fresh cross-compiler works.
 
5106
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5107
  # <limits.h> exists even on freestanding compilers.
 
5108
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5109
  # not just through cpp. "Syntax error" is here to catch this case.
 
5110
  cat >conftest.$ac_ext <<_ACEOF
 
5111
/* confdefs.h.  */
 
5112
_ACEOF
 
5113
cat confdefs.h >>conftest.$ac_ext
 
5114
cat >>conftest.$ac_ext <<_ACEOF
 
5115
/* end confdefs.h.  */
 
5116
#ifdef __STDC__
 
5117
# include <limits.h>
 
5118
#else
 
5119
# include <assert.h>
 
5120
#endif
 
5121
                     Syntax error
 
5122
_ACEOF
 
5123
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5124
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5125
  ac_status=$?
 
5126
  grep -v '^ *+' conftest.er1 >conftest.err
 
5127
  rm -f conftest.er1
 
5128
  cat conftest.err >&5
 
5129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5130
  (exit $ac_status); } >/dev/null; then
 
5131
  if test -s conftest.err; then
 
5132
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5133
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5134
  else
 
5135
    ac_cpp_err=
 
5136
  fi
 
5137
else
 
5138
  ac_cpp_err=yes
 
5139
fi
 
5140
if test -z "$ac_cpp_err"; then
 
5141
  :
 
5142
else
 
5143
  echo "$as_me: failed program was:" >&5
 
5144
sed 's/^/| /' conftest.$ac_ext >&5
 
5145
 
 
5146
  # Broken: fails on valid input.
 
5147
continue
 
5148
fi
 
5149
rm -f conftest.err conftest.$ac_ext
 
5150
 
 
5151
  # OK, works on sane cases.  Now check whether non-existent headers
 
5152
  # can be detected and how.
 
5153
  cat >conftest.$ac_ext <<_ACEOF
 
5154
/* confdefs.h.  */
 
5155
_ACEOF
 
5156
cat confdefs.h >>conftest.$ac_ext
 
5157
cat >>conftest.$ac_ext <<_ACEOF
 
5158
/* end confdefs.h.  */
 
5159
#include <ac_nonexistent.h>
 
5160
_ACEOF
 
5161
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5162
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5163
  ac_status=$?
 
5164
  grep -v '^ *+' conftest.er1 >conftest.err
 
5165
  rm -f conftest.er1
 
5166
  cat conftest.err >&5
 
5167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5168
  (exit $ac_status); } >/dev/null; then
 
5169
  if test -s conftest.err; then
 
5170
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5171
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5172
  else
 
5173
    ac_cpp_err=
 
5174
  fi
 
5175
else
 
5176
  ac_cpp_err=yes
 
5177
fi
 
5178
if test -z "$ac_cpp_err"; then
 
5179
  # Broken: success on invalid input.
 
5180
continue
 
5181
else
 
5182
  echo "$as_me: failed program was:" >&5
 
5183
sed 's/^/| /' conftest.$ac_ext >&5
 
5184
 
 
5185
  # Passes both tests.
 
5186
ac_preproc_ok=:
 
5187
break
 
5188
fi
 
5189
rm -f conftest.err conftest.$ac_ext
 
5190
 
 
5191
done
 
5192
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5193
rm -f conftest.err conftest.$ac_ext
 
5194
if $ac_preproc_ok; then
 
5195
  :
 
5196
else
 
5197
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5198
See \`config.log' for more details." >&5
 
5199
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5200
See \`config.log' for more details." >&2;}
 
5201
   { (exit 1); exit 1; }; }
 
5202
fi
 
5203
 
 
5204
ac_ext=cc
 
5205
ac_cpp='$CXXCPP $CPPFLAGS'
 
5206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5209
 
 
5210
fi
 
5211
 
 
5212
 
 
5213
ac_ext=f
 
5214
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5215
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5216
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5217
if test -n "$ac_tool_prefix"; then
 
5218
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5219
  do
 
5220
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5222
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5224
if test "${ac_cv_prog_F77+set}" = set; then
 
5225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5226
else
 
5227
  if test -n "$F77"; then
 
5228
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5229
else
 
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5231
for as_dir in $PATH
 
5232
do
 
5233
  IFS=$as_save_IFS
 
5234
  test -z "$as_dir" && as_dir=.
 
5235
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5236
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5237
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5238
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5239
    break 2
 
5240
  fi
 
5241
done
 
5242
done
 
5243
 
 
5244
fi
 
5245
fi
 
5246
F77=$ac_cv_prog_F77
 
5247
if test -n "$F77"; then
 
5248
  echo "$as_me:$LINENO: result: $F77" >&5
 
5249
echo "${ECHO_T}$F77" >&6
 
5250
else
 
5251
  echo "$as_me:$LINENO: result: no" >&5
 
5252
echo "${ECHO_T}no" >&6
 
5253
fi
 
5254
 
 
5255
    test -n "$F77" && break
 
5256
  done
 
5257
fi
 
5258
if test -z "$F77"; then
 
5259
  ac_ct_F77=$F77
 
5260
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5261
do
 
5262
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5263
set dummy $ac_prog; ac_word=$2
 
5264
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5266
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5268
else
 
5269
  if test -n "$ac_ct_F77"; then
 
5270
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5271
else
 
5272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5273
for as_dir in $PATH
 
5274
do
 
5275
  IFS=$as_save_IFS
 
5276
  test -z "$as_dir" && as_dir=.
 
5277
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5278
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5279
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5280
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5281
    break 2
 
5282
  fi
 
5283
done
 
5284
done
 
5285
 
 
5286
fi
 
5287
fi
 
5288
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5289
if test -n "$ac_ct_F77"; then
 
5290
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5291
echo "${ECHO_T}$ac_ct_F77" >&6
 
5292
else
 
5293
  echo "$as_me:$LINENO: result: no" >&5
 
5294
echo "${ECHO_T}no" >&6
 
5295
fi
 
5296
 
 
5297
  test -n "$ac_ct_F77" && break
 
5298
done
 
5299
 
 
5300
  F77=$ac_ct_F77
 
5301
fi
 
5302
 
 
5303
 
 
5304
# Provide some information about the compiler.
 
5305
echo "$as_me:5305:" \
 
5306
     "checking for Fortran 77 compiler version" >&5
 
5307
ac_compiler=`set X $ac_compile; echo $2`
 
5308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5309
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5310
  ac_status=$?
 
5311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5312
  (exit $ac_status); }
 
5313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5314
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5315
  ac_status=$?
 
5316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5317
  (exit $ac_status); }
 
5318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5319
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5320
  ac_status=$?
 
5321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5322
  (exit $ac_status); }
 
5323
rm -f a.out
 
5324
 
 
5325
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5326
# input file.  (Note that this only needs to work for GNU compilers.)
 
5327
ac_save_ext=$ac_ext
 
5328
ac_ext=F
 
5329
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5330
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5331
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5333
else
 
5334
  cat >conftest.$ac_ext <<_ACEOF
 
5335
      program main
 
5336
#ifndef __GNUC__
 
5337
       choke me
 
5338
#endif
 
5339
 
 
5340
      end
 
5341
_ACEOF
 
5342
rm -f conftest.$ac_objext
 
5343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5344
  (eval $ac_compile) 2>conftest.er1
 
5345
  ac_status=$?
 
5346
  grep -v '^ *+' conftest.er1 >conftest.err
 
5347
  rm -f conftest.er1
 
5348
  cat conftest.err >&5
 
5349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5350
  (exit $ac_status); } &&
 
5351
         { ac_try='test -z "$ac_f77_werror_flag"
 
5352
                         || test ! -s conftest.err'
 
5353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5354
  (eval $ac_try) 2>&5
 
5355
  ac_status=$?
 
5356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5357
  (exit $ac_status); }; } &&
 
5358
         { ac_try='test -s conftest.$ac_objext'
 
5359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5360
  (eval $ac_try) 2>&5
 
5361
  ac_status=$?
 
5362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5363
  (exit $ac_status); }; }; then
 
5364
  ac_compiler_gnu=yes
 
5365
else
 
5366
  echo "$as_me: failed program was:" >&5
 
5367
sed 's/^/| /' conftest.$ac_ext >&5
 
5368
 
 
5369
ac_compiler_gnu=no
 
5370
fi
 
5371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5372
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5373
 
 
5374
fi
 
5375
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5376
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5377
ac_ext=$ac_save_ext
 
5378
ac_test_FFLAGS=${FFLAGS+set}
 
5379
ac_save_FFLAGS=$FFLAGS
 
5380
FFLAGS=
 
5381
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5382
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5383
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5385
else
 
5386
  FFLAGS=-g
 
5387
cat >conftest.$ac_ext <<_ACEOF
 
5388
      program main
 
5389
 
 
5390
      end
 
5391
_ACEOF
 
5392
rm -f conftest.$ac_objext
 
5393
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5394
  (eval $ac_compile) 2>conftest.er1
 
5395
  ac_status=$?
 
5396
  grep -v '^ *+' conftest.er1 >conftest.err
 
5397
  rm -f conftest.er1
 
5398
  cat conftest.err >&5
 
5399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5400
  (exit $ac_status); } &&
 
5401
         { ac_try='test -z "$ac_f77_werror_flag"
 
5402
                         || test ! -s conftest.err'
 
5403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5404
  (eval $ac_try) 2>&5
 
5405
  ac_status=$?
 
5406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5407
  (exit $ac_status); }; } &&
 
5408
         { ac_try='test -s conftest.$ac_objext'
 
5409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5410
  (eval $ac_try) 2>&5
 
5411
  ac_status=$?
 
5412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5413
  (exit $ac_status); }; }; then
 
5414
  ac_cv_prog_f77_g=yes
 
5415
else
 
5416
  echo "$as_me: failed program was:" >&5
 
5417
sed 's/^/| /' conftest.$ac_ext >&5
 
5418
 
 
5419
ac_cv_prog_f77_g=no
 
5420
fi
 
5421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5422
 
 
5423
fi
 
5424
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5425
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5426
if test "$ac_test_FFLAGS" = set; then
 
5427
  FFLAGS=$ac_save_FFLAGS
 
5428
elif test $ac_cv_prog_f77_g = yes; then
 
5429
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5430
    FFLAGS="-g -O2"
 
5431
  else
 
5432
    FFLAGS="-g"
 
5433
  fi
 
5434
else
 
5435
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5436
    FFLAGS="-O2"
 
5437
  else
 
5438
    FFLAGS=
 
5439
  fi
 
5440
fi
 
5441
 
 
5442
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5443
ac_ext=c
 
5444
ac_cpp='$CPP $CPPFLAGS'
 
5445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5448
 
 
5449
 
 
5450
 
 
5451
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5452
 
 
5453
# find the maximum length of command line arguments
 
5454
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5455
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5456
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5458
else
 
5459
    i=0
 
5460
  teststring="ABCD"
 
5461
 
 
5462
  case $build_os in
 
5463
  msdosdjgpp*)
 
5464
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5465
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5466
    # during glob expansion).  Even if it were fixed, the result of this
 
5467
    # check would be larger than it should be.
 
5468
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5469
    ;;
 
5470
 
 
5471
  gnu*)
 
5472
    # Under GNU Hurd, this test is not required because there is
 
5473
    # no limit to the length of command line arguments.
 
5474
    # Libtool will interpret -1 as no limit whatsoever
 
5475
    lt_cv_sys_max_cmd_len=-1;
 
5476
    ;;
 
5477
 
 
5478
  cygwin* | mingw*)
 
5479
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5480
    # about 5 minutes as the teststring grows exponentially.
 
5481
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5482
    # you end up with a "frozen" computer, even though with patience
 
5483
    # the test eventually succeeds (with a max line length of 256k).
 
5484
    # Instead, let's just punt: use the minimum linelength reported by
 
5485
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5486
    lt_cv_sys_max_cmd_len=8192;
 
5487
    ;;
 
5488
 
 
5489
  amigaos*)
 
5490
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5491
    # So we just punt and use a minimum line length of 8192.
 
5492
    lt_cv_sys_max_cmd_len=8192;
 
5493
    ;;
 
5494
 
 
5495
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5496
    # This has been around since 386BSD, at least.  Likely further.
 
5497
    if test -x /sbin/sysctl; then
 
5498
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5499
    elif test -x /usr/sbin/sysctl; then
 
5500
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5501
    else
 
5502
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5503
    fi
 
5504
    # And add a safety zone
 
5505
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5506
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5507
    ;;
 
5508
 
 
5509
  interix*)
 
5510
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5511
    lt_cv_sys_max_cmd_len=196608
 
5512
    ;;
 
5513
 
 
5514
  osf*)
 
5515
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5516
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5517
    # nice to cause kernel panics so lets avoid the loop below.
 
5518
    # First set a reasonable default.
 
5519
    lt_cv_sys_max_cmd_len=16384
 
5520
    #
 
5521
    if test -x /sbin/sysconfig; then
 
5522
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5523
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5524
      esac
 
5525
    fi
 
5526
    ;;
 
5527
  sco3.2v5*)
 
5528
    lt_cv_sys_max_cmd_len=102400
 
5529
    ;;
 
5530
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5531
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5532
    if test -n "$kargmax"; then
 
5533
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5534
    else
 
5535
      lt_cv_sys_max_cmd_len=32768
 
5536
    fi
 
5537
    ;;
 
5538
  *)
 
5539
    # If test is not a shell built-in, we'll probably end up computing a
 
5540
    # maximum length that is only half of the actual maximum length, but
 
5541
    # we can't tell.
 
5542
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5543
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5544
               = "XX$teststring") >/dev/null 2>&1 &&
 
5545
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5546
            lt_cv_sys_max_cmd_len=$new_result &&
 
5547
            test $i != 17 # 1/2 MB should be enough
 
5548
    do
 
5549
      i=`expr $i + 1`
 
5550
      teststring=$teststring$teststring
 
5551
    done
 
5552
    teststring=
 
5553
    # Add a significant safety factor because C++ compilers can tack on massive
 
5554
    # amounts of additional arguments before passing them to the linker.
 
5555
    # It appears as though 1/2 is a usable value.
 
5556
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5557
    ;;
 
5558
  esac
 
5559
 
 
5560
fi
 
5561
 
 
5562
if test -n $lt_cv_sys_max_cmd_len ; then
 
5563
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5564
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5565
else
 
5566
  echo "$as_me:$LINENO: result: none" >&5
 
5567
echo "${ECHO_T}none" >&6
 
5568
fi
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5574
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5575
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5576
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5578
else
 
5579
 
 
5580
# These are sane defaults that work on at least a few old systems.
 
5581
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5582
 
 
5583
# Character class describing NM global symbol codes.
 
5584
symcode='[BCDEGRST]'
 
5585
 
 
5586
# Regexp to match symbols that can be accessed directly from C.
 
5587
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5588
 
 
5589
# Transform an extracted symbol line into a proper C declaration
 
5590
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5591
 
 
5592
# Transform an extracted symbol line into symbol name and symbol address
 
5593
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'"
 
5594
 
 
5595
# Define system-specific variables.
 
5596
case $host_os in
 
5597
aix*)
 
5598
  symcode='[BCDT]'
 
5599
  ;;
 
5600
cygwin* | mingw* | pw32*)
 
5601
  symcode='[ABCDGISTW]'
 
5602
  ;;
 
5603
hpux*) # Its linker distinguishes data from code symbols
 
5604
  if test "$host_cpu" = ia64; then
 
5605
    symcode='[ABCDEGRST]'
 
5606
  fi
 
5607
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5608
  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'"
 
5609
  ;;
 
5610
linux*)
 
5611
  if test "$host_cpu" = ia64; then
 
5612
    symcode='[ABCDGIRSTW]'
 
5613
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5614
    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'"
 
5615
  fi
 
5616
  ;;
 
5617
irix* | nonstopux*)
 
5618
  symcode='[BCDEGRST]'
 
5619
  ;;
 
5620
osf*)
 
5621
  symcode='[BCDEGQRST]'
 
5622
  ;;
 
5623
solaris*)
 
5624
  symcode='[BDRT]'
 
5625
  ;;
 
5626
sco3.2v5*)
 
5627
  symcode='[DT]'
 
5628
  ;;
 
5629
sysv4.2uw2*)
 
5630
  symcode='[DT]'
 
5631
  ;;
 
5632
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5633
  symcode='[ABDT]'
 
5634
  ;;
 
5635
sysv4)
 
5636
  symcode='[DFNSTU]'
 
5637
  ;;
 
5638
esac
 
5639
 
 
5640
# Handle CRLF in mingw tool chain
 
5641
opt_cr=
 
5642
case $build_os in
 
5643
mingw*)
 
5644
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5645
  ;;
 
5646
esac
 
5647
 
 
5648
# If we're using GNU nm, then use its standard symbol codes.
 
5649
case `$NM -V 2>&1` in
 
5650
*GNU* | *'with BFD'*)
 
5651
  symcode='[ABCDGIRSTW]' ;;
 
5652
esac
 
5653
 
 
5654
# Try without a prefix undercore, then with it.
 
5655
for ac_symprfx in "" "_"; do
 
5656
 
 
5657
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5658
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5659
 
 
5660
  # Write the raw and C identifiers.
 
5661
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5662
 
 
5663
  # Check to see that the pipe works correctly.
 
5664
  pipe_works=no
 
5665
 
 
5666
  rm -f conftest*
 
5667
  cat > conftest.$ac_ext <<EOF
 
5668
#ifdef __cplusplus
 
5669
extern "C" {
 
5670
#endif
 
5671
char nm_test_var;
 
5672
void nm_test_func(){}
 
5673
#ifdef __cplusplus
 
5674
}
 
5675
#endif
 
5676
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5677
EOF
 
5678
 
 
5679
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5680
  (eval $ac_compile) 2>&5
 
5681
  ac_status=$?
 
5682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5683
  (exit $ac_status); }; then
 
5684
    # Now try to grab the symbols.
 
5685
    nlist=conftest.nm
 
5686
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5687
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5688
  ac_status=$?
 
5689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5690
  (exit $ac_status); } && test -s "$nlist"; then
 
5691
      # Try sorting and uniquifying the output.
 
5692
      if sort "$nlist" | uniq > "$nlist"T; then
 
5693
        mv -f "$nlist"T "$nlist"
 
5694
      else
 
5695
        rm -f "$nlist"T
 
5696
      fi
 
5697
 
 
5698
      # Make sure that we snagged all the symbols we need.
 
5699
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5700
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5701
          cat <<EOF > conftest.$ac_ext
 
5702
#ifdef __cplusplus
 
5703
extern "C" {
 
5704
#endif
 
5705
 
 
5706
EOF
 
5707
          # Now generate the symbol file.
 
5708
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5709
 
 
5710
          cat <<EOF >> conftest.$ac_ext
 
5711
#if defined (__STDC__) && __STDC__
 
5712
# define lt_ptr_t void *
 
5713
#else
 
5714
# define lt_ptr_t char *
 
5715
# define const
 
5716
#endif
 
5717
 
 
5718
/* The mapping between symbol names and symbols. */
 
5719
const struct {
 
5720
  const char *name;
 
5721
  lt_ptr_t address;
 
5722
}
 
5723
lt_preloaded_symbols[] =
 
5724
{
 
5725
EOF
 
5726
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5727
          cat <<\EOF >> conftest.$ac_ext
 
5728
  {0, (lt_ptr_t) 0}
 
5729
};
 
5730
 
 
5731
#ifdef __cplusplus
 
5732
}
 
5733
#endif
 
5734
EOF
 
5735
          # Now try linking the two files.
 
5736
          mv conftest.$ac_objext conftstm.$ac_objext
 
5737
          lt_save_LIBS="$LIBS"
 
5738
          lt_save_CFLAGS="$CFLAGS"
 
5739
          LIBS="conftstm.$ac_objext"
 
5740
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5741
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5742
  (eval $ac_link) 2>&5
 
5743
  ac_status=$?
 
5744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5745
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5746
            pipe_works=yes
 
5747
          fi
 
5748
          LIBS="$lt_save_LIBS"
 
5749
          CFLAGS="$lt_save_CFLAGS"
 
5750
        else
 
5751
          echo "cannot find nm_test_func in $nlist" >&5
 
5752
        fi
 
5753
      else
 
5754
        echo "cannot find nm_test_var in $nlist" >&5
 
5755
      fi
 
5756
    else
 
5757
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5758
    fi
 
5759
  else
 
5760
    echo "$progname: failed program was:" >&5
 
5761
    cat conftest.$ac_ext >&5
 
5762
  fi
 
5763
  rm -f conftest* conftst*
 
5764
 
 
5765
  # Do not use the global_symbol_pipe unless it works.
 
5766
  if test "$pipe_works" = yes; then
 
5767
    break
 
5768
  else
 
5769
    lt_cv_sys_global_symbol_pipe=
 
5770
  fi
 
5771
done
 
5772
 
 
5773
fi
 
5774
 
 
5775
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5776
  lt_cv_sys_global_symbol_to_cdecl=
 
5777
fi
 
5778
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5779
  echo "$as_me:$LINENO: result: failed" >&5
 
5780
echo "${ECHO_T}failed" >&6
 
5781
else
 
5782
  echo "$as_me:$LINENO: result: ok" >&5
 
5783
echo "${ECHO_T}ok" >&6
 
5784
fi
 
5785
 
 
5786
echo "$as_me:$LINENO: checking for objdir" >&5
 
5787
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5788
if test "${lt_cv_objdir+set}" = set; then
 
5789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5790
else
 
5791
  rm -f .libs 2>/dev/null
 
5792
mkdir .libs 2>/dev/null
 
5793
if test -d .libs; then
 
5794
  lt_cv_objdir=.libs
 
5795
else
 
5796
  # MS-DOS does not allow filenames that begin with a dot.
 
5797
  lt_cv_objdir=_libs
 
5798
fi
 
5799
rmdir .libs 2>/dev/null
 
5800
fi
 
5801
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5802
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5803
objdir=$lt_cv_objdir
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
case $host_os in
 
5810
aix3*)
 
5811
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5812
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5813
  # vanish in a puff of smoke.
 
5814
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5815
    COLLECT_NAMES=
 
5816
    export COLLECT_NAMES
 
5817
  fi
 
5818
  ;;
 
5819
esac
 
5820
 
 
5821
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5822
# metacharacters that are still active within double-quoted strings.
 
5823
Xsed='sed -e 1s/^X//'
 
5824
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5825
 
 
5826
# Same as above, but do not quote variable references.
 
5827
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5828
 
 
5829
# Sed substitution to delay expansion of an escaped shell variable in a
 
5830
# double_quote_subst'ed string.
 
5831
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5832
 
 
5833
# Sed substitution to avoid accidental globbing in evaled expressions
 
5834
no_glob_subst='s/\*/\\\*/g'
 
5835
 
 
5836
# Constants:
 
5837
rm="rm -f"
 
5838
 
 
5839
# Global variables:
 
5840
default_ofile=libtool
 
5841
can_build_shared=yes
 
5842
 
 
5843
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5844
# which needs '.lib').
 
5845
libext=a
 
5846
ltmain="$ac_aux_dir/ltmain.sh"
 
5847
ofile="$default_ofile"
 
5848
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5849
 
 
5850
if test -n "$ac_tool_prefix"; then
 
5851
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5852
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5853
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5854
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5855
if test "${ac_cv_prog_AR+set}" = set; then
 
5856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5857
else
 
5858
  if test -n "$AR"; then
 
5859
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5860
else
 
5861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5862
for as_dir in $PATH
 
5863
do
 
5864
  IFS=$as_save_IFS
 
5865
  test -z "$as_dir" && as_dir=.
 
5866
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5867
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5868
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5869
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5870
    break 2
 
5871
  fi
 
5872
done
 
5873
done
 
5874
 
 
5875
fi
 
5876
fi
 
5877
AR=$ac_cv_prog_AR
 
5878
if test -n "$AR"; then
 
5879
  echo "$as_me:$LINENO: result: $AR" >&5
 
5880
echo "${ECHO_T}$AR" >&6
 
5881
else
 
5882
  echo "$as_me:$LINENO: result: no" >&5
 
5883
echo "${ECHO_T}no" >&6
 
5884
fi
 
5885
 
 
5886
fi
 
5887
if test -z "$ac_cv_prog_AR"; then
 
5888
  ac_ct_AR=$AR
 
5889
  # Extract the first word of "ar", so it can be a program name with args.
 
5890
set dummy ar; ac_word=$2
 
5891
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5893
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5895
else
 
5896
  if test -n "$ac_ct_AR"; then
 
5897
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5898
else
 
5899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5900
for as_dir in $PATH
 
5901
do
 
5902
  IFS=$as_save_IFS
 
5903
  test -z "$as_dir" && as_dir=.
 
5904
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5905
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5906
    ac_cv_prog_ac_ct_AR="ar"
 
5907
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5908
    break 2
 
5909
  fi
 
5910
done
 
5911
done
 
5912
 
 
5913
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5914
fi
 
5915
fi
 
5916
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5917
if test -n "$ac_ct_AR"; then
 
5918
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5919
echo "${ECHO_T}$ac_ct_AR" >&6
 
5920
else
 
5921
  echo "$as_me:$LINENO: result: no" >&5
 
5922
echo "${ECHO_T}no" >&6
 
5923
fi
 
5924
 
 
5925
  AR=$ac_ct_AR
 
5926
else
 
5927
  AR="$ac_cv_prog_AR"
 
5928
fi
 
5929
 
 
5930
if test -n "$ac_tool_prefix"; then
 
5931
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5932
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5933
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5935
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5937
else
 
5938
  if test -n "$RANLIB"; then
 
5939
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5940
else
 
5941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5942
for as_dir in $PATH
 
5943
do
 
5944
  IFS=$as_save_IFS
 
5945
  test -z "$as_dir" && as_dir=.
 
5946
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5947
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5948
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5949
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5950
    break 2
 
5951
  fi
 
5952
done
 
5953
done
 
5954
 
 
5955
fi
 
5956
fi
 
5957
RANLIB=$ac_cv_prog_RANLIB
 
5958
if test -n "$RANLIB"; then
 
5959
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5960
echo "${ECHO_T}$RANLIB" >&6
 
5961
else
 
5962
  echo "$as_me:$LINENO: result: no" >&5
 
5963
echo "${ECHO_T}no" >&6
 
5964
fi
 
5965
 
 
5966
fi
 
5967
if test -z "$ac_cv_prog_RANLIB"; then
 
5968
  ac_ct_RANLIB=$RANLIB
 
5969
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5970
set dummy ranlib; ac_word=$2
 
5971
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5973
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5975
else
 
5976
  if test -n "$ac_ct_RANLIB"; then
 
5977
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5978
else
 
5979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5980
for as_dir in $PATH
 
5981
do
 
5982
  IFS=$as_save_IFS
 
5983
  test -z "$as_dir" && as_dir=.
 
5984
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5985
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5986
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5988
    break 2
 
5989
  fi
 
5990
done
 
5991
done
 
5992
 
 
5993
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5994
fi
 
5995
fi
 
5996
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5997
if test -n "$ac_ct_RANLIB"; then
 
5998
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5999
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6000
else
 
6001
  echo "$as_me:$LINENO: result: no" >&5
 
6002
echo "${ECHO_T}no" >&6
 
6003
fi
 
6004
 
 
6005
  RANLIB=$ac_ct_RANLIB
 
6006
else
 
6007
  RANLIB="$ac_cv_prog_RANLIB"
 
6008
fi
 
6009
 
 
6010
if test -n "$ac_tool_prefix"; then
 
6011
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6012
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6013
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6014
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6015
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6017
else
 
6018
  if test -n "$STRIP"; then
 
6019
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6020
else
 
6021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6022
for as_dir in $PATH
 
6023
do
 
6024
  IFS=$as_save_IFS
 
6025
  test -z "$as_dir" && as_dir=.
 
6026
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6027
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6028
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6029
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6030
    break 2
 
6031
  fi
 
6032
done
 
6033
done
 
6034
 
 
6035
fi
 
6036
fi
 
6037
STRIP=$ac_cv_prog_STRIP
 
6038
if test -n "$STRIP"; then
 
6039
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6040
echo "${ECHO_T}$STRIP" >&6
 
6041
else
 
6042
  echo "$as_me:$LINENO: result: no" >&5
 
6043
echo "${ECHO_T}no" >&6
 
6044
fi
 
6045
 
 
6046
fi
 
6047
if test -z "$ac_cv_prog_STRIP"; then
 
6048
  ac_ct_STRIP=$STRIP
 
6049
  # Extract the first word of "strip", so it can be a program name with args.
 
6050
set dummy strip; ac_word=$2
 
6051
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6053
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6055
else
 
6056
  if test -n "$ac_ct_STRIP"; then
 
6057
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6058
else
 
6059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6060
for as_dir in $PATH
 
6061
do
 
6062
  IFS=$as_save_IFS
 
6063
  test -z "$as_dir" && as_dir=.
 
6064
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6065
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6066
    ac_cv_prog_ac_ct_STRIP="strip"
 
6067
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6068
    break 2
 
6069
  fi
 
6070
done
 
6071
done
 
6072
 
 
6073
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6074
fi
 
6075
fi
 
6076
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6077
if test -n "$ac_ct_STRIP"; then
 
6078
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6079
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6080
else
 
6081
  echo "$as_me:$LINENO: result: no" >&5
 
6082
echo "${ECHO_T}no" >&6
 
6083
fi
 
6084
 
 
6085
  STRIP=$ac_ct_STRIP
 
6086
else
 
6087
  STRIP="$ac_cv_prog_STRIP"
 
6088
fi
 
6089
 
 
6090
 
 
6091
old_CC="$CC"
 
6092
old_CFLAGS="$CFLAGS"
 
6093
 
 
6094
# Set sane defaults for various variables
 
6095
test -z "$AR" && AR=ar
 
6096
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6097
test -z "$AS" && AS=as
 
6098
test -z "$CC" && CC=cc
 
6099
test -z "$LTCC" && LTCC=$CC
 
6100
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6101
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6102
test -z "$LD" && LD=ld
 
6103
test -z "$LN_S" && LN_S="ln -s"
 
6104
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6105
test -z "$NM" && NM=nm
 
6106
test -z "$SED" && SED=sed
 
6107
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6108
test -z "$RANLIB" && RANLIB=:
 
6109
test -z "$STRIP" && STRIP=:
 
6110
test -z "$ac_objext" && ac_objext=o
 
6111
 
 
6112
# Determine commands to create old-style static archives.
 
6113
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6114
old_postinstall_cmds='chmod 644 $oldlib'
 
6115
old_postuninstall_cmds=
 
6116
 
 
6117
if test -n "$RANLIB"; then
 
6118
  case $host_os in
 
6119
  openbsd*)
 
6120
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6121
    ;;
 
6122
  *)
 
6123
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6124
    ;;
 
6125
  esac
 
6126
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6127
fi
 
6128
 
 
6129
for cc_temp in $compiler""; do
 
6130
  case $cc_temp in
 
6131
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6132
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6133
    \-*) ;;
 
6134
    *) break;;
 
6135
  esac
 
6136
done
 
6137
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6138
 
 
6139
 
 
6140
# Only perform the check for file, if the check method requires it
 
6141
case $deplibs_check_method in
 
6142
file_magic*)
 
6143
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6144
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6145
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6146
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6148
else
 
6149
  case $MAGIC_CMD in
 
6150
[\\/*] |  ?:[\\/]*)
 
6151
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6152
  ;;
 
6153
*)
 
6154
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6155
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6156
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6157
  for ac_dir in $ac_dummy; do
 
6158
    IFS="$lt_save_ifs"
 
6159
    test -z "$ac_dir" && ac_dir=.
 
6160
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6161
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6162
      if test -n "$file_magic_test_file"; then
 
6163
        case $deplibs_check_method in
 
6164
        "file_magic "*)
 
6165
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6166
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6167
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6168
            $EGREP "$file_magic_regex" > /dev/null; then
 
6169
            :
 
6170
          else
 
6171
            cat <<EOF 1>&2
 
6172
 
 
6173
*** Warning: the command libtool uses to detect shared libraries,
 
6174
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6175
*** The result is that libtool may fail to recognize shared libraries
 
6176
*** as such.  This will affect the creation of libtool libraries that
 
6177
*** depend on shared libraries, but programs linked with such libtool
 
6178
*** libraries will work regardless of this problem.  Nevertheless, you
 
6179
*** may want to report the problem to your system manager and/or to
 
6180
*** bug-libtool@gnu.org
 
6181
 
 
6182
EOF
 
6183
          fi ;;
 
6184
        esac
 
6185
      fi
 
6186
      break
 
6187
    fi
 
6188
  done
 
6189
  IFS="$lt_save_ifs"
 
6190
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6191
  ;;
 
6192
esac
 
6193
fi
 
6194
 
 
6195
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6196
if test -n "$MAGIC_CMD"; then
 
6197
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6198
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6199
else
 
6200
  echo "$as_me:$LINENO: result: no" >&5
 
6201
echo "${ECHO_T}no" >&6
 
6202
fi
 
6203
 
 
6204
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6205
  if test -n "$ac_tool_prefix"; then
 
6206
    echo "$as_me:$LINENO: checking for file" >&5
 
6207
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6208
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6210
else
 
6211
  case $MAGIC_CMD in
 
6212
[\\/*] |  ?:[\\/]*)
 
6213
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6214
  ;;
 
6215
*)
 
6216
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6217
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6218
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6219
  for ac_dir in $ac_dummy; do
 
6220
    IFS="$lt_save_ifs"
 
6221
    test -z "$ac_dir" && ac_dir=.
 
6222
    if test -f $ac_dir/file; then
 
6223
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6224
      if test -n "$file_magic_test_file"; then
 
6225
        case $deplibs_check_method in
 
6226
        "file_magic "*)
 
6227
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6228
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6229
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6230
            $EGREP "$file_magic_regex" > /dev/null; then
 
6231
            :
 
6232
          else
 
6233
            cat <<EOF 1>&2
 
6234
 
 
6235
*** Warning: the command libtool uses to detect shared libraries,
 
6236
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6237
*** The result is that libtool may fail to recognize shared libraries
 
6238
*** as such.  This will affect the creation of libtool libraries that
 
6239
*** depend on shared libraries, but programs linked with such libtool
 
6240
*** libraries will work regardless of this problem.  Nevertheless, you
 
6241
*** may want to report the problem to your system manager and/or to
 
6242
*** bug-libtool@gnu.org
 
6243
 
 
6244
EOF
 
6245
          fi ;;
 
6246
        esac
 
6247
      fi
 
6248
      break
 
6249
    fi
 
6250
  done
 
6251
  IFS="$lt_save_ifs"
 
6252
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6253
  ;;
 
6254
esac
 
6255
fi
 
6256
 
 
6257
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6258
if test -n "$MAGIC_CMD"; then
 
6259
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6260
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6261
else
 
6262
  echo "$as_me:$LINENO: result: no" >&5
 
6263
echo "${ECHO_T}no" >&6
 
6264
fi
 
6265
 
 
6266
  else
 
6267
    MAGIC_CMD=:
 
6268
  fi
 
6269
fi
 
6270
 
 
6271
  fi
 
6272
  ;;
 
6273
esac
 
6274
 
 
6275
enable_dlopen=no
 
6276
enable_win32_dll=no
 
6277
 
 
6278
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6279
if test "${enable_libtool_lock+set}" = set; then
 
6280
  enableval="$enable_libtool_lock"
 
6281
 
 
6282
fi;
 
6283
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6284
 
 
6285
 
 
6286
# Check whether --with-pic or --without-pic was given.
 
6287
if test "${with_pic+set}" = set; then
 
6288
  withval="$with_pic"
 
6289
  pic_mode="$withval"
 
6290
else
 
6291
  pic_mode=default
 
6292
fi;
 
6293
test -z "$pic_mode" && pic_mode=default
 
6294
 
 
6295
# Use C for the default configuration in the libtool script
 
6296
tagname=
 
6297
lt_save_CC="$CC"
 
6298
ac_ext=c
 
6299
ac_cpp='$CPP $CPPFLAGS'
 
6300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6303
 
 
6304
 
 
6305
# Source file extension for C test sources.
 
6306
ac_ext=c
 
6307
 
 
6308
# Object file extension for compiled C test sources.
 
6309
objext=o
 
6310
objext=$objext
 
6311
 
 
6312
# Code to be used in simple compile tests
 
6313
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6314
 
 
6315
# Code to be used in simple link tests
 
6316
lt_simple_link_test_code='int main(){return(0);}\n'
 
6317
 
 
6318
 
 
6319
# If no C compiler was specified, use CC.
 
6320
LTCC=${LTCC-"$CC"}
 
6321
 
 
6322
# If no C compiler flags were specified, use CFLAGS.
 
6323
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6324
 
 
6325
# Allow CC to be a program name with arguments.
 
6326
compiler=$CC
 
6327
 
 
6328
 
 
6329
# save warnings/boilerplate of simple test code
 
6330
ac_outfile=conftest.$ac_objext
 
6331
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6332
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6333
_lt_compiler_boilerplate=`cat conftest.err`
 
6334
$rm conftest*
 
6335
 
 
6336
ac_outfile=conftest.$ac_objext
 
6337
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6338
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6339
_lt_linker_boilerplate=`cat conftest.err`
 
6340
$rm conftest*
 
6341
 
 
6342
 
 
6343
 
 
6344
lt_prog_compiler_no_builtin_flag=
 
6345
 
 
6346
if test "$GCC" = yes; then
 
6347
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6348
 
 
6349
 
 
6350
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6351
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6352
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6354
else
 
6355
  lt_cv_prog_compiler_rtti_exceptions=no
 
6356
  ac_outfile=conftest.$ac_objext
 
6357
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6358
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6359
   # Insert the option either (1) after the last *FLAGS variable, or
 
6360
   # (2) before a word containing "conftest.", or (3) at the end.
 
6361
   # Note that $ac_compile itself does not contain backslashes and begins
 
6362
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6363
   # The option is referenced via a variable to avoid confusing sed.
 
6364
   lt_compile=`echo "$ac_compile" | $SED \
 
6365
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6366
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6367
   -e 's:$: $lt_compiler_flag:'`
 
6368
   (eval echo "\"\$as_me:6368: $lt_compile\"" >&5)
 
6369
   (eval "$lt_compile" 2>conftest.err)
 
6370
   ac_status=$?
 
6371
   cat conftest.err >&5
 
6372
   echo "$as_me:6372: \$? = $ac_status" >&5
 
6373
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6374
     # The compiler can only warn and ignore the option if not recognized
 
6375
     # So say no if there are warnings other than the usual output.
 
6376
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6377
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6378
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6379
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6380
     fi
 
6381
   fi
 
6382
   $rm conftest*
 
6383
 
 
6384
fi
 
6385
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6386
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6387
 
 
6388
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6389
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6390
else
 
6391
    :
 
6392
fi
 
6393
 
 
6394
fi
 
6395
 
 
6396
lt_prog_compiler_wl=
 
6397
lt_prog_compiler_pic=
 
6398
lt_prog_compiler_static=
 
6399
 
 
6400
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6401
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6402
 
 
6403
  if test "$GCC" = yes; then
 
6404
    lt_prog_compiler_wl='-Wl,'
 
6405
    lt_prog_compiler_static='-static'
 
6406
 
 
6407
    case $host_os in
 
6408
      aix*)
 
6409
      # All AIX code is PIC.
 
6410
      if test "$host_cpu" = ia64; then
 
6411
        # AIX 5 now supports IA64 processor
 
6412
        lt_prog_compiler_static='-Bstatic'
 
6413
      fi
 
6414
      ;;
 
6415
 
 
6416
    amigaos*)
 
6417
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6418
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6419
      # like `-m68040'.
 
6420
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6421
      ;;
 
6422
 
 
6423
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6424
      # PIC is the default for these OSes.
 
6425
      ;;
 
6426
 
 
6427
    mingw* | pw32* | os2*)
 
6428
      # This hack is so that the source file can tell whether it is being
 
6429
      # built for inclusion in a dll (and should export symbols for example).
 
6430
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6431
      ;;
 
6432
 
 
6433
    darwin* | rhapsody*)
 
6434
      # PIC is the default on this platform
 
6435
      # Common symbols not allowed in MH_DYLIB files
 
6436
      lt_prog_compiler_pic='-fno-common'
 
6437
      ;;
 
6438
 
 
6439
    interix3*)
 
6440
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6441
      # Instead, we relocate shared libraries at runtime.
 
6442
      ;;
 
6443
 
 
6444
    msdosdjgpp*)
 
6445
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6446
      # on systems that don't support them.
 
6447
      lt_prog_compiler_can_build_shared=no
 
6448
      enable_shared=no
 
6449
      ;;
 
6450
 
 
6451
    sysv4*MP*)
 
6452
      if test -d /usr/nec; then
 
6453
        lt_prog_compiler_pic=-Kconform_pic
 
6454
      fi
 
6455
      ;;
 
6456
 
 
6457
    hpux*)
 
6458
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6459
      # not for PA HP-UX.
 
6460
      case $host_cpu in
 
6461
      hppa*64*|ia64*)
 
6462
        # +Z the default
 
6463
        ;;
 
6464
      *)
 
6465
        lt_prog_compiler_pic='-fPIC'
 
6466
        ;;
 
6467
      esac
 
6468
      ;;
 
6469
 
 
6470
    *)
 
6471
      lt_prog_compiler_pic='-fPIC'
 
6472
      ;;
 
6473
    esac
 
6474
  else
 
6475
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6476
    case $host_os in
 
6477
    aix*)
 
6478
      lt_prog_compiler_wl='-Wl,'
 
6479
      if test "$host_cpu" = ia64; then
 
6480
        # AIX 5 now supports IA64 processor
 
6481
        lt_prog_compiler_static='-Bstatic'
 
6482
      else
 
6483
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6484
      fi
 
6485
      ;;
 
6486
      darwin*)
 
6487
        # PIC is the default on this platform
 
6488
        # Common symbols not allowed in MH_DYLIB files
 
6489
       case $cc_basename in
 
6490
         xlc*)
 
6491
         lt_prog_compiler_pic='-qnocommon'
 
6492
         lt_prog_compiler_wl='-Wl,'
 
6493
         ;;
 
6494
       esac
 
6495
       ;;
 
6496
 
 
6497
    mingw* | pw32* | os2*)
 
6498
      # This hack is so that the source file can tell whether it is being
 
6499
      # built for inclusion in a dll (and should export symbols for example).
 
6500
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6501
      ;;
 
6502
 
 
6503
    hpux9* | hpux10* | hpux11*)
 
6504
      lt_prog_compiler_wl='-Wl,'
 
6505
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6506
      # not for PA HP-UX.
 
6507
      case $host_cpu in
 
6508
      hppa*64*|ia64*)
 
6509
        # +Z the default
 
6510
        ;;
 
6511
      *)
 
6512
        lt_prog_compiler_pic='+Z'
 
6513
        ;;
 
6514
      esac
 
6515
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6516
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6517
      ;;
 
6518
 
 
6519
    irix5* | irix6* | nonstopux*)
 
6520
      lt_prog_compiler_wl='-Wl,'
 
6521
      # PIC (with -KPIC) is the default.
 
6522
      lt_prog_compiler_static='-non_shared'
 
6523
      ;;
 
6524
 
 
6525
    newsos6)
 
6526
      lt_prog_compiler_pic='-KPIC'
 
6527
      lt_prog_compiler_static='-Bstatic'
 
6528
      ;;
 
6529
 
 
6530
    linux*)
 
6531
      case $cc_basename in
 
6532
      icc* | ecc*)
 
6533
        lt_prog_compiler_wl='-Wl,'
 
6534
        lt_prog_compiler_pic='-KPIC'
 
6535
        lt_prog_compiler_static='-static'
 
6536
        ;;
 
6537
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6538
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6539
        # which looks to be a dead project)
 
6540
        lt_prog_compiler_wl='-Wl,'
 
6541
        lt_prog_compiler_pic='-fpic'
 
6542
        lt_prog_compiler_static='-Bstatic'
 
6543
        ;;
 
6544
      ccc*)
 
6545
        lt_prog_compiler_wl='-Wl,'
 
6546
        # All Alpha code is PIC.
 
6547
        lt_prog_compiler_static='-non_shared'
 
6548
        ;;
 
6549
      esac
 
6550
      ;;
 
6551
 
 
6552
    osf3* | osf4* | osf5*)
 
6553
      lt_prog_compiler_wl='-Wl,'
 
6554
      # All OSF/1 code is PIC.
 
6555
      lt_prog_compiler_static='-non_shared'
 
6556
      ;;
 
6557
 
 
6558
    solaris*)
 
6559
      lt_prog_compiler_pic='-KPIC'
 
6560
      lt_prog_compiler_static='-Bstatic'
 
6561
      case $cc_basename in
 
6562
      f77* | f90* | f95*)
 
6563
        lt_prog_compiler_wl='-Qoption ld ';;
 
6564
      *)
 
6565
        lt_prog_compiler_wl='-Wl,';;
 
6566
      esac
 
6567
      ;;
 
6568
 
 
6569
    sunos4*)
 
6570
      lt_prog_compiler_wl='-Qoption ld '
 
6571
      lt_prog_compiler_pic='-PIC'
 
6572
      lt_prog_compiler_static='-Bstatic'
 
6573
      ;;
 
6574
 
 
6575
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6576
      lt_prog_compiler_wl='-Wl,'
 
6577
      lt_prog_compiler_pic='-KPIC'
 
6578
      lt_prog_compiler_static='-Bstatic'
 
6579
      ;;
 
6580
 
 
6581
    sysv4*MP*)
 
6582
      if test -d /usr/nec ;then
 
6583
        lt_prog_compiler_pic='-Kconform_pic'
 
6584
        lt_prog_compiler_static='-Bstatic'
 
6585
      fi
 
6586
      ;;
 
6587
 
 
6588
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6589
      lt_prog_compiler_wl='-Wl,'
 
6590
      lt_prog_compiler_pic='-KPIC'
 
6591
      lt_prog_compiler_static='-Bstatic'
 
6592
      ;;
 
6593
 
 
6594
    unicos*)
 
6595
      lt_prog_compiler_wl='-Wl,'
 
6596
      lt_prog_compiler_can_build_shared=no
 
6597
      ;;
 
6598
 
 
6599
    uts4*)
 
6600
      lt_prog_compiler_pic='-pic'
 
6601
      lt_prog_compiler_static='-Bstatic'
 
6602
      ;;
 
6603
 
 
6604
    *)
 
6605
      lt_prog_compiler_can_build_shared=no
 
6606
      ;;
 
6607
    esac
 
6608
  fi
 
6609
 
 
6610
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6611
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6612
 
 
6613
#
 
6614
# Check to make sure the PIC flag actually works.
 
6615
#
 
6616
if test -n "$lt_prog_compiler_pic"; then
 
6617
 
 
6618
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6619
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6620
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6622
else
 
6623
  lt_prog_compiler_pic_works=no
 
6624
  ac_outfile=conftest.$ac_objext
 
6625
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6626
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6627
   # Insert the option either (1) after the last *FLAGS variable, or
 
6628
   # (2) before a word containing "conftest.", or (3) at the end.
 
6629
   # Note that $ac_compile itself does not contain backslashes and begins
 
6630
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6631
   # The option is referenced via a variable to avoid confusing sed.
 
6632
   lt_compile=`echo "$ac_compile" | $SED \
 
6633
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6634
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6635
   -e 's:$: $lt_compiler_flag:'`
 
6636
   (eval echo "\"\$as_me:6636: $lt_compile\"" >&5)
 
6637
   (eval "$lt_compile" 2>conftest.err)
 
6638
   ac_status=$?
 
6639
   cat conftest.err >&5
 
6640
   echo "$as_me:6640: \$? = $ac_status" >&5
 
6641
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6642
     # The compiler can only warn and ignore the option if not recognized
 
6643
     # So say no if there are warnings other than the usual output.
 
6644
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6645
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6646
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6647
       lt_prog_compiler_pic_works=yes
 
6648
     fi
 
6649
   fi
 
6650
   $rm conftest*
 
6651
 
 
6652
fi
 
6653
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6654
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6655
 
 
6656
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6657
    case $lt_prog_compiler_pic in
 
6658
     "" | " "*) ;;
 
6659
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6660
     esac
 
6661
else
 
6662
    lt_prog_compiler_pic=
 
6663
     lt_prog_compiler_can_build_shared=no
 
6664
fi
 
6665
 
 
6666
fi
 
6667
case $host_os in
 
6668
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6669
  *djgpp*)
 
6670
    lt_prog_compiler_pic=
 
6671
    ;;
 
6672
  *)
 
6673
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6674
    ;;
 
6675
esac
 
6676
 
 
6677
#
 
6678
# Check to make sure the static flag actually works.
 
6679
#
 
6680
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6681
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6682
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6683
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6685
else
 
6686
  lt_prog_compiler_static_works=no
 
6687
   save_LDFLAGS="$LDFLAGS"
 
6688
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6689
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6690
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6691
     # The linker can only warn and ignore the option if not recognized
 
6692
     # So say no if there are warnings
 
6693
     if test -s conftest.err; then
 
6694
       # Append any errors to the config.log.
 
6695
       cat conftest.err 1>&5
 
6696
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6697
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6698
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6699
         lt_prog_compiler_static_works=yes
 
6700
       fi
 
6701
     else
 
6702
       lt_prog_compiler_static_works=yes
 
6703
     fi
 
6704
   fi
 
6705
   $rm conftest*
 
6706
   LDFLAGS="$save_LDFLAGS"
 
6707
 
 
6708
fi
 
6709
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6710
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6711
 
 
6712
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6713
    :
 
6714
else
 
6715
    lt_prog_compiler_static=
 
6716
fi
 
6717
 
 
6718
 
 
6719
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6720
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6721
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6723
else
 
6724
  lt_cv_prog_compiler_c_o=no
 
6725
   $rm -r conftest 2>/dev/null
 
6726
   mkdir conftest
 
6727
   cd conftest
 
6728
   mkdir out
 
6729
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6730
 
 
6731
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6732
   # Insert the option either (1) after the last *FLAGS variable, or
 
6733
   # (2) before a word containing "conftest.", or (3) at the end.
 
6734
   # Note that $ac_compile itself does not contain backslashes and begins
 
6735
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6736
   lt_compile=`echo "$ac_compile" | $SED \
 
6737
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6738
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6739
   -e 's:$: $lt_compiler_flag:'`
 
6740
   (eval echo "\"\$as_me:6740: $lt_compile\"" >&5)
 
6741
   (eval "$lt_compile" 2>out/conftest.err)
 
6742
   ac_status=$?
 
6743
   cat out/conftest.err >&5
 
6744
   echo "$as_me:6744: \$? = $ac_status" >&5
 
6745
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6746
   then
 
6747
     # The compiler can only warn and ignore the option if not recognized
 
6748
     # So say no if there are warnings
 
6749
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6750
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6751
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6752
       lt_cv_prog_compiler_c_o=yes
 
6753
     fi
 
6754
   fi
 
6755
   chmod u+w . 2>&5
 
6756
   $rm conftest*
 
6757
   # SGI C++ compiler will create directory out/ii_files/ for
 
6758
   # template instantiation
 
6759
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6760
   $rm out/* && rmdir out
 
6761
   cd ..
 
6762
   rmdir conftest
 
6763
   $rm conftest*
 
6764
 
 
6765
fi
 
6766
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6767
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6768
 
 
6769
 
 
6770
hard_links="nottested"
 
6771
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6772
  # do not overwrite the value of need_locks provided by the user
 
6773
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6774
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6775
  hard_links=yes
 
6776
  $rm conftest*
 
6777
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6778
  touch conftest.a
 
6779
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6780
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6781
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6782
echo "${ECHO_T}$hard_links" >&6
 
6783
  if test "$hard_links" = no; then
 
6784
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6785
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6786
    need_locks=warn
 
6787
  fi
 
6788
else
 
6789
  need_locks=no
 
6790
fi
 
6791
 
 
6792
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6793
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6794
 
 
6795
  runpath_var=
 
6796
  allow_undefined_flag=
 
6797
  enable_shared_with_static_runtimes=no
 
6798
  archive_cmds=
 
6799
  archive_expsym_cmds=
 
6800
  old_archive_From_new_cmds=
 
6801
  old_archive_from_expsyms_cmds=
 
6802
  export_dynamic_flag_spec=
 
6803
  whole_archive_flag_spec=
 
6804
  thread_safe_flag_spec=
 
6805
  hardcode_libdir_flag_spec=
 
6806
  hardcode_libdir_flag_spec_ld=
 
6807
  hardcode_libdir_separator=
 
6808
  hardcode_direct=no
 
6809
  hardcode_minus_L=no
 
6810
  hardcode_shlibpath_var=unsupported
 
6811
  link_all_deplibs=unknown
 
6812
  hardcode_automatic=no
 
6813
  module_cmds=
 
6814
  module_expsym_cmds=
 
6815
  always_export_symbols=no
 
6816
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6817
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6818
  # included in the symbol list
 
6819
  include_expsyms=
 
6820
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6821
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6822
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6823
  # as well as any symbol that contains `d'.
 
6824
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6825
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6826
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6827
  # the symbol is explicitly referenced.  Since portable code cannot
 
6828
  # rely on this symbol name, it's probably fine to never include it in
 
6829
  # preloaded symbol tables.
 
6830
  extract_expsyms_cmds=
 
6831
  # Just being paranoid about ensuring that cc_basename is set.
 
6832
  for cc_temp in $compiler""; do
 
6833
  case $cc_temp in
 
6834
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6835
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6836
    \-*) ;;
 
6837
    *) break;;
 
6838
  esac
 
6839
done
 
6840
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6841
 
 
6842
  case $host_os in
 
6843
  cygwin* | mingw* | pw32*)
 
6844
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6845
    # When not using gcc, we currently assume that we are using
 
6846
    # Microsoft Visual C++.
 
6847
    if test "$GCC" != yes; then
 
6848
      with_gnu_ld=no
 
6849
    fi
 
6850
    ;;
 
6851
  interix*)
 
6852
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6853
    with_gnu_ld=yes
 
6854
    ;;
 
6855
  openbsd*)
 
6856
    with_gnu_ld=no
 
6857
    ;;
 
6858
  esac
 
6859
 
 
6860
  ld_shlibs=yes
 
6861
  if test "$with_gnu_ld" = yes; then
 
6862
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6863
    wlarc='${wl}'
 
6864
 
 
6865
    # Set some defaults for GNU ld with shared library support. These
 
6866
    # are reset later if shared libraries are not supported. Putting them
 
6867
    # here allows them to be overridden if necessary.
 
6868
    runpath_var=LD_RUN_PATH
 
6869
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6870
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6871
    # ancient GNU ld didn't support --whole-archive et. al.
 
6872
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6873
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6874
      else
 
6875
        whole_archive_flag_spec=
 
6876
    fi
 
6877
    supports_anon_versioning=no
 
6878
    case `$LD -v 2>/dev/null` in
 
6879
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6880
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6881
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6882
      *\ 2.11.*) ;; # other 2.11 versions
 
6883
      *) supports_anon_versioning=yes ;;
 
6884
    esac
 
6885
 
 
6886
    # See if GNU ld supports shared libraries.
 
6887
    case $host_os in
 
6888
    aix3* | aix4* | aix5*)
 
6889
      # On AIX/PPC, the GNU linker is very broken
 
6890
      if test "$host_cpu" != ia64; then
 
6891
        ld_shlibs=no
 
6892
        cat <<EOF 1>&2
 
6893
 
 
6894
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6895
*** to be unable to reliably create shared libraries on AIX.
 
6896
*** Therefore, libtool is disabling shared libraries support.  If you
 
6897
*** really care for shared libraries, you may want to modify your PATH
 
6898
*** so that a non-GNU linker is found, and then restart.
 
6899
 
 
6900
EOF
 
6901
      fi
 
6902
      ;;
 
6903
 
 
6904
    amigaos*)
 
6905
      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)'
 
6906
      hardcode_libdir_flag_spec='-L$libdir'
 
6907
      hardcode_minus_L=yes
 
6908
 
 
6909
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6910
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6911
      # to version 4, is to share data among multiple programs linked
 
6912
      # with the same dynamic library.  Since this doesn't match the
 
6913
      # behavior of shared libraries on other platforms, we can't use
 
6914
      # them.
 
6915
      ld_shlibs=no
 
6916
      ;;
 
6917
 
 
6918
    beos*)
 
6919
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6920
        allow_undefined_flag=unsupported
 
6921
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6922
        # support --undefined.  This deserves some investigation.  FIXME
 
6923
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6924
      else
 
6925
        ld_shlibs=no
 
6926
      fi
 
6927
      ;;
 
6928
 
 
6929
    cygwin* | mingw* | pw32*)
 
6930
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6931
      # as there is no search path for DLLs.
 
6932
      hardcode_libdir_flag_spec='-L$libdir'
 
6933
      allow_undefined_flag=unsupported
 
6934
      always_export_symbols=no
 
6935
      enable_shared_with_static_runtimes=yes
 
6936
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6937
 
 
6938
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6939
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6940
        # If the export-symbols file already is a .def file (1st line
 
6941
        # is EXPORTS), use it as is; otherwise, prepend...
 
6942
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6943
          cp $export_symbols $output_objdir/$soname.def;
 
6944
        else
 
6945
          echo EXPORTS > $output_objdir/$soname.def;
 
6946
          cat $export_symbols >> $output_objdir/$soname.def;
 
6947
        fi~
 
6948
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6949
      else
 
6950
        ld_shlibs=no
 
6951
      fi
 
6952
      ;;
 
6953
 
 
6954
    interix3*)
 
6955
      hardcode_direct=no
 
6956
      hardcode_shlibpath_var=no
 
6957
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6958
      export_dynamic_flag_spec='${wl}-E'
 
6959
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6960
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6961
      # default) and relocated if they conflict, which is a slow very memory
 
6962
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6963
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6964
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6965
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6966
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6967
      ;;
 
6968
 
 
6969
    linux*)
 
6970
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6971
        tmp_addflag=
 
6972
        case $cc_basename,$host_cpu in
 
6973
        pgcc*)                          # Portland Group C compiler
 
6974
          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'
 
6975
          tmp_addflag=' $pic_flag'
 
6976
          ;;
 
6977
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6978
          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'
 
6979
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6980
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6981
          tmp_addflag=' -i_dynamic' ;;
 
6982
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6983
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6984
        ifc* | ifort*)                  # Intel Fortran compiler
 
6985
          tmp_addflag=' -nofor_main' ;;
 
6986
        esac
 
6987
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6988
 
 
6989
        if test $supports_anon_versioning = yes; then
 
6990
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6991
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6992
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6993
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6994
        fi
 
6995
      else
 
6996
        ld_shlibs=no
 
6997
      fi
 
6998
      ;;
 
6999
 
 
7000
    netbsd*)
 
7001
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7002
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7003
        wlarc=
 
7004
      else
 
7005
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7006
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7007
      fi
 
7008
      ;;
 
7009
 
 
7010
    solaris*)
 
7011
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7012
        ld_shlibs=no
 
7013
        cat <<EOF 1>&2
 
7014
 
 
7015
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7016
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7017
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7018
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7019
*** your PATH or compiler configuration so that the native linker is
 
7020
*** used, and then restart.
 
7021
 
 
7022
EOF
 
7023
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7024
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7025
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7026
      else
 
7027
        ld_shlibs=no
 
7028
      fi
 
7029
      ;;
 
7030
 
 
7031
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7032
      case `$LD -v 2>&1` in
 
7033
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7034
        ld_shlibs=no
 
7035
        cat <<_LT_EOF 1>&2
 
7036
 
 
7037
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7038
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7039
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7040
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7041
*** your PATH or compiler configuration so that the native linker is
 
7042
*** used, and then restart.
 
7043
 
 
7044
_LT_EOF
 
7045
        ;;
 
7046
        *)
 
7047
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7048
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7049
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7050
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7051
          else
 
7052
            ld_shlibs=no
 
7053
          fi
 
7054
        ;;
 
7055
      esac
 
7056
      ;;
 
7057
 
 
7058
    sunos4*)
 
7059
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7060
      wlarc=
 
7061
      hardcode_direct=yes
 
7062
      hardcode_shlibpath_var=no
 
7063
      ;;
 
7064
 
 
7065
    *)
 
7066
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7067
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7068
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7069
      else
 
7070
        ld_shlibs=no
 
7071
      fi
 
7072
      ;;
 
7073
    esac
 
7074
 
 
7075
    if test "$ld_shlibs" = no; then
 
7076
      runpath_var=
 
7077
      hardcode_libdir_flag_spec=
 
7078
      export_dynamic_flag_spec=
 
7079
      whole_archive_flag_spec=
 
7080
    fi
 
7081
  else
 
7082
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7083
    case $host_os in
 
7084
    aix3*)
 
7085
      allow_undefined_flag=unsupported
 
7086
      always_export_symbols=yes
 
7087
      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'
 
7088
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7089
      # are no directories specified by -L.
 
7090
      hardcode_minus_L=yes
 
7091
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7092
        # Neither direct hardcoding nor static linking is supported with a
 
7093
        # broken collect2.
 
7094
        hardcode_direct=unsupported
 
7095
      fi
 
7096
      ;;
 
7097
 
 
7098
    aix4* | aix5*)
 
7099
      if test "$host_cpu" = ia64; then
 
7100
        # On IA64, the linker does run time linking by default, so we don't
 
7101
        # have to do anything special.
 
7102
        aix_use_runtimelinking=no
 
7103
        exp_sym_flag='-Bexport'
 
7104
        no_entry_flag=""
 
7105
      else
 
7106
        # If we're using GNU nm, then we don't want the "-C" option.
 
7107
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7108
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7109
          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'
 
7110
        else
 
7111
          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'
 
7112
        fi
 
7113
        aix_use_runtimelinking=no
 
7114
 
 
7115
        # Test if we are trying to use run time linking or normal
 
7116
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7117
        # need to do runtime linking.
 
7118
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7119
          for ld_flag in $LDFLAGS; do
 
7120
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7121
            aix_use_runtimelinking=yes
 
7122
            break
 
7123
          fi
 
7124
          done
 
7125
          ;;
 
7126
        esac
 
7127
 
 
7128
        exp_sym_flag='-bexport'
 
7129
        no_entry_flag='-bnoentry'
 
7130
      fi
 
7131
 
 
7132
      # When large executables or shared objects are built, AIX ld can
 
7133
      # have problems creating the table of contents.  If linking a library
 
7134
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7135
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7136
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7137
 
 
7138
      archive_cmds=''
 
7139
      hardcode_direct=yes
 
7140
      hardcode_libdir_separator=':'
 
7141
      link_all_deplibs=yes
 
7142
 
 
7143
      if test "$GCC" = yes; then
 
7144
        case $host_os in aix4.[012]|aix4.[012].*)
 
7145
        # We only want to do this on AIX 4.2 and lower, the check
 
7146
        # below for broken collect2 doesn't work under 4.3+
 
7147
          collect2name=`${CC} -print-prog-name=collect2`
 
7148
          if test -f "$collect2name" && \
 
7149
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7150
          then
 
7151
          # We have reworked collect2
 
7152
          hardcode_direct=yes
 
7153
          else
 
7154
          # We have old collect2
 
7155
          hardcode_direct=unsupported
 
7156
          # It fails to find uninstalled libraries when the uninstalled
 
7157
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7158
          # to unsupported forces relinking
 
7159
          hardcode_minus_L=yes
 
7160
          hardcode_libdir_flag_spec='-L$libdir'
 
7161
          hardcode_libdir_separator=
 
7162
          fi
 
7163
          ;;
 
7164
        esac
 
7165
        shared_flag='-shared'
 
7166
        if test "$aix_use_runtimelinking" = yes; then
 
7167
          shared_flag="$shared_flag "'${wl}-G'
 
7168
        fi
 
7169
      else
 
7170
        # not using gcc
 
7171
        if test "$host_cpu" = ia64; then
 
7172
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7173
        # chokes on -Wl,-G. The following line is correct:
 
7174
          shared_flag='-G'
 
7175
        else
 
7176
          if test "$aix_use_runtimelinking" = yes; then
 
7177
            shared_flag='${wl}-G'
 
7178
          else
 
7179
            shared_flag='${wl}-bM:SRE'
 
7180
          fi
 
7181
        fi
 
7182
      fi
 
7183
 
 
7184
      # It seems that -bexpall does not export symbols beginning with
 
7185
      # underscore (_), so it is better to generate a list of symbols to export.
 
7186
      always_export_symbols=yes
 
7187
      if test "$aix_use_runtimelinking" = yes; then
 
7188
        # Warning - without using the other runtime loading flags (-brtl),
 
7189
        # -berok will link without error, but may produce a broken library.
 
7190
        allow_undefined_flag='-berok'
 
7191
       # Determine the default libpath from the value encoded in an empty executable.
 
7192
       cat >conftest.$ac_ext <<_ACEOF
 
7193
/* confdefs.h.  */
 
7194
_ACEOF
 
7195
cat confdefs.h >>conftest.$ac_ext
 
7196
cat >>conftest.$ac_ext <<_ACEOF
 
7197
/* end confdefs.h.  */
 
7198
 
 
7199
int
 
7200
main ()
 
7201
{
 
7202
 
 
7203
  ;
 
7204
  return 0;
 
7205
}
 
7206
_ACEOF
 
7207
rm -f conftest.$ac_objext conftest$ac_exeext
 
7208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7209
  (eval $ac_link) 2>conftest.er1
 
7210
  ac_status=$?
 
7211
  grep -v '^ *+' conftest.er1 >conftest.err
 
7212
  rm -f conftest.er1
 
7213
  cat conftest.err >&5
 
7214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7215
  (exit $ac_status); } &&
 
7216
         { ac_try='test -z "$ac_c_werror_flag"
 
7217
                         || test ! -s conftest.err'
 
7218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7219
  (eval $ac_try) 2>&5
 
7220
  ac_status=$?
 
7221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7222
  (exit $ac_status); }; } &&
 
7223
         { ac_try='test -s conftest$ac_exeext'
 
7224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7225
  (eval $ac_try) 2>&5
 
7226
  ac_status=$?
 
7227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7228
  (exit $ac_status); }; }; then
 
7229
 
 
7230
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7231
}'`
 
7232
# Check for a 64-bit object if we didn't find anything.
 
7233
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; }
 
7234
}'`; fi
 
7235
else
 
7236
  echo "$as_me: failed program was:" >&5
 
7237
sed 's/^/| /' conftest.$ac_ext >&5
 
7238
 
 
7239
fi
 
7240
rm -f conftest.err conftest.$ac_objext \
 
7241
      conftest$ac_exeext conftest.$ac_ext
 
7242
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7243
 
 
7244
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7245
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7246
       else
 
7247
        if test "$host_cpu" = ia64; then
 
7248
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7249
          allow_undefined_flag="-z nodefs"
 
7250
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
7251
        else
 
7252
         # Determine the default libpath from the value encoded in an empty executable.
 
7253
         cat >conftest.$ac_ext <<_ACEOF
 
7254
/* confdefs.h.  */
 
7255
_ACEOF
 
7256
cat confdefs.h >>conftest.$ac_ext
 
7257
cat >>conftest.$ac_ext <<_ACEOF
 
7258
/* end confdefs.h.  */
 
7259
 
 
7260
int
 
7261
main ()
 
7262
{
 
7263
 
 
7264
  ;
 
7265
  return 0;
 
7266
}
 
7267
_ACEOF
 
7268
rm -f conftest.$ac_objext conftest$ac_exeext
 
7269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7270
  (eval $ac_link) 2>conftest.er1
 
7271
  ac_status=$?
 
7272
  grep -v '^ *+' conftest.er1 >conftest.err
 
7273
  rm -f conftest.er1
 
7274
  cat conftest.err >&5
 
7275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7276
  (exit $ac_status); } &&
 
7277
         { ac_try='test -z "$ac_c_werror_flag"
 
7278
                         || test ! -s conftest.err'
 
7279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7280
  (eval $ac_try) 2>&5
 
7281
  ac_status=$?
 
7282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7283
  (exit $ac_status); }; } &&
 
7284
         { ac_try='test -s conftest$ac_exeext'
 
7285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7286
  (eval $ac_try) 2>&5
 
7287
  ac_status=$?
 
7288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7289
  (exit $ac_status); }; }; then
 
7290
 
 
7291
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7292
}'`
 
7293
# Check for a 64-bit object if we didn't find anything.
 
7294
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; }
 
7295
}'`; fi
 
7296
else
 
7297
  echo "$as_me: failed program was:" >&5
 
7298
sed 's/^/| /' conftest.$ac_ext >&5
 
7299
 
 
7300
fi
 
7301
rm -f conftest.err conftest.$ac_objext \
 
7302
      conftest$ac_exeext conftest.$ac_ext
 
7303
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7304
 
 
7305
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7306
          # Warning - without using the other run time loading flags,
 
7307
          # -berok will link without error, but may produce a broken library.
 
7308
          no_undefined_flag=' ${wl}-bernotok'
 
7309
          allow_undefined_flag=' ${wl}-berok'
 
7310
          # Exported symbols can be pulled into shared objects from archives
 
7311
          whole_archive_flag_spec='$convenience'
 
7312
          archive_cmds_need_lc=yes
 
7313
          # This is similar to how AIX traditionally builds its shared libraries.
 
7314
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7315
        fi
 
7316
      fi
 
7317
      ;;
 
7318
 
 
7319
    amigaos*)
 
7320
      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)'
 
7321
      hardcode_libdir_flag_spec='-L$libdir'
 
7322
      hardcode_minus_L=yes
 
7323
      # see comment about different semantics on the GNU ld section
 
7324
      ld_shlibs=no
 
7325
      ;;
 
7326
 
 
7327
    bsdi[45]*)
 
7328
      export_dynamic_flag_spec=-rdynamic
 
7329
      ;;
 
7330
 
 
7331
    cygwin* | mingw* | pw32*)
 
7332
      # When not using gcc, we currently assume that we are using
 
7333
      # Microsoft Visual C++.
 
7334
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7335
      # no search path for DLLs.
 
7336
      hardcode_libdir_flag_spec=' '
 
7337
      allow_undefined_flag=unsupported
 
7338
      # Tell ltmain to make .lib files, not .a files.
 
7339
      libext=lib
 
7340
      # Tell ltmain to make .dll files, not .so files.
 
7341
      shrext_cmds=".dll"
 
7342
      # FIXME: Setting linknames here is a bad hack.
 
7343
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7344
      # The linker will automatically build a .lib file if we build a DLL.
 
7345
      old_archive_From_new_cmds='true'
 
7346
      # FIXME: Should let the user specify the lib program.
 
7347
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7348
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7349
      enable_shared_with_static_runtimes=yes
 
7350
      ;;
 
7351
 
 
7352
    darwin* | rhapsody*)
 
7353
      case $host_os in
 
7354
        rhapsody* | darwin1.[012])
 
7355
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7356
         ;;
 
7357
       *) # Darwin 1.3 on
 
7358
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7359
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7360
         else
 
7361
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7362
             10.[012])
 
7363
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7364
               ;;
 
7365
             10.*)
 
7366
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7367
               ;;
 
7368
           esac
 
7369
         fi
 
7370
         ;;
 
7371
      esac
 
7372
      archive_cmds_need_lc=no
 
7373
      hardcode_direct=no
 
7374
      hardcode_automatic=yes
 
7375
      hardcode_shlibpath_var=unsupported
 
7376
      whole_archive_flag_spec=''
 
7377
      link_all_deplibs=yes
 
7378
    if test "$GCC" = yes ; then
 
7379
        output_verbose_link_cmd='echo'
 
7380
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7381
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7382
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7383
      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}'
 
7384
      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}'
 
7385
    else
 
7386
      case $cc_basename in
 
7387
        xlc*)
 
7388
         output_verbose_link_cmd='echo'
 
7389
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7390
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7391
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7392
         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}'
 
7393
          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}'
 
7394
          ;;
 
7395
       *)
 
7396
         ld_shlibs=no
 
7397
          ;;
 
7398
      esac
 
7399
    fi
 
7400
      ;;
 
7401
 
 
7402
    dgux*)
 
7403
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7404
      hardcode_libdir_flag_spec='-L$libdir'
 
7405
      hardcode_shlibpath_var=no
 
7406
      ;;
 
7407
 
 
7408
    freebsd1*)
 
7409
      ld_shlibs=no
 
7410
      ;;
 
7411
 
 
7412
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7413
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7414
    # does not break anything, and helps significantly (at the cost of a little
 
7415
    # extra space).
 
7416
    freebsd2.2*)
 
7417
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7418
      hardcode_libdir_flag_spec='-R$libdir'
 
7419
      hardcode_direct=yes
 
7420
      hardcode_shlibpath_var=no
 
7421
      ;;
 
7422
 
 
7423
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7424
    freebsd2*)
 
7425
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7426
      hardcode_direct=yes
 
7427
      hardcode_minus_L=yes
 
7428
      hardcode_shlibpath_var=no
 
7429
      ;;
 
7430
 
 
7431
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7432
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7433
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7434
      hardcode_libdir_flag_spec='-R$libdir'
 
7435
      hardcode_direct=yes
 
7436
      hardcode_shlibpath_var=no
 
7437
      ;;
 
7438
 
 
7439
    hpux9*)
 
7440
      if test "$GCC" = yes; then
 
7441
        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'
 
7442
      else
 
7443
        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'
 
7444
      fi
 
7445
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7446
      hardcode_libdir_separator=:
 
7447
      hardcode_direct=yes
 
7448
 
 
7449
      # hardcode_minus_L: Not really in the search PATH,
 
7450
      # but as the default location of the library.
 
7451
      hardcode_minus_L=yes
 
7452
      export_dynamic_flag_spec='${wl}-E'
 
7453
      ;;
 
7454
 
 
7455
    hpux10*)
 
7456
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7457
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7458
      else
 
7459
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7460
      fi
 
7461
      if test "$with_gnu_ld" = no; then
 
7462
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7463
        hardcode_libdir_separator=:
 
7464
 
 
7465
        hardcode_direct=yes
 
7466
        export_dynamic_flag_spec='${wl}-E'
 
7467
 
 
7468
        # hardcode_minus_L: Not really in the search PATH,
 
7469
        # but as the default location of the library.
 
7470
        hardcode_minus_L=yes
 
7471
      fi
 
7472
      ;;
 
7473
 
 
7474
    hpux11*)
 
7475
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7476
        case $host_cpu in
 
7477
        hppa*64*)
 
7478
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7479
          ;;
 
7480
        ia64*)
 
7481
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7482
          ;;
 
7483
        *)
 
7484
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7485
          ;;
 
7486
        esac
 
7487
      else
 
7488
        case $host_cpu in
 
7489
        hppa*64*)
 
7490
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7491
          ;;
 
7492
        ia64*)
 
7493
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7494
          ;;
 
7495
        *)
 
7496
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7497
          ;;
 
7498
        esac
 
7499
      fi
 
7500
      if test "$with_gnu_ld" = no; then
 
7501
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7502
        hardcode_libdir_separator=:
 
7503
 
 
7504
        case $host_cpu in
 
7505
        hppa*64*|ia64*)
 
7506
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7507
          hardcode_direct=no
 
7508
          hardcode_shlibpath_var=no
 
7509
          ;;
 
7510
        *)
 
7511
          hardcode_direct=yes
 
7512
          export_dynamic_flag_spec='${wl}-E'
 
7513
 
 
7514
          # hardcode_minus_L: Not really in the search PATH,
 
7515
          # but as the default location of the library.
 
7516
          hardcode_minus_L=yes
 
7517
          ;;
 
7518
        esac
 
7519
      fi
 
7520
      ;;
 
7521
 
 
7522
    irix5* | irix6* | nonstopux*)
 
7523
      if test "$GCC" = yes; then
 
7524
        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'
 
7525
      else
 
7526
        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'
 
7527
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7528
      fi
 
7529
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7530
      hardcode_libdir_separator=:
 
7531
      link_all_deplibs=yes
 
7532
      ;;
 
7533
 
 
7534
    netbsd*)
 
7535
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7536
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7537
      else
 
7538
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7539
      fi
 
7540
      hardcode_libdir_flag_spec='-R$libdir'
 
7541
      hardcode_direct=yes
 
7542
      hardcode_shlibpath_var=no
 
7543
      ;;
 
7544
 
 
7545
    newsos6)
 
7546
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7547
      hardcode_direct=yes
 
7548
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7549
      hardcode_libdir_separator=:
 
7550
      hardcode_shlibpath_var=no
 
7551
      ;;
 
7552
 
 
7553
    openbsd*)
 
7554
      hardcode_direct=yes
 
7555
      hardcode_shlibpath_var=no
 
7556
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7557
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7558
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7559
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7560
        export_dynamic_flag_spec='${wl}-E'
 
7561
      else
 
7562
       case $host_os in
 
7563
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7564
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7565
           hardcode_libdir_flag_spec='-R$libdir'
 
7566
           ;;
 
7567
         *)
 
7568
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7569
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7570
           ;;
 
7571
       esac
 
7572
      fi
 
7573
      ;;
 
7574
 
 
7575
    os2*)
 
7576
      hardcode_libdir_flag_spec='-L$libdir'
 
7577
      hardcode_minus_L=yes
 
7578
      allow_undefined_flag=unsupported
 
7579
      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'
 
7580
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7581
      ;;
 
7582
 
 
7583
    osf3*)
 
7584
      if test "$GCC" = yes; then
 
7585
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7586
        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'
 
7587
      else
 
7588
        allow_undefined_flag=' -expect_unresolved \*'
 
7589
        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'
 
7590
      fi
 
7591
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7592
      hardcode_libdir_separator=:
 
7593
      ;;
 
7594
 
 
7595
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7596
      if test "$GCC" = yes; then
 
7597
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7598
        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'
 
7599
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7600
      else
 
7601
        allow_undefined_flag=' -expect_unresolved \*'
 
7602
        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'
 
7603
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7604
        $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'
 
7605
 
 
7606
        # Both c and cxx compiler support -rpath directly
 
7607
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7608
      fi
 
7609
      hardcode_libdir_separator=:
 
7610
      ;;
 
7611
 
 
7612
    solaris*)
 
7613
      no_undefined_flag=' -z text'
 
7614
      if test "$GCC" = yes; then
 
7615
        wlarc='${wl}'
 
7616
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7617
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7618
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7619
      else
 
7620
        wlarc=''
 
7621
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7622
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7623
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7624
      fi
 
7625
      hardcode_libdir_flag_spec='-R$libdir'
 
7626
      hardcode_shlibpath_var=no
 
7627
      case $host_os in
 
7628
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7629
      *)
 
7630
        # The compiler driver will combine linker options so we
 
7631
        # cannot just pass the convience library names through
 
7632
        # without $wl, iff we do not link with $LD.
 
7633
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7634
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7635
        case $wlarc in
 
7636
        '')
 
7637
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7638
        *)
 
7639
          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' ;;
 
7640
        esac ;;
 
7641
      esac
 
7642
      link_all_deplibs=yes
 
7643
      ;;
 
7644
 
 
7645
    sunos4*)
 
7646
      if test "x$host_vendor" = xsequent; then
 
7647
        # Use $CC to link under sequent, because it throws in some extra .o
 
7648
        # files that make .init and .fini sections work.
 
7649
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7650
      else
 
7651
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7652
      fi
 
7653
      hardcode_libdir_flag_spec='-L$libdir'
 
7654
      hardcode_direct=yes
 
7655
      hardcode_minus_L=yes
 
7656
      hardcode_shlibpath_var=no
 
7657
      ;;
 
7658
 
 
7659
    sysv4)
 
7660
      case $host_vendor in
 
7661
        sni)
 
7662
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7663
          hardcode_direct=yes # is this really true???
 
7664
        ;;
 
7665
        siemens)
 
7666
          ## LD is ld it makes a PLAMLIB
 
7667
          ## CC just makes a GrossModule.
 
7668
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7669
          reload_cmds='$CC -r -o $output$reload_objs'
 
7670
          hardcode_direct=no
 
7671
        ;;
 
7672
        motorola)
 
7673
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7674
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7675
        ;;
 
7676
      esac
 
7677
      runpath_var='LD_RUN_PATH'
 
7678
      hardcode_shlibpath_var=no
 
7679
      ;;
 
7680
 
 
7681
    sysv4.3*)
 
7682
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7683
      hardcode_shlibpath_var=no
 
7684
      export_dynamic_flag_spec='-Bexport'
 
7685
      ;;
 
7686
 
 
7687
    sysv4*MP*)
 
7688
      if test -d /usr/nec; then
 
7689
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7690
        hardcode_shlibpath_var=no
 
7691
        runpath_var=LD_RUN_PATH
 
7692
        hardcode_runpath_var=yes
 
7693
        ld_shlibs=yes
 
7694
      fi
 
7695
      ;;
 
7696
 
 
7697
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7698
      no_undefined_flag='${wl}-z,text'
 
7699
      archive_cmds_need_lc=no
 
7700
      hardcode_shlibpath_var=no
 
7701
      runpath_var='LD_RUN_PATH'
 
7702
 
 
7703
      if test "$GCC" = yes; then
 
7704
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7705
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7706
      else
 
7707
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7708
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7709
      fi
 
7710
      ;;
 
7711
 
 
7712
    sysv5* | sco3.2v5* | sco5v6*)
 
7713
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7714
      # link with -lc, and that would cause any symbols used from libc to
 
7715
      # always be unresolved, which means just about no library would
 
7716
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7717
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7718
      # as -z defs.
 
7719
      no_undefined_flag='${wl}-z,text'
 
7720
      allow_undefined_flag='${wl}-z,nodefs'
 
7721
      archive_cmds_need_lc=no
 
7722
      hardcode_shlibpath_var=no
 
7723
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7724
      hardcode_libdir_separator=':'
 
7725
      link_all_deplibs=yes
 
7726
      export_dynamic_flag_spec='${wl}-Bexport'
 
7727
      runpath_var='LD_RUN_PATH'
 
7728
 
 
7729
      if test "$GCC" = yes; then
 
7730
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7731
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7732
      else
 
7733
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7734
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7735
      fi
 
7736
      ;;
 
7737
 
 
7738
    uts4*)
 
7739
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7740
      hardcode_libdir_flag_spec='-L$libdir'
 
7741
      hardcode_shlibpath_var=no
 
7742
      ;;
 
7743
 
 
7744
    *)
 
7745
      ld_shlibs=no
 
7746
      ;;
 
7747
    esac
 
7748
  fi
 
7749
 
 
7750
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7751
echo "${ECHO_T}$ld_shlibs" >&6
 
7752
test "$ld_shlibs" = no && can_build_shared=no
 
7753
 
 
7754
#
 
7755
# Do we need to explicitly link libc?
 
7756
#
 
7757
case "x$archive_cmds_need_lc" in
 
7758
x|xyes)
 
7759
  # Assume -lc should be added
 
7760
  archive_cmds_need_lc=yes
 
7761
 
 
7762
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7763
    case $archive_cmds in
 
7764
    *'~'*)
 
7765
      # FIXME: we may have to deal with multi-command sequences.
 
7766
      ;;
 
7767
    '$CC '*)
 
7768
      # Test whether the compiler implicitly links with -lc since on some
 
7769
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7770
      # to ld, don't add -lc before -lgcc.
 
7771
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7772
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7773
      $rm conftest*
 
7774
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7775
 
 
7776
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7777
  (eval $ac_compile) 2>&5
 
7778
  ac_status=$?
 
7779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7780
  (exit $ac_status); } 2>conftest.err; then
 
7781
        soname=conftest
 
7782
        lib=conftest
 
7783
        libobjs=conftest.$ac_objext
 
7784
        deplibs=
 
7785
        wl=$lt_prog_compiler_wl
 
7786
        pic_flag=$lt_prog_compiler_pic
 
7787
        compiler_flags=-v
 
7788
        linker_flags=-v
 
7789
        verstring=
 
7790
        output_objdir=.
 
7791
        libname=conftest
 
7792
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7793
        allow_undefined_flag=
 
7794
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7795
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7796
  ac_status=$?
 
7797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7798
  (exit $ac_status); }
 
7799
        then
 
7800
          archive_cmds_need_lc=no
 
7801
        else
 
7802
          archive_cmds_need_lc=yes
 
7803
        fi
 
7804
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7805
      else
 
7806
        cat conftest.err 1>&5
 
7807
      fi
 
7808
      $rm conftest*
 
7809
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7810
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7811
      ;;
 
7812
    esac
 
7813
  fi
 
7814
  ;;
 
7815
esac
 
7816
 
 
7817
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7818
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7819
library_names_spec=
 
7820
libname_spec='lib$name'
 
7821
soname_spec=
 
7822
shrext_cmds=".so"
 
7823
postinstall_cmds=
 
7824
postuninstall_cmds=
 
7825
finish_cmds=
 
7826
finish_eval=
 
7827
shlibpath_var=
 
7828
shlibpath_overrides_runpath=unknown
 
7829
version_type=none
 
7830
dynamic_linker="$host_os ld.so"
 
7831
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7832
if test "$GCC" = yes; then
 
7833
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7834
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7835
    # if the path contains ";" then we assume it to be the separator
 
7836
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7837
    # assumed that no part of a normal pathname contains ";" but that should
 
7838
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7839
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7840
  else
 
7841
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7842
  fi
 
7843
else
 
7844
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7845
fi
 
7846
need_lib_prefix=unknown
 
7847
hardcode_into_libs=no
 
7848
 
 
7849
# when you set need_version to no, make sure it does not cause -set_version
 
7850
# flags to be left without arguments
 
7851
need_version=unknown
 
7852
 
 
7853
case $host_os in
 
7854
aix3*)
 
7855
  version_type=linux
 
7856
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7857
  shlibpath_var=LIBPATH
 
7858
 
 
7859
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7860
  soname_spec='${libname}${release}${shared_ext}$major'
 
7861
  ;;
 
7862
 
 
7863
aix4* | aix5*)
 
7864
  version_type=linux
 
7865
  need_lib_prefix=no
 
7866
  need_version=no
 
7867
  hardcode_into_libs=yes
 
7868
  if test "$host_cpu" = ia64; then
 
7869
    # AIX 5 supports IA64
 
7870
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7871
    shlibpath_var=LD_LIBRARY_PATH
 
7872
  else
 
7873
    # With GCC up to 2.95.x, collect2 would create an import file
 
7874
    # for dependence libraries.  The import file would start with
 
7875
    # the line `#! .'.  This would cause the generated library to
 
7876
    # depend on `.', always an invalid library.  This was fixed in
 
7877
    # development snapshots of GCC prior to 3.0.
 
7878
    case $host_os in
 
7879
      aix4 | aix4.[01] | aix4.[01].*)
 
7880
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7881
           echo ' yes '
 
7882
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7883
        :
 
7884
      else
 
7885
        can_build_shared=no
 
7886
      fi
 
7887
      ;;
 
7888
    esac
 
7889
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7890
    # soname into executable. Probably we can add versioning support to
 
7891
    # collect2, so additional links can be useful in future.
 
7892
    if test "$aix_use_runtimelinking" = yes; then
 
7893
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7894
      # instead of lib<name>.a to let people know that these are not
 
7895
      # typical AIX shared libraries.
 
7896
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7897
    else
 
7898
      # We preserve .a as extension for shared libraries through AIX4.2
 
7899
      # and later when we are not doing run time linking.
 
7900
      library_names_spec='${libname}${release}.a $libname.a'
 
7901
      soname_spec='${libname}${release}${shared_ext}$major'
 
7902
    fi
 
7903
    shlibpath_var=LIBPATH
 
7904
  fi
 
7905
  ;;
 
7906
 
 
7907
amigaos*)
 
7908
  library_names_spec='$libname.ixlibrary $libname.a'
 
7909
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7910
  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'
 
7911
  ;;
 
7912
 
 
7913
beos*)
 
7914
  library_names_spec='${libname}${shared_ext}'
 
7915
  dynamic_linker="$host_os ld.so"
 
7916
  shlibpath_var=LIBRARY_PATH
 
7917
  ;;
 
7918
 
 
7919
bsdi[45]*)
 
7920
  version_type=linux
 
7921
  need_version=no
 
7922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7923
  soname_spec='${libname}${release}${shared_ext}$major'
 
7924
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7925
  shlibpath_var=LD_LIBRARY_PATH
 
7926
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7927
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7928
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7929
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7930
  # libtool to hard-code these into programs
 
7931
  ;;
 
7932
 
 
7933
cygwin* | mingw* | pw32*)
 
7934
  version_type=windows
 
7935
  shrext_cmds=".dll"
 
7936
  need_version=no
 
7937
  need_lib_prefix=no
 
7938
 
 
7939
  case $GCC,$host_os in
 
7940
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7941
    library_names_spec='$libname.dll.a'
 
7942
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7943
    postinstall_cmds='base_file=`basename \${file}`~
 
7944
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7945
      dldir=$destdir/`dirname \$dlpath`~
 
7946
      test -d \$dldir || mkdir -p \$dldir~
 
7947
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7948
      chmod a+x \$dldir/$dlname'
 
7949
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7950
      dlpath=$dir/\$dldll~
 
7951
       $rm \$dlpath'
 
7952
    shlibpath_overrides_runpath=yes
 
7953
 
 
7954
    case $host_os in
 
7955
    cygwin*)
 
7956
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7957
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7958
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7959
      ;;
 
7960
    mingw*)
 
7961
      # MinGW DLLs use traditional 'lib' prefix
 
7962
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7963
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7964
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7965
        # It is most probably a Windows format PATH printed by
 
7966
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7967
        # path with ; separators, and with drive letters. We can handle the
 
7968
        # drive letters (cygwin fileutils understands them), so leave them,
 
7969
        # especially as we might pass files found there to a mingw objdump,
 
7970
        # which wouldn't understand a cygwinified path. Ahh.
 
7971
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7972
      else
 
7973
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7974
      fi
 
7975
      ;;
 
7976
    pw32*)
 
7977
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7978
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7979
      ;;
 
7980
    esac
 
7981
    ;;
 
7982
 
 
7983
  *)
 
7984
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7985
    ;;
 
7986
  esac
 
7987
  dynamic_linker='Win32 ld.exe'
 
7988
  # FIXME: first we should search . and the directory the executable is in
 
7989
  shlibpath_var=PATH
 
7990
  ;;
 
7991
 
 
7992
darwin* | rhapsody*)
 
7993
  dynamic_linker="$host_os dyld"
 
7994
  version_type=darwin
 
7995
  need_lib_prefix=no
 
7996
  need_version=no
 
7997
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7998
  soname_spec='${libname}${release}${major}$shared_ext'
 
7999
  shlibpath_overrides_runpath=yes
 
8000
  shlibpath_var=DYLD_LIBRARY_PATH
 
8001
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8002
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8003
  if test "$GCC" = yes; then
 
8004
    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"`
 
8005
  else
 
8006
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8007
  fi
 
8008
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8009
  ;;
 
8010
 
 
8011
dgux*)
 
8012
  version_type=linux
 
8013
  need_lib_prefix=no
 
8014
  need_version=no
 
8015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8016
  soname_spec='${libname}${release}${shared_ext}$major'
 
8017
  shlibpath_var=LD_LIBRARY_PATH
 
8018
  ;;
 
8019
 
 
8020
freebsd1*)
 
8021
  dynamic_linker=no
 
8022
  ;;
 
8023
 
 
8024
kfreebsd*-gnu)
 
8025
  version_type=linux
 
8026
  need_lib_prefix=no
 
8027
  need_version=no
 
8028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8029
  soname_spec='${libname}${release}${shared_ext}$major'
 
8030
  shlibpath_var=LD_LIBRARY_PATH
 
8031
  shlibpath_overrides_runpath=no
 
8032
  hardcode_into_libs=yes
 
8033
  dynamic_linker='GNU ld.so'
 
8034
  ;;
 
8035
 
 
8036
freebsd* | dragonfly*)
 
8037
  # DragonFly does not have aout.  When/if they implement a new
 
8038
  # versioning mechanism, adjust this.
 
8039
  if test -x /usr/bin/objformat; then
 
8040
    objformat=`/usr/bin/objformat`
 
8041
  else
 
8042
    case $host_os in
 
8043
    freebsd[123]*) objformat=aout ;;
 
8044
    *) objformat=elf ;;
 
8045
    esac
 
8046
  fi
 
8047
  version_type=freebsd-$objformat
 
8048
  case $version_type in
 
8049
    freebsd-elf*)
 
8050
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8051
      need_version=no
 
8052
      need_lib_prefix=no
 
8053
      ;;
 
8054
    freebsd-*)
 
8055
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8056
      need_version=yes
 
8057
      ;;
 
8058
  esac
 
8059
  shlibpath_var=LD_LIBRARY_PATH
 
8060
  case $host_os in
 
8061
  freebsd2*)
 
8062
    shlibpath_overrides_runpath=yes
 
8063
    ;;
 
8064
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8065
    shlibpath_overrides_runpath=yes
 
8066
    hardcode_into_libs=yes
 
8067
    ;;
 
8068
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8069
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8070
    shlibpath_overrides_runpath=no
 
8071
    hardcode_into_libs=yes
 
8072
    ;;
 
8073
  freebsd*) # from 4.6 on
 
8074
    shlibpath_overrides_runpath=yes
 
8075
    hardcode_into_libs=yes
 
8076
    ;;
 
8077
  esac
 
8078
  ;;
 
8079
 
 
8080
gnu*)
 
8081
  version_type=linux
 
8082
  need_lib_prefix=no
 
8083
  need_version=no
 
8084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8085
  soname_spec='${libname}${release}${shared_ext}$major'
 
8086
  shlibpath_var=LD_LIBRARY_PATH
 
8087
  hardcode_into_libs=yes
 
8088
  ;;
 
8089
 
 
8090
hpux9* | hpux10* | hpux11*)
 
8091
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8092
  # link against other versions.
 
8093
  version_type=sunos
 
8094
  need_lib_prefix=no
 
8095
  need_version=no
 
8096
  case $host_cpu in
 
8097
  ia64*)
 
8098
    shrext_cmds='.so'
 
8099
    hardcode_into_libs=yes
 
8100
    dynamic_linker="$host_os dld.so"
 
8101
    shlibpath_var=LD_LIBRARY_PATH
 
8102
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8103
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8104
    soname_spec='${libname}${release}${shared_ext}$major'
 
8105
    if test "X$HPUX_IA64_MODE" = X32; then
 
8106
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8107
    else
 
8108
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8109
    fi
 
8110
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8111
    ;;
 
8112
   hppa*64*)
 
8113
     shrext_cmds='.sl'
 
8114
     hardcode_into_libs=yes
 
8115
     dynamic_linker="$host_os dld.sl"
 
8116
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8117
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8118
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8119
     soname_spec='${libname}${release}${shared_ext}$major'
 
8120
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8121
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8122
     ;;
 
8123
   *)
 
8124
    shrext_cmds='.sl'
 
8125
    dynamic_linker="$host_os dld.sl"
 
8126
    shlibpath_var=SHLIB_PATH
 
8127
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8128
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8129
    soname_spec='${libname}${release}${shared_ext}$major'
 
8130
    ;;
 
8131
  esac
 
8132
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8133
  postinstall_cmds='chmod 555 $lib'
 
8134
  ;;
 
8135
 
 
8136
interix3*)
 
8137
  version_type=linux
 
8138
  need_lib_prefix=no
 
8139
  need_version=no
 
8140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8141
  soname_spec='${libname}${release}${shared_ext}$major'
 
8142
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8143
  shlibpath_var=LD_LIBRARY_PATH
 
8144
  shlibpath_overrides_runpath=no
 
8145
  hardcode_into_libs=yes
 
8146
  ;;
 
8147
 
 
8148
irix5* | irix6* | nonstopux*)
 
8149
  case $host_os in
 
8150
    nonstopux*) version_type=nonstopux ;;
 
8151
    *)
 
8152
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8153
                version_type=linux
 
8154
        else
 
8155
                version_type=irix
 
8156
        fi ;;
 
8157
  esac
 
8158
  need_lib_prefix=no
 
8159
  need_version=no
 
8160
  soname_spec='${libname}${release}${shared_ext}$major'
 
8161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8162
  case $host_os in
 
8163
  irix5* | nonstopux*)
 
8164
    libsuff= shlibsuff=
 
8165
    ;;
 
8166
  *)
 
8167
    case $LD in # libtool.m4 will add one of these switches to LD
 
8168
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8169
      libsuff= shlibsuff= libmagic=32-bit;;
 
8170
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8171
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8172
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8173
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8174
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8175
    esac
 
8176
    ;;
 
8177
  esac
 
8178
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8179
  shlibpath_overrides_runpath=no
 
8180
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8181
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8182
  hardcode_into_libs=yes
 
8183
  ;;
 
8184
 
 
8185
# No shared lib support for Linux oldld, aout, or coff.
 
8186
linux*oldld* | linux*aout* | linux*coff*)
 
8187
  dynamic_linker=no
 
8188
  ;;
 
8189
 
 
8190
# This must be Linux ELF.
 
8191
linux*)
 
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
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8198
  shlibpath_var=LD_LIBRARY_PATH
 
8199
  shlibpath_overrides_runpath=no
 
8200
  # This implies no fast_install, which is unacceptable.
 
8201
  # Some rework will be needed to allow for fast_install
 
8202
  # before this can be enabled.
 
8203
  hardcode_into_libs=yes
 
8204
 
 
8205
  # Append ld.so.conf contents to the search path
 
8206
  if test -f /etc/ld.so.conf; then
 
8207
    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' ' '`
 
8208
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8209
  fi
 
8210
 
 
8211
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8212
  # powerpc, because MkLinux only supported shared libraries with the
 
8213
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8214
  # most powerpc-linux boxes support dynamic linking these days and
 
8215
  # people can always --disable-shared, the test was removed, and we
 
8216
  # assume the GNU/Linux dynamic linker is in use.
 
8217
  dynamic_linker='GNU/Linux ld.so'
 
8218
  ;;
 
8219
 
 
8220
knetbsd*-gnu)
 
8221
  version_type=linux
 
8222
  need_lib_prefix=no
 
8223
  need_version=no
 
8224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8225
  soname_spec='${libname}${release}${shared_ext}$major'
 
8226
  shlibpath_var=LD_LIBRARY_PATH
 
8227
  shlibpath_overrides_runpath=no
 
8228
  hardcode_into_libs=yes
 
8229
  dynamic_linker='GNU ld.so'
 
8230
  ;;
 
8231
 
 
8232
netbsd*)
 
8233
  version_type=sunos
 
8234
  need_lib_prefix=no
 
8235
  need_version=no
 
8236
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8237
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8238
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8239
    dynamic_linker='NetBSD (a.out) ld.so'
 
8240
  else
 
8241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8242
    soname_spec='${libname}${release}${shared_ext}$major'
 
8243
    dynamic_linker='NetBSD ld.elf_so'
 
8244
  fi
 
8245
  shlibpath_var=LD_LIBRARY_PATH
 
8246
  shlibpath_overrides_runpath=yes
 
8247
  hardcode_into_libs=yes
 
8248
  ;;
 
8249
 
 
8250
newsos6)
 
8251
  version_type=linux
 
8252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8253
  shlibpath_var=LD_LIBRARY_PATH
 
8254
  shlibpath_overrides_runpath=yes
 
8255
  ;;
 
8256
 
 
8257
nto-qnx*)
 
8258
  version_type=linux
 
8259
  need_lib_prefix=no
 
8260
  need_version=no
 
8261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8262
  soname_spec='${libname}${release}${shared_ext}$major'
 
8263
  shlibpath_var=LD_LIBRARY_PATH
 
8264
  shlibpath_overrides_runpath=yes
 
8265
  ;;
 
8266
 
 
8267
openbsd*)
 
8268
  version_type=sunos
 
8269
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8270
  need_lib_prefix=no
 
8271
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8272
  case $host_os in
 
8273
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8274
    *)                         need_version=no  ;;
 
8275
  esac
 
8276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8277
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8278
  shlibpath_var=LD_LIBRARY_PATH
 
8279
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8280
    case $host_os in
 
8281
      openbsd2.[89] | openbsd2.[89].*)
 
8282
        shlibpath_overrides_runpath=no
 
8283
        ;;
 
8284
      *)
 
8285
        shlibpath_overrides_runpath=yes
 
8286
        ;;
 
8287
      esac
 
8288
  else
 
8289
    shlibpath_overrides_runpath=yes
 
8290
  fi
 
8291
  ;;
 
8292
 
 
8293
os2*)
 
8294
  libname_spec='$name'
 
8295
  shrext_cmds=".dll"
 
8296
  need_lib_prefix=no
 
8297
  library_names_spec='$libname${shared_ext} $libname.a'
 
8298
  dynamic_linker='OS/2 ld.exe'
 
8299
  shlibpath_var=LIBPATH
 
8300
  ;;
 
8301
 
 
8302
osf3* | osf4* | osf5*)
 
8303
  version_type=osf
 
8304
  need_lib_prefix=no
 
8305
  need_version=no
 
8306
  soname_spec='${libname}${release}${shared_ext}$major'
 
8307
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8308
  shlibpath_var=LD_LIBRARY_PATH
 
8309
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8310
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8311
  ;;
 
8312
 
 
8313
solaris*)
 
8314
  version_type=linux
 
8315
  need_lib_prefix=no
 
8316
  need_version=no
 
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
  shlibpath_overrides_runpath=yes
 
8321
  hardcode_into_libs=yes
 
8322
  # ldd complains unless libraries are executable
 
8323
  postinstall_cmds='chmod +x $lib'
 
8324
  ;;
 
8325
 
 
8326
sunos4*)
 
8327
  version_type=sunos
 
8328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8329
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8330
  shlibpath_var=LD_LIBRARY_PATH
 
8331
  shlibpath_overrides_runpath=yes
 
8332
  if test "$with_gnu_ld" = yes; then
 
8333
    need_lib_prefix=no
 
8334
  fi
 
8335
  need_version=yes
 
8336
  ;;
 
8337
 
 
8338
sysv4 | sysv4.3*)
 
8339
  version_type=linux
 
8340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8341
  soname_spec='${libname}${release}${shared_ext}$major'
 
8342
  shlibpath_var=LD_LIBRARY_PATH
 
8343
  case $host_vendor in
 
8344
    sni)
 
8345
      shlibpath_overrides_runpath=no
 
8346
      need_lib_prefix=no
 
8347
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8348
      runpath_var=LD_RUN_PATH
 
8349
      ;;
 
8350
    siemens)
 
8351
      need_lib_prefix=no
 
8352
      ;;
 
8353
    motorola)
 
8354
      need_lib_prefix=no
 
8355
      need_version=no
 
8356
      shlibpath_overrides_runpath=no
 
8357
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8358
      ;;
 
8359
  esac
 
8360
  ;;
 
8361
 
 
8362
sysv4*MP*)
 
8363
  if test -d /usr/nec ;then
 
8364
    version_type=linux
 
8365
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8366
    soname_spec='$libname${shared_ext}.$major'
 
8367
    shlibpath_var=LD_LIBRARY_PATH
 
8368
  fi
 
8369
  ;;
 
8370
 
 
8371
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8372
  version_type=freebsd-elf
 
8373
  need_lib_prefix=no
 
8374
  need_version=no
 
8375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8376
  soname_spec='${libname}${release}${shared_ext}$major'
 
8377
  shlibpath_var=LD_LIBRARY_PATH
 
8378
  hardcode_into_libs=yes
 
8379
  if test "$with_gnu_ld" = yes; then
 
8380
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8381
    shlibpath_overrides_runpath=no
 
8382
  else
 
8383
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8384
    shlibpath_overrides_runpath=yes
 
8385
    case $host_os in
 
8386
      sco3.2v5*)
 
8387
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8388
        ;;
 
8389
    esac
 
8390
  fi
 
8391
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8392
  ;;
 
8393
 
 
8394
uts4*)
 
8395
  version_type=linux
 
8396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8397
  soname_spec='${libname}${release}${shared_ext}$major'
 
8398
  shlibpath_var=LD_LIBRARY_PATH
 
8399
  ;;
 
8400
 
 
8401
*)
 
8402
  dynamic_linker=no
 
8403
  ;;
 
8404
esac
 
8405
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8406
echo "${ECHO_T}$dynamic_linker" >&6
 
8407
test "$dynamic_linker" = no && can_build_shared=no
 
8408
 
 
8409
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8410
if test "$GCC" = yes; then
 
8411
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8412
fi
 
8413
 
 
8414
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8415
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8416
hardcode_action=
 
8417
if test -n "$hardcode_libdir_flag_spec" || \
 
8418
   test -n "$runpath_var" || \
 
8419
   test "X$hardcode_automatic" = "Xyes" ; then
 
8420
 
 
8421
  # We can hardcode non-existant directories.
 
8422
  if test "$hardcode_direct" != no &&
 
8423
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8424
     # have to relink, otherwise we might link with an installed library
 
8425
     # when we should be linking with a yet-to-be-installed one
 
8426
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8427
     test "$hardcode_minus_L" != no; then
 
8428
    # Linking always hardcodes the temporary library directory.
 
8429
    hardcode_action=relink
 
8430
  else
 
8431
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8432
    hardcode_action=immediate
 
8433
  fi
 
8434
else
 
8435
  # We cannot hardcode anything, or else we can only hardcode existing
 
8436
  # directories.
 
8437
  hardcode_action=unsupported
 
8438
fi
 
8439
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8440
echo "${ECHO_T}$hardcode_action" >&6
 
8441
 
 
8442
if test "$hardcode_action" = relink; then
 
8443
  # Fast installation is not supported
 
8444
  enable_fast_install=no
 
8445
elif test "$shlibpath_overrides_runpath" = yes ||
 
8446
     test "$enable_shared" = no; then
 
8447
  # Fast installation is not necessary
 
8448
  enable_fast_install=needless
 
8449
fi
 
8450
 
 
8451
striplib=
 
8452
old_striplib=
 
8453
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8454
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8455
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8456
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8457
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8458
  echo "$as_me:$LINENO: result: yes" >&5
 
8459
echo "${ECHO_T}yes" >&6
 
8460
else
 
8461
# FIXME - insert some real tests, host_os isn't really good enough
 
8462
  case $host_os in
 
8463
   darwin*)
 
8464
       if test -n "$STRIP" ; then
 
8465
         striplib="$STRIP -x"
 
8466
         echo "$as_me:$LINENO: result: yes" >&5
 
8467
echo "${ECHO_T}yes" >&6
 
8468
       else
 
8469
  echo "$as_me:$LINENO: result: no" >&5
 
8470
echo "${ECHO_T}no" >&6
 
8471
fi
 
8472
       ;;
 
8473
   *)
 
8474
  echo "$as_me:$LINENO: result: no" >&5
 
8475
echo "${ECHO_T}no" >&6
 
8476
    ;;
 
8477
  esac
 
8478
fi
 
8479
 
 
8480
if test "x$enable_dlopen" != xyes; then
 
8481
  enable_dlopen=unknown
 
8482
  enable_dlopen_self=unknown
 
8483
  enable_dlopen_self_static=unknown
 
8484
else
 
8485
  lt_cv_dlopen=no
 
8486
  lt_cv_dlopen_libs=
 
8487
 
 
8488
  case $host_os in
 
8489
  beos*)
 
8490
    lt_cv_dlopen="load_add_on"
 
8491
    lt_cv_dlopen_libs=
 
8492
    lt_cv_dlopen_self=yes
 
8493
    ;;
 
8494
 
 
8495
  mingw* | pw32*)
 
8496
    lt_cv_dlopen="LoadLibrary"
 
8497
    lt_cv_dlopen_libs=
 
8498
   ;;
 
8499
 
 
8500
  cygwin*)
 
8501
    lt_cv_dlopen="dlopen"
 
8502
    lt_cv_dlopen_libs=
 
8503
   ;;
 
8504
 
 
8505
  darwin*)
 
8506
  # if libdl is installed we need to link against it
 
8507
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8508
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8509
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8511
else
 
8512
  ac_check_lib_save_LIBS=$LIBS
 
8513
LIBS="-ldl  $LIBS"
 
8514
cat >conftest.$ac_ext <<_ACEOF
 
8515
/* confdefs.h.  */
 
8516
_ACEOF
 
8517
cat confdefs.h >>conftest.$ac_ext
 
8518
cat >>conftest.$ac_ext <<_ACEOF
 
8519
/* end confdefs.h.  */
 
8520
 
 
8521
/* Override any gcc2 internal prototype to avoid an error.  */
 
8522
#ifdef __cplusplus
 
8523
extern "C"
 
8524
#endif
 
8525
/* We use char because int might match the return type of a gcc2
 
8526
   builtin and then its argument prototype would still apply.  */
 
8527
char dlopen ();
 
8528
int
 
8529
main ()
 
8530
{
 
8531
dlopen ();
 
8532
  ;
 
8533
  return 0;
 
8534
}
 
8535
_ACEOF
 
8536
rm -f conftest.$ac_objext conftest$ac_exeext
 
8537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8538
  (eval $ac_link) 2>conftest.er1
 
8539
  ac_status=$?
 
8540
  grep -v '^ *+' conftest.er1 >conftest.err
 
8541
  rm -f conftest.er1
 
8542
  cat conftest.err >&5
 
8543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8544
  (exit $ac_status); } &&
 
8545
         { ac_try='test -z "$ac_c_werror_flag"
 
8546
                         || test ! -s conftest.err'
 
8547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8548
  (eval $ac_try) 2>&5
 
8549
  ac_status=$?
 
8550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8551
  (exit $ac_status); }; } &&
 
8552
         { ac_try='test -s conftest$ac_exeext'
 
8553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8554
  (eval $ac_try) 2>&5
 
8555
  ac_status=$?
 
8556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8557
  (exit $ac_status); }; }; then
 
8558
  ac_cv_lib_dl_dlopen=yes
 
8559
else
 
8560
  echo "$as_me: failed program was:" >&5
 
8561
sed 's/^/| /' conftest.$ac_ext >&5
 
8562
 
 
8563
ac_cv_lib_dl_dlopen=no
 
8564
fi
 
8565
rm -f conftest.err conftest.$ac_objext \
 
8566
      conftest$ac_exeext conftest.$ac_ext
 
8567
LIBS=$ac_check_lib_save_LIBS
 
8568
fi
 
8569
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8570
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8571
if test $ac_cv_lib_dl_dlopen = yes; then
 
8572
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8573
else
 
8574
 
 
8575
    lt_cv_dlopen="dyld"
 
8576
    lt_cv_dlopen_libs=
 
8577
    lt_cv_dlopen_self=yes
 
8578
 
 
8579
fi
 
8580
 
 
8581
   ;;
 
8582
 
 
8583
  *)
 
8584
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8585
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8586
if test "${ac_cv_func_shl_load+set}" = set; then
 
8587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8588
else
 
8589
  cat >conftest.$ac_ext <<_ACEOF
 
8590
/* confdefs.h.  */
 
8591
_ACEOF
 
8592
cat confdefs.h >>conftest.$ac_ext
 
8593
cat >>conftest.$ac_ext <<_ACEOF
 
8594
/* end confdefs.h.  */
 
8595
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8596
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8597
#define shl_load innocuous_shl_load
 
8598
 
 
8599
/* System header to define __stub macros and hopefully few prototypes,
 
8600
    which can conflict with char shl_load (); below.
 
8601
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8602
    <limits.h> exists even on freestanding compilers.  */
 
8603
 
 
8604
#ifdef __STDC__
 
8605
# include <limits.h>
 
8606
#else
 
8607
# include <assert.h>
 
8608
#endif
 
8609
 
 
8610
#undef shl_load
 
8611
 
 
8612
/* Override any gcc2 internal prototype to avoid an error.  */
 
8613
#ifdef __cplusplus
 
8614
extern "C"
 
8615
{
 
8616
#endif
 
8617
/* We use char because int might match the return type of a gcc2
 
8618
   builtin and then its argument prototype would still apply.  */
 
8619
char shl_load ();
 
8620
/* The GNU C library defines this for functions which it implements
 
8621
    to always fail with ENOSYS.  Some functions are actually named
 
8622
    something starting with __ and the normal name is an alias.  */
 
8623
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8624
choke me
 
8625
#else
 
8626
char (*f) () = shl_load;
 
8627
#endif
 
8628
#ifdef __cplusplus
 
8629
}
 
8630
#endif
 
8631
 
 
8632
int
 
8633
main ()
 
8634
{
 
8635
return f != shl_load;
 
8636
  ;
 
8637
  return 0;
 
8638
}
 
8639
_ACEOF
 
8640
rm -f conftest.$ac_objext conftest$ac_exeext
 
8641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8642
  (eval $ac_link) 2>conftest.er1
 
8643
  ac_status=$?
 
8644
  grep -v '^ *+' conftest.er1 >conftest.err
 
8645
  rm -f conftest.er1
 
8646
  cat conftest.err >&5
 
8647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8648
  (exit $ac_status); } &&
 
8649
         { ac_try='test -z "$ac_c_werror_flag"
 
8650
                         || test ! -s conftest.err'
 
8651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8652
  (eval $ac_try) 2>&5
 
8653
  ac_status=$?
 
8654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8655
  (exit $ac_status); }; } &&
 
8656
         { ac_try='test -s conftest$ac_exeext'
 
8657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8658
  (eval $ac_try) 2>&5
 
8659
  ac_status=$?
 
8660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8661
  (exit $ac_status); }; }; then
 
8662
  ac_cv_func_shl_load=yes
 
8663
else
 
8664
  echo "$as_me: failed program was:" >&5
 
8665
sed 's/^/| /' conftest.$ac_ext >&5
 
8666
 
 
8667
ac_cv_func_shl_load=no
 
8668
fi
 
8669
rm -f conftest.err conftest.$ac_objext \
 
8670
      conftest$ac_exeext conftest.$ac_ext
 
8671
fi
 
8672
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8673
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8674
if test $ac_cv_func_shl_load = yes; then
 
8675
  lt_cv_dlopen="shl_load"
 
8676
else
 
8677
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8678
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8679
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8681
else
 
8682
  ac_check_lib_save_LIBS=$LIBS
 
8683
LIBS="-ldld  $LIBS"
 
8684
cat >conftest.$ac_ext <<_ACEOF
 
8685
/* confdefs.h.  */
 
8686
_ACEOF
 
8687
cat confdefs.h >>conftest.$ac_ext
 
8688
cat >>conftest.$ac_ext <<_ACEOF
 
8689
/* end confdefs.h.  */
 
8690
 
 
8691
/* Override any gcc2 internal prototype to avoid an error.  */
 
8692
#ifdef __cplusplus
 
8693
extern "C"
 
8694
#endif
 
8695
/* We use char because int might match the return type of a gcc2
 
8696
   builtin and then its argument prototype would still apply.  */
 
8697
char shl_load ();
 
8698
int
 
8699
main ()
 
8700
{
 
8701
shl_load ();
 
8702
  ;
 
8703
  return 0;
 
8704
}
 
8705
_ACEOF
 
8706
rm -f conftest.$ac_objext conftest$ac_exeext
 
8707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8708
  (eval $ac_link) 2>conftest.er1
 
8709
  ac_status=$?
 
8710
  grep -v '^ *+' conftest.er1 >conftest.err
 
8711
  rm -f conftest.er1
 
8712
  cat conftest.err >&5
 
8713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8714
  (exit $ac_status); } &&
 
8715
         { ac_try='test -z "$ac_c_werror_flag"
 
8716
                         || test ! -s conftest.err'
 
8717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8718
  (eval $ac_try) 2>&5
 
8719
  ac_status=$?
 
8720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8721
  (exit $ac_status); }; } &&
 
8722
         { ac_try='test -s conftest$ac_exeext'
 
8723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8724
  (eval $ac_try) 2>&5
 
8725
  ac_status=$?
 
8726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8727
  (exit $ac_status); }; }; then
 
8728
  ac_cv_lib_dld_shl_load=yes
 
8729
else
 
8730
  echo "$as_me: failed program was:" >&5
 
8731
sed 's/^/| /' conftest.$ac_ext >&5
 
8732
 
 
8733
ac_cv_lib_dld_shl_load=no
 
8734
fi
 
8735
rm -f conftest.err conftest.$ac_objext \
 
8736
      conftest$ac_exeext conftest.$ac_ext
 
8737
LIBS=$ac_check_lib_save_LIBS
 
8738
fi
 
8739
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8740
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8741
if test $ac_cv_lib_dld_shl_load = yes; then
 
8742
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8743
else
 
8744
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8745
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8746
if test "${ac_cv_func_dlopen+set}" = set; then
 
8747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8748
else
 
8749
  cat >conftest.$ac_ext <<_ACEOF
 
8750
/* confdefs.h.  */
 
8751
_ACEOF
 
8752
cat confdefs.h >>conftest.$ac_ext
 
8753
cat >>conftest.$ac_ext <<_ACEOF
 
8754
/* end confdefs.h.  */
 
8755
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8756
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8757
#define dlopen innocuous_dlopen
 
8758
 
 
8759
/* System header to define __stub macros and hopefully few prototypes,
 
8760
    which can conflict with char dlopen (); below.
 
8761
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8762
    <limits.h> exists even on freestanding compilers.  */
 
8763
 
 
8764
#ifdef __STDC__
 
8765
# include <limits.h>
 
8766
#else
 
8767
# include <assert.h>
 
8768
#endif
 
8769
 
 
8770
#undef dlopen
 
8771
 
 
8772
/* Override any gcc2 internal prototype to avoid an error.  */
 
8773
#ifdef __cplusplus
 
8774
extern "C"
 
8775
{
 
8776
#endif
 
8777
/* We use char because int might match the return type of a gcc2
 
8778
   builtin and then its argument prototype would still apply.  */
 
8779
char dlopen ();
 
8780
/* The GNU C library defines this for functions which it implements
 
8781
    to always fail with ENOSYS.  Some functions are actually named
 
8782
    something starting with __ and the normal name is an alias.  */
 
8783
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8784
choke me
 
8785
#else
 
8786
char (*f) () = dlopen;
 
8787
#endif
 
8788
#ifdef __cplusplus
 
8789
}
 
8790
#endif
 
8791
 
 
8792
int
 
8793
main ()
 
8794
{
 
8795
return f != dlopen;
 
8796
  ;
 
8797
  return 0;
 
8798
}
 
8799
_ACEOF
 
8800
rm -f conftest.$ac_objext conftest$ac_exeext
 
8801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8802
  (eval $ac_link) 2>conftest.er1
 
8803
  ac_status=$?
 
8804
  grep -v '^ *+' conftest.er1 >conftest.err
 
8805
  rm -f conftest.er1
 
8806
  cat conftest.err >&5
 
8807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8808
  (exit $ac_status); } &&
 
8809
         { ac_try='test -z "$ac_c_werror_flag"
 
8810
                         || test ! -s conftest.err'
 
8811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8812
  (eval $ac_try) 2>&5
 
8813
  ac_status=$?
 
8814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8815
  (exit $ac_status); }; } &&
 
8816
         { ac_try='test -s conftest$ac_exeext'
 
8817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8818
  (eval $ac_try) 2>&5
 
8819
  ac_status=$?
 
8820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8821
  (exit $ac_status); }; }; then
 
8822
  ac_cv_func_dlopen=yes
 
8823
else
 
8824
  echo "$as_me: failed program was:" >&5
 
8825
sed 's/^/| /' conftest.$ac_ext >&5
 
8826
 
 
8827
ac_cv_func_dlopen=no
 
8828
fi
 
8829
rm -f conftest.err conftest.$ac_objext \
 
8830
      conftest$ac_exeext conftest.$ac_ext
 
8831
fi
 
8832
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8833
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8834
if test $ac_cv_func_dlopen = yes; then
 
8835
  lt_cv_dlopen="dlopen"
 
8836
else
 
8837
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8838
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8839
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8841
else
 
8842
  ac_check_lib_save_LIBS=$LIBS
 
8843
LIBS="-ldl  $LIBS"
 
8844
cat >conftest.$ac_ext <<_ACEOF
 
8845
/* confdefs.h.  */
 
8846
_ACEOF
 
8847
cat confdefs.h >>conftest.$ac_ext
 
8848
cat >>conftest.$ac_ext <<_ACEOF
 
8849
/* end confdefs.h.  */
 
8850
 
 
8851
/* Override any gcc2 internal prototype to avoid an error.  */
 
8852
#ifdef __cplusplus
 
8853
extern "C"
 
8854
#endif
 
8855
/* We use char because int might match the return type of a gcc2
 
8856
   builtin and then its argument prototype would still apply.  */
 
8857
char dlopen ();
 
8858
int
 
8859
main ()
 
8860
{
 
8861
dlopen ();
 
8862
  ;
 
8863
  return 0;
 
8864
}
 
8865
_ACEOF
 
8866
rm -f conftest.$ac_objext conftest$ac_exeext
 
8867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8868
  (eval $ac_link) 2>conftest.er1
 
8869
  ac_status=$?
 
8870
  grep -v '^ *+' conftest.er1 >conftest.err
 
8871
  rm -f conftest.er1
 
8872
  cat conftest.err >&5
 
8873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8874
  (exit $ac_status); } &&
 
8875
         { ac_try='test -z "$ac_c_werror_flag"
 
8876
                         || test ! -s conftest.err'
 
8877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8878
  (eval $ac_try) 2>&5
 
8879
  ac_status=$?
 
8880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8881
  (exit $ac_status); }; } &&
 
8882
         { ac_try='test -s conftest$ac_exeext'
 
8883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8884
  (eval $ac_try) 2>&5
 
8885
  ac_status=$?
 
8886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8887
  (exit $ac_status); }; }; then
 
8888
  ac_cv_lib_dl_dlopen=yes
 
8889
else
 
8890
  echo "$as_me: failed program was:" >&5
 
8891
sed 's/^/| /' conftest.$ac_ext >&5
 
8892
 
 
8893
ac_cv_lib_dl_dlopen=no
 
8894
fi
 
8895
rm -f conftest.err conftest.$ac_objext \
 
8896
      conftest$ac_exeext conftest.$ac_ext
 
8897
LIBS=$ac_check_lib_save_LIBS
 
8898
fi
 
8899
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8900
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8901
if test $ac_cv_lib_dl_dlopen = yes; then
 
8902
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8903
else
 
8904
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8905
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8906
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8908
else
 
8909
  ac_check_lib_save_LIBS=$LIBS
 
8910
LIBS="-lsvld  $LIBS"
 
8911
cat >conftest.$ac_ext <<_ACEOF
 
8912
/* confdefs.h.  */
 
8913
_ACEOF
 
8914
cat confdefs.h >>conftest.$ac_ext
 
8915
cat >>conftest.$ac_ext <<_ACEOF
 
8916
/* end confdefs.h.  */
 
8917
 
 
8918
/* Override any gcc2 internal prototype to avoid an error.  */
 
8919
#ifdef __cplusplus
 
8920
extern "C"
 
8921
#endif
 
8922
/* We use char because int might match the return type of a gcc2
 
8923
   builtin and then its argument prototype would still apply.  */
 
8924
char dlopen ();
 
8925
int
 
8926
main ()
 
8927
{
 
8928
dlopen ();
 
8929
  ;
 
8930
  return 0;
 
8931
}
 
8932
_ACEOF
 
8933
rm -f conftest.$ac_objext conftest$ac_exeext
 
8934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8935
  (eval $ac_link) 2>conftest.er1
 
8936
  ac_status=$?
 
8937
  grep -v '^ *+' conftest.er1 >conftest.err
 
8938
  rm -f conftest.er1
 
8939
  cat conftest.err >&5
 
8940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8941
  (exit $ac_status); } &&
 
8942
         { ac_try='test -z "$ac_c_werror_flag"
 
8943
                         || test ! -s conftest.err'
 
8944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8945
  (eval $ac_try) 2>&5
 
8946
  ac_status=$?
 
8947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8948
  (exit $ac_status); }; } &&
 
8949
         { ac_try='test -s conftest$ac_exeext'
 
8950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8951
  (eval $ac_try) 2>&5
 
8952
  ac_status=$?
 
8953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8954
  (exit $ac_status); }; }; then
 
8955
  ac_cv_lib_svld_dlopen=yes
 
8956
else
 
8957
  echo "$as_me: failed program was:" >&5
 
8958
sed 's/^/| /' conftest.$ac_ext >&5
 
8959
 
 
8960
ac_cv_lib_svld_dlopen=no
 
8961
fi
 
8962
rm -f conftest.err conftest.$ac_objext \
 
8963
      conftest$ac_exeext conftest.$ac_ext
 
8964
LIBS=$ac_check_lib_save_LIBS
 
8965
fi
 
8966
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8967
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8968
if test $ac_cv_lib_svld_dlopen = yes; then
 
8969
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8970
else
 
8971
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8972
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8973
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8975
else
 
8976
  ac_check_lib_save_LIBS=$LIBS
 
8977
LIBS="-ldld  $LIBS"
 
8978
cat >conftest.$ac_ext <<_ACEOF
 
8979
/* confdefs.h.  */
 
8980
_ACEOF
 
8981
cat confdefs.h >>conftest.$ac_ext
 
8982
cat >>conftest.$ac_ext <<_ACEOF
 
8983
/* end confdefs.h.  */
 
8984
 
 
8985
/* Override any gcc2 internal prototype to avoid an error.  */
 
8986
#ifdef __cplusplus
 
8987
extern "C"
 
8988
#endif
 
8989
/* We use char because int might match the return type of a gcc2
 
8990
   builtin and then its argument prototype would still apply.  */
 
8991
char dld_link ();
 
8992
int
 
8993
main ()
 
8994
{
 
8995
dld_link ();
 
8996
  ;
 
8997
  return 0;
 
8998
}
 
8999
_ACEOF
 
9000
rm -f conftest.$ac_objext conftest$ac_exeext
 
9001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9002
  (eval $ac_link) 2>conftest.er1
 
9003
  ac_status=$?
 
9004
  grep -v '^ *+' conftest.er1 >conftest.err
 
9005
  rm -f conftest.er1
 
9006
  cat conftest.err >&5
 
9007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9008
  (exit $ac_status); } &&
 
9009
         { ac_try='test -z "$ac_c_werror_flag"
 
9010
                         || test ! -s conftest.err'
 
9011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9012
  (eval $ac_try) 2>&5
 
9013
  ac_status=$?
 
9014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9015
  (exit $ac_status); }; } &&
 
9016
         { ac_try='test -s conftest$ac_exeext'
 
9017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9018
  (eval $ac_try) 2>&5
 
9019
  ac_status=$?
 
9020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9021
  (exit $ac_status); }; }; then
 
9022
  ac_cv_lib_dld_dld_link=yes
 
9023
else
 
9024
  echo "$as_me: failed program was:" >&5
 
9025
sed 's/^/| /' conftest.$ac_ext >&5
 
9026
 
 
9027
ac_cv_lib_dld_dld_link=no
 
9028
fi
 
9029
rm -f conftest.err conftest.$ac_objext \
 
9030
      conftest$ac_exeext conftest.$ac_ext
 
9031
LIBS=$ac_check_lib_save_LIBS
 
9032
fi
 
9033
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9034
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9035
if test $ac_cv_lib_dld_dld_link = yes; then
 
9036
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9037
fi
 
9038
 
 
9039
 
 
9040
fi
 
9041
 
 
9042
 
 
9043
fi
 
9044
 
 
9045
 
 
9046
fi
 
9047
 
 
9048
 
 
9049
fi
 
9050
 
 
9051
 
 
9052
fi
 
9053
 
 
9054
    ;;
 
9055
  esac
 
9056
 
 
9057
  if test "x$lt_cv_dlopen" != xno; then
 
9058
    enable_dlopen=yes
 
9059
  else
 
9060
    enable_dlopen=no
 
9061
  fi
 
9062
 
 
9063
  case $lt_cv_dlopen in
 
9064
  dlopen)
 
9065
    save_CPPFLAGS="$CPPFLAGS"
 
9066
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9067
 
 
9068
    save_LDFLAGS="$LDFLAGS"
 
9069
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9070
 
 
9071
    save_LIBS="$LIBS"
 
9072
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9073
 
 
9074
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9075
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9076
if test "${lt_cv_dlopen_self+set}" = set; then
 
9077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9078
else
 
9079
          if test "$cross_compiling" = yes; then :
 
9080
  lt_cv_dlopen_self=cross
 
9081
else
 
9082
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9083
  lt_status=$lt_dlunknown
 
9084
  cat > conftest.$ac_ext <<EOF
 
9085
#line 9085 "configure"
 
9086
#include "confdefs.h"
 
9087
 
 
9088
#if HAVE_DLFCN_H
 
9089
#include <dlfcn.h>
 
9090
#endif
 
9091
 
 
9092
#include <stdio.h>
 
9093
 
 
9094
#ifdef RTLD_GLOBAL
 
9095
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9096
#else
 
9097
#  ifdef DL_GLOBAL
 
9098
#    define LT_DLGLOBAL         DL_GLOBAL
 
9099
#  else
 
9100
#    define LT_DLGLOBAL         0
 
9101
#  endif
 
9102
#endif
 
9103
 
 
9104
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9105
   find out it does not work in some platform. */
 
9106
#ifndef LT_DLLAZY_OR_NOW
 
9107
#  ifdef RTLD_LAZY
 
9108
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9109
#  else
 
9110
#    ifdef DL_LAZY
 
9111
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9112
#    else
 
9113
#      ifdef RTLD_NOW
 
9114
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9115
#      else
 
9116
#        ifdef DL_NOW
 
9117
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9118
#        else
 
9119
#          define LT_DLLAZY_OR_NOW      0
 
9120
#        endif
 
9121
#      endif
 
9122
#    endif
 
9123
#  endif
 
9124
#endif
 
9125
 
 
9126
#ifdef __cplusplus
 
9127
extern "C" void exit (int);
 
9128
#endif
 
9129
 
 
9130
void fnord() { int i=42;}
 
9131
int main ()
 
9132
{
 
9133
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9134
  int status = $lt_dlunknown;
 
9135
 
 
9136
  if (self)
 
9137
    {
 
9138
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9139
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9140
      /* dlclose (self); */
 
9141
    }
 
9142
  else
 
9143
    puts (dlerror ());
 
9144
 
 
9145
    exit (status);
 
9146
}
 
9147
EOF
 
9148
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9149
  (eval $ac_link) 2>&5
 
9150
  ac_status=$?
 
9151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9152
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9153
    (./conftest; exit; ) >&5 2>/dev/null
 
9154
    lt_status=$?
 
9155
    case x$lt_status in
 
9156
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9157
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9158
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9159
    esac
 
9160
  else :
 
9161
    # compilation failed
 
9162
    lt_cv_dlopen_self=no
 
9163
  fi
 
9164
fi
 
9165
rm -fr conftest*
 
9166
 
 
9167
 
 
9168
fi
 
9169
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9170
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9171
 
 
9172
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9173
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9174
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9175
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9176
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9178
else
 
9179
          if test "$cross_compiling" = yes; then :
 
9180
  lt_cv_dlopen_self_static=cross
 
9181
else
 
9182
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9183
  lt_status=$lt_dlunknown
 
9184
  cat > conftest.$ac_ext <<EOF
 
9185
#line 9185 "configure"
 
9186
#include "confdefs.h"
 
9187
 
 
9188
#if HAVE_DLFCN_H
 
9189
#include <dlfcn.h>
 
9190
#endif
 
9191
 
 
9192
#include <stdio.h>
 
9193
 
 
9194
#ifdef RTLD_GLOBAL
 
9195
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9196
#else
 
9197
#  ifdef DL_GLOBAL
 
9198
#    define LT_DLGLOBAL         DL_GLOBAL
 
9199
#  else
 
9200
#    define LT_DLGLOBAL         0
 
9201
#  endif
 
9202
#endif
 
9203
 
 
9204
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9205
   find out it does not work in some platform. */
 
9206
#ifndef LT_DLLAZY_OR_NOW
 
9207
#  ifdef RTLD_LAZY
 
9208
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9209
#  else
 
9210
#    ifdef DL_LAZY
 
9211
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9212
#    else
 
9213
#      ifdef RTLD_NOW
 
9214
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9215
#      else
 
9216
#        ifdef DL_NOW
 
9217
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9218
#        else
 
9219
#          define LT_DLLAZY_OR_NOW      0
 
9220
#        endif
 
9221
#      endif
 
9222
#    endif
 
9223
#  endif
 
9224
#endif
 
9225
 
 
9226
#ifdef __cplusplus
 
9227
extern "C" void exit (int);
 
9228
#endif
 
9229
 
 
9230
void fnord() { int i=42;}
 
9231
int main ()
 
9232
{
 
9233
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9234
  int status = $lt_dlunknown;
 
9235
 
 
9236
  if (self)
 
9237
    {
 
9238
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9239
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9240
      /* dlclose (self); */
 
9241
    }
 
9242
  else
 
9243
    puts (dlerror ());
 
9244
 
 
9245
    exit (status);
 
9246
}
 
9247
EOF
 
9248
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9249
  (eval $ac_link) 2>&5
 
9250
  ac_status=$?
 
9251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9252
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9253
    (./conftest; exit; ) >&5 2>/dev/null
 
9254
    lt_status=$?
 
9255
    case x$lt_status in
 
9256
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9257
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9258
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9259
    esac
 
9260
  else :
 
9261
    # compilation failed
 
9262
    lt_cv_dlopen_self_static=no
 
9263
  fi
 
9264
fi
 
9265
rm -fr conftest*
 
9266
 
 
9267
 
 
9268
fi
 
9269
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9270
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9271
    fi
 
9272
 
 
9273
    CPPFLAGS="$save_CPPFLAGS"
 
9274
    LDFLAGS="$save_LDFLAGS"
 
9275
    LIBS="$save_LIBS"
 
9276
    ;;
 
9277
  esac
 
9278
 
 
9279
  case $lt_cv_dlopen_self in
 
9280
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9281
  *) enable_dlopen_self=unknown ;;
 
9282
  esac
 
9283
 
 
9284
  case $lt_cv_dlopen_self_static in
 
9285
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9286
  *) enable_dlopen_self_static=unknown ;;
 
9287
  esac
 
9288
fi
 
9289
 
 
9290
 
 
9291
# Report which library types will actually be built
 
9292
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9293
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9294
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9295
echo "${ECHO_T}$can_build_shared" >&6
 
9296
 
 
9297
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9298
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9299
test "$can_build_shared" = "no" && enable_shared=no
 
9300
 
 
9301
# On AIX, shared libraries and static libraries use the same namespace, and
 
9302
# are all built from PIC.
 
9303
case $host_os in
 
9304
aix3*)
 
9305
  test "$enable_shared" = yes && enable_static=no
 
9306
  if test -n "$RANLIB"; then
 
9307
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9308
    postinstall_cmds='$RANLIB $lib'
 
9309
  fi
 
9310
  ;;
 
9311
 
 
9312
aix4* | aix5*)
 
9313
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9314
    test "$enable_shared" = yes && enable_static=no
 
9315
  fi
 
9316
    ;;
 
9317
esac
 
9318
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9319
echo "${ECHO_T}$enable_shared" >&6
 
9320
 
 
9321
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9322
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9323
# Make sure either enable_shared or enable_static is yes.
 
9324
test "$enable_shared" = yes || enable_static=yes
 
9325
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9326
echo "${ECHO_T}$enable_static" >&6
 
9327
 
 
9328
# The else clause should only fire when bootstrapping the
 
9329
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9330
# with your package, and you will get complaints that there are
 
9331
# no rules to generate ltmain.sh.
 
9332
if test -f "$ltmain"; then
 
9333
  # See if we are running on zsh, and set the options which allow our commands through
 
9334
  # without removal of \ escapes.
 
9335
  if test -n "${ZSH_VERSION+set}" ; then
 
9336
    setopt NO_GLOB_SUBST
 
9337
  fi
 
9338
  # Now quote all the things that may contain metacharacters while being
 
9339
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9340
  # variables and quote the copies for generation of the libtool script.
 
9341
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9342
    SED SHELL STRIP \
 
9343
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9344
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9345
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9346
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9347
    lt_cv_sys_global_symbol_to_c_name_address \
 
9348
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9349
    old_postinstall_cmds old_postuninstall_cmds \
 
9350
    compiler \
 
9351
    CC \
 
9352
    LD \
 
9353
    lt_prog_compiler_wl \
 
9354
    lt_prog_compiler_pic \
 
9355
    lt_prog_compiler_static \
 
9356
    lt_prog_compiler_no_builtin_flag \
 
9357
    export_dynamic_flag_spec \
 
9358
    thread_safe_flag_spec \
 
9359
    whole_archive_flag_spec \
 
9360
    enable_shared_with_static_runtimes \
 
9361
    old_archive_cmds \
 
9362
    old_archive_from_new_cmds \
 
9363
    predep_objects \
 
9364
    postdep_objects \
 
9365
    predeps \
 
9366
    postdeps \
 
9367
    compiler_lib_search_path \
 
9368
    archive_cmds \
 
9369
    archive_expsym_cmds \
 
9370
    postinstall_cmds \
 
9371
    postuninstall_cmds \
 
9372
    old_archive_from_expsyms_cmds \
 
9373
    allow_undefined_flag \
 
9374
    no_undefined_flag \
 
9375
    export_symbols_cmds \
 
9376
    hardcode_libdir_flag_spec \
 
9377
    hardcode_libdir_flag_spec_ld \
 
9378
    hardcode_libdir_separator \
 
9379
    hardcode_automatic \
 
9380
    module_cmds \
 
9381
    module_expsym_cmds \
 
9382
    lt_cv_prog_compiler_c_o \
 
9383
    exclude_expsyms \
 
9384
    include_expsyms; do
 
9385
 
 
9386
    case $var in
 
9387
    old_archive_cmds | \
 
9388
    old_archive_from_new_cmds | \
 
9389
    archive_cmds | \
 
9390
    archive_expsym_cmds | \
 
9391
    module_cmds | \
 
9392
    module_expsym_cmds | \
 
9393
    old_archive_from_expsyms_cmds | \
 
9394
    export_symbols_cmds | \
 
9395
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9396
    postinstall_cmds | postuninstall_cmds | \
 
9397
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9398
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9399
      # Double-quote double-evaled strings.
 
9400
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9401
      ;;
 
9402
    *)
 
9403
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9404
      ;;
 
9405
    esac
 
9406
  done
 
9407
 
 
9408
  case $lt_echo in
 
9409
  *'\$0 --fallback-echo"')
 
9410
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9411
    ;;
 
9412
  esac
 
9413
 
 
9414
cfgfile="${ofile}T"
 
9415
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9416
  $rm -f "$cfgfile"
 
9417
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9418
echo "$as_me: creating $ofile" >&6;}
 
9419
 
 
9420
  cat <<__EOF__ >> "$cfgfile"
 
9421
#! $SHELL
 
9422
 
 
9423
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9424
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9425
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9426
#
 
9427
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9428
# Free Software Foundation, Inc.
 
9429
#
 
9430
# This file is part of GNU Libtool:
 
9431
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9432
#
 
9433
# This program is free software; you can redistribute it and/or modify
 
9434
# it under the terms of the GNU General Public License as published by
 
9435
# the Free Software Foundation; either version 2 of the License, or
 
9436
# (at your option) any later version.
 
9437
#
 
9438
# This program is distributed in the hope that it will be useful, but
 
9439
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9440
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9441
# General Public License for more details.
 
9442
#
 
9443
# You should have received a copy of the GNU General Public License
 
9444
# along with this program; if not, write to the Free Software
 
9445
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9446
#
 
9447
# As a special exception to the GNU General Public License, if you
 
9448
# distribute this file as part of a program that contains a
 
9449
# configuration script generated by Autoconf, you may include it under
 
9450
# the same distribution terms that you use for the rest of that program.
 
9451
 
 
9452
# A sed program that does not truncate output.
 
9453
SED=$lt_SED
 
9454
 
 
9455
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9456
Xsed="$SED -e 1s/^X//"
 
9457
 
 
9458
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9459
# if CDPATH is set.
 
9460
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9461
 
 
9462
# The names of the tagged configurations supported by this script.
 
9463
available_tags=
 
9464
 
 
9465
# ### BEGIN LIBTOOL CONFIG
 
9466
 
 
9467
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9468
 
 
9469
# Shell to use when invoking shell scripts.
 
9470
SHELL=$lt_SHELL
 
9471
 
 
9472
# Whether or not to build shared libraries.
 
9473
build_libtool_libs=$enable_shared
 
9474
 
 
9475
# Whether or not to build static libraries.
 
9476
build_old_libs=$enable_static
 
9477
 
 
9478
# Whether or not to add -lc for building shared libraries.
 
9479
build_libtool_need_lc=$archive_cmds_need_lc
 
9480
 
 
9481
# Whether or not to disallow shared libs when runtime libs are static
 
9482
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9483
 
 
9484
# Whether or not to optimize for fast installation.
 
9485
fast_install=$enable_fast_install
 
9486
 
 
9487
# The host system.
 
9488
host_alias=$host_alias
 
9489
host=$host
 
9490
host_os=$host_os
 
9491
 
 
9492
# The build system.
 
9493
build_alias=$build_alias
 
9494
build=$build
 
9495
build_os=$build_os
 
9496
 
 
9497
# An echo program that does not interpret backslashes.
 
9498
echo=$lt_echo
 
9499
 
 
9500
# The archiver.
 
9501
AR=$lt_AR
 
9502
AR_FLAGS=$lt_AR_FLAGS
 
9503
 
 
9504
# A C compiler.
 
9505
LTCC=$lt_LTCC
 
9506
 
 
9507
# LTCC compiler flags.
 
9508
LTCFLAGS=$lt_LTCFLAGS
 
9509
 
 
9510
# A language-specific compiler.
 
9511
CC=$lt_compiler
 
9512
 
 
9513
# Is the compiler the GNU C compiler?
 
9514
with_gcc=$GCC
 
9515
 
 
9516
# An ERE matcher.
 
9517
EGREP=$lt_EGREP
 
9518
 
 
9519
# The linker used to build libraries.
 
9520
LD=$lt_LD
 
9521
 
 
9522
# Whether we need hard or soft links.
 
9523
LN_S=$lt_LN_S
 
9524
 
 
9525
# A BSD-compatible nm program.
 
9526
NM=$lt_NM
 
9527
 
 
9528
# A symbol stripping program
 
9529
STRIP=$lt_STRIP
 
9530
 
 
9531
# Used to examine libraries when file_magic_cmd begins "file"
 
9532
MAGIC_CMD=$MAGIC_CMD
 
9533
 
 
9534
# Used on cygwin: DLL creation program.
 
9535
DLLTOOL="$DLLTOOL"
 
9536
 
 
9537
# Used on cygwin: object dumper.
 
9538
OBJDUMP="$OBJDUMP"
 
9539
 
 
9540
# Used on cygwin: assembler.
 
9541
AS="$AS"
 
9542
 
 
9543
# The name of the directory that contains temporary libtool files.
 
9544
objdir=$objdir
 
9545
 
 
9546
# How to create reloadable object files.
 
9547
reload_flag=$lt_reload_flag
 
9548
reload_cmds=$lt_reload_cmds
 
9549
 
 
9550
# How to pass a linker flag through the compiler.
 
9551
wl=$lt_lt_prog_compiler_wl
 
9552
 
 
9553
# Object file suffix (normally "o").
 
9554
objext="$ac_objext"
 
9555
 
 
9556
# Old archive suffix (normally "a").
 
9557
libext="$libext"
 
9558
 
 
9559
# Shared library suffix (normally ".so").
 
9560
shrext_cmds='$shrext_cmds'
 
9561
 
 
9562
# Executable file suffix (normally "").
 
9563
exeext="$exeext"
 
9564
 
 
9565
# Additional compiler flags for building library objects.
 
9566
pic_flag=$lt_lt_prog_compiler_pic
 
9567
pic_mode=$pic_mode
 
9568
 
 
9569
# What is the maximum length of a command?
 
9570
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9571
 
 
9572
# Does compiler simultaneously support -c and -o options?
 
9573
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9574
 
 
9575
# Must we lock files when doing compilation?
 
9576
need_locks=$lt_need_locks
 
9577
 
 
9578
# Do we need the lib prefix for modules?
 
9579
need_lib_prefix=$need_lib_prefix
 
9580
 
 
9581
# Do we need a version for libraries?
 
9582
need_version=$need_version
 
9583
 
 
9584
# Whether dlopen is supported.
 
9585
dlopen_support=$enable_dlopen
 
9586
 
 
9587
# Whether dlopen of programs is supported.
 
9588
dlopen_self=$enable_dlopen_self
 
9589
 
 
9590
# Whether dlopen of statically linked programs is supported.
 
9591
dlopen_self_static=$enable_dlopen_self_static
 
9592
 
 
9593
# Compiler flag to prevent dynamic linking.
 
9594
link_static_flag=$lt_lt_prog_compiler_static
 
9595
 
 
9596
# Compiler flag to turn off builtin functions.
 
9597
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9598
 
 
9599
# Compiler flag to allow reflexive dlopens.
 
9600
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9601
 
 
9602
# Compiler flag to generate shared objects directly from archives.
 
9603
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9604
 
 
9605
# Compiler flag to generate thread-safe objects.
 
9606
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9607
 
 
9608
# Library versioning type.
 
9609
version_type=$version_type
 
9610
 
 
9611
# Format of library name prefix.
 
9612
libname_spec=$lt_libname_spec
 
9613
 
 
9614
# List of archive names.  First name is the real one, the rest are links.
 
9615
# The last name is the one that the linker finds with -lNAME.
 
9616
library_names_spec=$lt_library_names_spec
 
9617
 
 
9618
# The coded name of the library, if different from the real name.
 
9619
soname_spec=$lt_soname_spec
 
9620
 
 
9621
# Commands used to build and install an old-style archive.
 
9622
RANLIB=$lt_RANLIB
 
9623
old_archive_cmds=$lt_old_archive_cmds
 
9624
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9625
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9626
 
 
9627
# Create an old-style archive from a shared archive.
 
9628
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9629
 
 
9630
# Create a temporary old-style archive to link instead of a shared archive.
 
9631
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9632
 
 
9633
# Commands used to build and install a shared archive.
 
9634
archive_cmds=$lt_archive_cmds
 
9635
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9636
postinstall_cmds=$lt_postinstall_cmds
 
9637
postuninstall_cmds=$lt_postuninstall_cmds
 
9638
 
 
9639
# Commands used to build a loadable module (assumed same as above if empty)
 
9640
module_cmds=$lt_module_cmds
 
9641
module_expsym_cmds=$lt_module_expsym_cmds
 
9642
 
 
9643
# Commands to strip libraries.
 
9644
old_striplib=$lt_old_striplib
 
9645
striplib=$lt_striplib
 
9646
 
 
9647
# Dependencies to place before the objects being linked to create a
 
9648
# shared library.
 
9649
predep_objects=$lt_predep_objects
 
9650
 
 
9651
# Dependencies to place after the objects being linked to create a
 
9652
# shared library.
 
9653
postdep_objects=$lt_postdep_objects
 
9654
 
 
9655
# Dependencies to place before the objects being linked to create a
 
9656
# shared library.
 
9657
predeps=$lt_predeps
 
9658
 
 
9659
# Dependencies to place after the objects being linked to create a
 
9660
# shared library.
 
9661
postdeps=$lt_postdeps
 
9662
 
 
9663
# The library search path used internally by the compiler when linking
 
9664
# a shared library.
 
9665
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9666
 
 
9667
# Method to check whether dependent libraries are shared objects.
 
9668
deplibs_check_method=$lt_deplibs_check_method
 
9669
 
 
9670
# Command to use when deplibs_check_method == file_magic.
 
9671
file_magic_cmd=$lt_file_magic_cmd
 
9672
 
 
9673
# Flag that allows shared libraries with undefined symbols to be built.
 
9674
allow_undefined_flag=$lt_allow_undefined_flag
 
9675
 
 
9676
# Flag that forces no undefined symbols.
 
9677
no_undefined_flag=$lt_no_undefined_flag
 
9678
 
 
9679
# Commands used to finish a libtool library installation in a directory.
 
9680
finish_cmds=$lt_finish_cmds
 
9681
 
 
9682
# Same as above, but a single script fragment to be evaled but not shown.
 
9683
finish_eval=$lt_finish_eval
 
9684
 
 
9685
# Take the output of nm and produce a listing of raw symbols and C names.
 
9686
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9687
 
 
9688
# Transform the output of nm in a proper C declaration
 
9689
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9690
 
 
9691
# Transform the output of nm in a C name address pair
 
9692
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9693
 
 
9694
# This is the shared library runtime path variable.
 
9695
runpath_var=$runpath_var
 
9696
 
 
9697
# This is the shared library path variable.
 
9698
shlibpath_var=$shlibpath_var
 
9699
 
 
9700
# Is shlibpath searched before the hard-coded library search path?
 
9701
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9702
 
 
9703
# How to hardcode a shared library path into an executable.
 
9704
hardcode_action=$hardcode_action
 
9705
 
 
9706
# Whether we should hardcode library paths into libraries.
 
9707
hardcode_into_libs=$hardcode_into_libs
 
9708
 
 
9709
# Flag to hardcode \$libdir into a binary during linking.
 
9710
# This must work even if \$libdir does not exist.
 
9711
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9712
 
 
9713
# If ld is used when linking, flag to hardcode \$libdir into
 
9714
# a binary during linking. This must work even if \$libdir does
 
9715
# not exist.
 
9716
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9717
 
 
9718
# Whether we need a single -rpath flag with a separated argument.
 
9719
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9720
 
 
9721
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9722
# resulting binary.
 
9723
hardcode_direct=$hardcode_direct
 
9724
 
 
9725
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9726
# resulting binary.
 
9727
hardcode_minus_L=$hardcode_minus_L
 
9728
 
 
9729
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9730
# the resulting binary.
 
9731
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9732
 
 
9733
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9734
# and all subsequent libraries and executables linked against it.
 
9735
hardcode_automatic=$hardcode_automatic
 
9736
 
 
9737
# Variables whose values should be saved in libtool wrapper scripts and
 
9738
# restored at relink time.
 
9739
variables_saved_for_relink="$variables_saved_for_relink"
 
9740
 
 
9741
# Whether libtool must link a program against all its dependency libraries.
 
9742
link_all_deplibs=$link_all_deplibs
 
9743
 
 
9744
# Compile-time system search path for libraries
 
9745
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9746
 
 
9747
# Run-time system search path for libraries
 
9748
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9749
 
 
9750
# Fix the shell variable \$srcfile for the compiler.
 
9751
fix_srcfile_path="$fix_srcfile_path"
 
9752
 
 
9753
# Set to yes if exported symbols are required.
 
9754
always_export_symbols=$always_export_symbols
 
9755
 
 
9756
# The commands to list exported symbols.
 
9757
export_symbols_cmds=$lt_export_symbols_cmds
 
9758
 
 
9759
# The commands to extract the exported symbol list from a shared archive.
 
9760
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9761
 
 
9762
# Symbols that should not be listed in the preloaded symbols.
 
9763
exclude_expsyms=$lt_exclude_expsyms
 
9764
 
 
9765
# Symbols that must always be exported.
 
9766
include_expsyms=$lt_include_expsyms
 
9767
 
 
9768
# ### END LIBTOOL CONFIG
 
9769
 
 
9770
__EOF__
 
9771
 
 
9772
 
 
9773
  case $host_os in
 
9774
  aix3*)
 
9775
    cat <<\EOF >> "$cfgfile"
 
9776
 
 
9777
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9778
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9779
# vanish in a puff of smoke.
 
9780
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9781
  COLLECT_NAMES=
 
9782
  export COLLECT_NAMES
 
9783
fi
 
9784
EOF
 
9785
    ;;
 
9786
  esac
 
9787
 
 
9788
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9789
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9790
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9791
  # is reportedly fixed, but why not run on old versions too?
 
9792
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9793
 
 
9794
  mv -f "$cfgfile" "$ofile" || \
 
9795
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9796
  chmod +x "$ofile"
 
9797
 
 
9798
else
 
9799
  # If there is no Makefile yet, we rely on a make rule to execute
 
9800
  # `config.status --recheck' to rerun these tests and create the
 
9801
  # libtool script then.
 
9802
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9803
  if test -f "$ltmain_in"; then
 
9804
    test -f Makefile && make "$ltmain"
 
9805
  fi
 
9806
fi
 
9807
 
 
9808
 
 
9809
ac_ext=c
 
9810
ac_cpp='$CPP $CPPFLAGS'
 
9811
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9812
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9813
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9814
 
 
9815
CC="$lt_save_CC"
 
9816
 
 
9817
 
 
9818
# Check whether --with-tags or --without-tags was given.
 
9819
if test "${with_tags+set}" = set; then
 
9820
  withval="$with_tags"
 
9821
  tagnames="$withval"
 
9822
fi;
 
9823
 
 
9824
if test -f "$ltmain" && test -n "$tagnames"; then
 
9825
  if test ! -f "${ofile}"; then
 
9826
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9827
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9828
  fi
 
9829
 
 
9830
  if test -z "$LTCC"; then
 
9831
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9832
    if test -z "$LTCC"; then
 
9833
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9834
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9835
    else
 
9836
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9837
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9838
    fi
 
9839
  fi
 
9840
  if test -z "$LTCFLAGS"; then
 
9841
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9842
  fi
 
9843
 
 
9844
  # Extract list of available tagged configurations in $ofile.
 
9845
  # Note that this assumes the entire list is on one line.
 
9846
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9847
 
 
9848
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9849
  for tagname in $tagnames; do
 
9850
    IFS="$lt_save_ifs"
 
9851
    # Check whether tagname contains only valid characters
 
9852
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9853
    "") ;;
 
9854
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9855
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9856
   { (exit 1); exit 1; }; }
 
9857
        ;;
 
9858
    esac
 
9859
 
 
9860
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9861
    then
 
9862
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9863
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9864
   { (exit 1); exit 1; }; }
 
9865
    fi
 
9866
 
 
9867
    # Update the list of available tags.
 
9868
    if test -n "$tagname"; then
 
9869
      echo appending configuration tag \"$tagname\" to $ofile
 
9870
 
 
9871
      case $tagname in
 
9872
      CXX)
 
9873
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9874
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9875
            (test "X$CXX" != "Xg++"))) ; then
 
9876
          ac_ext=cc
 
9877
ac_cpp='$CXXCPP $CPPFLAGS'
 
9878
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9879
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9880
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
archive_cmds_need_lc_CXX=no
 
9886
allow_undefined_flag_CXX=
 
9887
always_export_symbols_CXX=no
 
9888
archive_expsym_cmds_CXX=
 
9889
export_dynamic_flag_spec_CXX=
 
9890
hardcode_direct_CXX=no
 
9891
hardcode_libdir_flag_spec_CXX=
 
9892
hardcode_libdir_flag_spec_ld_CXX=
 
9893
hardcode_libdir_separator_CXX=
 
9894
hardcode_minus_L_CXX=no
 
9895
hardcode_shlibpath_var_CXX=unsupported
 
9896
hardcode_automatic_CXX=no
 
9897
module_cmds_CXX=
 
9898
module_expsym_cmds_CXX=
 
9899
link_all_deplibs_CXX=unknown
 
9900
old_archive_cmds_CXX=$old_archive_cmds
 
9901
no_undefined_flag_CXX=
 
9902
whole_archive_flag_spec_CXX=
 
9903
enable_shared_with_static_runtimes_CXX=no
 
9904
 
 
9905
# Dependencies to place before and after the object being linked:
 
9906
predep_objects_CXX=
 
9907
postdep_objects_CXX=
 
9908
predeps_CXX=
 
9909
postdeps_CXX=
 
9910
compiler_lib_search_path_CXX=
 
9911
 
 
9912
# Source file extension for C++ test sources.
 
9913
ac_ext=cpp
 
9914
 
 
9915
# Object file extension for compiled C++ test sources.
 
9916
objext=o
 
9917
objext_CXX=$objext
 
9918
 
 
9919
# Code to be used in simple compile tests
 
9920
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9921
 
 
9922
# Code to be used in simple link tests
 
9923
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
9924
 
 
9925
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9926
 
 
9927
# If no C compiler was specified, use CC.
 
9928
LTCC=${LTCC-"$CC"}
 
9929
 
 
9930
# If no C compiler flags were specified, use CFLAGS.
 
9931
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9932
 
 
9933
# Allow CC to be a program name with arguments.
 
9934
compiler=$CC
 
9935
 
 
9936
 
 
9937
# save warnings/boilerplate of simple test code
 
9938
ac_outfile=conftest.$ac_objext
 
9939
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9940
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9941
_lt_compiler_boilerplate=`cat conftest.err`
 
9942
$rm conftest*
 
9943
 
 
9944
ac_outfile=conftest.$ac_objext
 
9945
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9946
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9947
_lt_linker_boilerplate=`cat conftest.err`
 
9948
$rm conftest*
 
9949
 
 
9950
 
 
9951
# Allow CC to be a program name with arguments.
 
9952
lt_save_CC=$CC
 
9953
lt_save_LD=$LD
 
9954
lt_save_GCC=$GCC
 
9955
GCC=$GXX
 
9956
lt_save_with_gnu_ld=$with_gnu_ld
 
9957
lt_save_path_LD=$lt_cv_path_LD
 
9958
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9959
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9960
else
 
9961
  $as_unset lt_cv_prog_gnu_ld
 
9962
fi
 
9963
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9964
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9965
else
 
9966
  $as_unset lt_cv_path_LD
 
9967
fi
 
9968
test -z "${LDCXX+set}" || LD=$LDCXX
 
9969
CC=${CXX-"c++"}
 
9970
compiler=$CC
 
9971
compiler_CXX=$CC
 
9972
for cc_temp in $compiler""; do
 
9973
  case $cc_temp in
 
9974
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9975
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9976
    \-*) ;;
 
9977
    *) break;;
 
9978
  esac
 
9979
done
 
9980
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9981
 
 
9982
 
 
9983
# We don't want -fno-exception wen compiling C++ code, so set the
 
9984
# no_builtin_flag separately
 
9985
if test "$GXX" = yes; then
 
9986
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9987
else
 
9988
  lt_prog_compiler_no_builtin_flag_CXX=
 
9989
fi
 
9990
 
 
9991
if test "$GXX" = yes; then
 
9992
  # Set up default GNU C++ configuration
 
9993
 
 
9994
 
 
9995
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9996
if test "${with_gnu_ld+set}" = set; then
 
9997
  withval="$with_gnu_ld"
 
9998
  test "$withval" = no || with_gnu_ld=yes
 
9999
else
 
10000
  with_gnu_ld=no
 
10001
fi;
 
10002
ac_prog=ld
 
10003
if test "$GCC" = yes; then
 
10004
  # Check if gcc -print-prog-name=ld gives a path.
 
10005
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10006
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10007
  case $host in
 
10008
  *-*-mingw*)
 
10009
    # gcc leaves a trailing carriage return which upsets mingw
 
10010
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10011
  *)
 
10012
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10013
  esac
 
10014
  case $ac_prog in
 
10015
    # Accept absolute paths.
 
10016
    [\\/]* | ?:[\\/]*)
 
10017
      re_direlt='/[^/][^/]*/\.\./'
 
10018
      # Canonicalize the pathname of ld
 
10019
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10020
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10021
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10022
      done
 
10023
      test -z "$LD" && LD="$ac_prog"
 
10024
      ;;
 
10025
  "")
 
10026
    # If it fails, then pretend we aren't using GCC.
 
10027
    ac_prog=ld
 
10028
    ;;
 
10029
  *)
 
10030
    # If it is relative, then search for the first ld in PATH.
 
10031
    with_gnu_ld=unknown
 
10032
    ;;
 
10033
  esac
 
10034
elif test "$with_gnu_ld" = yes; then
 
10035
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10036
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10037
else
 
10038
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10039
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10040
fi
 
10041
if test "${lt_cv_path_LD+set}" = set; then
 
10042
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10043
else
 
10044
  if test -z "$LD"; then
 
10045
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10046
  for ac_dir in $PATH; do
 
10047
    IFS="$lt_save_ifs"
 
10048
    test -z "$ac_dir" && ac_dir=.
 
10049
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10050
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10051
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10052
      # but apparently some variants of GNU ld only accept -v.
 
10053
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10054
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10055
      *GNU* | *'with BFD'*)
 
10056
        test "$with_gnu_ld" != no && break
 
10057
        ;;
 
10058
      *)
 
10059
        test "$with_gnu_ld" != yes && break
 
10060
        ;;
 
10061
      esac
 
10062
    fi
 
10063
  done
 
10064
  IFS="$lt_save_ifs"
 
10065
else
 
10066
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10067
fi
 
10068
fi
 
10069
 
 
10070
LD="$lt_cv_path_LD"
 
10071
if test -n "$LD"; then
 
10072
  echo "$as_me:$LINENO: result: $LD" >&5
 
10073
echo "${ECHO_T}$LD" >&6
 
10074
else
 
10075
  echo "$as_me:$LINENO: result: no" >&5
 
10076
echo "${ECHO_T}no" >&6
 
10077
fi
 
10078
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10079
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10080
   { (exit 1); exit 1; }; }
 
10081
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10082
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10083
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10085
else
 
10086
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10087
case `$LD -v 2>&1 </dev/null` in
 
10088
*GNU* | *'with BFD'*)
 
10089
  lt_cv_prog_gnu_ld=yes
 
10090
  ;;
 
10091
*)
 
10092
  lt_cv_prog_gnu_ld=no
 
10093
  ;;
 
10094
esac
 
10095
fi
 
10096
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10097
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10098
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10099
 
 
10100
 
 
10101
 
 
10102
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10103
  # archiving commands below assume that GNU ld is being used.
 
10104
  if test "$with_gnu_ld" = yes; then
 
10105
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10106
    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'
 
10107
 
 
10108
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10109
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10110
 
 
10111
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10112
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10113
    #     investigate it a little bit more. (MM)
 
10114
    wlarc='${wl}'
 
10115
 
 
10116
    # ancient GNU ld didn't support --whole-archive et. al.
 
10117
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10118
        grep 'no-whole-archive' > /dev/null; then
 
10119
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10120
    else
 
10121
      whole_archive_flag_spec_CXX=
 
10122
    fi
 
10123
  else
 
10124
    with_gnu_ld=no
 
10125
    wlarc=
 
10126
 
 
10127
    # A generic and very simple default shared library creation
 
10128
    # command for GNU C++ for the case where it uses the native
 
10129
    # linker, instead of GNU ld.  If possible, this setting should
 
10130
    # overridden to take advantage of the native linker features on
 
10131
    # the platform it is being used on.
 
10132
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10133
  fi
 
10134
 
 
10135
  # Commands to make compiler produce verbose output that lists
 
10136
  # what "hidden" libraries, object files and flags are used when
 
10137
  # linking a shared library.
 
10138
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10139
 
 
10140
else
 
10141
  GXX=no
 
10142
  with_gnu_ld=no
 
10143
  wlarc=
 
10144
fi
 
10145
 
 
10146
# PORTME: fill in a description of your system's C++ link characteristics
 
10147
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10148
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10149
ld_shlibs_CXX=yes
 
10150
case $host_os in
 
10151
  aix3*)
 
10152
    # FIXME: insert proper C++ library support
 
10153
    ld_shlibs_CXX=no
 
10154
    ;;
 
10155
  aix4* | aix5*)
 
10156
    if test "$host_cpu" = ia64; then
 
10157
      # On IA64, the linker does run time linking by default, so we don't
 
10158
      # have to do anything special.
 
10159
      aix_use_runtimelinking=no
 
10160
      exp_sym_flag='-Bexport'
 
10161
      no_entry_flag=""
 
10162
    else
 
10163
      aix_use_runtimelinking=no
 
10164
 
 
10165
      # Test if we are trying to use run time linking or normal
 
10166
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10167
      # need to do runtime linking.
 
10168
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10169
        for ld_flag in $LDFLAGS; do
 
10170
          case $ld_flag in
 
10171
          *-brtl*)
 
10172
            aix_use_runtimelinking=yes
 
10173
            break
 
10174
            ;;
 
10175
          esac
 
10176
        done
 
10177
        ;;
 
10178
      esac
 
10179
 
 
10180
      exp_sym_flag='-bexport'
 
10181
      no_entry_flag='-bnoentry'
 
10182
    fi
 
10183
 
 
10184
    # When large executables or shared objects are built, AIX ld can
 
10185
    # have problems creating the table of contents.  If linking a library
 
10186
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10187
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10188
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10189
 
 
10190
    archive_cmds_CXX=''
 
10191
    hardcode_direct_CXX=yes
 
10192
    hardcode_libdir_separator_CXX=':'
 
10193
    link_all_deplibs_CXX=yes
 
10194
 
 
10195
    if test "$GXX" = yes; then
 
10196
      case $host_os in aix4.[012]|aix4.[012].*)
 
10197
      # We only want to do this on AIX 4.2 and lower, the check
 
10198
      # below for broken collect2 doesn't work under 4.3+
 
10199
        collect2name=`${CC} -print-prog-name=collect2`
 
10200
        if test -f "$collect2name" && \
 
10201
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10202
        then
 
10203
          # We have reworked collect2
 
10204
          hardcode_direct_CXX=yes
 
10205
        else
 
10206
          # We have old collect2
 
10207
          hardcode_direct_CXX=unsupported
 
10208
          # It fails to find uninstalled libraries when the uninstalled
 
10209
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10210
          # to unsupported forces relinking
 
10211
          hardcode_minus_L_CXX=yes
 
10212
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10213
          hardcode_libdir_separator_CXX=
 
10214
        fi
 
10215
        ;;
 
10216
      esac
 
10217
      shared_flag='-shared'
 
10218
      if test "$aix_use_runtimelinking" = yes; then
 
10219
        shared_flag="$shared_flag "'${wl}-G'
 
10220
      fi
 
10221
    else
 
10222
      # not using gcc
 
10223
      if test "$host_cpu" = ia64; then
 
10224
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10225
        # chokes on -Wl,-G. The following line is correct:
 
10226
        shared_flag='-G'
 
10227
      else
 
10228
        if test "$aix_use_runtimelinking" = yes; then
 
10229
          shared_flag='${wl}-G'
 
10230
        else
 
10231
          shared_flag='${wl}-bM:SRE'
 
10232
        fi
 
10233
      fi
 
10234
    fi
 
10235
 
 
10236
    # It seems that -bexpall does not export symbols beginning with
 
10237
    # underscore (_), so it is better to generate a list of symbols to export.
 
10238
    always_export_symbols_CXX=yes
 
10239
    if test "$aix_use_runtimelinking" = yes; then
 
10240
      # Warning - without using the other runtime loading flags (-brtl),
 
10241
      # -berok will link without error, but may produce a broken library.
 
10242
      allow_undefined_flag_CXX='-berok'
 
10243
      # Determine the default libpath from the value encoded in an empty executable.
 
10244
      cat >conftest.$ac_ext <<_ACEOF
 
10245
/* confdefs.h.  */
 
10246
_ACEOF
 
10247
cat confdefs.h >>conftest.$ac_ext
 
10248
cat >>conftest.$ac_ext <<_ACEOF
 
10249
/* end confdefs.h.  */
 
10250
 
 
10251
int
 
10252
main ()
 
10253
{
 
10254
 
 
10255
  ;
 
10256
  return 0;
 
10257
}
 
10258
_ACEOF
 
10259
rm -f conftest.$ac_objext conftest$ac_exeext
 
10260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10261
  (eval $ac_link) 2>conftest.er1
 
10262
  ac_status=$?
 
10263
  grep -v '^ *+' conftest.er1 >conftest.err
 
10264
  rm -f conftest.er1
 
10265
  cat conftest.err >&5
 
10266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10267
  (exit $ac_status); } &&
 
10268
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10269
                         || test ! -s conftest.err'
 
10270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10271
  (eval $ac_try) 2>&5
 
10272
  ac_status=$?
 
10273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10274
  (exit $ac_status); }; } &&
 
10275
         { ac_try='test -s conftest$ac_exeext'
 
10276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10277
  (eval $ac_try) 2>&5
 
10278
  ac_status=$?
 
10279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10280
  (exit $ac_status); }; }; then
 
10281
 
 
10282
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10283
}'`
 
10284
# Check for a 64-bit object if we didn't find anything.
 
10285
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; }
 
10286
}'`; fi
 
10287
else
 
10288
  echo "$as_me: failed program was:" >&5
 
10289
sed 's/^/| /' conftest.$ac_ext >&5
 
10290
 
 
10291
fi
 
10292
rm -f conftest.err conftest.$ac_objext \
 
10293
      conftest$ac_exeext conftest.$ac_ext
 
10294
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10295
 
 
10296
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10297
 
 
10298
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10299
     else
 
10300
      if test "$host_cpu" = ia64; then
 
10301
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10302
        allow_undefined_flag_CXX="-z nodefs"
 
10303
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
10304
      else
 
10305
        # Determine the default libpath from the value encoded in an empty executable.
 
10306
        cat >conftest.$ac_ext <<_ACEOF
 
10307
/* confdefs.h.  */
 
10308
_ACEOF
 
10309
cat confdefs.h >>conftest.$ac_ext
 
10310
cat >>conftest.$ac_ext <<_ACEOF
 
10311
/* end confdefs.h.  */
 
10312
 
 
10313
int
 
10314
main ()
 
10315
{
 
10316
 
 
10317
  ;
 
10318
  return 0;
 
10319
}
 
10320
_ACEOF
 
10321
rm -f conftest.$ac_objext conftest$ac_exeext
 
10322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10323
  (eval $ac_link) 2>conftest.er1
 
10324
  ac_status=$?
 
10325
  grep -v '^ *+' conftest.er1 >conftest.err
 
10326
  rm -f conftest.er1
 
10327
  cat conftest.err >&5
 
10328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10329
  (exit $ac_status); } &&
 
10330
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10331
                         || test ! -s conftest.err'
 
10332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10333
  (eval $ac_try) 2>&5
 
10334
  ac_status=$?
 
10335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10336
  (exit $ac_status); }; } &&
 
10337
         { ac_try='test -s conftest$ac_exeext'
 
10338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10339
  (eval $ac_try) 2>&5
 
10340
  ac_status=$?
 
10341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10342
  (exit $ac_status); }; }; then
 
10343
 
 
10344
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10345
}'`
 
10346
# Check for a 64-bit object if we didn't find anything.
 
10347
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; }
 
10348
}'`; fi
 
10349
else
 
10350
  echo "$as_me: failed program was:" >&5
 
10351
sed 's/^/| /' conftest.$ac_ext >&5
 
10352
 
 
10353
fi
 
10354
rm -f conftest.err conftest.$ac_objext \
 
10355
      conftest$ac_exeext conftest.$ac_ext
 
10356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10357
 
 
10358
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10359
        # Warning - without using the other run time loading flags,
 
10360
        # -berok will link without error, but may produce a broken library.
 
10361
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10362
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10363
        # Exported symbols can be pulled into shared objects from archives
 
10364
        whole_archive_flag_spec_CXX='$convenience'
 
10365
        archive_cmds_need_lc_CXX=yes
 
10366
        # This is similar to how AIX traditionally builds its shared libraries.
 
10367
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10368
      fi
 
10369
    fi
 
10370
    ;;
 
10371
 
 
10372
  beos*)
 
10373
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10374
      allow_undefined_flag_CXX=unsupported
 
10375
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10376
      # support --undefined.  This deserves some investigation.  FIXME
 
10377
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10378
    else
 
10379
      ld_shlibs_CXX=no
 
10380
    fi
 
10381
    ;;
 
10382
 
 
10383
  chorus*)
 
10384
    case $cc_basename in
 
10385
      *)
 
10386
        # FIXME: insert proper C++ library support
 
10387
        ld_shlibs_CXX=no
 
10388
        ;;
 
10389
    esac
 
10390
    ;;
 
10391
 
 
10392
  cygwin* | mingw* | pw32*)
 
10393
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10394
    # as there is no search path for DLLs.
 
10395
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10396
    allow_undefined_flag_CXX=unsupported
 
10397
    always_export_symbols_CXX=no
 
10398
    enable_shared_with_static_runtimes_CXX=yes
 
10399
 
 
10400
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10401
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10402
      # If the export-symbols file already is a .def file (1st line
 
10403
      # is EXPORTS), use it as is; otherwise, prepend...
 
10404
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10405
        cp $export_symbols $output_objdir/$soname.def;
 
10406
      else
 
10407
        echo EXPORTS > $output_objdir/$soname.def;
 
10408
        cat $export_symbols >> $output_objdir/$soname.def;
 
10409
      fi~
 
10410
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10411
    else
 
10412
      ld_shlibs_CXX=no
 
10413
    fi
 
10414
  ;;
 
10415
      darwin* | rhapsody*)
 
10416
        case $host_os in
 
10417
        rhapsody* | darwin1.[012])
 
10418
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10419
         ;;
 
10420
       *) # Darwin 1.3 on
 
10421
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10422
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10423
         else
 
10424
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10425
             10.[012])
 
10426
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10427
               ;;
 
10428
             10.*)
 
10429
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10430
               ;;
 
10431
           esac
 
10432
         fi
 
10433
         ;;
 
10434
        esac
 
10435
      archive_cmds_need_lc_CXX=no
 
10436
      hardcode_direct_CXX=no
 
10437
      hardcode_automatic_CXX=yes
 
10438
      hardcode_shlibpath_var_CXX=unsupported
 
10439
      whole_archive_flag_spec_CXX=''
 
10440
      link_all_deplibs_CXX=yes
 
10441
 
 
10442
    if test "$GXX" = yes ; then
 
10443
      lt_int_apple_cc_single_mod=no
 
10444
      output_verbose_link_cmd='echo'
 
10445
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10446
       lt_int_apple_cc_single_mod=yes
 
10447
      fi
 
10448
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10449
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10450
      else
 
10451
          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'
 
10452
        fi
 
10453
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10454
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10455
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10456
            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}'
 
10457
          else
 
10458
            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}'
 
10459
          fi
 
10460
            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}'
 
10461
      else
 
10462
      case $cc_basename in
 
10463
        xlc*)
 
10464
         output_verbose_link_cmd='echo'
 
10465
          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'
 
10466
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10467
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10468
          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}'
 
10469
          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}'
 
10470
          ;;
 
10471
       *)
 
10472
         ld_shlibs_CXX=no
 
10473
          ;;
 
10474
      esac
 
10475
      fi
 
10476
        ;;
 
10477
 
 
10478
  dgux*)
 
10479
    case $cc_basename in
 
10480
      ec++*)
 
10481
        # FIXME: insert proper C++ library support
 
10482
        ld_shlibs_CXX=no
 
10483
        ;;
 
10484
      ghcx*)
 
10485
        # Green Hills C++ Compiler
 
10486
        # FIXME: insert proper C++ library support
 
10487
        ld_shlibs_CXX=no
 
10488
        ;;
 
10489
      *)
 
10490
        # FIXME: insert proper C++ library support
 
10491
        ld_shlibs_CXX=no
 
10492
        ;;
 
10493
    esac
 
10494
    ;;
 
10495
  freebsd[12]*)
 
10496
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10497
    ld_shlibs_CXX=no
 
10498
    ;;
 
10499
  freebsd-elf*)
 
10500
    archive_cmds_need_lc_CXX=no
 
10501
    ;;
 
10502
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10503
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10504
    # conventions
 
10505
    ld_shlibs_CXX=yes
 
10506
    ;;
 
10507
  gnu*)
 
10508
    ;;
 
10509
  hpux9*)
 
10510
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10511
    hardcode_libdir_separator_CXX=:
 
10512
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10513
    hardcode_direct_CXX=yes
 
10514
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10515
                                # but as the default
 
10516
                                # location of the library.
 
10517
 
 
10518
    case $cc_basename in
 
10519
    CC*)
 
10520
      # FIXME: insert proper C++ library support
 
10521
      ld_shlibs_CXX=no
 
10522
      ;;
 
10523
    aCC*)
 
10524
      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'
 
10525
      # Commands to make compiler produce verbose output that lists
 
10526
      # what "hidden" libraries, object files and flags are used when
 
10527
      # linking a shared library.
 
10528
      #
 
10529
      # There doesn't appear to be a way to prevent this compiler from
 
10530
      # explicitly linking system object files so we need to strip them
 
10531
      # from the output so that they don't get included in the library
 
10532
      # dependencies.
 
10533
      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'
 
10534
      ;;
 
10535
    *)
 
10536
      if test "$GXX" = yes; then
 
10537
        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'
 
10538
      else
 
10539
        # FIXME: insert proper C++ library support
 
10540
        ld_shlibs_CXX=no
 
10541
      fi
 
10542
      ;;
 
10543
    esac
 
10544
    ;;
 
10545
  hpux10*|hpux11*)
 
10546
    if test $with_gnu_ld = no; then
 
10547
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10548
      hardcode_libdir_separator_CXX=:
 
10549
 
 
10550
      case $host_cpu in
 
10551
      hppa*64*|ia64*)
 
10552
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10553
        ;;
 
10554
      *)
 
10555
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10556
        ;;
 
10557
      esac
 
10558
    fi
 
10559
    case $host_cpu in
 
10560
    hppa*64*|ia64*)
 
10561
      hardcode_direct_CXX=no
 
10562
      hardcode_shlibpath_var_CXX=no
 
10563
      ;;
 
10564
    *)
 
10565
      hardcode_direct_CXX=yes
 
10566
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10567
                                              # but as the default
 
10568
                                              # location of the library.
 
10569
      ;;
 
10570
    esac
 
10571
 
 
10572
    case $cc_basename in
 
10573
      CC*)
 
10574
        # FIXME: insert proper C++ library support
 
10575
        ld_shlibs_CXX=no
 
10576
        ;;
 
10577
      aCC*)
 
10578
        case $host_cpu in
 
10579
        hppa*64*)
 
10580
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10581
          ;;
 
10582
        ia64*)
 
10583
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10584
          ;;
 
10585
        *)
 
10586
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10587
          ;;
 
10588
        esac
 
10589
        # Commands to make compiler produce verbose output that lists
 
10590
        # what "hidden" libraries, object files and flags are used when
 
10591
        # linking a shared library.
 
10592
        #
 
10593
        # There doesn't appear to be a way to prevent this compiler from
 
10594
        # explicitly linking system object files so we need to strip them
 
10595
        # from the output so that they don't get included in the library
 
10596
        # dependencies.
 
10597
        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'
 
10598
        ;;
 
10599
      *)
 
10600
        if test "$GXX" = yes; then
 
10601
          if test $with_gnu_ld = no; then
 
10602
            case $host_cpu in
 
10603
            hppa*64*)
 
10604
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10605
              ;;
 
10606
            ia64*)
 
10607
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10608
              ;;
 
10609
            *)
 
10610
              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'
 
10611
              ;;
 
10612
            esac
 
10613
          fi
 
10614
        else
 
10615
          # FIXME: insert proper C++ library support
 
10616
          ld_shlibs_CXX=no
 
10617
        fi
 
10618
        ;;
 
10619
    esac
 
10620
    ;;
 
10621
  interix3*)
 
10622
    hardcode_direct_CXX=no
 
10623
    hardcode_shlibpath_var_CXX=no
 
10624
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10625
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10626
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10627
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10628
    # default) and relocated if they conflict, which is a slow very memory
 
10629
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10630
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10631
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10632
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10633
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10634
    ;;
 
10635
  irix5* | irix6*)
 
10636
    case $cc_basename in
 
10637
      CC*)
 
10638
        # SGI C++
 
10639
        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'
 
10640
 
 
10641
        # Archives containing C++ object files must be created using
 
10642
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10643
        # necessary to make sure instantiated templates are included
 
10644
        # in the archive.
 
10645
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10646
        ;;
 
10647
      *)
 
10648
        if test "$GXX" = yes; then
 
10649
          if test "$with_gnu_ld" = no; then
 
10650
            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'
 
10651
          else
 
10652
            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'
 
10653
          fi
 
10654
        fi
 
10655
        link_all_deplibs_CXX=yes
 
10656
        ;;
 
10657
    esac
 
10658
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10659
    hardcode_libdir_separator_CXX=:
 
10660
    ;;
 
10661
  linux*)
 
10662
    case $cc_basename in
 
10663
      KCC*)
 
10664
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10665
 
 
10666
        # KCC will only create a shared library if the output file
 
10667
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10668
        # to its proper name (with version) after linking.
 
10669
        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'
 
10670
        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'
 
10671
        # Commands to make compiler produce verbose output that lists
 
10672
        # what "hidden" libraries, object files and flags are used when
 
10673
        # linking a shared library.
 
10674
        #
 
10675
        # There doesn't appear to be a way to prevent this compiler from
 
10676
        # explicitly linking system object files so we need to strip them
 
10677
        # from the output so that they don't get included in the library
 
10678
        # dependencies.
 
10679
        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'
 
10680
 
 
10681
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10682
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10683
 
 
10684
        # Archives containing C++ object files must be created using
 
10685
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10686
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10687
        ;;
 
10688
      icpc*)
 
10689
        # Intel C++
 
10690
        with_gnu_ld=yes
 
10691
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10692
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10693
        # earlier do not add the objects themselves.
 
10694
        case `$CC -V 2>&1` in
 
10695
        *"Version 7."*)
 
10696
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10697
          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'
 
10698
          ;;
 
10699
        *)  # Version 8.0 or newer
 
10700
          tmp_idyn=
 
10701
          case $host_cpu in
 
10702
            ia64*) tmp_idyn=' -i_dynamic';;
 
10703
          esac
 
10704
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10705
          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'
 
10706
          ;;
 
10707
        esac
 
10708
        archive_cmds_need_lc_CXX=no
 
10709
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10710
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10711
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10712
        ;;
 
10713
      pgCC*)
 
10714
        # Portland Group C++ compiler
 
10715
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10716
        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'
 
10717
 
 
10718
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10719
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10720
        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'
 
10721
        ;;
 
10722
      cxx*)
 
10723
        # Compaq C++
 
10724
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10725
        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'
 
10726
 
 
10727
        runpath_var=LD_RUN_PATH
 
10728
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10729
        hardcode_libdir_separator_CXX=:
 
10730
 
 
10731
        # Commands to make compiler produce verbose output that lists
 
10732
        # what "hidden" libraries, object files and flags are used when
 
10733
        # linking a shared library.
 
10734
        #
 
10735
        # There doesn't appear to be a way to prevent this compiler from
 
10736
        # explicitly linking system object files so we need to strip them
 
10737
        # from the output so that they don't get included in the library
 
10738
        # dependencies.
 
10739
        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'
 
10740
        ;;
 
10741
    esac
 
10742
    ;;
 
10743
  lynxos*)
 
10744
    # FIXME: insert proper C++ library support
 
10745
    ld_shlibs_CXX=no
 
10746
    ;;
 
10747
  m88k*)
 
10748
    # FIXME: insert proper C++ library support
 
10749
    ld_shlibs_CXX=no
 
10750
    ;;
 
10751
  mvs*)
 
10752
    case $cc_basename in
 
10753
      cxx*)
 
10754
        # FIXME: insert proper C++ library support
 
10755
        ld_shlibs_CXX=no
 
10756
        ;;
 
10757
      *)
 
10758
        # FIXME: insert proper C++ library support
 
10759
        ld_shlibs_CXX=no
 
10760
        ;;
 
10761
    esac
 
10762
    ;;
 
10763
  netbsd*)
 
10764
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10765
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10766
      wlarc=
 
10767
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10768
      hardcode_direct_CXX=yes
 
10769
      hardcode_shlibpath_var_CXX=no
 
10770
    fi
 
10771
    # Workaround some broken pre-1.5 toolchains
 
10772
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10773
    ;;
 
10774
  openbsd2*)
 
10775
    # C++ shared libraries are fairly broken
 
10776
    ld_shlibs_CXX=no
 
10777
    ;;
 
10778
  openbsd*)
 
10779
    hardcode_direct_CXX=yes
 
10780
    hardcode_shlibpath_var_CXX=no
 
10781
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10782
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10783
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10784
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10785
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10786
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10787
    fi
 
10788
    output_verbose_link_cmd='echo'
 
10789
    ;;
 
10790
  osf3*)
 
10791
    case $cc_basename in
 
10792
      KCC*)
 
10793
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10794
 
 
10795
        # KCC will only create a shared library if the output file
 
10796
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10797
        # to its proper name (with version) after linking.
 
10798
        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'
 
10799
 
 
10800
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10801
        hardcode_libdir_separator_CXX=:
 
10802
 
 
10803
        # Archives containing C++ object files must be created using
 
10804
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10805
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10806
 
 
10807
        ;;
 
10808
      RCC*)
 
10809
        # Rational C++ 2.4.1
 
10810
        # FIXME: insert proper C++ library support
 
10811
        ld_shlibs_CXX=no
 
10812
        ;;
 
10813
      cxx*)
 
10814
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10815
        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'
 
10816
 
 
10817
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10818
        hardcode_libdir_separator_CXX=:
 
10819
 
 
10820
        # Commands to make compiler produce verbose output that lists
 
10821
        # what "hidden" libraries, object files and flags are used when
 
10822
        # linking a shared library.
 
10823
        #
 
10824
        # There doesn't appear to be a way to prevent this compiler from
 
10825
        # explicitly linking system object files so we need to strip them
 
10826
        # from the output so that they don't get included in the library
 
10827
        # dependencies.
 
10828
        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'
 
10829
        ;;
 
10830
      *)
 
10831
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10832
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10833
          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'
 
10834
 
 
10835
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10836
          hardcode_libdir_separator_CXX=:
 
10837
 
 
10838
          # Commands to make compiler produce verbose output that lists
 
10839
          # what "hidden" libraries, object files and flags are used when
 
10840
          # linking a shared library.
 
10841
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10842
 
 
10843
        else
 
10844
          # FIXME: insert proper C++ library support
 
10845
          ld_shlibs_CXX=no
 
10846
        fi
 
10847
        ;;
 
10848
    esac
 
10849
    ;;
 
10850
  osf4* | osf5*)
 
10851
    case $cc_basename in
 
10852
      KCC*)
 
10853
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10854
 
 
10855
        # KCC will only create a shared library if the output file
 
10856
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10857
        # to its proper name (with version) after linking.
 
10858
        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'
 
10859
 
 
10860
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10861
        hardcode_libdir_separator_CXX=:
 
10862
 
 
10863
        # Archives containing C++ object files must be created using
 
10864
        # the KAI C++ compiler.
 
10865
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10866
        ;;
 
10867
      RCC*)
 
10868
        # Rational C++ 2.4.1
 
10869
        # FIXME: insert proper C++ library support
 
10870
        ld_shlibs_CXX=no
 
10871
        ;;
 
10872
      cxx*)
 
10873
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10874
        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'
 
10875
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10876
          echo "-hidden">> $lib.exp~
 
10877
          $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~
 
10878
          $rm $lib.exp'
 
10879
 
 
10880
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10881
        hardcode_libdir_separator_CXX=:
 
10882
 
 
10883
        # Commands to make compiler produce verbose output that lists
 
10884
        # what "hidden" libraries, object files and flags are used when
 
10885
        # linking a shared library.
 
10886
        #
 
10887
        # There doesn't appear to be a way to prevent this compiler from
 
10888
        # explicitly linking system object files so we need to strip them
 
10889
        # from the output so that they don't get included in the library
 
10890
        # dependencies.
 
10891
        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'
 
10892
        ;;
 
10893
      *)
 
10894
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10895
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10896
         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'
 
10897
 
 
10898
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10899
          hardcode_libdir_separator_CXX=:
 
10900
 
 
10901
          # Commands to make compiler produce verbose output that lists
 
10902
          # what "hidden" libraries, object files and flags are used when
 
10903
          # linking a shared library.
 
10904
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10905
 
 
10906
        else
 
10907
          # FIXME: insert proper C++ library support
 
10908
          ld_shlibs_CXX=no
 
10909
        fi
 
10910
        ;;
 
10911
    esac
 
10912
    ;;
 
10913
  psos*)
 
10914
    # FIXME: insert proper C++ library support
 
10915
    ld_shlibs_CXX=no
 
10916
    ;;
 
10917
  sunos4*)
 
10918
    case $cc_basename in
 
10919
      CC*)
 
10920
        # Sun C++ 4.x
 
10921
        # FIXME: insert proper C++ library support
 
10922
        ld_shlibs_CXX=no
 
10923
        ;;
 
10924
      lcc*)
 
10925
        # Lucid
 
10926
        # FIXME: insert proper C++ library support
 
10927
        ld_shlibs_CXX=no
 
10928
        ;;
 
10929
      *)
 
10930
        # FIXME: insert proper C++ library support
 
10931
        ld_shlibs_CXX=no
 
10932
        ;;
 
10933
    esac
 
10934
    ;;
 
10935
  solaris*)
 
10936
    case $cc_basename in
 
10937
      CC*)
 
10938
        # Sun C++ 4.2, 5.x and Centerline C++
 
10939
        archive_cmds_need_lc_CXX=yes
 
10940
        no_undefined_flag_CXX=' -zdefs'
 
10941
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10942
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10943
        $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'
 
10944
 
 
10945
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10946
        hardcode_shlibpath_var_CXX=no
 
10947
        case $host_os in
 
10948
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10949
          *)
 
10950
            # The C++ compiler is used as linker so we must use $wl
 
10951
            # flag to pass the commands to the underlying system
 
10952
            # linker. We must also pass each convience library through
 
10953
            # to the system linker between allextract/defaultextract.
 
10954
            # The C++ compiler will combine linker options so we
 
10955
            # cannot just pass the convience library names through
 
10956
            # without $wl.
 
10957
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10958
            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'
 
10959
            ;;
 
10960
        esac
 
10961
        link_all_deplibs_CXX=yes
 
10962
 
 
10963
        output_verbose_link_cmd='echo'
 
10964
 
 
10965
        # Archives containing C++ object files must be created using
 
10966
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10967
        # necessary to make sure instantiated templates are included
 
10968
        # in the archive.
 
10969
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10970
        ;;
 
10971
      gcx*)
 
10972
        # Green Hills C++ Compiler
 
10973
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10974
 
 
10975
        # The C++ compiler must be used to create the archive.
 
10976
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10977
        ;;
 
10978
      *)
 
10979
        # GNU C++ compiler with Solaris linker
 
10980
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10981
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10982
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10983
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10984
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10985
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10986
 
 
10987
            # Commands to make compiler produce verbose output that lists
 
10988
            # what "hidden" libraries, object files and flags are used when
 
10989
            # linking a shared library.
 
10990
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10991
          else
 
10992
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10993
            # platform.
 
10994
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10995
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10996
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10997
 
 
10998
            # Commands to make compiler produce verbose output that lists
 
10999
            # what "hidden" libraries, object files and flags are used when
 
11000
            # linking a shared library.
 
11001
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11002
          fi
 
11003
 
 
11004
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11005
        fi
 
11006
        ;;
 
11007
    esac
 
11008
    ;;
 
11009
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11010
    no_undefined_flag_CXX='${wl}-z,text'
 
11011
    archive_cmds_need_lc_CXX=no
 
11012
    hardcode_shlibpath_var_CXX=no
 
11013
    runpath_var='LD_RUN_PATH'
 
11014
 
 
11015
    case $cc_basename in
 
11016
      CC*)
 
11017
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11018
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11019
        ;;
 
11020
      *)
 
11021
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11022
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11023
        ;;
 
11024
    esac
 
11025
    ;;
 
11026
  sysv5* | sco3.2v5* | sco5v6*)
 
11027
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11028
    # link with -lc, and that would cause any symbols used from libc to
 
11029
    # always be unresolved, which means just about no library would
 
11030
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11031
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11032
    # as -z defs.
 
11033
    # For security reasons, it is highly recommended that you always
 
11034
    # use absolute paths for naming shared libraries, and exclude the
 
11035
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11036
    # requires that you compile everything twice, which is a pain.
 
11037
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11038
    # non-empty value in the environment.  Most likely only useful for
 
11039
    # creating official distributions of packages.
 
11040
    # This is a hack until libtool officially supports absolute path
 
11041
    # names for shared libraries.
 
11042
    no_undefined_flag_CXX='${wl}-z,text'
 
11043
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11044
    archive_cmds_need_lc_CXX=no
 
11045
    hardcode_shlibpath_var_CXX=no
 
11046
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11047
    hardcode_libdir_separator_CXX=':'
 
11048
    link_all_deplibs_CXX=yes
 
11049
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11050
    runpath_var='LD_RUN_PATH'
 
11051
 
 
11052
    case $cc_basename in
 
11053
      CC*)
 
11054
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11055
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11056
        ;;
 
11057
      *)
 
11058
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11059
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11060
        ;;
 
11061
    esac
 
11062
    ;;
 
11063
  tandem*)
 
11064
    case $cc_basename in
 
11065
      NCC*)
 
11066
        # NonStop-UX NCC 3.20
 
11067
        # FIXME: insert proper C++ library support
 
11068
        ld_shlibs_CXX=no
 
11069
        ;;
 
11070
      *)
 
11071
        # FIXME: insert proper C++ library support
 
11072
        ld_shlibs_CXX=no
 
11073
        ;;
 
11074
    esac
 
11075
    ;;
 
11076
  vxworks*)
 
11077
    # FIXME: insert proper C++ library support
 
11078
    ld_shlibs_CXX=no
 
11079
    ;;
 
11080
  *)
 
11081
    # FIXME: insert proper C++ library support
 
11082
    ld_shlibs_CXX=no
 
11083
    ;;
 
11084
esac
 
11085
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11086
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11087
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11088
 
 
11089
GCC_CXX="$GXX"
 
11090
LD_CXX="$LD"
 
11091
 
 
11092
 
 
11093
cat > conftest.$ac_ext <<EOF
 
11094
class Foo
 
11095
{
 
11096
public:
 
11097
  Foo (void) { a = 0; }
 
11098
private:
 
11099
  int a;
 
11100
};
 
11101
EOF
 
11102
 
 
11103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11104
  (eval $ac_compile) 2>&5
 
11105
  ac_status=$?
 
11106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11107
  (exit $ac_status); }; then
 
11108
  # Parse the compiler output and extract the necessary
 
11109
  # objects, libraries and library flags.
 
11110
 
 
11111
  # Sentinel used to keep track of whether or not we are before
 
11112
  # the conftest object file.
 
11113
  pre_test_object_deps_done=no
 
11114
 
 
11115
  # The `*' in the case matches for architectures that use `case' in
 
11116
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11117
  # eval without this substitution.
 
11118
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11119
 
 
11120
  for p in `eval $output_verbose_link_cmd`; do
 
11121
    case $p in
 
11122
 
 
11123
    -L* | -R* | -l*)
 
11124
       # Some compilers place space between "-{L,R}" and the path.
 
11125
       # Remove the space.
 
11126
       if test $p = "-L" \
 
11127
          || test $p = "-R"; then
 
11128
         prev=$p
 
11129
         continue
 
11130
       else
 
11131
         prev=
 
11132
       fi
 
11133
 
 
11134
       if test "$pre_test_object_deps_done" = no; then
 
11135
         case $p in
 
11136
         -L* | -R*)
 
11137
           # Internal compiler library paths should come after those
 
11138
           # provided the user.  The postdeps already come after the
 
11139
           # user supplied libs so there is no need to process them.
 
11140
           if test -z "$compiler_lib_search_path_CXX"; then
 
11141
             compiler_lib_search_path_CXX="${prev}${p}"
 
11142
           else
 
11143
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11144
           fi
 
11145
           ;;
 
11146
         # The "-l" case would never come before the object being
 
11147
         # linked, so don't bother handling this case.
 
11148
         esac
 
11149
       else
 
11150
         if test -z "$postdeps_CXX"; then
 
11151
           postdeps_CXX="${prev}${p}"
 
11152
         else
 
11153
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11154
         fi
 
11155
       fi
 
11156
       ;;
 
11157
 
 
11158
    *.$objext)
 
11159
       # This assumes that the test object file only shows up
 
11160
       # once in the compiler output.
 
11161
       if test "$p" = "conftest.$objext"; then
 
11162
         pre_test_object_deps_done=yes
 
11163
         continue
 
11164
       fi
 
11165
 
 
11166
       if test "$pre_test_object_deps_done" = no; then
 
11167
         if test -z "$predep_objects_CXX"; then
 
11168
           predep_objects_CXX="$p"
 
11169
         else
 
11170
           predep_objects_CXX="$predep_objects_CXX $p"
 
11171
         fi
 
11172
       else
 
11173
         if test -z "$postdep_objects_CXX"; then
 
11174
           postdep_objects_CXX="$p"
 
11175
         else
 
11176
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11177
         fi
 
11178
       fi
 
11179
       ;;
 
11180
 
 
11181
    *) ;; # Ignore the rest.
 
11182
 
 
11183
    esac
 
11184
  done
 
11185
 
 
11186
  # Clean up.
 
11187
  rm -f a.out a.exe
 
11188
else
 
11189
  echo "libtool.m4: error: problem compiling CXX test program"
 
11190
fi
 
11191
 
 
11192
$rm -f confest.$objext
 
11193
 
 
11194
# PORTME: override above test on systems where it is broken
 
11195
case $host_os in
 
11196
interix3*)
 
11197
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11198
  # hack all around it, let's just trust "g++" to DTRT.
 
11199
  predep_objects_CXX=
 
11200
  postdep_objects_CXX=
 
11201
  postdeps_CXX=
 
11202
  ;;
 
11203
 
 
11204
solaris*)
 
11205
  case $cc_basename in
 
11206
  CC*)
 
11207
    # Adding this requires a known-good setup of shared libraries for
 
11208
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11209
    # archive will be linked into the output, leading to subtle bugs.
 
11210
    postdeps_CXX='-lCstd -lCrun'
 
11211
    ;;
 
11212
  esac
 
11213
  ;;
 
11214
esac
 
11215
 
 
11216
 
 
11217
case " $postdeps_CXX " in
 
11218
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11219
esac
 
11220
 
 
11221
lt_prog_compiler_wl_CXX=
 
11222
lt_prog_compiler_pic_CXX=
 
11223
lt_prog_compiler_static_CXX=
 
11224
 
 
11225
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11226
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11227
 
 
11228
  # C++ specific cases for pic, static, wl, etc.
 
11229
  if test "$GXX" = yes; then
 
11230
    lt_prog_compiler_wl_CXX='-Wl,'
 
11231
    lt_prog_compiler_static_CXX='-static'
 
11232
 
 
11233
    case $host_os in
 
11234
    aix*)
 
11235
      # All AIX code is PIC.
 
11236
      if test "$host_cpu" = ia64; then
 
11237
        # AIX 5 now supports IA64 processor
 
11238
        lt_prog_compiler_static_CXX='-Bstatic'
 
11239
      fi
 
11240
      ;;
 
11241
    amigaos*)
 
11242
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11243
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11244
      # like `-m68040'.
 
11245
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11246
      ;;
 
11247
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11248
      # PIC is the default for these OSes.
 
11249
      ;;
 
11250
    mingw* | os2* | pw32*)
 
11251
      # This hack is so that the source file can tell whether it is being
 
11252
      # built for inclusion in a dll (and should export symbols for example).
 
11253
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11254
      ;;
 
11255
    darwin* | rhapsody*)
 
11256
      # PIC is the default on this platform
 
11257
      # Common symbols not allowed in MH_DYLIB files
 
11258
      lt_prog_compiler_pic_CXX='-fno-common'
 
11259
      ;;
 
11260
    *djgpp*)
 
11261
      # DJGPP does not support shared libraries at all
 
11262
      lt_prog_compiler_pic_CXX=
 
11263
      ;;
 
11264
    interix3*)
 
11265
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11266
      # Instead, we relocate shared libraries at runtime.
 
11267
      ;;
 
11268
    sysv4*MP*)
 
11269
      if test -d /usr/nec; then
 
11270
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11271
      fi
 
11272
      ;;
 
11273
    hpux*)
 
11274
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11275
      # not for PA HP-UX.
 
11276
      case $host_cpu in
 
11277
      hppa*64*|ia64*)
 
11278
        ;;
 
11279
      *)
 
11280
        lt_prog_compiler_pic_CXX='-fPIC'
 
11281
        ;;
 
11282
      esac
 
11283
      ;;
 
11284
    *)
 
11285
      lt_prog_compiler_pic_CXX='-fPIC'
 
11286
      ;;
 
11287
    esac
 
11288
  else
 
11289
    case $host_os in
 
11290
      aix4* | aix5*)
 
11291
        # All AIX code is PIC.
 
11292
        if test "$host_cpu" = ia64; then
 
11293
          # AIX 5 now supports IA64 processor
 
11294
          lt_prog_compiler_static_CXX='-Bstatic'
 
11295
        else
 
11296
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11297
        fi
 
11298
        ;;
 
11299
      chorus*)
 
11300
        case $cc_basename in
 
11301
        cxch68*)
 
11302
          # Green Hills C++ Compiler
 
11303
          # _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"
 
11304
          ;;
 
11305
        esac
 
11306
        ;;
 
11307
       darwin*)
 
11308
         # PIC is the default on this platform
 
11309
         # Common symbols not allowed in MH_DYLIB files
 
11310
         case $cc_basename in
 
11311
           xlc*)
 
11312
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11313
           lt_prog_compiler_wl_CXX='-Wl,'
 
11314
           ;;
 
11315
         esac
 
11316
       ;;
 
11317
      dgux*)
 
11318
        case $cc_basename in
 
11319
          ec++*)
 
11320
            lt_prog_compiler_pic_CXX='-KPIC'
 
11321
            ;;
 
11322
          ghcx*)
 
11323
            # Green Hills C++ Compiler
 
11324
            lt_prog_compiler_pic_CXX='-pic'
 
11325
            ;;
 
11326
          *)
 
11327
            ;;
 
11328
        esac
 
11329
        ;;
 
11330
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11331
        # FreeBSD uses GNU C++
 
11332
        ;;
 
11333
      hpux9* | hpux10* | hpux11*)
 
11334
        case $cc_basename in
 
11335
          CC*)
 
11336
            lt_prog_compiler_wl_CXX='-Wl,'
 
11337
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11338
            if test "$host_cpu" != ia64; then
 
11339
              lt_prog_compiler_pic_CXX='+Z'
 
11340
            fi
 
11341
            ;;
 
11342
          aCC*)
 
11343
            lt_prog_compiler_wl_CXX='-Wl,'
 
11344
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11345
            case $host_cpu in
 
11346
            hppa*64*|ia64*)
 
11347
              # +Z the default
 
11348
              ;;
 
11349
            *)
 
11350
              lt_prog_compiler_pic_CXX='+Z'
 
11351
              ;;
 
11352
            esac
 
11353
            ;;
 
11354
          *)
 
11355
            ;;
 
11356
        esac
 
11357
        ;;
 
11358
      interix*)
 
11359
        # This is c89, which is MS Visual C++ (no shared libs)
 
11360
        # Anyone wants to do a port?
 
11361
        ;;
 
11362
      irix5* | irix6* | nonstopux*)
 
11363
        case $cc_basename in
 
11364
          CC*)
 
11365
            lt_prog_compiler_wl_CXX='-Wl,'
 
11366
            lt_prog_compiler_static_CXX='-non_shared'
 
11367
            # CC pic flag -KPIC is the default.
 
11368
            ;;
 
11369
          *)
 
11370
            ;;
 
11371
        esac
 
11372
        ;;
 
11373
      linux*)
 
11374
        case $cc_basename in
 
11375
          KCC*)
 
11376
            # KAI C++ Compiler
 
11377
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11378
            lt_prog_compiler_pic_CXX='-fPIC'
 
11379
            ;;
 
11380
          icpc* | ecpc*)
 
11381
            # Intel C++
 
11382
            lt_prog_compiler_wl_CXX='-Wl,'
 
11383
            lt_prog_compiler_pic_CXX='-KPIC'
 
11384
            lt_prog_compiler_static_CXX='-static'
 
11385
            ;;
 
11386
          pgCC*)
 
11387
            # Portland Group C++ compiler.
 
11388
            lt_prog_compiler_wl_CXX='-Wl,'
 
11389
            lt_prog_compiler_pic_CXX='-fpic'
 
11390
            lt_prog_compiler_static_CXX='-Bstatic'
 
11391
            ;;
 
11392
          cxx*)
 
11393
            # Compaq C++
 
11394
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11395
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11396
            lt_prog_compiler_pic_CXX=
 
11397
            lt_prog_compiler_static_CXX='-non_shared'
 
11398
            ;;
 
11399
          *)
 
11400
            ;;
 
11401
        esac
 
11402
        ;;
 
11403
      lynxos*)
 
11404
        ;;
 
11405
      m88k*)
 
11406
        ;;
 
11407
      mvs*)
 
11408
        case $cc_basename in
 
11409
          cxx*)
 
11410
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11411
            ;;
 
11412
          *)
 
11413
            ;;
 
11414
        esac
 
11415
        ;;
 
11416
      netbsd*)
 
11417
        ;;
 
11418
      osf3* | osf4* | osf5*)
 
11419
        case $cc_basename in
 
11420
          KCC*)
 
11421
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11422
            ;;
 
11423
          RCC*)
 
11424
            # Rational C++ 2.4.1
 
11425
            lt_prog_compiler_pic_CXX='-pic'
 
11426
            ;;
 
11427
          cxx*)
 
11428
            # Digital/Compaq C++
 
11429
            lt_prog_compiler_wl_CXX='-Wl,'
 
11430
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11431
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11432
            lt_prog_compiler_pic_CXX=
 
11433
            lt_prog_compiler_static_CXX='-non_shared'
 
11434
            ;;
 
11435
          *)
 
11436
            ;;
 
11437
        esac
 
11438
        ;;
 
11439
      psos*)
 
11440
        ;;
 
11441
      solaris*)
 
11442
        case $cc_basename in
 
11443
          CC*)
 
11444
            # Sun C++ 4.2, 5.x and Centerline C++
 
11445
            lt_prog_compiler_pic_CXX='-KPIC'
 
11446
            lt_prog_compiler_static_CXX='-Bstatic'
 
11447
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11448
            ;;
 
11449
          gcx*)
 
11450
            # Green Hills C++ Compiler
 
11451
            lt_prog_compiler_pic_CXX='-PIC'
 
11452
            ;;
 
11453
          *)
 
11454
            ;;
 
11455
        esac
 
11456
        ;;
 
11457
      sunos4*)
 
11458
        case $cc_basename in
 
11459
          CC*)
 
11460
            # Sun C++ 4.x
 
11461
            lt_prog_compiler_pic_CXX='-pic'
 
11462
            lt_prog_compiler_static_CXX='-Bstatic'
 
11463
            ;;
 
11464
          lcc*)
 
11465
            # Lucid
 
11466
            lt_prog_compiler_pic_CXX='-pic'
 
11467
            ;;
 
11468
          *)
 
11469
            ;;
 
11470
        esac
 
11471
        ;;
 
11472
      tandem*)
 
11473
        case $cc_basename in
 
11474
          NCC*)
 
11475
            # NonStop-UX NCC 3.20
 
11476
            lt_prog_compiler_pic_CXX='-KPIC'
 
11477
            ;;
 
11478
          *)
 
11479
            ;;
 
11480
        esac
 
11481
        ;;
 
11482
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11483
        case $cc_basename in
 
11484
          CC*)
 
11485
            lt_prog_compiler_wl_CXX='-Wl,'
 
11486
            lt_prog_compiler_pic_CXX='-KPIC'
 
11487
            lt_prog_compiler_static_CXX='-Bstatic'
 
11488
            ;;
 
11489
        esac
 
11490
        ;;
 
11491
      vxworks*)
 
11492
        ;;
 
11493
      *)
 
11494
        lt_prog_compiler_can_build_shared_CXX=no
 
11495
        ;;
 
11496
    esac
 
11497
  fi
 
11498
 
 
11499
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11500
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11501
 
 
11502
#
 
11503
# Check to make sure the PIC flag actually works.
 
11504
#
 
11505
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11506
 
 
11507
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11508
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11509
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11511
else
 
11512
  lt_prog_compiler_pic_works_CXX=no
 
11513
  ac_outfile=conftest.$ac_objext
 
11514
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11515
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11516
   # Insert the option either (1) after the last *FLAGS variable, or
 
11517
   # (2) before a word containing "conftest.", or (3) at the end.
 
11518
   # Note that $ac_compile itself does not contain backslashes and begins
 
11519
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11520
   # The option is referenced via a variable to avoid confusing sed.
 
11521
   lt_compile=`echo "$ac_compile" | $SED \
 
11522
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11523
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11524
   -e 's:$: $lt_compiler_flag:'`
 
11525
   (eval echo "\"\$as_me:11525: $lt_compile\"" >&5)
 
11526
   (eval "$lt_compile" 2>conftest.err)
 
11527
   ac_status=$?
 
11528
   cat conftest.err >&5
 
11529
   echo "$as_me:11529: \$? = $ac_status" >&5
 
11530
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11531
     # The compiler can only warn and ignore the option if not recognized
 
11532
     # So say no if there are warnings other than the usual output.
 
11533
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11534
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11535
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
11536
       lt_prog_compiler_pic_works_CXX=yes
 
11537
     fi
 
11538
   fi
 
11539
   $rm conftest*
 
11540
 
 
11541
fi
 
11542
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11543
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11544
 
 
11545
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11546
    case $lt_prog_compiler_pic_CXX in
 
11547
     "" | " "*) ;;
 
11548
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11549
     esac
 
11550
else
 
11551
    lt_prog_compiler_pic_CXX=
 
11552
     lt_prog_compiler_can_build_shared_CXX=no
 
11553
fi
 
11554
 
 
11555
fi
 
11556
case $host_os in
 
11557
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11558
  *djgpp*)
 
11559
    lt_prog_compiler_pic_CXX=
 
11560
    ;;
 
11561
  *)
 
11562
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11563
    ;;
 
11564
esac
 
11565
 
 
11566
#
 
11567
# Check to make sure the static flag actually works.
 
11568
#
 
11569
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11570
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11571
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11572
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11574
else
 
11575
  lt_prog_compiler_static_works_CXX=no
 
11576
   save_LDFLAGS="$LDFLAGS"
 
11577
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11578
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11579
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11580
     # The linker can only warn and ignore the option if not recognized
 
11581
     # So say no if there are warnings
 
11582
     if test -s conftest.err; then
 
11583
       # Append any errors to the config.log.
 
11584
       cat conftest.err 1>&5
 
11585
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11586
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11587
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11588
         lt_prog_compiler_static_works_CXX=yes
 
11589
       fi
 
11590
     else
 
11591
       lt_prog_compiler_static_works_CXX=yes
 
11592
     fi
 
11593
   fi
 
11594
   $rm conftest*
 
11595
   LDFLAGS="$save_LDFLAGS"
 
11596
 
 
11597
fi
 
11598
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11599
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11600
 
 
11601
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11602
    :
 
11603
else
 
11604
    lt_prog_compiler_static_CXX=
 
11605
fi
 
11606
 
 
11607
 
 
11608
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11609
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11610
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11612
else
 
11613
  lt_cv_prog_compiler_c_o_CXX=no
 
11614
   $rm -r conftest 2>/dev/null
 
11615
   mkdir conftest
 
11616
   cd conftest
 
11617
   mkdir out
 
11618
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11619
 
 
11620
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11621
   # Insert the option either (1) after the last *FLAGS variable, or
 
11622
   # (2) before a word containing "conftest.", or (3) at the end.
 
11623
   # Note that $ac_compile itself does not contain backslashes and begins
 
11624
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11625
   lt_compile=`echo "$ac_compile" | $SED \
 
11626
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11627
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11628
   -e 's:$: $lt_compiler_flag:'`
 
11629
   (eval echo "\"\$as_me:11629: $lt_compile\"" >&5)
 
11630
   (eval "$lt_compile" 2>out/conftest.err)
 
11631
   ac_status=$?
 
11632
   cat out/conftest.err >&5
 
11633
   echo "$as_me:11633: \$? = $ac_status" >&5
 
11634
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11635
   then
 
11636
     # The compiler can only warn and ignore the option if not recognized
 
11637
     # So say no if there are warnings
 
11638
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11639
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11640
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11641
       lt_cv_prog_compiler_c_o_CXX=yes
 
11642
     fi
 
11643
   fi
 
11644
   chmod u+w . 2>&5
 
11645
   $rm conftest*
 
11646
   # SGI C++ compiler will create directory out/ii_files/ for
 
11647
   # template instantiation
 
11648
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11649
   $rm out/* && rmdir out
 
11650
   cd ..
 
11651
   rmdir conftest
 
11652
   $rm conftest*
 
11653
 
 
11654
fi
 
11655
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11656
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11657
 
 
11658
 
 
11659
hard_links="nottested"
 
11660
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11661
  # do not overwrite the value of need_locks provided by the user
 
11662
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11663
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11664
  hard_links=yes
 
11665
  $rm conftest*
 
11666
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11667
  touch conftest.a
 
11668
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11669
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11670
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11671
echo "${ECHO_T}$hard_links" >&6
 
11672
  if test "$hard_links" = no; then
 
11673
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11674
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11675
    need_locks=warn
 
11676
  fi
 
11677
else
 
11678
  need_locks=no
 
11679
fi
 
11680
 
 
11681
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11682
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11683
 
 
11684
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11685
  case $host_os in
 
11686
  aix4* | aix5*)
 
11687
    # If we're using GNU nm, then we don't want the "-C" option.
 
11688
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11689
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11690
      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'
 
11691
    else
 
11692
      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'
 
11693
    fi
 
11694
    ;;
 
11695
  pw32*)
 
11696
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11697
  ;;
 
11698
  cygwin* | mingw*)
 
11699
    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'
 
11700
  ;;
 
11701
  *)
 
11702
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11703
  ;;
 
11704
  esac
 
11705
 
 
11706
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11707
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11708
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11709
 
 
11710
#
 
11711
# Do we need to explicitly link libc?
 
11712
#
 
11713
case "x$archive_cmds_need_lc_CXX" in
 
11714
x|xyes)
 
11715
  # Assume -lc should be added
 
11716
  archive_cmds_need_lc_CXX=yes
 
11717
 
 
11718
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11719
    case $archive_cmds_CXX in
 
11720
    *'~'*)
 
11721
      # FIXME: we may have to deal with multi-command sequences.
 
11722
      ;;
 
11723
    '$CC '*)
 
11724
      # Test whether the compiler implicitly links with -lc since on some
 
11725
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11726
      # to ld, don't add -lc before -lgcc.
 
11727
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11728
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11729
      $rm conftest*
 
11730
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11731
 
 
11732
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11733
  (eval $ac_compile) 2>&5
 
11734
  ac_status=$?
 
11735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11736
  (exit $ac_status); } 2>conftest.err; then
 
11737
        soname=conftest
 
11738
        lib=conftest
 
11739
        libobjs=conftest.$ac_objext
 
11740
        deplibs=
 
11741
        wl=$lt_prog_compiler_wl_CXX
 
11742
        pic_flag=$lt_prog_compiler_pic_CXX
 
11743
        compiler_flags=-v
 
11744
        linker_flags=-v
 
11745
        verstring=
 
11746
        output_objdir=.
 
11747
        libname=conftest
 
11748
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11749
        allow_undefined_flag_CXX=
 
11750
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11751
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11752
  ac_status=$?
 
11753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11754
  (exit $ac_status); }
 
11755
        then
 
11756
          archive_cmds_need_lc_CXX=no
 
11757
        else
 
11758
          archive_cmds_need_lc_CXX=yes
 
11759
        fi
 
11760
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11761
      else
 
11762
        cat conftest.err 1>&5
 
11763
      fi
 
11764
      $rm conftest*
 
11765
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11766
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11767
      ;;
 
11768
    esac
 
11769
  fi
 
11770
  ;;
 
11771
esac
 
11772
 
 
11773
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11774
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11775
library_names_spec=
 
11776
libname_spec='lib$name'
 
11777
soname_spec=
 
11778
shrext_cmds=".so"
 
11779
postinstall_cmds=
 
11780
postuninstall_cmds=
 
11781
finish_cmds=
 
11782
finish_eval=
 
11783
shlibpath_var=
 
11784
shlibpath_overrides_runpath=unknown
 
11785
version_type=none
 
11786
dynamic_linker="$host_os ld.so"
 
11787
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11788
if test "$GCC" = yes; then
 
11789
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11790
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11791
    # if the path contains ";" then we assume it to be the separator
 
11792
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11793
    # assumed that no part of a normal pathname contains ";" but that should
 
11794
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11795
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11796
  else
 
11797
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11798
  fi
 
11799
else
 
11800
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11801
fi
 
11802
need_lib_prefix=unknown
 
11803
hardcode_into_libs=no
 
11804
 
 
11805
# when you set need_version to no, make sure it does not cause -set_version
 
11806
# flags to be left without arguments
 
11807
need_version=unknown
 
11808
 
 
11809
case $host_os in
 
11810
aix3*)
 
11811
  version_type=linux
 
11812
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11813
  shlibpath_var=LIBPATH
 
11814
 
 
11815
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11816
  soname_spec='${libname}${release}${shared_ext}$major'
 
11817
  ;;
 
11818
 
 
11819
aix4* | aix5*)
 
11820
  version_type=linux
 
11821
  need_lib_prefix=no
 
11822
  need_version=no
 
11823
  hardcode_into_libs=yes
 
11824
  if test "$host_cpu" = ia64; then
 
11825
    # AIX 5 supports IA64
 
11826
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11827
    shlibpath_var=LD_LIBRARY_PATH
 
11828
  else
 
11829
    # With GCC up to 2.95.x, collect2 would create an import file
 
11830
    # for dependence libraries.  The import file would start with
 
11831
    # the line `#! .'.  This would cause the generated library to
 
11832
    # depend on `.', always an invalid library.  This was fixed in
 
11833
    # development snapshots of GCC prior to 3.0.
 
11834
    case $host_os in
 
11835
      aix4 | aix4.[01] | aix4.[01].*)
 
11836
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11837
           echo ' yes '
 
11838
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11839
        :
 
11840
      else
 
11841
        can_build_shared=no
 
11842
      fi
 
11843
      ;;
 
11844
    esac
 
11845
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11846
    # soname into executable. Probably we can add versioning support to
 
11847
    # collect2, so additional links can be useful in future.
 
11848
    if test "$aix_use_runtimelinking" = yes; then
 
11849
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11850
      # instead of lib<name>.a to let people know that these are not
 
11851
      # typical AIX shared libraries.
 
11852
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11853
    else
 
11854
      # We preserve .a as extension for shared libraries through AIX4.2
 
11855
      # and later when we are not doing run time linking.
 
11856
      library_names_spec='${libname}${release}.a $libname.a'
 
11857
      soname_spec='${libname}${release}${shared_ext}$major'
 
11858
    fi
 
11859
    shlibpath_var=LIBPATH
 
11860
  fi
 
11861
  ;;
 
11862
 
 
11863
amigaos*)
 
11864
  library_names_spec='$libname.ixlibrary $libname.a'
 
11865
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11866
  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'
 
11867
  ;;
 
11868
 
 
11869
beos*)
 
11870
  library_names_spec='${libname}${shared_ext}'
 
11871
  dynamic_linker="$host_os ld.so"
 
11872
  shlibpath_var=LIBRARY_PATH
 
11873
  ;;
 
11874
 
 
11875
bsdi[45]*)
 
11876
  version_type=linux
 
11877
  need_version=no
 
11878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11879
  soname_spec='${libname}${release}${shared_ext}$major'
 
11880
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11881
  shlibpath_var=LD_LIBRARY_PATH
 
11882
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11883
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11884
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11885
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11886
  # libtool to hard-code these into programs
 
11887
  ;;
 
11888
 
 
11889
cygwin* | mingw* | pw32*)
 
11890
  version_type=windows
 
11891
  shrext_cmds=".dll"
 
11892
  need_version=no
 
11893
  need_lib_prefix=no
 
11894
 
 
11895
  case $GCC,$host_os in
 
11896
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11897
    library_names_spec='$libname.dll.a'
 
11898
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11899
    postinstall_cmds='base_file=`basename \${file}`~
 
11900
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11901
      dldir=$destdir/`dirname \$dlpath`~
 
11902
      test -d \$dldir || mkdir -p \$dldir~
 
11903
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11904
      chmod a+x \$dldir/$dlname'
 
11905
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11906
      dlpath=$dir/\$dldll~
 
11907
       $rm \$dlpath'
 
11908
    shlibpath_overrides_runpath=yes
 
11909
 
 
11910
    case $host_os in
 
11911
    cygwin*)
 
11912
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11913
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11914
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11915
      ;;
 
11916
    mingw*)
 
11917
      # MinGW DLLs use traditional 'lib' prefix
 
11918
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11919
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11920
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11921
        # It is most probably a Windows format PATH printed by
 
11922
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11923
        # path with ; separators, and with drive letters. We can handle the
 
11924
        # drive letters (cygwin fileutils understands them), so leave them,
 
11925
        # especially as we might pass files found there to a mingw objdump,
 
11926
        # which wouldn't understand a cygwinified path. Ahh.
 
11927
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11928
      else
 
11929
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11930
      fi
 
11931
      ;;
 
11932
    pw32*)
 
11933
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11934
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11935
      ;;
 
11936
    esac
 
11937
    ;;
 
11938
 
 
11939
  *)
 
11940
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11941
    ;;
 
11942
  esac
 
11943
  dynamic_linker='Win32 ld.exe'
 
11944
  # FIXME: first we should search . and the directory the executable is in
 
11945
  shlibpath_var=PATH
 
11946
  ;;
 
11947
 
 
11948
darwin* | rhapsody*)
 
11949
  dynamic_linker="$host_os dyld"
 
11950
  version_type=darwin
 
11951
  need_lib_prefix=no
 
11952
  need_version=no
 
11953
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11954
  soname_spec='${libname}${release}${major}$shared_ext'
 
11955
  shlibpath_overrides_runpath=yes
 
11956
  shlibpath_var=DYLD_LIBRARY_PATH
 
11957
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11958
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11959
  if test "$GCC" = yes; then
 
11960
    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"`
 
11961
  else
 
11962
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11963
  fi
 
11964
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11965
  ;;
 
11966
 
 
11967
dgux*)
 
11968
  version_type=linux
 
11969
  need_lib_prefix=no
 
11970
  need_version=no
 
11971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11972
  soname_spec='${libname}${release}${shared_ext}$major'
 
11973
  shlibpath_var=LD_LIBRARY_PATH
 
11974
  ;;
 
11975
 
 
11976
freebsd1*)
 
11977
  dynamic_linker=no
 
11978
  ;;
 
11979
 
 
11980
kfreebsd*-gnu)
 
11981
  version_type=linux
 
11982
  need_lib_prefix=no
 
11983
  need_version=no
 
11984
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11985
  soname_spec='${libname}${release}${shared_ext}$major'
 
11986
  shlibpath_var=LD_LIBRARY_PATH
 
11987
  shlibpath_overrides_runpath=no
 
11988
  hardcode_into_libs=yes
 
11989
  dynamic_linker='GNU ld.so'
 
11990
  ;;
 
11991
 
 
11992
freebsd* | dragonfly*)
 
11993
  # DragonFly does not have aout.  When/if they implement a new
 
11994
  # versioning mechanism, adjust this.
 
11995
  if test -x /usr/bin/objformat; then
 
11996
    objformat=`/usr/bin/objformat`
 
11997
  else
 
11998
    case $host_os in
 
11999
    freebsd[123]*) objformat=aout ;;
 
12000
    *) objformat=elf ;;
 
12001
    esac
 
12002
  fi
 
12003
  version_type=freebsd-$objformat
 
12004
  case $version_type in
 
12005
    freebsd-elf*)
 
12006
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12007
      need_version=no
 
12008
      need_lib_prefix=no
 
12009
      ;;
 
12010
    freebsd-*)
 
12011
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12012
      need_version=yes
 
12013
      ;;
 
12014
  esac
 
12015
  shlibpath_var=LD_LIBRARY_PATH
 
12016
  case $host_os in
 
12017
  freebsd2*)
 
12018
    shlibpath_overrides_runpath=yes
 
12019
    ;;
 
12020
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12021
    shlibpath_overrides_runpath=yes
 
12022
    hardcode_into_libs=yes
 
12023
    ;;
 
12024
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12025
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12026
    shlibpath_overrides_runpath=no
 
12027
    hardcode_into_libs=yes
 
12028
    ;;
 
12029
  freebsd*) # from 4.6 on
 
12030
    shlibpath_overrides_runpath=yes
 
12031
    hardcode_into_libs=yes
 
12032
    ;;
 
12033
  esac
 
12034
  ;;
 
12035
 
 
12036
gnu*)
 
12037
  version_type=linux
 
12038
  need_lib_prefix=no
 
12039
  need_version=no
 
12040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12041
  soname_spec='${libname}${release}${shared_ext}$major'
 
12042
  shlibpath_var=LD_LIBRARY_PATH
 
12043
  hardcode_into_libs=yes
 
12044
  ;;
 
12045
 
 
12046
hpux9* | hpux10* | hpux11*)
 
12047
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12048
  # link against other versions.
 
12049
  version_type=sunos
 
12050
  need_lib_prefix=no
 
12051
  need_version=no
 
12052
  case $host_cpu in
 
12053
  ia64*)
 
12054
    shrext_cmds='.so'
 
12055
    hardcode_into_libs=yes
 
12056
    dynamic_linker="$host_os dld.so"
 
12057
    shlibpath_var=LD_LIBRARY_PATH
 
12058
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12059
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12060
    soname_spec='${libname}${release}${shared_ext}$major'
 
12061
    if test "X$HPUX_IA64_MODE" = X32; then
 
12062
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12063
    else
 
12064
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12065
    fi
 
12066
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12067
    ;;
 
12068
   hppa*64*)
 
12069
     shrext_cmds='.sl'
 
12070
     hardcode_into_libs=yes
 
12071
     dynamic_linker="$host_os dld.sl"
 
12072
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12073
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12074
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12075
     soname_spec='${libname}${release}${shared_ext}$major'
 
12076
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12077
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12078
     ;;
 
12079
   *)
 
12080
    shrext_cmds='.sl'
 
12081
    dynamic_linker="$host_os dld.sl"
 
12082
    shlibpath_var=SHLIB_PATH
 
12083
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12084
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12085
    soname_spec='${libname}${release}${shared_ext}$major'
 
12086
    ;;
 
12087
  esac
 
12088
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12089
  postinstall_cmds='chmod 555 $lib'
 
12090
  ;;
 
12091
 
 
12092
interix3*)
 
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
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12099
  shlibpath_var=LD_LIBRARY_PATH
 
12100
  shlibpath_overrides_runpath=no
 
12101
  hardcode_into_libs=yes
 
12102
  ;;
 
12103
 
 
12104
irix5* | irix6* | nonstopux*)
 
12105
  case $host_os in
 
12106
    nonstopux*) version_type=nonstopux ;;
 
12107
    *)
 
12108
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12109
                version_type=linux
 
12110
        else
 
12111
                version_type=irix
 
12112
        fi ;;
 
12113
  esac
 
12114
  need_lib_prefix=no
 
12115
  need_version=no
 
12116
  soname_spec='${libname}${release}${shared_ext}$major'
 
12117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12118
  case $host_os in
 
12119
  irix5* | nonstopux*)
 
12120
    libsuff= shlibsuff=
 
12121
    ;;
 
12122
  *)
 
12123
    case $LD in # libtool.m4 will add one of these switches to LD
 
12124
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12125
      libsuff= shlibsuff= libmagic=32-bit;;
 
12126
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12127
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12128
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12129
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12130
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12131
    esac
 
12132
    ;;
 
12133
  esac
 
12134
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12135
  shlibpath_overrides_runpath=no
 
12136
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12137
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12138
  hardcode_into_libs=yes
 
12139
  ;;
 
12140
 
 
12141
# No shared lib support for Linux oldld, aout, or coff.
 
12142
linux*oldld* | linux*aout* | linux*coff*)
 
12143
  dynamic_linker=no
 
12144
  ;;
 
12145
 
 
12146
# This must be Linux ELF.
 
12147
linux*)
 
12148
  version_type=linux
 
12149
  need_lib_prefix=no
 
12150
  need_version=no
 
12151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12152
  soname_spec='${libname}${release}${shared_ext}$major'
 
12153
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12154
  shlibpath_var=LD_LIBRARY_PATH
 
12155
  shlibpath_overrides_runpath=no
 
12156
  # This implies no fast_install, which is unacceptable.
 
12157
  # Some rework will be needed to allow for fast_install
 
12158
  # before this can be enabled.
 
12159
  hardcode_into_libs=yes
 
12160
 
 
12161
  # Append ld.so.conf contents to the search path
 
12162
  if test -f /etc/ld.so.conf; then
 
12163
    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' ' '`
 
12164
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12165
  fi
 
12166
 
 
12167
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12168
  # powerpc, because MkLinux only supported shared libraries with the
 
12169
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12170
  # most powerpc-linux boxes support dynamic linking these days and
 
12171
  # people can always --disable-shared, the test was removed, and we
 
12172
  # assume the GNU/Linux dynamic linker is in use.
 
12173
  dynamic_linker='GNU/Linux ld.so'
 
12174
  ;;
 
12175
 
 
12176
knetbsd*-gnu)
 
12177
  version_type=linux
 
12178
  need_lib_prefix=no
 
12179
  need_version=no
 
12180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12181
  soname_spec='${libname}${release}${shared_ext}$major'
 
12182
  shlibpath_var=LD_LIBRARY_PATH
 
12183
  shlibpath_overrides_runpath=no
 
12184
  hardcode_into_libs=yes
 
12185
  dynamic_linker='GNU ld.so'
 
12186
  ;;
 
12187
 
 
12188
netbsd*)
 
12189
  version_type=sunos
 
12190
  need_lib_prefix=no
 
12191
  need_version=no
 
12192
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12193
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12194
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12195
    dynamic_linker='NetBSD (a.out) ld.so'
 
12196
  else
 
12197
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12198
    soname_spec='${libname}${release}${shared_ext}$major'
 
12199
    dynamic_linker='NetBSD ld.elf_so'
 
12200
  fi
 
12201
  shlibpath_var=LD_LIBRARY_PATH
 
12202
  shlibpath_overrides_runpath=yes
 
12203
  hardcode_into_libs=yes
 
12204
  ;;
 
12205
 
 
12206
newsos6)
 
12207
  version_type=linux
 
12208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12209
  shlibpath_var=LD_LIBRARY_PATH
 
12210
  shlibpath_overrides_runpath=yes
 
12211
  ;;
 
12212
 
 
12213
nto-qnx*)
 
12214
  version_type=linux
 
12215
  need_lib_prefix=no
 
12216
  need_version=no
 
12217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12218
  soname_spec='${libname}${release}${shared_ext}$major'
 
12219
  shlibpath_var=LD_LIBRARY_PATH
 
12220
  shlibpath_overrides_runpath=yes
 
12221
  ;;
 
12222
 
 
12223
openbsd*)
 
12224
  version_type=sunos
 
12225
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12226
  need_lib_prefix=no
 
12227
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12228
  case $host_os in
 
12229
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12230
    *)                         need_version=no  ;;
 
12231
  esac
 
12232
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12233
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12234
  shlibpath_var=LD_LIBRARY_PATH
 
12235
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12236
    case $host_os in
 
12237
      openbsd2.[89] | openbsd2.[89].*)
 
12238
        shlibpath_overrides_runpath=no
 
12239
        ;;
 
12240
      *)
 
12241
        shlibpath_overrides_runpath=yes
 
12242
        ;;
 
12243
      esac
 
12244
  else
 
12245
    shlibpath_overrides_runpath=yes
 
12246
  fi
 
12247
  ;;
 
12248
 
 
12249
os2*)
 
12250
  libname_spec='$name'
 
12251
  shrext_cmds=".dll"
 
12252
  need_lib_prefix=no
 
12253
  library_names_spec='$libname${shared_ext} $libname.a'
 
12254
  dynamic_linker='OS/2 ld.exe'
 
12255
  shlibpath_var=LIBPATH
 
12256
  ;;
 
12257
 
 
12258
osf3* | osf4* | osf5*)
 
12259
  version_type=osf
 
12260
  need_lib_prefix=no
 
12261
  need_version=no
 
12262
  soname_spec='${libname}${release}${shared_ext}$major'
 
12263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12264
  shlibpath_var=LD_LIBRARY_PATH
 
12265
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12266
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12267
  ;;
 
12268
 
 
12269
solaris*)
 
12270
  version_type=linux
 
12271
  need_lib_prefix=no
 
12272
  need_version=no
 
12273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12274
  soname_spec='${libname}${release}${shared_ext}$major'
 
12275
  shlibpath_var=LD_LIBRARY_PATH
 
12276
  shlibpath_overrides_runpath=yes
 
12277
  hardcode_into_libs=yes
 
12278
  # ldd complains unless libraries are executable
 
12279
  postinstall_cmds='chmod +x $lib'
 
12280
  ;;
 
12281
 
 
12282
sunos4*)
 
12283
  version_type=sunos
 
12284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12285
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12286
  shlibpath_var=LD_LIBRARY_PATH
 
12287
  shlibpath_overrides_runpath=yes
 
12288
  if test "$with_gnu_ld" = yes; then
 
12289
    need_lib_prefix=no
 
12290
  fi
 
12291
  need_version=yes
 
12292
  ;;
 
12293
 
 
12294
sysv4 | sysv4.3*)
 
12295
  version_type=linux
 
12296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12297
  soname_spec='${libname}${release}${shared_ext}$major'
 
12298
  shlibpath_var=LD_LIBRARY_PATH
 
12299
  case $host_vendor in
 
12300
    sni)
 
12301
      shlibpath_overrides_runpath=no
 
12302
      need_lib_prefix=no
 
12303
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12304
      runpath_var=LD_RUN_PATH
 
12305
      ;;
 
12306
    siemens)
 
12307
      need_lib_prefix=no
 
12308
      ;;
 
12309
    motorola)
 
12310
      need_lib_prefix=no
 
12311
      need_version=no
 
12312
      shlibpath_overrides_runpath=no
 
12313
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12314
      ;;
 
12315
  esac
 
12316
  ;;
 
12317
 
 
12318
sysv4*MP*)
 
12319
  if test -d /usr/nec ;then
 
12320
    version_type=linux
 
12321
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12322
    soname_spec='$libname${shared_ext}.$major'
 
12323
    shlibpath_var=LD_LIBRARY_PATH
 
12324
  fi
 
12325
  ;;
 
12326
 
 
12327
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12328
  version_type=freebsd-elf
 
12329
  need_lib_prefix=no
 
12330
  need_version=no
 
12331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12332
  soname_spec='${libname}${release}${shared_ext}$major'
 
12333
  shlibpath_var=LD_LIBRARY_PATH
 
12334
  hardcode_into_libs=yes
 
12335
  if test "$with_gnu_ld" = yes; then
 
12336
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12337
    shlibpath_overrides_runpath=no
 
12338
  else
 
12339
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12340
    shlibpath_overrides_runpath=yes
 
12341
    case $host_os in
 
12342
      sco3.2v5*)
 
12343
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12344
        ;;
 
12345
    esac
 
12346
  fi
 
12347
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12348
  ;;
 
12349
 
 
12350
uts4*)
 
12351
  version_type=linux
 
12352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12353
  soname_spec='${libname}${release}${shared_ext}$major'
 
12354
  shlibpath_var=LD_LIBRARY_PATH
 
12355
  ;;
 
12356
 
 
12357
*)
 
12358
  dynamic_linker=no
 
12359
  ;;
 
12360
esac
 
12361
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12362
echo "${ECHO_T}$dynamic_linker" >&6
 
12363
test "$dynamic_linker" = no && can_build_shared=no
 
12364
 
 
12365
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12366
if test "$GCC" = yes; then
 
12367
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12368
fi
 
12369
 
 
12370
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12371
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12372
hardcode_action_CXX=
 
12373
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12374
   test -n "$runpath_var_CXX" || \
 
12375
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12376
 
 
12377
  # We can hardcode non-existant directories.
 
12378
  if test "$hardcode_direct_CXX" != no &&
 
12379
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12380
     # have to relink, otherwise we might link with an installed library
 
12381
     # when we should be linking with a yet-to-be-installed one
 
12382
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12383
     test "$hardcode_minus_L_CXX" != no; then
 
12384
    # Linking always hardcodes the temporary library directory.
 
12385
    hardcode_action_CXX=relink
 
12386
  else
 
12387
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12388
    hardcode_action_CXX=immediate
 
12389
  fi
 
12390
else
 
12391
  # We cannot hardcode anything, or else we can only hardcode existing
 
12392
  # directories.
 
12393
  hardcode_action_CXX=unsupported
 
12394
fi
 
12395
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12396
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12397
 
 
12398
if test "$hardcode_action_CXX" = relink; then
 
12399
  # Fast installation is not supported
 
12400
  enable_fast_install=no
 
12401
elif test "$shlibpath_overrides_runpath" = yes ||
 
12402
     test "$enable_shared" = no; then
 
12403
  # Fast installation is not necessary
 
12404
  enable_fast_install=needless
 
12405
fi
 
12406
 
 
12407
 
 
12408
# The else clause should only fire when bootstrapping the
 
12409
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12410
# with your package, and you will get complaints that there are
 
12411
# no rules to generate ltmain.sh.
 
12412
if test -f "$ltmain"; then
 
12413
  # See if we are running on zsh, and set the options which allow our commands through
 
12414
  # without removal of \ escapes.
 
12415
  if test -n "${ZSH_VERSION+set}" ; then
 
12416
    setopt NO_GLOB_SUBST
 
12417
  fi
 
12418
  # Now quote all the things that may contain metacharacters while being
 
12419
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12420
  # variables and quote the copies for generation of the libtool script.
 
12421
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12422
    SED SHELL STRIP \
 
12423
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12424
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12425
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12426
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12427
    lt_cv_sys_global_symbol_to_c_name_address \
 
12428
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12429
    old_postinstall_cmds old_postuninstall_cmds \
 
12430
    compiler_CXX \
 
12431
    CC_CXX \
 
12432
    LD_CXX \
 
12433
    lt_prog_compiler_wl_CXX \
 
12434
    lt_prog_compiler_pic_CXX \
 
12435
    lt_prog_compiler_static_CXX \
 
12436
    lt_prog_compiler_no_builtin_flag_CXX \
 
12437
    export_dynamic_flag_spec_CXX \
 
12438
    thread_safe_flag_spec_CXX \
 
12439
    whole_archive_flag_spec_CXX \
 
12440
    enable_shared_with_static_runtimes_CXX \
 
12441
    old_archive_cmds_CXX \
 
12442
    old_archive_from_new_cmds_CXX \
 
12443
    predep_objects_CXX \
 
12444
    postdep_objects_CXX \
 
12445
    predeps_CXX \
 
12446
    postdeps_CXX \
 
12447
    compiler_lib_search_path_CXX \
 
12448
    archive_cmds_CXX \
 
12449
    archive_expsym_cmds_CXX \
 
12450
    postinstall_cmds_CXX \
 
12451
    postuninstall_cmds_CXX \
 
12452
    old_archive_from_expsyms_cmds_CXX \
 
12453
    allow_undefined_flag_CXX \
 
12454
    no_undefined_flag_CXX \
 
12455
    export_symbols_cmds_CXX \
 
12456
    hardcode_libdir_flag_spec_CXX \
 
12457
    hardcode_libdir_flag_spec_ld_CXX \
 
12458
    hardcode_libdir_separator_CXX \
 
12459
    hardcode_automatic_CXX \
 
12460
    module_cmds_CXX \
 
12461
    module_expsym_cmds_CXX \
 
12462
    lt_cv_prog_compiler_c_o_CXX \
 
12463
    exclude_expsyms_CXX \
 
12464
    include_expsyms_CXX; do
 
12465
 
 
12466
    case $var in
 
12467
    old_archive_cmds_CXX | \
 
12468
    old_archive_from_new_cmds_CXX | \
 
12469
    archive_cmds_CXX | \
 
12470
    archive_expsym_cmds_CXX | \
 
12471
    module_cmds_CXX | \
 
12472
    module_expsym_cmds_CXX | \
 
12473
    old_archive_from_expsyms_cmds_CXX | \
 
12474
    export_symbols_cmds_CXX | \
 
12475
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12476
    postinstall_cmds | postuninstall_cmds | \
 
12477
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12478
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12479
      # Double-quote double-evaled strings.
 
12480
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12481
      ;;
 
12482
    *)
 
12483
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12484
      ;;
 
12485
    esac
 
12486
  done
 
12487
 
 
12488
  case $lt_echo in
 
12489
  *'\$0 --fallback-echo"')
 
12490
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12491
    ;;
 
12492
  esac
 
12493
 
 
12494
cfgfile="$ofile"
 
12495
 
 
12496
  cat <<__EOF__ >> "$cfgfile"
 
12497
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12498
 
 
12499
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12500
 
 
12501
# Shell to use when invoking shell scripts.
 
12502
SHELL=$lt_SHELL
 
12503
 
 
12504
# Whether or not to build shared libraries.
 
12505
build_libtool_libs=$enable_shared
 
12506
 
 
12507
# Whether or not to build static libraries.
 
12508
build_old_libs=$enable_static
 
12509
 
 
12510
# Whether or not to add -lc for building shared libraries.
 
12511
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12512
 
 
12513
# Whether or not to disallow shared libs when runtime libs are static
 
12514
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12515
 
 
12516
# Whether or not to optimize for fast installation.
 
12517
fast_install=$enable_fast_install
 
12518
 
 
12519
# The host system.
 
12520
host_alias=$host_alias
 
12521
host=$host
 
12522
host_os=$host_os
 
12523
 
 
12524
# The build system.
 
12525
build_alias=$build_alias
 
12526
build=$build
 
12527
build_os=$build_os
 
12528
 
 
12529
# An echo program that does not interpret backslashes.
 
12530
echo=$lt_echo
 
12531
 
 
12532
# The archiver.
 
12533
AR=$lt_AR
 
12534
AR_FLAGS=$lt_AR_FLAGS
 
12535
 
 
12536
# A C compiler.
 
12537
LTCC=$lt_LTCC
 
12538
 
 
12539
# LTCC compiler flags.
 
12540
LTCFLAGS=$lt_LTCFLAGS
 
12541
 
 
12542
# A language-specific compiler.
 
12543
CC=$lt_compiler_CXX
 
12544
 
 
12545
# Is the compiler the GNU C compiler?
 
12546
with_gcc=$GCC_CXX
 
12547
 
 
12548
# An ERE matcher.
 
12549
EGREP=$lt_EGREP
 
12550
 
 
12551
# The linker used to build libraries.
 
12552
LD=$lt_LD_CXX
 
12553
 
 
12554
# Whether we need hard or soft links.
 
12555
LN_S=$lt_LN_S
 
12556
 
 
12557
# A BSD-compatible nm program.
 
12558
NM=$lt_NM
 
12559
 
 
12560
# A symbol stripping program
 
12561
STRIP=$lt_STRIP
 
12562
 
 
12563
# Used to examine libraries when file_magic_cmd begins "file"
 
12564
MAGIC_CMD=$MAGIC_CMD
 
12565
 
 
12566
# Used on cygwin: DLL creation program.
 
12567
DLLTOOL="$DLLTOOL"
 
12568
 
 
12569
# Used on cygwin: object dumper.
 
12570
OBJDUMP="$OBJDUMP"
 
12571
 
 
12572
# Used on cygwin: assembler.
 
12573
AS="$AS"
 
12574
 
 
12575
# The name of the directory that contains temporary libtool files.
 
12576
objdir=$objdir
 
12577
 
 
12578
# How to create reloadable object files.
 
12579
reload_flag=$lt_reload_flag
 
12580
reload_cmds=$lt_reload_cmds
 
12581
 
 
12582
# How to pass a linker flag through the compiler.
 
12583
wl=$lt_lt_prog_compiler_wl_CXX
 
12584
 
 
12585
# Object file suffix (normally "o").
 
12586
objext="$ac_objext"
 
12587
 
 
12588
# Old archive suffix (normally "a").
 
12589
libext="$libext"
 
12590
 
 
12591
# Shared library suffix (normally ".so").
 
12592
shrext_cmds='$shrext_cmds'
 
12593
 
 
12594
# Executable file suffix (normally "").
 
12595
exeext="$exeext"
 
12596
 
 
12597
# Additional compiler flags for building library objects.
 
12598
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12599
pic_mode=$pic_mode
 
12600
 
 
12601
# What is the maximum length of a command?
 
12602
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12603
 
 
12604
# Does compiler simultaneously support -c and -o options?
 
12605
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12606
 
 
12607
# Must we lock files when doing compilation?
 
12608
need_locks=$lt_need_locks
 
12609
 
 
12610
# Do we need the lib prefix for modules?
 
12611
need_lib_prefix=$need_lib_prefix
 
12612
 
 
12613
# Do we need a version for libraries?
 
12614
need_version=$need_version
 
12615
 
 
12616
# Whether dlopen is supported.
 
12617
dlopen_support=$enable_dlopen
 
12618
 
 
12619
# Whether dlopen of programs is supported.
 
12620
dlopen_self=$enable_dlopen_self
 
12621
 
 
12622
# Whether dlopen of statically linked programs is supported.
 
12623
dlopen_self_static=$enable_dlopen_self_static
 
12624
 
 
12625
# Compiler flag to prevent dynamic linking.
 
12626
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12627
 
 
12628
# Compiler flag to turn off builtin functions.
 
12629
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12630
 
 
12631
# Compiler flag to allow reflexive dlopens.
 
12632
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12633
 
 
12634
# Compiler flag to generate shared objects directly from archives.
 
12635
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12636
 
 
12637
# Compiler flag to generate thread-safe objects.
 
12638
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12639
 
 
12640
# Library versioning type.
 
12641
version_type=$version_type
 
12642
 
 
12643
# Format of library name prefix.
 
12644
libname_spec=$lt_libname_spec
 
12645
 
 
12646
# List of archive names.  First name is the real one, the rest are links.
 
12647
# The last name is the one that the linker finds with -lNAME.
 
12648
library_names_spec=$lt_library_names_spec
 
12649
 
 
12650
# The coded name of the library, if different from the real name.
 
12651
soname_spec=$lt_soname_spec
 
12652
 
 
12653
# Commands used to build and install an old-style archive.
 
12654
RANLIB=$lt_RANLIB
 
12655
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12656
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12657
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12658
 
 
12659
# Create an old-style archive from a shared archive.
 
12660
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12661
 
 
12662
# Create a temporary old-style archive to link instead of a shared archive.
 
12663
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12664
 
 
12665
# Commands used to build and install a shared archive.
 
12666
archive_cmds=$lt_archive_cmds_CXX
 
12667
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12668
postinstall_cmds=$lt_postinstall_cmds
 
12669
postuninstall_cmds=$lt_postuninstall_cmds
 
12670
 
 
12671
# Commands used to build a loadable module (assumed same as above if empty)
 
12672
module_cmds=$lt_module_cmds_CXX
 
12673
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12674
 
 
12675
# Commands to strip libraries.
 
12676
old_striplib=$lt_old_striplib
 
12677
striplib=$lt_striplib
 
12678
 
 
12679
# Dependencies to place before the objects being linked to create a
 
12680
# shared library.
 
12681
predep_objects=$lt_predep_objects_CXX
 
12682
 
 
12683
# Dependencies to place after the objects being linked to create a
 
12684
# shared library.
 
12685
postdep_objects=$lt_postdep_objects_CXX
 
12686
 
 
12687
# Dependencies to place before the objects being linked to create a
 
12688
# shared library.
 
12689
predeps=$lt_predeps_CXX
 
12690
 
 
12691
# Dependencies to place after the objects being linked to create a
 
12692
# shared library.
 
12693
postdeps=$lt_postdeps_CXX
 
12694
 
 
12695
# The library search path used internally by the compiler when linking
 
12696
# a shared library.
 
12697
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12698
 
 
12699
# Method to check whether dependent libraries are shared objects.
 
12700
deplibs_check_method=$lt_deplibs_check_method
 
12701
 
 
12702
# Command to use when deplibs_check_method == file_magic.
 
12703
file_magic_cmd=$lt_file_magic_cmd
 
12704
 
 
12705
# Flag that allows shared libraries with undefined symbols to be built.
 
12706
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12707
 
 
12708
# Flag that forces no undefined symbols.
 
12709
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12710
 
 
12711
# Commands used to finish a libtool library installation in a directory.
 
12712
finish_cmds=$lt_finish_cmds
 
12713
 
 
12714
# Same as above, but a single script fragment to be evaled but not shown.
 
12715
finish_eval=$lt_finish_eval
 
12716
 
 
12717
# Take the output of nm and produce a listing of raw symbols and C names.
 
12718
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12719
 
 
12720
# Transform the output of nm in a proper C declaration
 
12721
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12722
 
 
12723
# Transform the output of nm in a C name address pair
 
12724
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12725
 
 
12726
# This is the shared library runtime path variable.
 
12727
runpath_var=$runpath_var
 
12728
 
 
12729
# This is the shared library path variable.
 
12730
shlibpath_var=$shlibpath_var
 
12731
 
 
12732
# Is shlibpath searched before the hard-coded library search path?
 
12733
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12734
 
 
12735
# How to hardcode a shared library path into an executable.
 
12736
hardcode_action=$hardcode_action_CXX
 
12737
 
 
12738
# Whether we should hardcode library paths into libraries.
 
12739
hardcode_into_libs=$hardcode_into_libs
 
12740
 
 
12741
# Flag to hardcode \$libdir into a binary during linking.
 
12742
# This must work even if \$libdir does not exist.
 
12743
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12744
 
 
12745
# If ld is used when linking, flag to hardcode \$libdir into
 
12746
# a binary during linking. This must work even if \$libdir does
 
12747
# not exist.
 
12748
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12749
 
 
12750
# Whether we need a single -rpath flag with a separated argument.
 
12751
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12752
 
 
12753
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12754
# resulting binary.
 
12755
hardcode_direct=$hardcode_direct_CXX
 
12756
 
 
12757
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12758
# resulting binary.
 
12759
hardcode_minus_L=$hardcode_minus_L_CXX
 
12760
 
 
12761
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12762
# the resulting binary.
 
12763
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12764
 
 
12765
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12766
# and all subsequent libraries and executables linked against it.
 
12767
hardcode_automatic=$hardcode_automatic_CXX
 
12768
 
 
12769
# Variables whose values should be saved in libtool wrapper scripts and
 
12770
# restored at relink time.
 
12771
variables_saved_for_relink="$variables_saved_for_relink"
 
12772
 
 
12773
# Whether libtool must link a program against all its dependency libraries.
 
12774
link_all_deplibs=$link_all_deplibs_CXX
 
12775
 
 
12776
# Compile-time system search path for libraries
 
12777
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12778
 
 
12779
# Run-time system search path for libraries
 
12780
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12781
 
 
12782
# Fix the shell variable \$srcfile for the compiler.
 
12783
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12784
 
 
12785
# Set to yes if exported symbols are required.
 
12786
always_export_symbols=$always_export_symbols_CXX
 
12787
 
 
12788
# The commands to list exported symbols.
 
12789
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12790
 
 
12791
# The commands to extract the exported symbol list from a shared archive.
 
12792
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12793
 
 
12794
# Symbols that should not be listed in the preloaded symbols.
 
12795
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12796
 
 
12797
# Symbols that must always be exported.
 
12798
include_expsyms=$lt_include_expsyms_CXX
 
12799
 
 
12800
# ### END LIBTOOL TAG CONFIG: $tagname
 
12801
 
 
12802
__EOF__
 
12803
 
 
12804
 
 
12805
else
 
12806
  # If there is no Makefile yet, we rely on a make rule to execute
 
12807
  # `config.status --recheck' to rerun these tests and create the
 
12808
  # libtool script then.
 
12809
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12810
  if test -f "$ltmain_in"; then
 
12811
    test -f Makefile && make "$ltmain"
 
12812
  fi
 
12813
fi
 
12814
 
 
12815
 
 
12816
ac_ext=c
 
12817
ac_cpp='$CPP $CPPFLAGS'
 
12818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12821
 
 
12822
CC=$lt_save_CC
 
12823
LDCXX=$LD
 
12824
LD=$lt_save_LD
 
12825
GCC=$lt_save_GCC
 
12826
with_gnu_ldcxx=$with_gnu_ld
 
12827
with_gnu_ld=$lt_save_with_gnu_ld
 
12828
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12829
lt_cv_path_LD=$lt_save_path_LD
 
12830
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12831
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12832
 
 
12833
        else
 
12834
          tagname=""
 
12835
        fi
 
12836
        ;;
 
12837
 
 
12838
      F77)
 
12839
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12840
 
 
12841
ac_ext=f
 
12842
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12843
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12844
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12845
 
 
12846
 
 
12847
archive_cmds_need_lc_F77=no
 
12848
allow_undefined_flag_F77=
 
12849
always_export_symbols_F77=no
 
12850
archive_expsym_cmds_F77=
 
12851
export_dynamic_flag_spec_F77=
 
12852
hardcode_direct_F77=no
 
12853
hardcode_libdir_flag_spec_F77=
 
12854
hardcode_libdir_flag_spec_ld_F77=
 
12855
hardcode_libdir_separator_F77=
 
12856
hardcode_minus_L_F77=no
 
12857
hardcode_automatic_F77=no
 
12858
module_cmds_F77=
 
12859
module_expsym_cmds_F77=
 
12860
link_all_deplibs_F77=unknown
 
12861
old_archive_cmds_F77=$old_archive_cmds
 
12862
no_undefined_flag_F77=
 
12863
whole_archive_flag_spec_F77=
 
12864
enable_shared_with_static_runtimes_F77=no
 
12865
 
 
12866
# Source file extension for f77 test sources.
 
12867
ac_ext=f
 
12868
 
 
12869
# Object file extension for compiled f77 test sources.
 
12870
objext=o
 
12871
objext_F77=$objext
 
12872
 
 
12873
# Code to be used in simple compile tests
 
12874
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12875
 
 
12876
# Code to be used in simple link tests
 
12877
lt_simple_link_test_code="      program t\n      end\n"
 
12878
 
 
12879
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12880
 
 
12881
# If no C compiler was specified, use CC.
 
12882
LTCC=${LTCC-"$CC"}
 
12883
 
 
12884
# If no C compiler flags were specified, use CFLAGS.
 
12885
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12886
 
 
12887
# Allow CC to be a program name with arguments.
 
12888
compiler=$CC
 
12889
 
 
12890
 
 
12891
# save warnings/boilerplate of simple test code
 
12892
ac_outfile=conftest.$ac_objext
 
12893
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12894
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12895
_lt_compiler_boilerplate=`cat conftest.err`
 
12896
$rm conftest*
 
12897
 
 
12898
ac_outfile=conftest.$ac_objext
 
12899
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12900
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12901
_lt_linker_boilerplate=`cat conftest.err`
 
12902
$rm conftest*
 
12903
 
 
12904
 
 
12905
# Allow CC to be a program name with arguments.
 
12906
lt_save_CC="$CC"
 
12907
CC=${F77-"f77"}
 
12908
compiler=$CC
 
12909
compiler_F77=$CC
 
12910
for cc_temp in $compiler""; do
 
12911
  case $cc_temp in
 
12912
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12913
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12914
    \-*) ;;
 
12915
    *) break;;
 
12916
  esac
 
12917
done
 
12918
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12919
 
 
12920
 
 
12921
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12922
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12923
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12924
echo "${ECHO_T}$can_build_shared" >&6
 
12925
 
 
12926
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12927
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12928
test "$can_build_shared" = "no" && enable_shared=no
 
12929
 
 
12930
# On AIX, shared libraries and static libraries use the same namespace, and
 
12931
# are all built from PIC.
 
12932
case $host_os in
 
12933
aix3*)
 
12934
  test "$enable_shared" = yes && enable_static=no
 
12935
  if test -n "$RANLIB"; then
 
12936
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12937
    postinstall_cmds='$RANLIB $lib'
 
12938
  fi
 
12939
  ;;
 
12940
aix4* | aix5*)
 
12941
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12942
    test "$enable_shared" = yes && enable_static=no
 
12943
  fi
 
12944
  ;;
 
12945
esac
 
12946
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12947
echo "${ECHO_T}$enable_shared" >&6
 
12948
 
 
12949
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12950
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12951
# Make sure either enable_shared or enable_static is yes.
 
12952
test "$enable_shared" = yes || enable_static=yes
 
12953
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12954
echo "${ECHO_T}$enable_static" >&6
 
12955
 
 
12956
GCC_F77="$G77"
 
12957
LD_F77="$LD"
 
12958
 
 
12959
lt_prog_compiler_wl_F77=
 
12960
lt_prog_compiler_pic_F77=
 
12961
lt_prog_compiler_static_F77=
 
12962
 
 
12963
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12964
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12965
 
 
12966
  if test "$GCC" = yes; then
 
12967
    lt_prog_compiler_wl_F77='-Wl,'
 
12968
    lt_prog_compiler_static_F77='-static'
 
12969
 
 
12970
    case $host_os in
 
12971
      aix*)
 
12972
      # All AIX code is PIC.
 
12973
      if test "$host_cpu" = ia64; then
 
12974
        # AIX 5 now supports IA64 processor
 
12975
        lt_prog_compiler_static_F77='-Bstatic'
 
12976
      fi
 
12977
      ;;
 
12978
 
 
12979
    amigaos*)
 
12980
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12981
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12982
      # like `-m68040'.
 
12983
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
12984
      ;;
 
12985
 
 
12986
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12987
      # PIC is the default for these OSes.
 
12988
      ;;
 
12989
 
 
12990
    mingw* | pw32* | os2*)
 
12991
      # This hack is so that the source file can tell whether it is being
 
12992
      # built for inclusion in a dll (and should export symbols for example).
 
12993
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12994
      ;;
 
12995
 
 
12996
    darwin* | rhapsody*)
 
12997
      # PIC is the default on this platform
 
12998
      # Common symbols not allowed in MH_DYLIB files
 
12999
      lt_prog_compiler_pic_F77='-fno-common'
 
13000
      ;;
 
13001
 
 
13002
    interix3*)
 
13003
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13004
      # Instead, we relocate shared libraries at runtime.
 
13005
      ;;
 
13006
 
 
13007
    msdosdjgpp*)
 
13008
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13009
      # on systems that don't support them.
 
13010
      lt_prog_compiler_can_build_shared_F77=no
 
13011
      enable_shared=no
 
13012
      ;;
 
13013
 
 
13014
    sysv4*MP*)
 
13015
      if test -d /usr/nec; then
 
13016
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13017
      fi
 
13018
      ;;
 
13019
 
 
13020
    hpux*)
 
13021
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13022
      # not for PA HP-UX.
 
13023
      case $host_cpu in
 
13024
      hppa*64*|ia64*)
 
13025
        # +Z the default
 
13026
        ;;
 
13027
      *)
 
13028
        lt_prog_compiler_pic_F77='-fPIC'
 
13029
        ;;
 
13030
      esac
 
13031
      ;;
 
13032
 
 
13033
    *)
 
13034
      lt_prog_compiler_pic_F77='-fPIC'
 
13035
      ;;
 
13036
    esac
 
13037
  else
 
13038
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13039
    case $host_os in
 
13040
    aix*)
 
13041
      lt_prog_compiler_wl_F77='-Wl,'
 
13042
      if test "$host_cpu" = ia64; then
 
13043
        # AIX 5 now supports IA64 processor
 
13044
        lt_prog_compiler_static_F77='-Bstatic'
 
13045
      else
 
13046
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13047
      fi
 
13048
      ;;
 
13049
      darwin*)
 
13050
        # PIC is the default on this platform
 
13051
        # Common symbols not allowed in MH_DYLIB files
 
13052
       case $cc_basename in
 
13053
         xlc*)
 
13054
         lt_prog_compiler_pic_F77='-qnocommon'
 
13055
         lt_prog_compiler_wl_F77='-Wl,'
 
13056
         ;;
 
13057
       esac
 
13058
       ;;
 
13059
 
 
13060
    mingw* | pw32* | os2*)
 
13061
      # This hack is so that the source file can tell whether it is being
 
13062
      # built for inclusion in a dll (and should export symbols for example).
 
13063
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13064
      ;;
 
13065
 
 
13066
    hpux9* | hpux10* | hpux11*)
 
13067
      lt_prog_compiler_wl_F77='-Wl,'
 
13068
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13069
      # not for PA HP-UX.
 
13070
      case $host_cpu in
 
13071
      hppa*64*|ia64*)
 
13072
        # +Z the default
 
13073
        ;;
 
13074
      *)
 
13075
        lt_prog_compiler_pic_F77='+Z'
 
13076
        ;;
 
13077
      esac
 
13078
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13079
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13080
      ;;
 
13081
 
 
13082
    irix5* | irix6* | nonstopux*)
 
13083
      lt_prog_compiler_wl_F77='-Wl,'
 
13084
      # PIC (with -KPIC) is the default.
 
13085
      lt_prog_compiler_static_F77='-non_shared'
 
13086
      ;;
 
13087
 
 
13088
    newsos6)
 
13089
      lt_prog_compiler_pic_F77='-KPIC'
 
13090
      lt_prog_compiler_static_F77='-Bstatic'
 
13091
      ;;
 
13092
 
 
13093
    linux*)
 
13094
      case $cc_basename in
 
13095
      icc* | ecc*)
 
13096
        lt_prog_compiler_wl_F77='-Wl,'
 
13097
        lt_prog_compiler_pic_F77='-KPIC'
 
13098
        lt_prog_compiler_static_F77='-static'
 
13099
        ;;
 
13100
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13101
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13102
        # which looks to be a dead project)
 
13103
        lt_prog_compiler_wl_F77='-Wl,'
 
13104
        lt_prog_compiler_pic_F77='-fpic'
 
13105
        lt_prog_compiler_static_F77='-Bstatic'
 
13106
        ;;
 
13107
      ccc*)
 
13108
        lt_prog_compiler_wl_F77='-Wl,'
 
13109
        # All Alpha code is PIC.
 
13110
        lt_prog_compiler_static_F77='-non_shared'
 
13111
        ;;
 
13112
      esac
 
13113
      ;;
 
13114
 
 
13115
    osf3* | osf4* | osf5*)
 
13116
      lt_prog_compiler_wl_F77='-Wl,'
 
13117
      # All OSF/1 code is PIC.
 
13118
      lt_prog_compiler_static_F77='-non_shared'
 
13119
      ;;
 
13120
 
 
13121
    solaris*)
 
13122
      lt_prog_compiler_pic_F77='-KPIC'
 
13123
      lt_prog_compiler_static_F77='-Bstatic'
 
13124
      case $cc_basename in
 
13125
      f77* | f90* | f95*)
 
13126
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13127
      *)
 
13128
        lt_prog_compiler_wl_F77='-Wl,';;
 
13129
      esac
 
13130
      ;;
 
13131
 
 
13132
    sunos4*)
 
13133
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13134
      lt_prog_compiler_pic_F77='-PIC'
 
13135
      lt_prog_compiler_static_F77='-Bstatic'
 
13136
      ;;
 
13137
 
 
13138
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13139
      lt_prog_compiler_wl_F77='-Wl,'
 
13140
      lt_prog_compiler_pic_F77='-KPIC'
 
13141
      lt_prog_compiler_static_F77='-Bstatic'
 
13142
      ;;
 
13143
 
 
13144
    sysv4*MP*)
 
13145
      if test -d /usr/nec ;then
 
13146
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13147
        lt_prog_compiler_static_F77='-Bstatic'
 
13148
      fi
 
13149
      ;;
 
13150
 
 
13151
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13152
      lt_prog_compiler_wl_F77='-Wl,'
 
13153
      lt_prog_compiler_pic_F77='-KPIC'
 
13154
      lt_prog_compiler_static_F77='-Bstatic'
 
13155
      ;;
 
13156
 
 
13157
    unicos*)
 
13158
      lt_prog_compiler_wl_F77='-Wl,'
 
13159
      lt_prog_compiler_can_build_shared_F77=no
 
13160
      ;;
 
13161
 
 
13162
    uts4*)
 
13163
      lt_prog_compiler_pic_F77='-pic'
 
13164
      lt_prog_compiler_static_F77='-Bstatic'
 
13165
      ;;
 
13166
 
 
13167
    *)
 
13168
      lt_prog_compiler_can_build_shared_F77=no
 
13169
      ;;
 
13170
    esac
 
13171
  fi
 
13172
 
 
13173
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13174
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13175
 
 
13176
#
 
13177
# Check to make sure the PIC flag actually works.
 
13178
#
 
13179
if test -n "$lt_prog_compiler_pic_F77"; then
 
13180
 
 
13181
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13182
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13183
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13185
else
 
13186
  lt_prog_compiler_pic_works_F77=no
 
13187
  ac_outfile=conftest.$ac_objext
 
13188
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13189
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13190
   # Insert the option either (1) after the last *FLAGS variable, or
 
13191
   # (2) before a word containing "conftest.", or (3) at the end.
 
13192
   # Note that $ac_compile itself does not contain backslashes and begins
 
13193
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13194
   # The option is referenced via a variable to avoid confusing sed.
 
13195
   lt_compile=`echo "$ac_compile" | $SED \
 
13196
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13197
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13198
   -e 's:$: $lt_compiler_flag:'`
 
13199
   (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
 
13200
   (eval "$lt_compile" 2>conftest.err)
 
13201
   ac_status=$?
 
13202
   cat conftest.err >&5
 
13203
   echo "$as_me:13203: \$? = $ac_status" >&5
 
13204
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13205
     # The compiler can only warn and ignore the option if not recognized
 
13206
     # So say no if there are warnings other than the usual output.
 
13207
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13208
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13209
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13210
       lt_prog_compiler_pic_works_F77=yes
 
13211
     fi
 
13212
   fi
 
13213
   $rm conftest*
 
13214
 
 
13215
fi
 
13216
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13217
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13218
 
 
13219
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13220
    case $lt_prog_compiler_pic_F77 in
 
13221
     "" | " "*) ;;
 
13222
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13223
     esac
 
13224
else
 
13225
    lt_prog_compiler_pic_F77=
 
13226
     lt_prog_compiler_can_build_shared_F77=no
 
13227
fi
 
13228
 
 
13229
fi
 
13230
case $host_os in
 
13231
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13232
  *djgpp*)
 
13233
    lt_prog_compiler_pic_F77=
 
13234
    ;;
 
13235
  *)
 
13236
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13237
    ;;
 
13238
esac
 
13239
 
 
13240
#
 
13241
# Check to make sure the static flag actually works.
 
13242
#
 
13243
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13244
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13245
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13246
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13248
else
 
13249
  lt_prog_compiler_static_works_F77=no
 
13250
   save_LDFLAGS="$LDFLAGS"
 
13251
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13252
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13253
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13254
     # The linker can only warn and ignore the option if not recognized
 
13255
     # So say no if there are warnings
 
13256
     if test -s conftest.err; then
 
13257
       # Append any errors to the config.log.
 
13258
       cat conftest.err 1>&5
 
13259
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13260
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13261
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13262
         lt_prog_compiler_static_works_F77=yes
 
13263
       fi
 
13264
     else
 
13265
       lt_prog_compiler_static_works_F77=yes
 
13266
     fi
 
13267
   fi
 
13268
   $rm conftest*
 
13269
   LDFLAGS="$save_LDFLAGS"
 
13270
 
 
13271
fi
 
13272
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13273
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13274
 
 
13275
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13276
    :
 
13277
else
 
13278
    lt_prog_compiler_static_F77=
 
13279
fi
 
13280
 
 
13281
 
 
13282
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13283
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13284
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13286
else
 
13287
  lt_cv_prog_compiler_c_o_F77=no
 
13288
   $rm -r conftest 2>/dev/null
 
13289
   mkdir conftest
 
13290
   cd conftest
 
13291
   mkdir out
 
13292
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13293
 
 
13294
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13295
   # Insert the option either (1) after the last *FLAGS variable, or
 
13296
   # (2) before a word containing "conftest.", or (3) at the end.
 
13297
   # Note that $ac_compile itself does not contain backslashes and begins
 
13298
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13299
   lt_compile=`echo "$ac_compile" | $SED \
 
13300
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13301
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13302
   -e 's:$: $lt_compiler_flag:'`
 
13303
   (eval echo "\"\$as_me:13303: $lt_compile\"" >&5)
 
13304
   (eval "$lt_compile" 2>out/conftest.err)
 
13305
   ac_status=$?
 
13306
   cat out/conftest.err >&5
 
13307
   echo "$as_me:13307: \$? = $ac_status" >&5
 
13308
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13309
   then
 
13310
     # The compiler can only warn and ignore the option if not recognized
 
13311
     # So say no if there are warnings
 
13312
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13313
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13314
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13315
       lt_cv_prog_compiler_c_o_F77=yes
 
13316
     fi
 
13317
   fi
 
13318
   chmod u+w . 2>&5
 
13319
   $rm conftest*
 
13320
   # SGI C++ compiler will create directory out/ii_files/ for
 
13321
   # template instantiation
 
13322
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13323
   $rm out/* && rmdir out
 
13324
   cd ..
 
13325
   rmdir conftest
 
13326
   $rm conftest*
 
13327
 
 
13328
fi
 
13329
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13330
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13331
 
 
13332
 
 
13333
hard_links="nottested"
 
13334
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13335
  # do not overwrite the value of need_locks provided by the user
 
13336
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13337
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13338
  hard_links=yes
 
13339
  $rm conftest*
 
13340
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13341
  touch conftest.a
 
13342
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13343
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13344
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13345
echo "${ECHO_T}$hard_links" >&6
 
13346
  if test "$hard_links" = no; then
 
13347
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13348
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13349
    need_locks=warn
 
13350
  fi
 
13351
else
 
13352
  need_locks=no
 
13353
fi
 
13354
 
 
13355
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13356
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13357
 
 
13358
  runpath_var=
 
13359
  allow_undefined_flag_F77=
 
13360
  enable_shared_with_static_runtimes_F77=no
 
13361
  archive_cmds_F77=
 
13362
  archive_expsym_cmds_F77=
 
13363
  old_archive_From_new_cmds_F77=
 
13364
  old_archive_from_expsyms_cmds_F77=
 
13365
  export_dynamic_flag_spec_F77=
 
13366
  whole_archive_flag_spec_F77=
 
13367
  thread_safe_flag_spec_F77=
 
13368
  hardcode_libdir_flag_spec_F77=
 
13369
  hardcode_libdir_flag_spec_ld_F77=
 
13370
  hardcode_libdir_separator_F77=
 
13371
  hardcode_direct_F77=no
 
13372
  hardcode_minus_L_F77=no
 
13373
  hardcode_shlibpath_var_F77=unsupported
 
13374
  link_all_deplibs_F77=unknown
 
13375
  hardcode_automatic_F77=no
 
13376
  module_cmds_F77=
 
13377
  module_expsym_cmds_F77=
 
13378
  always_export_symbols_F77=no
 
13379
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13380
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13381
  # included in the symbol list
 
13382
  include_expsyms_F77=
 
13383
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13384
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13385
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13386
  # as well as any symbol that contains `d'.
 
13387
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13388
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13389
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13390
  # the symbol is explicitly referenced.  Since portable code cannot
 
13391
  # rely on this symbol name, it's probably fine to never include it in
 
13392
  # preloaded symbol tables.
 
13393
  extract_expsyms_cmds=
 
13394
  # Just being paranoid about ensuring that cc_basename is set.
 
13395
  for cc_temp in $compiler""; do
 
13396
  case $cc_temp in
 
13397
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13398
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13399
    \-*) ;;
 
13400
    *) break;;
 
13401
  esac
 
13402
done
 
13403
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13404
 
 
13405
  case $host_os in
 
13406
  cygwin* | mingw* | pw32*)
 
13407
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13408
    # When not using gcc, we currently assume that we are using
 
13409
    # Microsoft Visual C++.
 
13410
    if test "$GCC" != yes; then
 
13411
      with_gnu_ld=no
 
13412
    fi
 
13413
    ;;
 
13414
  interix*)
 
13415
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13416
    with_gnu_ld=yes
 
13417
    ;;
 
13418
  openbsd*)
 
13419
    with_gnu_ld=no
 
13420
    ;;
 
13421
  esac
 
13422
 
 
13423
  ld_shlibs_F77=yes
 
13424
  if test "$with_gnu_ld" = yes; then
 
13425
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13426
    wlarc='${wl}'
 
13427
 
 
13428
    # Set some defaults for GNU ld with shared library support. These
 
13429
    # are reset later if shared libraries are not supported. Putting them
 
13430
    # here allows them to be overridden if necessary.
 
13431
    runpath_var=LD_RUN_PATH
 
13432
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13433
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13434
    # ancient GNU ld didn't support --whole-archive et. al.
 
13435
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13436
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13437
      else
 
13438
        whole_archive_flag_spec_F77=
 
13439
    fi
 
13440
    supports_anon_versioning=no
 
13441
    case `$LD -v 2>/dev/null` in
 
13442
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13443
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13444
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13445
      *\ 2.11.*) ;; # other 2.11 versions
 
13446
      *) supports_anon_versioning=yes ;;
 
13447
    esac
 
13448
 
 
13449
    # See if GNU ld supports shared libraries.
 
13450
    case $host_os in
 
13451
    aix3* | aix4* | aix5*)
 
13452
      # On AIX/PPC, the GNU linker is very broken
 
13453
      if test "$host_cpu" != ia64; then
 
13454
        ld_shlibs_F77=no
 
13455
        cat <<EOF 1>&2
 
13456
 
 
13457
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13458
*** to be unable to reliably create shared libraries on AIX.
 
13459
*** Therefore, libtool is disabling shared libraries support.  If you
 
13460
*** really care for shared libraries, you may want to modify your PATH
 
13461
*** so that a non-GNU linker is found, and then restart.
 
13462
 
 
13463
EOF
 
13464
      fi
 
13465
      ;;
 
13466
 
 
13467
    amigaos*)
 
13468
      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)'
 
13469
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13470
      hardcode_minus_L_F77=yes
 
13471
 
 
13472
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13473
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13474
      # to version 4, is to share data among multiple programs linked
 
13475
      # with the same dynamic library.  Since this doesn't match the
 
13476
      # behavior of shared libraries on other platforms, we can't use
 
13477
      # them.
 
13478
      ld_shlibs_F77=no
 
13479
      ;;
 
13480
 
 
13481
    beos*)
 
13482
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13483
        allow_undefined_flag_F77=unsupported
 
13484
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13485
        # support --undefined.  This deserves some investigation.  FIXME
 
13486
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13487
      else
 
13488
        ld_shlibs_F77=no
 
13489
      fi
 
13490
      ;;
 
13491
 
 
13492
    cygwin* | mingw* | pw32*)
 
13493
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13494
      # as there is no search path for DLLs.
 
13495
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13496
      allow_undefined_flag_F77=unsupported
 
13497
      always_export_symbols_F77=no
 
13498
      enable_shared_with_static_runtimes_F77=yes
 
13499
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13500
 
 
13501
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13502
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13503
        # If the export-symbols file already is a .def file (1st line
 
13504
        # is EXPORTS), use it as is; otherwise, prepend...
 
13505
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13506
          cp $export_symbols $output_objdir/$soname.def;
 
13507
        else
 
13508
          echo EXPORTS > $output_objdir/$soname.def;
 
13509
          cat $export_symbols >> $output_objdir/$soname.def;
 
13510
        fi~
 
13511
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13512
      else
 
13513
        ld_shlibs_F77=no
 
13514
      fi
 
13515
      ;;
 
13516
 
 
13517
    interix3*)
 
13518
      hardcode_direct_F77=no
 
13519
      hardcode_shlibpath_var_F77=no
 
13520
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13521
      export_dynamic_flag_spec_F77='${wl}-E'
 
13522
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13523
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13524
      # default) and relocated if they conflict, which is a slow very memory
 
13525
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13526
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13527
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13528
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13529
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13530
      ;;
 
13531
 
 
13532
    linux*)
 
13533
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13534
        tmp_addflag=
 
13535
        case $cc_basename,$host_cpu in
 
13536
        pgcc*)                          # Portland Group C compiler
 
13537
          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'
 
13538
          tmp_addflag=' $pic_flag'
 
13539
          ;;
 
13540
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13541
          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'
 
13542
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13543
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13544
          tmp_addflag=' -i_dynamic' ;;
 
13545
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13546
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13547
        ifc* | ifort*)                  # Intel Fortran compiler
 
13548
          tmp_addflag=' -nofor_main' ;;
 
13549
        esac
 
13550
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13551
 
 
13552
        if test $supports_anon_versioning = yes; then
 
13553
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13554
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13555
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13556
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13557
        fi
 
13558
      else
 
13559
        ld_shlibs_F77=no
 
13560
      fi
 
13561
      ;;
 
13562
 
 
13563
    netbsd*)
 
13564
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13565
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13566
        wlarc=
 
13567
      else
 
13568
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13569
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13570
      fi
 
13571
      ;;
 
13572
 
 
13573
    solaris*)
 
13574
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13575
        ld_shlibs_F77=no
 
13576
        cat <<EOF 1>&2
 
13577
 
 
13578
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13579
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13580
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13581
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13582
*** your PATH or compiler configuration so that the native linker is
 
13583
*** used, and then restart.
 
13584
 
 
13585
EOF
 
13586
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13587
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13588
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13589
      else
 
13590
        ld_shlibs_F77=no
 
13591
      fi
 
13592
      ;;
 
13593
 
 
13594
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13595
      case `$LD -v 2>&1` in
 
13596
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13597
        ld_shlibs_F77=no
 
13598
        cat <<_LT_EOF 1>&2
 
13599
 
 
13600
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13601
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13602
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13603
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13604
*** your PATH or compiler configuration so that the native linker is
 
13605
*** used, and then restart.
 
13606
 
 
13607
_LT_EOF
 
13608
        ;;
 
13609
        *)
 
13610
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13611
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13612
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13613
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13614
          else
 
13615
            ld_shlibs_F77=no
 
13616
          fi
 
13617
        ;;
 
13618
      esac
 
13619
      ;;
 
13620
 
 
13621
    sunos4*)
 
13622
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13623
      wlarc=
 
13624
      hardcode_direct_F77=yes
 
13625
      hardcode_shlibpath_var_F77=no
 
13626
      ;;
 
13627
 
 
13628
    *)
 
13629
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13630
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13631
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13632
      else
 
13633
        ld_shlibs_F77=no
 
13634
      fi
 
13635
      ;;
 
13636
    esac
 
13637
 
 
13638
    if test "$ld_shlibs_F77" = no; then
 
13639
      runpath_var=
 
13640
      hardcode_libdir_flag_spec_F77=
 
13641
      export_dynamic_flag_spec_F77=
 
13642
      whole_archive_flag_spec_F77=
 
13643
    fi
 
13644
  else
 
13645
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13646
    case $host_os in
 
13647
    aix3*)
 
13648
      allow_undefined_flag_F77=unsupported
 
13649
      always_export_symbols_F77=yes
 
13650
      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'
 
13651
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13652
      # are no directories specified by -L.
 
13653
      hardcode_minus_L_F77=yes
 
13654
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
13655
        # Neither direct hardcoding nor static linking is supported with a
 
13656
        # broken collect2.
 
13657
        hardcode_direct_F77=unsupported
 
13658
      fi
 
13659
      ;;
 
13660
 
 
13661
    aix4* | aix5*)
 
13662
      if test "$host_cpu" = ia64; then
 
13663
        # On IA64, the linker does run time linking by default, so we don't
 
13664
        # have to do anything special.
 
13665
        aix_use_runtimelinking=no
 
13666
        exp_sym_flag='-Bexport'
 
13667
        no_entry_flag=""
 
13668
      else
 
13669
        # If we're using GNU nm, then we don't want the "-C" option.
 
13670
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13671
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13672
          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'
 
13673
        else
 
13674
          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'
 
13675
        fi
 
13676
        aix_use_runtimelinking=no
 
13677
 
 
13678
        # Test if we are trying to use run time linking or normal
 
13679
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13680
        # need to do runtime linking.
 
13681
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13682
          for ld_flag in $LDFLAGS; do
 
13683
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13684
            aix_use_runtimelinking=yes
 
13685
            break
 
13686
          fi
 
13687
          done
 
13688
          ;;
 
13689
        esac
 
13690
 
 
13691
        exp_sym_flag='-bexport'
 
13692
        no_entry_flag='-bnoentry'
 
13693
      fi
 
13694
 
 
13695
      # When large executables or shared objects are built, AIX ld can
 
13696
      # have problems creating the table of contents.  If linking a library
 
13697
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13698
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13699
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13700
 
 
13701
      archive_cmds_F77=''
 
13702
      hardcode_direct_F77=yes
 
13703
      hardcode_libdir_separator_F77=':'
 
13704
      link_all_deplibs_F77=yes
 
13705
 
 
13706
      if test "$GCC" = yes; then
 
13707
        case $host_os in aix4.[012]|aix4.[012].*)
 
13708
        # We only want to do this on AIX 4.2 and lower, the check
 
13709
        # below for broken collect2 doesn't work under 4.3+
 
13710
          collect2name=`${CC} -print-prog-name=collect2`
 
13711
          if test -f "$collect2name" && \
 
13712
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13713
          then
 
13714
          # We have reworked collect2
 
13715
          hardcode_direct_F77=yes
 
13716
          else
 
13717
          # We have old collect2
 
13718
          hardcode_direct_F77=unsupported
 
13719
          # It fails to find uninstalled libraries when the uninstalled
 
13720
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13721
          # to unsupported forces relinking
 
13722
          hardcode_minus_L_F77=yes
 
13723
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13724
          hardcode_libdir_separator_F77=
 
13725
          fi
 
13726
          ;;
 
13727
        esac
 
13728
        shared_flag='-shared'
 
13729
        if test "$aix_use_runtimelinking" = yes; then
 
13730
          shared_flag="$shared_flag "'${wl}-G'
 
13731
        fi
 
13732
      else
 
13733
        # not using gcc
 
13734
        if test "$host_cpu" = ia64; then
 
13735
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13736
        # chokes on -Wl,-G. The following line is correct:
 
13737
          shared_flag='-G'
 
13738
        else
 
13739
          if test "$aix_use_runtimelinking" = yes; then
 
13740
            shared_flag='${wl}-G'
 
13741
          else
 
13742
            shared_flag='${wl}-bM:SRE'
 
13743
          fi
 
13744
        fi
 
13745
      fi
 
13746
 
 
13747
      # It seems that -bexpall does not export symbols beginning with
 
13748
      # underscore (_), so it is better to generate a list of symbols to export.
 
13749
      always_export_symbols_F77=yes
 
13750
      if test "$aix_use_runtimelinking" = yes; then
 
13751
        # Warning - without using the other runtime loading flags (-brtl),
 
13752
        # -berok will link without error, but may produce a broken library.
 
13753
        allow_undefined_flag_F77='-berok'
 
13754
       # Determine the default libpath from the value encoded in an empty executable.
 
13755
       cat >conftest.$ac_ext <<_ACEOF
 
13756
      program main
 
13757
 
 
13758
      end
 
13759
_ACEOF
 
13760
rm -f conftest.$ac_objext conftest$ac_exeext
 
13761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13762
  (eval $ac_link) 2>conftest.er1
 
13763
  ac_status=$?
 
13764
  grep -v '^ *+' conftest.er1 >conftest.err
 
13765
  rm -f conftest.er1
 
13766
  cat conftest.err >&5
 
13767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13768
  (exit $ac_status); } &&
 
13769
         { ac_try='test -z "$ac_f77_werror_flag"
 
13770
                         || test ! -s conftest.err'
 
13771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13772
  (eval $ac_try) 2>&5
 
13773
  ac_status=$?
 
13774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13775
  (exit $ac_status); }; } &&
 
13776
         { ac_try='test -s conftest$ac_exeext'
 
13777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13778
  (eval $ac_try) 2>&5
 
13779
  ac_status=$?
 
13780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13781
  (exit $ac_status); }; }; then
 
13782
 
 
13783
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13784
}'`
 
13785
# Check for a 64-bit object if we didn't find anything.
 
13786
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; }
 
13787
}'`; fi
 
13788
else
 
13789
  echo "$as_me: failed program was:" >&5
 
13790
sed 's/^/| /' conftest.$ac_ext >&5
 
13791
 
 
13792
fi
 
13793
rm -f conftest.err conftest.$ac_objext \
 
13794
      conftest$ac_exeext conftest.$ac_ext
 
13795
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13796
 
 
13797
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13798
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13799
       else
 
13800
        if test "$host_cpu" = ia64; then
 
13801
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13802
          allow_undefined_flag_F77="-z nodefs"
 
13803
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
13804
        else
 
13805
         # Determine the default libpath from the value encoded in an empty executable.
 
13806
         cat >conftest.$ac_ext <<_ACEOF
 
13807
      program main
 
13808
 
 
13809
      end
 
13810
_ACEOF
 
13811
rm -f conftest.$ac_objext conftest$ac_exeext
 
13812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13813
  (eval $ac_link) 2>conftest.er1
 
13814
  ac_status=$?
 
13815
  grep -v '^ *+' conftest.er1 >conftest.err
 
13816
  rm -f conftest.er1
 
13817
  cat conftest.err >&5
 
13818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13819
  (exit $ac_status); } &&
 
13820
         { ac_try='test -z "$ac_f77_werror_flag"
 
13821
                         || test ! -s conftest.err'
 
13822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13823
  (eval $ac_try) 2>&5
 
13824
  ac_status=$?
 
13825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13826
  (exit $ac_status); }; } &&
 
13827
         { ac_try='test -s conftest$ac_exeext'
 
13828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13829
  (eval $ac_try) 2>&5
 
13830
  ac_status=$?
 
13831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13832
  (exit $ac_status); }; }; then
 
13833
 
 
13834
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13835
}'`
 
13836
# Check for a 64-bit object if we didn't find anything.
 
13837
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; }
 
13838
}'`; fi
 
13839
else
 
13840
  echo "$as_me: failed program was:" >&5
 
13841
sed 's/^/| /' conftest.$ac_ext >&5
 
13842
 
 
13843
fi
 
13844
rm -f conftest.err conftest.$ac_objext \
 
13845
      conftest$ac_exeext conftest.$ac_ext
 
13846
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13847
 
 
13848
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13849
          # Warning - without using the other run time loading flags,
 
13850
          # -berok will link without error, but may produce a broken library.
 
13851
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13852
          allow_undefined_flag_F77=' ${wl}-berok'
 
13853
          # Exported symbols can be pulled into shared objects from archives
 
13854
          whole_archive_flag_spec_F77='$convenience'
 
13855
          archive_cmds_need_lc_F77=yes
 
13856
          # This is similar to how AIX traditionally builds its shared libraries.
 
13857
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13858
        fi
 
13859
      fi
 
13860
      ;;
 
13861
 
 
13862
    amigaos*)
 
13863
      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)'
 
13864
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13865
      hardcode_minus_L_F77=yes
 
13866
      # see comment about different semantics on the GNU ld section
 
13867
      ld_shlibs_F77=no
 
13868
      ;;
 
13869
 
 
13870
    bsdi[45]*)
 
13871
      export_dynamic_flag_spec_F77=-rdynamic
 
13872
      ;;
 
13873
 
 
13874
    cygwin* | mingw* | pw32*)
 
13875
      # When not using gcc, we currently assume that we are using
 
13876
      # Microsoft Visual C++.
 
13877
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13878
      # no search path for DLLs.
 
13879
      hardcode_libdir_flag_spec_F77=' '
 
13880
      allow_undefined_flag_F77=unsupported
 
13881
      # Tell ltmain to make .lib files, not .a files.
 
13882
      libext=lib
 
13883
      # Tell ltmain to make .dll files, not .so files.
 
13884
      shrext_cmds=".dll"
 
13885
      # FIXME: Setting linknames here is a bad hack.
 
13886
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13887
      # The linker will automatically build a .lib file if we build a DLL.
 
13888
      old_archive_From_new_cmds_F77='true'
 
13889
      # FIXME: Should let the user specify the lib program.
 
13890
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13891
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
13892
      enable_shared_with_static_runtimes_F77=yes
 
13893
      ;;
 
13894
 
 
13895
    darwin* | rhapsody*)
 
13896
      case $host_os in
 
13897
        rhapsody* | darwin1.[012])
 
13898
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13899
         ;;
 
13900
       *) # Darwin 1.3 on
 
13901
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13902
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13903
         else
 
13904
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13905
             10.[012])
 
13906
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13907
               ;;
 
13908
             10.*)
 
13909
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13910
               ;;
 
13911
           esac
 
13912
         fi
 
13913
         ;;
 
13914
      esac
 
13915
      archive_cmds_need_lc_F77=no
 
13916
      hardcode_direct_F77=no
 
13917
      hardcode_automatic_F77=yes
 
13918
      hardcode_shlibpath_var_F77=unsupported
 
13919
      whole_archive_flag_spec_F77=''
 
13920
      link_all_deplibs_F77=yes
 
13921
    if test "$GCC" = yes ; then
 
13922
        output_verbose_link_cmd='echo'
 
13923
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13924
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13925
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13926
      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}'
 
13927
      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}'
 
13928
    else
 
13929
      case $cc_basename in
 
13930
        xlc*)
 
13931
         output_verbose_link_cmd='echo'
 
13932
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13933
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13934
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13935
         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}'
 
13936
          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}'
 
13937
          ;;
 
13938
       *)
 
13939
         ld_shlibs_F77=no
 
13940
          ;;
 
13941
      esac
 
13942
    fi
 
13943
      ;;
 
13944
 
 
13945
    dgux*)
 
13946
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13947
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13948
      hardcode_shlibpath_var_F77=no
 
13949
      ;;
 
13950
 
 
13951
    freebsd1*)
 
13952
      ld_shlibs_F77=no
 
13953
      ;;
 
13954
 
 
13955
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13956
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13957
    # does not break anything, and helps significantly (at the cost of a little
 
13958
    # extra space).
 
13959
    freebsd2.2*)
 
13960
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13961
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13962
      hardcode_direct_F77=yes
 
13963
      hardcode_shlibpath_var_F77=no
 
13964
      ;;
 
13965
 
 
13966
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13967
    freebsd2*)
 
13968
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13969
      hardcode_direct_F77=yes
 
13970
      hardcode_minus_L_F77=yes
 
13971
      hardcode_shlibpath_var_F77=no
 
13972
      ;;
 
13973
 
 
13974
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13975
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
13976
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13977
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13978
      hardcode_direct_F77=yes
 
13979
      hardcode_shlibpath_var_F77=no
 
13980
      ;;
 
13981
 
 
13982
    hpux9*)
 
13983
      if test "$GCC" = yes; then
 
13984
        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'
 
13985
      else
 
13986
        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'
 
13987
      fi
 
13988
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13989
      hardcode_libdir_separator_F77=:
 
13990
      hardcode_direct_F77=yes
 
13991
 
 
13992
      # hardcode_minus_L: Not really in the search PATH,
 
13993
      # but as the default location of the library.
 
13994
      hardcode_minus_L_F77=yes
 
13995
      export_dynamic_flag_spec_F77='${wl}-E'
 
13996
      ;;
 
13997
 
 
13998
    hpux10*)
 
13999
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14000
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14001
      else
 
14002
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14003
      fi
 
14004
      if test "$with_gnu_ld" = no; then
 
14005
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14006
        hardcode_libdir_separator_F77=:
 
14007
 
 
14008
        hardcode_direct_F77=yes
 
14009
        export_dynamic_flag_spec_F77='${wl}-E'
 
14010
 
 
14011
        # hardcode_minus_L: Not really in the search PATH,
 
14012
        # but as the default location of the library.
 
14013
        hardcode_minus_L_F77=yes
 
14014
      fi
 
14015
      ;;
 
14016
 
 
14017
    hpux11*)
 
14018
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14019
        case $host_cpu in
 
14020
        hppa*64*)
 
14021
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14022
          ;;
 
14023
        ia64*)
 
14024
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14025
          ;;
 
14026
        *)
 
14027
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14028
          ;;
 
14029
        esac
 
14030
      else
 
14031
        case $host_cpu in
 
14032
        hppa*64*)
 
14033
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14034
          ;;
 
14035
        ia64*)
 
14036
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14037
          ;;
 
14038
        *)
 
14039
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14040
          ;;
 
14041
        esac
 
14042
      fi
 
14043
      if test "$with_gnu_ld" = no; then
 
14044
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14045
        hardcode_libdir_separator_F77=:
 
14046
 
 
14047
        case $host_cpu in
 
14048
        hppa*64*|ia64*)
 
14049
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14050
          hardcode_direct_F77=no
 
14051
          hardcode_shlibpath_var_F77=no
 
14052
          ;;
 
14053
        *)
 
14054
          hardcode_direct_F77=yes
 
14055
          export_dynamic_flag_spec_F77='${wl}-E'
 
14056
 
 
14057
          # hardcode_minus_L: Not really in the search PATH,
 
14058
          # but as the default location of the library.
 
14059
          hardcode_minus_L_F77=yes
 
14060
          ;;
 
14061
        esac
 
14062
      fi
 
14063
      ;;
 
14064
 
 
14065
    irix5* | irix6* | nonstopux*)
 
14066
      if test "$GCC" = yes; then
 
14067
        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'
 
14068
      else
 
14069
        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'
 
14070
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14071
      fi
 
14072
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14073
      hardcode_libdir_separator_F77=:
 
14074
      link_all_deplibs_F77=yes
 
14075
      ;;
 
14076
 
 
14077
    netbsd*)
 
14078
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14079
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14080
      else
 
14081
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14082
      fi
 
14083
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14084
      hardcode_direct_F77=yes
 
14085
      hardcode_shlibpath_var_F77=no
 
14086
      ;;
 
14087
 
 
14088
    newsos6)
 
14089
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14090
      hardcode_direct_F77=yes
 
14091
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14092
      hardcode_libdir_separator_F77=:
 
14093
      hardcode_shlibpath_var_F77=no
 
14094
      ;;
 
14095
 
 
14096
    openbsd*)
 
14097
      hardcode_direct_F77=yes
 
14098
      hardcode_shlibpath_var_F77=no
 
14099
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14100
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14101
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14102
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14103
        export_dynamic_flag_spec_F77='${wl}-E'
 
14104
      else
 
14105
       case $host_os in
 
14106
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14107
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14108
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14109
           ;;
 
14110
         *)
 
14111
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14112
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14113
           ;;
 
14114
       esac
 
14115
      fi
 
14116
      ;;
 
14117
 
 
14118
    os2*)
 
14119
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14120
      hardcode_minus_L_F77=yes
 
14121
      allow_undefined_flag_F77=unsupported
 
14122
      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'
 
14123
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14124
      ;;
 
14125
 
 
14126
    osf3*)
 
14127
      if test "$GCC" = yes; then
 
14128
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14129
        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'
 
14130
      else
 
14131
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14132
        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'
 
14133
      fi
 
14134
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14135
      hardcode_libdir_separator_F77=:
 
14136
      ;;
 
14137
 
 
14138
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14139
      if test "$GCC" = yes; then
 
14140
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14141
        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'
 
14142
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14143
      else
 
14144
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14145
        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'
 
14146
        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~
 
14147
        $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'
 
14148
 
 
14149
        # Both c and cxx compiler support -rpath directly
 
14150
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14151
      fi
 
14152
      hardcode_libdir_separator_F77=:
 
14153
      ;;
 
14154
 
 
14155
    solaris*)
 
14156
      no_undefined_flag_F77=' -z text'
 
14157
      if test "$GCC" = yes; then
 
14158
        wlarc='${wl}'
 
14159
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14160
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14161
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14162
      else
 
14163
        wlarc=''
 
14164
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14165
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14166
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14167
      fi
 
14168
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14169
      hardcode_shlibpath_var_F77=no
 
14170
      case $host_os in
 
14171
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14172
      *)
 
14173
        # The compiler driver will combine linker options so we
 
14174
        # cannot just pass the convience library names through
 
14175
        # without $wl, iff we do not link with $LD.
 
14176
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14177
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14178
        case $wlarc in
 
14179
        '')
 
14180
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14181
        *)
 
14182
          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' ;;
 
14183
        esac ;;
 
14184
      esac
 
14185
      link_all_deplibs_F77=yes
 
14186
      ;;
 
14187
 
 
14188
    sunos4*)
 
14189
      if test "x$host_vendor" = xsequent; then
 
14190
        # Use $CC to link under sequent, because it throws in some extra .o
 
14191
        # files that make .init and .fini sections work.
 
14192
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14193
      else
 
14194
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14195
      fi
 
14196
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14197
      hardcode_direct_F77=yes
 
14198
      hardcode_minus_L_F77=yes
 
14199
      hardcode_shlibpath_var_F77=no
 
14200
      ;;
 
14201
 
 
14202
    sysv4)
 
14203
      case $host_vendor in
 
14204
        sni)
 
14205
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14206
          hardcode_direct_F77=yes # is this really true???
 
14207
        ;;
 
14208
        siemens)
 
14209
          ## LD is ld it makes a PLAMLIB
 
14210
          ## CC just makes a GrossModule.
 
14211
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14212
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14213
          hardcode_direct_F77=no
 
14214
        ;;
 
14215
        motorola)
 
14216
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14217
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14218
        ;;
 
14219
      esac
 
14220
      runpath_var='LD_RUN_PATH'
 
14221
      hardcode_shlibpath_var_F77=no
 
14222
      ;;
 
14223
 
 
14224
    sysv4.3*)
 
14225
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14226
      hardcode_shlibpath_var_F77=no
 
14227
      export_dynamic_flag_spec_F77='-Bexport'
 
14228
      ;;
 
14229
 
 
14230
    sysv4*MP*)
 
14231
      if test -d /usr/nec; then
 
14232
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14233
        hardcode_shlibpath_var_F77=no
 
14234
        runpath_var=LD_RUN_PATH
 
14235
        hardcode_runpath_var=yes
 
14236
        ld_shlibs_F77=yes
 
14237
      fi
 
14238
      ;;
 
14239
 
 
14240
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14241
      no_undefined_flag_F77='${wl}-z,text'
 
14242
      archive_cmds_need_lc_F77=no
 
14243
      hardcode_shlibpath_var_F77=no
 
14244
      runpath_var='LD_RUN_PATH'
 
14245
 
 
14246
      if test "$GCC" = yes; then
 
14247
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14248
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14249
      else
 
14250
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14251
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14252
      fi
 
14253
      ;;
 
14254
 
 
14255
    sysv5* | sco3.2v5* | sco5v6*)
 
14256
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14257
      # link with -lc, and that would cause any symbols used from libc to
 
14258
      # always be unresolved, which means just about no library would
 
14259
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14260
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14261
      # as -z defs.
 
14262
      no_undefined_flag_F77='${wl}-z,text'
 
14263
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14264
      archive_cmds_need_lc_F77=no
 
14265
      hardcode_shlibpath_var_F77=no
 
14266
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14267
      hardcode_libdir_separator_F77=':'
 
14268
      link_all_deplibs_F77=yes
 
14269
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14270
      runpath_var='LD_RUN_PATH'
 
14271
 
 
14272
      if test "$GCC" = yes; then
 
14273
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14274
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14275
      else
 
14276
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14277
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14278
      fi
 
14279
      ;;
 
14280
 
 
14281
    uts4*)
 
14282
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14283
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14284
      hardcode_shlibpath_var_F77=no
 
14285
      ;;
 
14286
 
 
14287
    *)
 
14288
      ld_shlibs_F77=no
 
14289
      ;;
 
14290
    esac
 
14291
  fi
 
14292
 
 
14293
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14294
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14295
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14296
 
 
14297
#
 
14298
# Do we need to explicitly link libc?
 
14299
#
 
14300
case "x$archive_cmds_need_lc_F77" in
 
14301
x|xyes)
 
14302
  # Assume -lc should be added
 
14303
  archive_cmds_need_lc_F77=yes
 
14304
 
 
14305
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14306
    case $archive_cmds_F77 in
 
14307
    *'~'*)
 
14308
      # FIXME: we may have to deal with multi-command sequences.
 
14309
      ;;
 
14310
    '$CC '*)
 
14311
      # Test whether the compiler implicitly links with -lc since on some
 
14312
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14313
      # to ld, don't add -lc before -lgcc.
 
14314
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14315
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14316
      $rm conftest*
 
14317
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14318
 
 
14319
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14320
  (eval $ac_compile) 2>&5
 
14321
  ac_status=$?
 
14322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14323
  (exit $ac_status); } 2>conftest.err; then
 
14324
        soname=conftest
 
14325
        lib=conftest
 
14326
        libobjs=conftest.$ac_objext
 
14327
        deplibs=
 
14328
        wl=$lt_prog_compiler_wl_F77
 
14329
        pic_flag=$lt_prog_compiler_pic_F77
 
14330
        compiler_flags=-v
 
14331
        linker_flags=-v
 
14332
        verstring=
 
14333
        output_objdir=.
 
14334
        libname=conftest
 
14335
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14336
        allow_undefined_flag_F77=
 
14337
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14338
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14339
  ac_status=$?
 
14340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14341
  (exit $ac_status); }
 
14342
        then
 
14343
          archive_cmds_need_lc_F77=no
 
14344
        else
 
14345
          archive_cmds_need_lc_F77=yes
 
14346
        fi
 
14347
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14348
      else
 
14349
        cat conftest.err 1>&5
 
14350
      fi
 
14351
      $rm conftest*
 
14352
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14353
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14354
      ;;
 
14355
    esac
 
14356
  fi
 
14357
  ;;
 
14358
esac
 
14359
 
 
14360
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14361
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14362
library_names_spec=
 
14363
libname_spec='lib$name'
 
14364
soname_spec=
 
14365
shrext_cmds=".so"
 
14366
postinstall_cmds=
 
14367
postuninstall_cmds=
 
14368
finish_cmds=
 
14369
finish_eval=
 
14370
shlibpath_var=
 
14371
shlibpath_overrides_runpath=unknown
 
14372
version_type=none
 
14373
dynamic_linker="$host_os ld.so"
 
14374
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14375
if test "$GCC" = yes; then
 
14376
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14377
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14378
    # if the path contains ";" then we assume it to be the separator
 
14379
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14380
    # assumed that no part of a normal pathname contains ";" but that should
 
14381
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14382
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14383
  else
 
14384
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14385
  fi
 
14386
else
 
14387
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14388
fi
 
14389
need_lib_prefix=unknown
 
14390
hardcode_into_libs=no
 
14391
 
 
14392
# when you set need_version to no, make sure it does not cause -set_version
 
14393
# flags to be left without arguments
 
14394
need_version=unknown
 
14395
 
 
14396
case $host_os in
 
14397
aix3*)
 
14398
  version_type=linux
 
14399
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14400
  shlibpath_var=LIBPATH
 
14401
 
 
14402
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14403
  soname_spec='${libname}${release}${shared_ext}$major'
 
14404
  ;;
 
14405
 
 
14406
aix4* | aix5*)
 
14407
  version_type=linux
 
14408
  need_lib_prefix=no
 
14409
  need_version=no
 
14410
  hardcode_into_libs=yes
 
14411
  if test "$host_cpu" = ia64; then
 
14412
    # AIX 5 supports IA64
 
14413
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14414
    shlibpath_var=LD_LIBRARY_PATH
 
14415
  else
 
14416
    # With GCC up to 2.95.x, collect2 would create an import file
 
14417
    # for dependence libraries.  The import file would start with
 
14418
    # the line `#! .'.  This would cause the generated library to
 
14419
    # depend on `.', always an invalid library.  This was fixed in
 
14420
    # development snapshots of GCC prior to 3.0.
 
14421
    case $host_os in
 
14422
      aix4 | aix4.[01] | aix4.[01].*)
 
14423
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14424
           echo ' yes '
 
14425
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14426
        :
 
14427
      else
 
14428
        can_build_shared=no
 
14429
      fi
 
14430
      ;;
 
14431
    esac
 
14432
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14433
    # soname into executable. Probably we can add versioning support to
 
14434
    # collect2, so additional links can be useful in future.
 
14435
    if test "$aix_use_runtimelinking" = yes; then
 
14436
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14437
      # instead of lib<name>.a to let people know that these are not
 
14438
      # typical AIX shared libraries.
 
14439
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14440
    else
 
14441
      # We preserve .a as extension for shared libraries through AIX4.2
 
14442
      # and later when we are not doing run time linking.
 
14443
      library_names_spec='${libname}${release}.a $libname.a'
 
14444
      soname_spec='${libname}${release}${shared_ext}$major'
 
14445
    fi
 
14446
    shlibpath_var=LIBPATH
 
14447
  fi
 
14448
  ;;
 
14449
 
 
14450
amigaos*)
 
14451
  library_names_spec='$libname.ixlibrary $libname.a'
 
14452
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14453
  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'
 
14454
  ;;
 
14455
 
 
14456
beos*)
 
14457
  library_names_spec='${libname}${shared_ext}'
 
14458
  dynamic_linker="$host_os ld.so"
 
14459
  shlibpath_var=LIBRARY_PATH
 
14460
  ;;
 
14461
 
 
14462
bsdi[45]*)
 
14463
  version_type=linux
 
14464
  need_version=no
 
14465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14466
  soname_spec='${libname}${release}${shared_ext}$major'
 
14467
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14468
  shlibpath_var=LD_LIBRARY_PATH
 
14469
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14470
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14471
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14472
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14473
  # libtool to hard-code these into programs
 
14474
  ;;
 
14475
 
 
14476
cygwin* | mingw* | pw32*)
 
14477
  version_type=windows
 
14478
  shrext_cmds=".dll"
 
14479
  need_version=no
 
14480
  need_lib_prefix=no
 
14481
 
 
14482
  case $GCC,$host_os in
 
14483
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14484
    library_names_spec='$libname.dll.a'
 
14485
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14486
    postinstall_cmds='base_file=`basename \${file}`~
 
14487
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14488
      dldir=$destdir/`dirname \$dlpath`~
 
14489
      test -d \$dldir || mkdir -p \$dldir~
 
14490
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14491
      chmod a+x \$dldir/$dlname'
 
14492
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14493
      dlpath=$dir/\$dldll~
 
14494
       $rm \$dlpath'
 
14495
    shlibpath_overrides_runpath=yes
 
14496
 
 
14497
    case $host_os in
 
14498
    cygwin*)
 
14499
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14500
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14501
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14502
      ;;
 
14503
    mingw*)
 
14504
      # MinGW DLLs use traditional 'lib' prefix
 
14505
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14506
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14507
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14508
        # It is most probably a Windows format PATH printed by
 
14509
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14510
        # path with ; separators, and with drive letters. We can handle the
 
14511
        # drive letters (cygwin fileutils understands them), so leave them,
 
14512
        # especially as we might pass files found there to a mingw objdump,
 
14513
        # which wouldn't understand a cygwinified path. Ahh.
 
14514
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14515
      else
 
14516
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14517
      fi
 
14518
      ;;
 
14519
    pw32*)
 
14520
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14521
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14522
      ;;
 
14523
    esac
 
14524
    ;;
 
14525
 
 
14526
  *)
 
14527
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14528
    ;;
 
14529
  esac
 
14530
  dynamic_linker='Win32 ld.exe'
 
14531
  # FIXME: first we should search . and the directory the executable is in
 
14532
  shlibpath_var=PATH
 
14533
  ;;
 
14534
 
 
14535
darwin* | rhapsody*)
 
14536
  dynamic_linker="$host_os dyld"
 
14537
  version_type=darwin
 
14538
  need_lib_prefix=no
 
14539
  need_version=no
 
14540
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14541
  soname_spec='${libname}${release}${major}$shared_ext'
 
14542
  shlibpath_overrides_runpath=yes
 
14543
  shlibpath_var=DYLD_LIBRARY_PATH
 
14544
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14545
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14546
  if test "$GCC" = yes; then
 
14547
    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"`
 
14548
  else
 
14549
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14550
  fi
 
14551
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14552
  ;;
 
14553
 
 
14554
dgux*)
 
14555
  version_type=linux
 
14556
  need_lib_prefix=no
 
14557
  need_version=no
 
14558
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14559
  soname_spec='${libname}${release}${shared_ext}$major'
 
14560
  shlibpath_var=LD_LIBRARY_PATH
 
14561
  ;;
 
14562
 
 
14563
freebsd1*)
 
14564
  dynamic_linker=no
 
14565
  ;;
 
14566
 
 
14567
kfreebsd*-gnu)
 
14568
  version_type=linux
 
14569
  need_lib_prefix=no
 
14570
  need_version=no
 
14571
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14572
  soname_spec='${libname}${release}${shared_ext}$major'
 
14573
  shlibpath_var=LD_LIBRARY_PATH
 
14574
  shlibpath_overrides_runpath=no
 
14575
  hardcode_into_libs=yes
 
14576
  dynamic_linker='GNU ld.so'
 
14577
  ;;
 
14578
 
 
14579
freebsd* | dragonfly*)
 
14580
  # DragonFly does not have aout.  When/if they implement a new
 
14581
  # versioning mechanism, adjust this.
 
14582
  if test -x /usr/bin/objformat; then
 
14583
    objformat=`/usr/bin/objformat`
 
14584
  else
 
14585
    case $host_os in
 
14586
    freebsd[123]*) objformat=aout ;;
 
14587
    *) objformat=elf ;;
 
14588
    esac
 
14589
  fi
 
14590
  version_type=freebsd-$objformat
 
14591
  case $version_type in
 
14592
    freebsd-elf*)
 
14593
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14594
      need_version=no
 
14595
      need_lib_prefix=no
 
14596
      ;;
 
14597
    freebsd-*)
 
14598
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14599
      need_version=yes
 
14600
      ;;
 
14601
  esac
 
14602
  shlibpath_var=LD_LIBRARY_PATH
 
14603
  case $host_os in
 
14604
  freebsd2*)
 
14605
    shlibpath_overrides_runpath=yes
 
14606
    ;;
 
14607
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14608
    shlibpath_overrides_runpath=yes
 
14609
    hardcode_into_libs=yes
 
14610
    ;;
 
14611
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14612
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14613
    shlibpath_overrides_runpath=no
 
14614
    hardcode_into_libs=yes
 
14615
    ;;
 
14616
  freebsd*) # from 4.6 on
 
14617
    shlibpath_overrides_runpath=yes
 
14618
    hardcode_into_libs=yes
 
14619
    ;;
 
14620
  esac
 
14621
  ;;
 
14622
 
 
14623
gnu*)
 
14624
  version_type=linux
 
14625
  need_lib_prefix=no
 
14626
  need_version=no
 
14627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14628
  soname_spec='${libname}${release}${shared_ext}$major'
 
14629
  shlibpath_var=LD_LIBRARY_PATH
 
14630
  hardcode_into_libs=yes
 
14631
  ;;
 
14632
 
 
14633
hpux9* | hpux10* | hpux11*)
 
14634
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14635
  # link against other versions.
 
14636
  version_type=sunos
 
14637
  need_lib_prefix=no
 
14638
  need_version=no
 
14639
  case $host_cpu in
 
14640
  ia64*)
 
14641
    shrext_cmds='.so'
 
14642
    hardcode_into_libs=yes
 
14643
    dynamic_linker="$host_os dld.so"
 
14644
    shlibpath_var=LD_LIBRARY_PATH
 
14645
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14646
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14647
    soname_spec='${libname}${release}${shared_ext}$major'
 
14648
    if test "X$HPUX_IA64_MODE" = X32; then
 
14649
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14650
    else
 
14651
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14652
    fi
 
14653
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14654
    ;;
 
14655
   hppa*64*)
 
14656
     shrext_cmds='.sl'
 
14657
     hardcode_into_libs=yes
 
14658
     dynamic_linker="$host_os dld.sl"
 
14659
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14660
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14661
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14662
     soname_spec='${libname}${release}${shared_ext}$major'
 
14663
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14664
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14665
     ;;
 
14666
   *)
 
14667
    shrext_cmds='.sl'
 
14668
    dynamic_linker="$host_os dld.sl"
 
14669
    shlibpath_var=SHLIB_PATH
 
14670
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14671
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14672
    soname_spec='${libname}${release}${shared_ext}$major'
 
14673
    ;;
 
14674
  esac
 
14675
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14676
  postinstall_cmds='chmod 555 $lib'
 
14677
  ;;
 
14678
 
 
14679
interix3*)
 
14680
  version_type=linux
 
14681
  need_lib_prefix=no
 
14682
  need_version=no
 
14683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14684
  soname_spec='${libname}${release}${shared_ext}$major'
 
14685
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14686
  shlibpath_var=LD_LIBRARY_PATH
 
14687
  shlibpath_overrides_runpath=no
 
14688
  hardcode_into_libs=yes
 
14689
  ;;
 
14690
 
 
14691
irix5* | irix6* | nonstopux*)
 
14692
  case $host_os in
 
14693
    nonstopux*) version_type=nonstopux ;;
 
14694
    *)
 
14695
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14696
                version_type=linux
 
14697
        else
 
14698
                version_type=irix
 
14699
        fi ;;
 
14700
  esac
 
14701
  need_lib_prefix=no
 
14702
  need_version=no
 
14703
  soname_spec='${libname}${release}${shared_ext}$major'
 
14704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14705
  case $host_os in
 
14706
  irix5* | nonstopux*)
 
14707
    libsuff= shlibsuff=
 
14708
    ;;
 
14709
  *)
 
14710
    case $LD in # libtool.m4 will add one of these switches to LD
 
14711
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14712
      libsuff= shlibsuff= libmagic=32-bit;;
 
14713
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14714
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14715
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14716
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14717
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14718
    esac
 
14719
    ;;
 
14720
  esac
 
14721
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14722
  shlibpath_overrides_runpath=no
 
14723
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14724
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14725
  hardcode_into_libs=yes
 
14726
  ;;
 
14727
 
 
14728
# No shared lib support for Linux oldld, aout, or coff.
 
14729
linux*oldld* | linux*aout* | linux*coff*)
 
14730
  dynamic_linker=no
 
14731
  ;;
 
14732
 
 
14733
# This must be Linux ELF.
 
14734
linux*)
 
14735
  version_type=linux
 
14736
  need_lib_prefix=no
 
14737
  need_version=no
 
14738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14739
  soname_spec='${libname}${release}${shared_ext}$major'
 
14740
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14741
  shlibpath_var=LD_LIBRARY_PATH
 
14742
  shlibpath_overrides_runpath=no
 
14743
  # This implies no fast_install, which is unacceptable.
 
14744
  # Some rework will be needed to allow for fast_install
 
14745
  # before this can be enabled.
 
14746
  hardcode_into_libs=yes
 
14747
 
 
14748
  # Append ld.so.conf contents to the search path
 
14749
  if test -f /etc/ld.so.conf; then
 
14750
    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' ' '`
 
14751
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14752
  fi
 
14753
 
 
14754
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14755
  # powerpc, because MkLinux only supported shared libraries with the
 
14756
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14757
  # most powerpc-linux boxes support dynamic linking these days and
 
14758
  # people can always --disable-shared, the test was removed, and we
 
14759
  # assume the GNU/Linux dynamic linker is in use.
 
14760
  dynamic_linker='GNU/Linux ld.so'
 
14761
  ;;
 
14762
 
 
14763
knetbsd*-gnu)
 
14764
  version_type=linux
 
14765
  need_lib_prefix=no
 
14766
  need_version=no
 
14767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14768
  soname_spec='${libname}${release}${shared_ext}$major'
 
14769
  shlibpath_var=LD_LIBRARY_PATH
 
14770
  shlibpath_overrides_runpath=no
 
14771
  hardcode_into_libs=yes
 
14772
  dynamic_linker='GNU ld.so'
 
14773
  ;;
 
14774
 
 
14775
netbsd*)
 
14776
  version_type=sunos
 
14777
  need_lib_prefix=no
 
14778
  need_version=no
 
14779
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14780
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14781
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14782
    dynamic_linker='NetBSD (a.out) ld.so'
 
14783
  else
 
14784
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14785
    soname_spec='${libname}${release}${shared_ext}$major'
 
14786
    dynamic_linker='NetBSD ld.elf_so'
 
14787
  fi
 
14788
  shlibpath_var=LD_LIBRARY_PATH
 
14789
  shlibpath_overrides_runpath=yes
 
14790
  hardcode_into_libs=yes
 
14791
  ;;
 
14792
 
 
14793
newsos6)
 
14794
  version_type=linux
 
14795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14796
  shlibpath_var=LD_LIBRARY_PATH
 
14797
  shlibpath_overrides_runpath=yes
 
14798
  ;;
 
14799
 
 
14800
nto-qnx*)
 
14801
  version_type=linux
 
14802
  need_lib_prefix=no
 
14803
  need_version=no
 
14804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14805
  soname_spec='${libname}${release}${shared_ext}$major'
 
14806
  shlibpath_var=LD_LIBRARY_PATH
 
14807
  shlibpath_overrides_runpath=yes
 
14808
  ;;
 
14809
 
 
14810
openbsd*)
 
14811
  version_type=sunos
 
14812
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14813
  need_lib_prefix=no
 
14814
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14815
  case $host_os in
 
14816
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14817
    *)                         need_version=no  ;;
 
14818
  esac
 
14819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14820
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14821
  shlibpath_var=LD_LIBRARY_PATH
 
14822
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14823
    case $host_os in
 
14824
      openbsd2.[89] | openbsd2.[89].*)
 
14825
        shlibpath_overrides_runpath=no
 
14826
        ;;
 
14827
      *)
 
14828
        shlibpath_overrides_runpath=yes
 
14829
        ;;
 
14830
      esac
 
14831
  else
 
14832
    shlibpath_overrides_runpath=yes
 
14833
  fi
 
14834
  ;;
 
14835
 
 
14836
os2*)
 
14837
  libname_spec='$name'
 
14838
  shrext_cmds=".dll"
 
14839
  need_lib_prefix=no
 
14840
  library_names_spec='$libname${shared_ext} $libname.a'
 
14841
  dynamic_linker='OS/2 ld.exe'
 
14842
  shlibpath_var=LIBPATH
 
14843
  ;;
 
14844
 
 
14845
osf3* | osf4* | osf5*)
 
14846
  version_type=osf
 
14847
  need_lib_prefix=no
 
14848
  need_version=no
 
14849
  soname_spec='${libname}${release}${shared_ext}$major'
 
14850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14851
  shlibpath_var=LD_LIBRARY_PATH
 
14852
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14853
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14854
  ;;
 
14855
 
 
14856
solaris*)
 
14857
  version_type=linux
 
14858
  need_lib_prefix=no
 
14859
  need_version=no
 
14860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14861
  soname_spec='${libname}${release}${shared_ext}$major'
 
14862
  shlibpath_var=LD_LIBRARY_PATH
 
14863
  shlibpath_overrides_runpath=yes
 
14864
  hardcode_into_libs=yes
 
14865
  # ldd complains unless libraries are executable
 
14866
  postinstall_cmds='chmod +x $lib'
 
14867
  ;;
 
14868
 
 
14869
sunos4*)
 
14870
  version_type=sunos
 
14871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14872
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14873
  shlibpath_var=LD_LIBRARY_PATH
 
14874
  shlibpath_overrides_runpath=yes
 
14875
  if test "$with_gnu_ld" = yes; then
 
14876
    need_lib_prefix=no
 
14877
  fi
 
14878
  need_version=yes
 
14879
  ;;
 
14880
 
 
14881
sysv4 | sysv4.3*)
 
14882
  version_type=linux
 
14883
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14884
  soname_spec='${libname}${release}${shared_ext}$major'
 
14885
  shlibpath_var=LD_LIBRARY_PATH
 
14886
  case $host_vendor in
 
14887
    sni)
 
14888
      shlibpath_overrides_runpath=no
 
14889
      need_lib_prefix=no
 
14890
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14891
      runpath_var=LD_RUN_PATH
 
14892
      ;;
 
14893
    siemens)
 
14894
      need_lib_prefix=no
 
14895
      ;;
 
14896
    motorola)
 
14897
      need_lib_prefix=no
 
14898
      need_version=no
 
14899
      shlibpath_overrides_runpath=no
 
14900
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14901
      ;;
 
14902
  esac
 
14903
  ;;
 
14904
 
 
14905
sysv4*MP*)
 
14906
  if test -d /usr/nec ;then
 
14907
    version_type=linux
 
14908
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14909
    soname_spec='$libname${shared_ext}.$major'
 
14910
    shlibpath_var=LD_LIBRARY_PATH
 
14911
  fi
 
14912
  ;;
 
14913
 
 
14914
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14915
  version_type=freebsd-elf
 
14916
  need_lib_prefix=no
 
14917
  need_version=no
 
14918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14919
  soname_spec='${libname}${release}${shared_ext}$major'
 
14920
  shlibpath_var=LD_LIBRARY_PATH
 
14921
  hardcode_into_libs=yes
 
14922
  if test "$with_gnu_ld" = yes; then
 
14923
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14924
    shlibpath_overrides_runpath=no
 
14925
  else
 
14926
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14927
    shlibpath_overrides_runpath=yes
 
14928
    case $host_os in
 
14929
      sco3.2v5*)
 
14930
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14931
        ;;
 
14932
    esac
 
14933
  fi
 
14934
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14935
  ;;
 
14936
 
 
14937
uts4*)
 
14938
  version_type=linux
 
14939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14940
  soname_spec='${libname}${release}${shared_ext}$major'
 
14941
  shlibpath_var=LD_LIBRARY_PATH
 
14942
  ;;
 
14943
 
 
14944
*)
 
14945
  dynamic_linker=no
 
14946
  ;;
 
14947
esac
 
14948
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14949
echo "${ECHO_T}$dynamic_linker" >&6
 
14950
test "$dynamic_linker" = no && can_build_shared=no
 
14951
 
 
14952
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14953
if test "$GCC" = yes; then
 
14954
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14955
fi
 
14956
 
 
14957
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14958
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14959
hardcode_action_F77=
 
14960
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14961
   test -n "$runpath_var_F77" || \
 
14962
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
14963
 
 
14964
  # We can hardcode non-existant directories.
 
14965
  if test "$hardcode_direct_F77" != no &&
 
14966
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14967
     # have to relink, otherwise we might link with an installed library
 
14968
     # when we should be linking with a yet-to-be-installed one
 
14969
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14970
     test "$hardcode_minus_L_F77" != no; then
 
14971
    # Linking always hardcodes the temporary library directory.
 
14972
    hardcode_action_F77=relink
 
14973
  else
 
14974
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14975
    hardcode_action_F77=immediate
 
14976
  fi
 
14977
else
 
14978
  # We cannot hardcode anything, or else we can only hardcode existing
 
14979
  # directories.
 
14980
  hardcode_action_F77=unsupported
 
14981
fi
 
14982
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14983
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14984
 
 
14985
if test "$hardcode_action_F77" = relink; then
 
14986
  # Fast installation is not supported
 
14987
  enable_fast_install=no
 
14988
elif test "$shlibpath_overrides_runpath" = yes ||
 
14989
     test "$enable_shared" = no; then
 
14990
  # Fast installation is not necessary
 
14991
  enable_fast_install=needless
 
14992
fi
 
14993
 
 
14994
 
 
14995
# The else clause should only fire when bootstrapping the
 
14996
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14997
# with your package, and you will get complaints that there are
 
14998
# no rules to generate ltmain.sh.
 
14999
if test -f "$ltmain"; then
 
15000
  # See if we are running on zsh, and set the options which allow our commands through
 
15001
  # without removal of \ escapes.
 
15002
  if test -n "${ZSH_VERSION+set}" ; then
 
15003
    setopt NO_GLOB_SUBST
 
15004
  fi
 
15005
  # Now quote all the things that may contain metacharacters while being
 
15006
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15007
  # variables and quote the copies for generation of the libtool script.
 
15008
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15009
    SED SHELL STRIP \
 
15010
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15011
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15012
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15013
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15014
    lt_cv_sys_global_symbol_to_c_name_address \
 
15015
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15016
    old_postinstall_cmds old_postuninstall_cmds \
 
15017
    compiler_F77 \
 
15018
    CC_F77 \
 
15019
    LD_F77 \
 
15020
    lt_prog_compiler_wl_F77 \
 
15021
    lt_prog_compiler_pic_F77 \
 
15022
    lt_prog_compiler_static_F77 \
 
15023
    lt_prog_compiler_no_builtin_flag_F77 \
 
15024
    export_dynamic_flag_spec_F77 \
 
15025
    thread_safe_flag_spec_F77 \
 
15026
    whole_archive_flag_spec_F77 \
 
15027
    enable_shared_with_static_runtimes_F77 \
 
15028
    old_archive_cmds_F77 \
 
15029
    old_archive_from_new_cmds_F77 \
 
15030
    predep_objects_F77 \
 
15031
    postdep_objects_F77 \
 
15032
    predeps_F77 \
 
15033
    postdeps_F77 \
 
15034
    compiler_lib_search_path_F77 \
 
15035
    archive_cmds_F77 \
 
15036
    archive_expsym_cmds_F77 \
 
15037
    postinstall_cmds_F77 \
 
15038
    postuninstall_cmds_F77 \
 
15039
    old_archive_from_expsyms_cmds_F77 \
 
15040
    allow_undefined_flag_F77 \
 
15041
    no_undefined_flag_F77 \
 
15042
    export_symbols_cmds_F77 \
 
15043
    hardcode_libdir_flag_spec_F77 \
 
15044
    hardcode_libdir_flag_spec_ld_F77 \
 
15045
    hardcode_libdir_separator_F77 \
 
15046
    hardcode_automatic_F77 \
 
15047
    module_cmds_F77 \
 
15048
    module_expsym_cmds_F77 \
 
15049
    lt_cv_prog_compiler_c_o_F77 \
 
15050
    exclude_expsyms_F77 \
 
15051
    include_expsyms_F77; do
 
15052
 
 
15053
    case $var in
 
15054
    old_archive_cmds_F77 | \
 
15055
    old_archive_from_new_cmds_F77 | \
 
15056
    archive_cmds_F77 | \
 
15057
    archive_expsym_cmds_F77 | \
 
15058
    module_cmds_F77 | \
 
15059
    module_expsym_cmds_F77 | \
 
15060
    old_archive_from_expsyms_cmds_F77 | \
 
15061
    export_symbols_cmds_F77 | \
 
15062
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15063
    postinstall_cmds | postuninstall_cmds | \
 
15064
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15065
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15066
      # Double-quote double-evaled strings.
 
15067
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15068
      ;;
 
15069
    *)
 
15070
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15071
      ;;
 
15072
    esac
 
15073
  done
 
15074
 
 
15075
  case $lt_echo in
 
15076
  *'\$0 --fallback-echo"')
 
15077
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15078
    ;;
 
15079
  esac
 
15080
 
 
15081
cfgfile="$ofile"
 
15082
 
 
15083
  cat <<__EOF__ >> "$cfgfile"
 
15084
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15085
 
 
15086
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15087
 
 
15088
# Shell to use when invoking shell scripts.
 
15089
SHELL=$lt_SHELL
 
15090
 
 
15091
# Whether or not to build shared libraries.
 
15092
build_libtool_libs=$enable_shared
 
15093
 
 
15094
# Whether or not to build static libraries.
 
15095
build_old_libs=$enable_static
 
15096
 
 
15097
# Whether or not to add -lc for building shared libraries.
 
15098
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15099
 
 
15100
# Whether or not to disallow shared libs when runtime libs are static
 
15101
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15102
 
 
15103
# Whether or not to optimize for fast installation.
 
15104
fast_install=$enable_fast_install
 
15105
 
 
15106
# The host system.
 
15107
host_alias=$host_alias
 
15108
host=$host
 
15109
host_os=$host_os
 
15110
 
 
15111
# The build system.
 
15112
build_alias=$build_alias
 
15113
build=$build
 
15114
build_os=$build_os
 
15115
 
 
15116
# An echo program that does not interpret backslashes.
 
15117
echo=$lt_echo
 
15118
 
 
15119
# The archiver.
 
15120
AR=$lt_AR
 
15121
AR_FLAGS=$lt_AR_FLAGS
 
15122
 
 
15123
# A C compiler.
 
15124
LTCC=$lt_LTCC
 
15125
 
 
15126
# LTCC compiler flags.
 
15127
LTCFLAGS=$lt_LTCFLAGS
 
15128
 
 
15129
# A language-specific compiler.
 
15130
CC=$lt_compiler_F77
 
15131
 
 
15132
# Is the compiler the GNU C compiler?
 
15133
with_gcc=$GCC_F77
 
15134
 
 
15135
# An ERE matcher.
 
15136
EGREP=$lt_EGREP
 
15137
 
 
15138
# The linker used to build libraries.
 
15139
LD=$lt_LD_F77
 
15140
 
 
15141
# Whether we need hard or soft links.
 
15142
LN_S=$lt_LN_S
 
15143
 
 
15144
# A BSD-compatible nm program.
 
15145
NM=$lt_NM
 
15146
 
 
15147
# A symbol stripping program
 
15148
STRIP=$lt_STRIP
 
15149
 
 
15150
# Used to examine libraries when file_magic_cmd begins "file"
 
15151
MAGIC_CMD=$MAGIC_CMD
 
15152
 
 
15153
# Used on cygwin: DLL creation program.
 
15154
DLLTOOL="$DLLTOOL"
 
15155
 
 
15156
# Used on cygwin: object dumper.
 
15157
OBJDUMP="$OBJDUMP"
 
15158
 
 
15159
# Used on cygwin: assembler.
 
15160
AS="$AS"
 
15161
 
 
15162
# The name of the directory that contains temporary libtool files.
 
15163
objdir=$objdir
 
15164
 
 
15165
# How to create reloadable object files.
 
15166
reload_flag=$lt_reload_flag
 
15167
reload_cmds=$lt_reload_cmds
 
15168
 
 
15169
# How to pass a linker flag through the compiler.
 
15170
wl=$lt_lt_prog_compiler_wl_F77
 
15171
 
 
15172
# Object file suffix (normally "o").
 
15173
objext="$ac_objext"
 
15174
 
 
15175
# Old archive suffix (normally "a").
 
15176
libext="$libext"
 
15177
 
 
15178
# Shared library suffix (normally ".so").
 
15179
shrext_cmds='$shrext_cmds'
 
15180
 
 
15181
# Executable file suffix (normally "").
 
15182
exeext="$exeext"
 
15183
 
 
15184
# Additional compiler flags for building library objects.
 
15185
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15186
pic_mode=$pic_mode
 
15187
 
 
15188
# What is the maximum length of a command?
 
15189
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15190
 
 
15191
# Does compiler simultaneously support -c and -o options?
 
15192
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15193
 
 
15194
# Must we lock files when doing compilation?
 
15195
need_locks=$lt_need_locks
 
15196
 
 
15197
# Do we need the lib prefix for modules?
 
15198
need_lib_prefix=$need_lib_prefix
 
15199
 
 
15200
# Do we need a version for libraries?
 
15201
need_version=$need_version
 
15202
 
 
15203
# Whether dlopen is supported.
 
15204
dlopen_support=$enable_dlopen
 
15205
 
 
15206
# Whether dlopen of programs is supported.
 
15207
dlopen_self=$enable_dlopen_self
 
15208
 
 
15209
# Whether dlopen of statically linked programs is supported.
 
15210
dlopen_self_static=$enable_dlopen_self_static
 
15211
 
 
15212
# Compiler flag to prevent dynamic linking.
 
15213
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15214
 
 
15215
# Compiler flag to turn off builtin functions.
 
15216
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15217
 
 
15218
# Compiler flag to allow reflexive dlopens.
 
15219
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15220
 
 
15221
# Compiler flag to generate shared objects directly from archives.
 
15222
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15223
 
 
15224
# Compiler flag to generate thread-safe objects.
 
15225
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15226
 
 
15227
# Library versioning type.
 
15228
version_type=$version_type
 
15229
 
 
15230
# Format of library name prefix.
 
15231
libname_spec=$lt_libname_spec
 
15232
 
 
15233
# List of archive names.  First name is the real one, the rest are links.
 
15234
# The last name is the one that the linker finds with -lNAME.
 
15235
library_names_spec=$lt_library_names_spec
 
15236
 
 
15237
# The coded name of the library, if different from the real name.
 
15238
soname_spec=$lt_soname_spec
 
15239
 
 
15240
# Commands used to build and install an old-style archive.
 
15241
RANLIB=$lt_RANLIB
 
15242
old_archive_cmds=$lt_old_archive_cmds_F77
 
15243
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15244
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15245
 
 
15246
# Create an old-style archive from a shared archive.
 
15247
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15248
 
 
15249
# Create a temporary old-style archive to link instead of a shared archive.
 
15250
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15251
 
 
15252
# Commands used to build and install a shared archive.
 
15253
archive_cmds=$lt_archive_cmds_F77
 
15254
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15255
postinstall_cmds=$lt_postinstall_cmds
 
15256
postuninstall_cmds=$lt_postuninstall_cmds
 
15257
 
 
15258
# Commands used to build a loadable module (assumed same as above if empty)
 
15259
module_cmds=$lt_module_cmds_F77
 
15260
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15261
 
 
15262
# Commands to strip libraries.
 
15263
old_striplib=$lt_old_striplib
 
15264
striplib=$lt_striplib
 
15265
 
 
15266
# Dependencies to place before the objects being linked to create a
 
15267
# shared library.
 
15268
predep_objects=$lt_predep_objects_F77
 
15269
 
 
15270
# Dependencies to place after the objects being linked to create a
 
15271
# shared library.
 
15272
postdep_objects=$lt_postdep_objects_F77
 
15273
 
 
15274
# Dependencies to place before the objects being linked to create a
 
15275
# shared library.
 
15276
predeps=$lt_predeps_F77
 
15277
 
 
15278
# Dependencies to place after the objects being linked to create a
 
15279
# shared library.
 
15280
postdeps=$lt_postdeps_F77
 
15281
 
 
15282
# The library search path used internally by the compiler when linking
 
15283
# a shared library.
 
15284
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15285
 
 
15286
# Method to check whether dependent libraries are shared objects.
 
15287
deplibs_check_method=$lt_deplibs_check_method
 
15288
 
 
15289
# Command to use when deplibs_check_method == file_magic.
 
15290
file_magic_cmd=$lt_file_magic_cmd
 
15291
 
 
15292
# Flag that allows shared libraries with undefined symbols to be built.
 
15293
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15294
 
 
15295
# Flag that forces no undefined symbols.
 
15296
no_undefined_flag=$lt_no_undefined_flag_F77
 
15297
 
 
15298
# Commands used to finish a libtool library installation in a directory.
 
15299
finish_cmds=$lt_finish_cmds
 
15300
 
 
15301
# Same as above, but a single script fragment to be evaled but not shown.
 
15302
finish_eval=$lt_finish_eval
 
15303
 
 
15304
# Take the output of nm and produce a listing of raw symbols and C names.
 
15305
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15306
 
 
15307
# Transform the output of nm in a proper C declaration
 
15308
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15309
 
 
15310
# Transform the output of nm in a C name address pair
 
15311
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15312
 
 
15313
# This is the shared library runtime path variable.
 
15314
runpath_var=$runpath_var
 
15315
 
 
15316
# This is the shared library path variable.
 
15317
shlibpath_var=$shlibpath_var
 
15318
 
 
15319
# Is shlibpath searched before the hard-coded library search path?
 
15320
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15321
 
 
15322
# How to hardcode a shared library path into an executable.
 
15323
hardcode_action=$hardcode_action_F77
 
15324
 
 
15325
# Whether we should hardcode library paths into libraries.
 
15326
hardcode_into_libs=$hardcode_into_libs
 
15327
 
 
15328
# Flag to hardcode \$libdir into a binary during linking.
 
15329
# This must work even if \$libdir does not exist.
 
15330
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15331
 
 
15332
# If ld is used when linking, flag to hardcode \$libdir into
 
15333
# a binary during linking. This must work even if \$libdir does
 
15334
# not exist.
 
15335
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15336
 
 
15337
# Whether we need a single -rpath flag with a separated argument.
 
15338
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15339
 
 
15340
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15341
# resulting binary.
 
15342
hardcode_direct=$hardcode_direct_F77
 
15343
 
 
15344
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15345
# resulting binary.
 
15346
hardcode_minus_L=$hardcode_minus_L_F77
 
15347
 
 
15348
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15349
# the resulting binary.
 
15350
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15351
 
 
15352
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15353
# and all subsequent libraries and executables linked against it.
 
15354
hardcode_automatic=$hardcode_automatic_F77
 
15355
 
 
15356
# Variables whose values should be saved in libtool wrapper scripts and
 
15357
# restored at relink time.
 
15358
variables_saved_for_relink="$variables_saved_for_relink"
 
15359
 
 
15360
# Whether libtool must link a program against all its dependency libraries.
 
15361
link_all_deplibs=$link_all_deplibs_F77
 
15362
 
 
15363
# Compile-time system search path for libraries
 
15364
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15365
 
 
15366
# Run-time system search path for libraries
 
15367
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15368
 
 
15369
# Fix the shell variable \$srcfile for the compiler.
 
15370
fix_srcfile_path="$fix_srcfile_path_F77"
 
15371
 
 
15372
# Set to yes if exported symbols are required.
 
15373
always_export_symbols=$always_export_symbols_F77
 
15374
 
 
15375
# The commands to list exported symbols.
 
15376
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15377
 
 
15378
# The commands to extract the exported symbol list from a shared archive.
 
15379
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15380
 
 
15381
# Symbols that should not be listed in the preloaded symbols.
 
15382
exclude_expsyms=$lt_exclude_expsyms_F77
 
15383
 
 
15384
# Symbols that must always be exported.
 
15385
include_expsyms=$lt_include_expsyms_F77
 
15386
 
 
15387
# ### END LIBTOOL TAG CONFIG: $tagname
 
15388
 
 
15389
__EOF__
 
15390
 
 
15391
 
 
15392
else
 
15393
  # If there is no Makefile yet, we rely on a make rule to execute
 
15394
  # `config.status --recheck' to rerun these tests and create the
 
15395
  # libtool script then.
 
15396
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15397
  if test -f "$ltmain_in"; then
 
15398
    test -f Makefile && make "$ltmain"
 
15399
  fi
 
15400
fi
 
15401
 
 
15402
 
 
15403
ac_ext=c
 
15404
ac_cpp='$CPP $CPPFLAGS'
 
15405
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15406
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15407
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15408
 
 
15409
CC="$lt_save_CC"
 
15410
 
 
15411
        else
 
15412
          tagname=""
 
15413
        fi
 
15414
        ;;
 
15415
 
 
15416
      GCJ)
 
15417
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15418
 
 
15419
 
 
15420
 
 
15421
# Source file extension for Java test sources.
 
15422
ac_ext=java
 
15423
 
 
15424
# Object file extension for compiled Java test sources.
 
15425
objext=o
 
15426
objext_GCJ=$objext
 
15427
 
 
15428
# Code to be used in simple compile tests
 
15429
lt_simple_compile_test_code="class foo {}\n"
 
15430
 
 
15431
# Code to be used in simple link tests
 
15432
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15433
 
 
15434
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15435
 
 
15436
# If no C compiler was specified, use CC.
 
15437
LTCC=${LTCC-"$CC"}
 
15438
 
 
15439
# If no C compiler flags were specified, use CFLAGS.
 
15440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15441
 
 
15442
# Allow CC to be a program name with arguments.
 
15443
compiler=$CC
 
15444
 
 
15445
 
 
15446
# save warnings/boilerplate of simple test code
 
15447
ac_outfile=conftest.$ac_objext
 
15448
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15449
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15450
_lt_compiler_boilerplate=`cat conftest.err`
 
15451
$rm conftest*
 
15452
 
 
15453
ac_outfile=conftest.$ac_objext
 
15454
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15455
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15456
_lt_linker_boilerplate=`cat conftest.err`
 
15457
$rm conftest*
 
15458
 
 
15459
 
 
15460
# Allow CC to be a program name with arguments.
 
15461
lt_save_CC="$CC"
 
15462
CC=${GCJ-"gcj"}
 
15463
compiler=$CC
 
15464
compiler_GCJ=$CC
 
15465
for cc_temp in $compiler""; do
 
15466
  case $cc_temp in
 
15467
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15468
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15469
    \-*) ;;
 
15470
    *) break;;
 
15471
  esac
 
15472
done
 
15473
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15474
 
 
15475
 
 
15476
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15477
archive_cmds_need_lc_GCJ=no
 
15478
 
 
15479
old_archive_cmds_GCJ=$old_archive_cmds
 
15480
 
 
15481
 
 
15482
lt_prog_compiler_no_builtin_flag_GCJ=
 
15483
 
 
15484
if test "$GCC" = yes; then
 
15485
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15486
 
 
15487
 
 
15488
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15489
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15490
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15492
else
 
15493
  lt_cv_prog_compiler_rtti_exceptions=no
 
15494
  ac_outfile=conftest.$ac_objext
 
15495
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15496
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15497
   # Insert the option either (1) after the last *FLAGS variable, or
 
15498
   # (2) before a word containing "conftest.", or (3) at the end.
 
15499
   # Note that $ac_compile itself does not contain backslashes and begins
 
15500
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15501
   # The option is referenced via a variable to avoid confusing sed.
 
15502
   lt_compile=`echo "$ac_compile" | $SED \
 
15503
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15504
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15505
   -e 's:$: $lt_compiler_flag:'`
 
15506
   (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
 
15507
   (eval "$lt_compile" 2>conftest.err)
 
15508
   ac_status=$?
 
15509
   cat conftest.err >&5
 
15510
   echo "$as_me:15510: \$? = $ac_status" >&5
 
15511
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15512
     # The compiler can only warn and ignore the option if not recognized
 
15513
     # So say no if there are warnings other than the usual output.
 
15514
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15515
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15516
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15517
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15518
     fi
 
15519
   fi
 
15520
   $rm conftest*
 
15521
 
 
15522
fi
 
15523
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15524
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15525
 
 
15526
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15527
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15528
else
 
15529
    :
 
15530
fi
 
15531
 
 
15532
fi
 
15533
 
 
15534
lt_prog_compiler_wl_GCJ=
 
15535
lt_prog_compiler_pic_GCJ=
 
15536
lt_prog_compiler_static_GCJ=
 
15537
 
 
15538
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15539
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15540
 
 
15541
  if test "$GCC" = yes; then
 
15542
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15543
    lt_prog_compiler_static_GCJ='-static'
 
15544
 
 
15545
    case $host_os in
 
15546
      aix*)
 
15547
      # All AIX code is PIC.
 
15548
      if test "$host_cpu" = ia64; then
 
15549
        # AIX 5 now supports IA64 processor
 
15550
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15551
      fi
 
15552
      ;;
 
15553
 
 
15554
    amigaos*)
 
15555
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15556
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15557
      # like `-m68040'.
 
15558
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15559
      ;;
 
15560
 
 
15561
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15562
      # PIC is the default for these OSes.
 
15563
      ;;
 
15564
 
 
15565
    mingw* | pw32* | os2*)
 
15566
      # This hack is so that the source file can tell whether it is being
 
15567
      # built for inclusion in a dll (and should export symbols for example).
 
15568
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15569
      ;;
 
15570
 
 
15571
    darwin* | rhapsody*)
 
15572
      # PIC is the default on this platform
 
15573
      # Common symbols not allowed in MH_DYLIB files
 
15574
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15575
      ;;
 
15576
 
 
15577
    interix3*)
 
15578
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15579
      # Instead, we relocate shared libraries at runtime.
 
15580
      ;;
 
15581
 
 
15582
    msdosdjgpp*)
 
15583
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15584
      # on systems that don't support them.
 
15585
      lt_prog_compiler_can_build_shared_GCJ=no
 
15586
      enable_shared=no
 
15587
      ;;
 
15588
 
 
15589
    sysv4*MP*)
 
15590
      if test -d /usr/nec; then
 
15591
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15592
      fi
 
15593
      ;;
 
15594
 
 
15595
    hpux*)
 
15596
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15597
      # not for PA HP-UX.
 
15598
      case $host_cpu in
 
15599
      hppa*64*|ia64*)
 
15600
        # +Z the default
 
15601
        ;;
 
15602
      *)
 
15603
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15604
        ;;
 
15605
      esac
 
15606
      ;;
 
15607
 
 
15608
    *)
 
15609
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15610
      ;;
 
15611
    esac
 
15612
  else
 
15613
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15614
    case $host_os in
 
15615
    aix*)
 
15616
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15617
      if test "$host_cpu" = ia64; then
 
15618
        # AIX 5 now supports IA64 processor
 
15619
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15620
      else
 
15621
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15622
      fi
 
15623
      ;;
 
15624
      darwin*)
 
15625
        # PIC is the default on this platform
 
15626
        # Common symbols not allowed in MH_DYLIB files
 
15627
       case $cc_basename in
 
15628
         xlc*)
 
15629
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15630
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15631
         ;;
 
15632
       esac
 
15633
       ;;
 
15634
 
 
15635
    mingw* | pw32* | os2*)
 
15636
      # This hack is so that the source file can tell whether it is being
 
15637
      # built for inclusion in a dll (and should export symbols for example).
 
15638
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15639
      ;;
 
15640
 
 
15641
    hpux9* | hpux10* | hpux11*)
 
15642
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15643
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15644
      # not for PA HP-UX.
 
15645
      case $host_cpu in
 
15646
      hppa*64*|ia64*)
 
15647
        # +Z the default
 
15648
        ;;
 
15649
      *)
 
15650
        lt_prog_compiler_pic_GCJ='+Z'
 
15651
        ;;
 
15652
      esac
 
15653
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15654
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15655
      ;;
 
15656
 
 
15657
    irix5* | irix6* | nonstopux*)
 
15658
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15659
      # PIC (with -KPIC) is the default.
 
15660
      lt_prog_compiler_static_GCJ='-non_shared'
 
15661
      ;;
 
15662
 
 
15663
    newsos6)
 
15664
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15665
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15666
      ;;
 
15667
 
 
15668
    linux*)
 
15669
      case $cc_basename in
 
15670
      icc* | ecc*)
 
15671
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15672
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15673
        lt_prog_compiler_static_GCJ='-static'
 
15674
        ;;
 
15675
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15676
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15677
        # which looks to be a dead project)
 
15678
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15679
        lt_prog_compiler_pic_GCJ='-fpic'
 
15680
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15681
        ;;
 
15682
      ccc*)
 
15683
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15684
        # All Alpha code is PIC.
 
15685
        lt_prog_compiler_static_GCJ='-non_shared'
 
15686
        ;;
 
15687
      esac
 
15688
      ;;
 
15689
 
 
15690
    osf3* | osf4* | osf5*)
 
15691
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15692
      # All OSF/1 code is PIC.
 
15693
      lt_prog_compiler_static_GCJ='-non_shared'
 
15694
      ;;
 
15695
 
 
15696
    solaris*)
 
15697
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15698
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15699
      case $cc_basename in
 
15700
      f77* | f90* | f95*)
 
15701
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15702
      *)
 
15703
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15704
      esac
 
15705
      ;;
 
15706
 
 
15707
    sunos4*)
 
15708
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15709
      lt_prog_compiler_pic_GCJ='-PIC'
 
15710
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15711
      ;;
 
15712
 
 
15713
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15714
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15715
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15716
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15717
      ;;
 
15718
 
 
15719
    sysv4*MP*)
 
15720
      if test -d /usr/nec ;then
 
15721
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15722
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15723
      fi
 
15724
      ;;
 
15725
 
 
15726
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15727
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15728
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15729
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15730
      ;;
 
15731
 
 
15732
    unicos*)
 
15733
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15734
      lt_prog_compiler_can_build_shared_GCJ=no
 
15735
      ;;
 
15736
 
 
15737
    uts4*)
 
15738
      lt_prog_compiler_pic_GCJ='-pic'
 
15739
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15740
      ;;
 
15741
 
 
15742
    *)
 
15743
      lt_prog_compiler_can_build_shared_GCJ=no
 
15744
      ;;
 
15745
    esac
 
15746
  fi
 
15747
 
 
15748
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15749
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15750
 
 
15751
#
 
15752
# Check to make sure the PIC flag actually works.
 
15753
#
 
15754
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15755
 
 
15756
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15757
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15758
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15760
else
 
15761
  lt_prog_compiler_pic_works_GCJ=no
 
15762
  ac_outfile=conftest.$ac_objext
 
15763
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15764
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15765
   # Insert the option either (1) after the last *FLAGS variable, or
 
15766
   # (2) before a word containing "conftest.", or (3) at the end.
 
15767
   # Note that $ac_compile itself does not contain backslashes and begins
 
15768
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15769
   # The option is referenced via a variable to avoid confusing sed.
 
15770
   lt_compile=`echo "$ac_compile" | $SED \
 
15771
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15772
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15773
   -e 's:$: $lt_compiler_flag:'`
 
15774
   (eval echo "\"\$as_me:15774: $lt_compile\"" >&5)
 
15775
   (eval "$lt_compile" 2>conftest.err)
 
15776
   ac_status=$?
 
15777
   cat conftest.err >&5
 
15778
   echo "$as_me:15778: \$? = $ac_status" >&5
 
15779
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15780
     # The compiler can only warn and ignore the option if not recognized
 
15781
     # So say no if there are warnings other than the usual output.
 
15782
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15783
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15784
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15785
       lt_prog_compiler_pic_works_GCJ=yes
 
15786
     fi
 
15787
   fi
 
15788
   $rm conftest*
 
15789
 
 
15790
fi
 
15791
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15792
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15793
 
 
15794
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15795
    case $lt_prog_compiler_pic_GCJ in
 
15796
     "" | " "*) ;;
 
15797
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15798
     esac
 
15799
else
 
15800
    lt_prog_compiler_pic_GCJ=
 
15801
     lt_prog_compiler_can_build_shared_GCJ=no
 
15802
fi
 
15803
 
 
15804
fi
 
15805
case $host_os in
 
15806
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15807
  *djgpp*)
 
15808
    lt_prog_compiler_pic_GCJ=
 
15809
    ;;
 
15810
  *)
 
15811
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15812
    ;;
 
15813
esac
 
15814
 
 
15815
#
 
15816
# Check to make sure the static flag actually works.
 
15817
#
 
15818
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15819
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15820
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15821
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15823
else
 
15824
  lt_prog_compiler_static_works_GCJ=no
 
15825
   save_LDFLAGS="$LDFLAGS"
 
15826
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15827
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15828
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15829
     # The linker can only warn and ignore the option if not recognized
 
15830
     # So say no if there are warnings
 
15831
     if test -s conftest.err; then
 
15832
       # Append any errors to the config.log.
 
15833
       cat conftest.err 1>&5
 
15834
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15835
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15836
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15837
         lt_prog_compiler_static_works_GCJ=yes
 
15838
       fi
 
15839
     else
 
15840
       lt_prog_compiler_static_works_GCJ=yes
 
15841
     fi
 
15842
   fi
 
15843
   $rm conftest*
 
15844
   LDFLAGS="$save_LDFLAGS"
 
15845
 
 
15846
fi
 
15847
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15848
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15849
 
 
15850
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15851
    :
 
15852
else
 
15853
    lt_prog_compiler_static_GCJ=
 
15854
fi
 
15855
 
 
15856
 
 
15857
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15858
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15859
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15861
else
 
15862
  lt_cv_prog_compiler_c_o_GCJ=no
 
15863
   $rm -r conftest 2>/dev/null
 
15864
   mkdir conftest
 
15865
   cd conftest
 
15866
   mkdir out
 
15867
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15868
 
 
15869
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15870
   # Insert the option either (1) after the last *FLAGS variable, or
 
15871
   # (2) before a word containing "conftest.", or (3) at the end.
 
15872
   # Note that $ac_compile itself does not contain backslashes and begins
 
15873
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15874
   lt_compile=`echo "$ac_compile" | $SED \
 
15875
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15876
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15877
   -e 's:$: $lt_compiler_flag:'`
 
15878
   (eval echo "\"\$as_me:15878: $lt_compile\"" >&5)
 
15879
   (eval "$lt_compile" 2>out/conftest.err)
 
15880
   ac_status=$?
 
15881
   cat out/conftest.err >&5
 
15882
   echo "$as_me:15882: \$? = $ac_status" >&5
 
15883
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15884
   then
 
15885
     # The compiler can only warn and ignore the option if not recognized
 
15886
     # So say no if there are warnings
 
15887
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15888
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15889
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15890
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15891
     fi
 
15892
   fi
 
15893
   chmod u+w . 2>&5
 
15894
   $rm conftest*
 
15895
   # SGI C++ compiler will create directory out/ii_files/ for
 
15896
   # template instantiation
 
15897
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15898
   $rm out/* && rmdir out
 
15899
   cd ..
 
15900
   rmdir conftest
 
15901
   $rm conftest*
 
15902
 
 
15903
fi
 
15904
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15905
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15906
 
 
15907
 
 
15908
hard_links="nottested"
 
15909
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15910
  # do not overwrite the value of need_locks provided by the user
 
15911
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15912
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15913
  hard_links=yes
 
15914
  $rm conftest*
 
15915
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15916
  touch conftest.a
 
15917
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15918
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15919
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15920
echo "${ECHO_T}$hard_links" >&6
 
15921
  if test "$hard_links" = no; then
 
15922
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15923
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15924
    need_locks=warn
 
15925
  fi
 
15926
else
 
15927
  need_locks=no
 
15928
fi
 
15929
 
 
15930
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15931
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15932
 
 
15933
  runpath_var=
 
15934
  allow_undefined_flag_GCJ=
 
15935
  enable_shared_with_static_runtimes_GCJ=no
 
15936
  archive_cmds_GCJ=
 
15937
  archive_expsym_cmds_GCJ=
 
15938
  old_archive_From_new_cmds_GCJ=
 
15939
  old_archive_from_expsyms_cmds_GCJ=
 
15940
  export_dynamic_flag_spec_GCJ=
 
15941
  whole_archive_flag_spec_GCJ=
 
15942
  thread_safe_flag_spec_GCJ=
 
15943
  hardcode_libdir_flag_spec_GCJ=
 
15944
  hardcode_libdir_flag_spec_ld_GCJ=
 
15945
  hardcode_libdir_separator_GCJ=
 
15946
  hardcode_direct_GCJ=no
 
15947
  hardcode_minus_L_GCJ=no
 
15948
  hardcode_shlibpath_var_GCJ=unsupported
 
15949
  link_all_deplibs_GCJ=unknown
 
15950
  hardcode_automatic_GCJ=no
 
15951
  module_cmds_GCJ=
 
15952
  module_expsym_cmds_GCJ=
 
15953
  always_export_symbols_GCJ=no
 
15954
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15955
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15956
  # included in the symbol list
 
15957
  include_expsyms_GCJ=
 
15958
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15959
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15960
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15961
  # as well as any symbol that contains `d'.
 
15962
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15963
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15964
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15965
  # the symbol is explicitly referenced.  Since portable code cannot
 
15966
  # rely on this symbol name, it's probably fine to never include it in
 
15967
  # preloaded symbol tables.
 
15968
  extract_expsyms_cmds=
 
15969
  # Just being paranoid about ensuring that cc_basename is set.
 
15970
  for cc_temp in $compiler""; do
 
15971
  case $cc_temp in
 
15972
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15973
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15974
    \-*) ;;
 
15975
    *) break;;
 
15976
  esac
 
15977
done
 
15978
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15979
 
 
15980
  case $host_os in
 
15981
  cygwin* | mingw* | pw32*)
 
15982
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15983
    # When not using gcc, we currently assume that we are using
 
15984
    # Microsoft Visual C++.
 
15985
    if test "$GCC" != yes; then
 
15986
      with_gnu_ld=no
 
15987
    fi
 
15988
    ;;
 
15989
  interix*)
 
15990
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15991
    with_gnu_ld=yes
 
15992
    ;;
 
15993
  openbsd*)
 
15994
    with_gnu_ld=no
 
15995
    ;;
 
15996
  esac
 
15997
 
 
15998
  ld_shlibs_GCJ=yes
 
15999
  if test "$with_gnu_ld" = yes; then
 
16000
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16001
    wlarc='${wl}'
 
16002
 
 
16003
    # Set some defaults for GNU ld with shared library support. These
 
16004
    # are reset later if shared libraries are not supported. Putting them
 
16005
    # here allows them to be overridden if necessary.
 
16006
    runpath_var=LD_RUN_PATH
 
16007
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16008
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16009
    # ancient GNU ld didn't support --whole-archive et. al.
 
16010
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16011
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16012
      else
 
16013
        whole_archive_flag_spec_GCJ=
 
16014
    fi
 
16015
    supports_anon_versioning=no
 
16016
    case `$LD -v 2>/dev/null` in
 
16017
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16018
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16019
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16020
      *\ 2.11.*) ;; # other 2.11 versions
 
16021
      *) supports_anon_versioning=yes ;;
 
16022
    esac
 
16023
 
 
16024
    # See if GNU ld supports shared libraries.
 
16025
    case $host_os in
 
16026
    aix3* | aix4* | aix5*)
 
16027
      # On AIX/PPC, the GNU linker is very broken
 
16028
      if test "$host_cpu" != ia64; then
 
16029
        ld_shlibs_GCJ=no
 
16030
        cat <<EOF 1>&2
 
16031
 
 
16032
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16033
*** to be unable to reliably create shared libraries on AIX.
 
16034
*** Therefore, libtool is disabling shared libraries support.  If you
 
16035
*** really care for shared libraries, you may want to modify your PATH
 
16036
*** so that a non-GNU linker is found, and then restart.
 
16037
 
 
16038
EOF
 
16039
      fi
 
16040
      ;;
 
16041
 
 
16042
    amigaos*)
 
16043
      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)'
 
16044
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16045
      hardcode_minus_L_GCJ=yes
 
16046
 
 
16047
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16048
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16049
      # to version 4, is to share data among multiple programs linked
 
16050
      # with the same dynamic library.  Since this doesn't match the
 
16051
      # behavior of shared libraries on other platforms, we can't use
 
16052
      # them.
 
16053
      ld_shlibs_GCJ=no
 
16054
      ;;
 
16055
 
 
16056
    beos*)
 
16057
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16058
        allow_undefined_flag_GCJ=unsupported
 
16059
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16060
        # support --undefined.  This deserves some investigation.  FIXME
 
16061
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16062
      else
 
16063
        ld_shlibs_GCJ=no
 
16064
      fi
 
16065
      ;;
 
16066
 
 
16067
    cygwin* | mingw* | pw32*)
 
16068
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16069
      # as there is no search path for DLLs.
 
16070
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16071
      allow_undefined_flag_GCJ=unsupported
 
16072
      always_export_symbols_GCJ=no
 
16073
      enable_shared_with_static_runtimes_GCJ=yes
 
16074
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16075
 
 
16076
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16077
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16078
        # If the export-symbols file already is a .def file (1st line
 
16079
        # is EXPORTS), use it as is; otherwise, prepend...
 
16080
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16081
          cp $export_symbols $output_objdir/$soname.def;
 
16082
        else
 
16083
          echo EXPORTS > $output_objdir/$soname.def;
 
16084
          cat $export_symbols >> $output_objdir/$soname.def;
 
16085
        fi~
 
16086
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16087
      else
 
16088
        ld_shlibs_GCJ=no
 
16089
      fi
 
16090
      ;;
 
16091
 
 
16092
    interix3*)
 
16093
      hardcode_direct_GCJ=no
 
16094
      hardcode_shlibpath_var_GCJ=no
 
16095
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16096
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16097
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16098
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16099
      # default) and relocated if they conflict, which is a slow very memory
 
16100
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16101
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16102
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16103
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16104
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16105
      ;;
 
16106
 
 
16107
    linux*)
 
16108
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16109
        tmp_addflag=
 
16110
        case $cc_basename,$host_cpu in
 
16111
        pgcc*)                          # Portland Group C compiler
 
16112
          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'
 
16113
          tmp_addflag=' $pic_flag'
 
16114
          ;;
 
16115
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16116
          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'
 
16117
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16118
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16119
          tmp_addflag=' -i_dynamic' ;;
 
16120
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16121
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16122
        ifc* | ifort*)                  # Intel Fortran compiler
 
16123
          tmp_addflag=' -nofor_main' ;;
 
16124
        esac
 
16125
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16126
 
 
16127
        if test $supports_anon_versioning = yes; then
 
16128
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16129
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16130
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16131
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16132
        fi
 
16133
      else
 
16134
        ld_shlibs_GCJ=no
 
16135
      fi
 
16136
      ;;
 
16137
 
 
16138
    netbsd*)
 
16139
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16140
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16141
        wlarc=
 
16142
      else
 
16143
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16144
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16145
      fi
 
16146
      ;;
 
16147
 
 
16148
    solaris*)
 
16149
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16150
        ld_shlibs_GCJ=no
 
16151
        cat <<EOF 1>&2
 
16152
 
 
16153
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16154
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16155
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16156
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16157
*** your PATH or compiler configuration so that the native linker is
 
16158
*** used, and then restart.
 
16159
 
 
16160
EOF
 
16161
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16162
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16163
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16164
      else
 
16165
        ld_shlibs_GCJ=no
 
16166
      fi
 
16167
      ;;
 
16168
 
 
16169
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16170
      case `$LD -v 2>&1` in
 
16171
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16172
        ld_shlibs_GCJ=no
 
16173
        cat <<_LT_EOF 1>&2
 
16174
 
 
16175
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16176
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16177
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16178
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16179
*** your PATH or compiler configuration so that the native linker is
 
16180
*** used, and then restart.
 
16181
 
 
16182
_LT_EOF
 
16183
        ;;
 
16184
        *)
 
16185
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16186
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16187
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16188
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16189
          else
 
16190
            ld_shlibs_GCJ=no
 
16191
          fi
 
16192
        ;;
 
16193
      esac
 
16194
      ;;
 
16195
 
 
16196
    sunos4*)
 
16197
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16198
      wlarc=
 
16199
      hardcode_direct_GCJ=yes
 
16200
      hardcode_shlibpath_var_GCJ=no
 
16201
      ;;
 
16202
 
 
16203
    *)
 
16204
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16205
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16206
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16207
      else
 
16208
        ld_shlibs_GCJ=no
 
16209
      fi
 
16210
      ;;
 
16211
    esac
 
16212
 
 
16213
    if test "$ld_shlibs_GCJ" = no; then
 
16214
      runpath_var=
 
16215
      hardcode_libdir_flag_spec_GCJ=
 
16216
      export_dynamic_flag_spec_GCJ=
 
16217
      whole_archive_flag_spec_GCJ=
 
16218
    fi
 
16219
  else
 
16220
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16221
    case $host_os in
 
16222
    aix3*)
 
16223
      allow_undefined_flag_GCJ=unsupported
 
16224
      always_export_symbols_GCJ=yes
 
16225
      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'
 
16226
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16227
      # are no directories specified by -L.
 
16228
      hardcode_minus_L_GCJ=yes
 
16229
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16230
        # Neither direct hardcoding nor static linking is supported with a
 
16231
        # broken collect2.
 
16232
        hardcode_direct_GCJ=unsupported
 
16233
      fi
 
16234
      ;;
 
16235
 
 
16236
    aix4* | aix5*)
 
16237
      if test "$host_cpu" = ia64; then
 
16238
        # On IA64, the linker does run time linking by default, so we don't
 
16239
        # have to do anything special.
 
16240
        aix_use_runtimelinking=no
 
16241
        exp_sym_flag='-Bexport'
 
16242
        no_entry_flag=""
 
16243
      else
 
16244
        # If we're using GNU nm, then we don't want the "-C" option.
 
16245
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16246
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16247
          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'
 
16248
        else
 
16249
          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'
 
16250
        fi
 
16251
        aix_use_runtimelinking=no
 
16252
 
 
16253
        # Test if we are trying to use run time linking or normal
 
16254
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16255
        # need to do runtime linking.
 
16256
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16257
          for ld_flag in $LDFLAGS; do
 
16258
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16259
            aix_use_runtimelinking=yes
 
16260
            break
 
16261
          fi
 
16262
          done
 
16263
          ;;
 
16264
        esac
 
16265
 
 
16266
        exp_sym_flag='-bexport'
 
16267
        no_entry_flag='-bnoentry'
 
16268
      fi
 
16269
 
 
16270
      # When large executables or shared objects are built, AIX ld can
 
16271
      # have problems creating the table of contents.  If linking a library
 
16272
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16273
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16274
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16275
 
 
16276
      archive_cmds_GCJ=''
 
16277
      hardcode_direct_GCJ=yes
 
16278
      hardcode_libdir_separator_GCJ=':'
 
16279
      link_all_deplibs_GCJ=yes
 
16280
 
 
16281
      if test "$GCC" = yes; then
 
16282
        case $host_os in aix4.[012]|aix4.[012].*)
 
16283
        # We only want to do this on AIX 4.2 and lower, the check
 
16284
        # below for broken collect2 doesn't work under 4.3+
 
16285
          collect2name=`${CC} -print-prog-name=collect2`
 
16286
          if test -f "$collect2name" && \
 
16287
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16288
          then
 
16289
          # We have reworked collect2
 
16290
          hardcode_direct_GCJ=yes
 
16291
          else
 
16292
          # We have old collect2
 
16293
          hardcode_direct_GCJ=unsupported
 
16294
          # It fails to find uninstalled libraries when the uninstalled
 
16295
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16296
          # to unsupported forces relinking
 
16297
          hardcode_minus_L_GCJ=yes
 
16298
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16299
          hardcode_libdir_separator_GCJ=
 
16300
          fi
 
16301
          ;;
 
16302
        esac
 
16303
        shared_flag='-shared'
 
16304
        if test "$aix_use_runtimelinking" = yes; then
 
16305
          shared_flag="$shared_flag "'${wl}-G'
 
16306
        fi
 
16307
      else
 
16308
        # not using gcc
 
16309
        if test "$host_cpu" = ia64; then
 
16310
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16311
        # chokes on -Wl,-G. The following line is correct:
 
16312
          shared_flag='-G'
 
16313
        else
 
16314
          if test "$aix_use_runtimelinking" = yes; then
 
16315
            shared_flag='${wl}-G'
 
16316
          else
 
16317
            shared_flag='${wl}-bM:SRE'
 
16318
          fi
 
16319
        fi
 
16320
      fi
 
16321
 
 
16322
      # It seems that -bexpall does not export symbols beginning with
 
16323
      # underscore (_), so it is better to generate a list of symbols to export.
 
16324
      always_export_symbols_GCJ=yes
 
16325
      if test "$aix_use_runtimelinking" = yes; then
 
16326
        # Warning - without using the other runtime loading flags (-brtl),
 
16327
        # -berok will link without error, but may produce a broken library.
 
16328
        allow_undefined_flag_GCJ='-berok'
 
16329
       # Determine the default libpath from the value encoded in an empty executable.
 
16330
       cat >conftest.$ac_ext <<_ACEOF
 
16331
/* confdefs.h.  */
 
16332
_ACEOF
 
16333
cat confdefs.h >>conftest.$ac_ext
 
16334
cat >>conftest.$ac_ext <<_ACEOF
 
16335
/* end confdefs.h.  */
 
16336
 
 
16337
int
 
16338
main ()
 
16339
{
 
16340
 
 
16341
  ;
 
16342
  return 0;
 
16343
}
 
16344
_ACEOF
 
16345
rm -f conftest.$ac_objext conftest$ac_exeext
 
16346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16347
  (eval $ac_link) 2>conftest.er1
 
16348
  ac_status=$?
 
16349
  grep -v '^ *+' conftest.er1 >conftest.err
 
16350
  rm -f conftest.er1
 
16351
  cat conftest.err >&5
 
16352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16353
  (exit $ac_status); } &&
 
16354
         { ac_try='test -z "$ac_c_werror_flag"
 
16355
                         || test ! -s conftest.err'
 
16356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16357
  (eval $ac_try) 2>&5
 
16358
  ac_status=$?
 
16359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16360
  (exit $ac_status); }; } &&
 
16361
         { ac_try='test -s conftest$ac_exeext'
 
16362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16363
  (eval $ac_try) 2>&5
 
16364
  ac_status=$?
 
16365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16366
  (exit $ac_status); }; }; then
 
16367
 
 
16368
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16369
}'`
 
16370
# Check for a 64-bit object if we didn't find anything.
 
16371
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; }
 
16372
}'`; fi
 
16373
else
 
16374
  echo "$as_me: failed program was:" >&5
 
16375
sed 's/^/| /' conftest.$ac_ext >&5
 
16376
 
 
16377
fi
 
16378
rm -f conftest.err conftest.$ac_objext \
 
16379
      conftest$ac_exeext conftest.$ac_ext
 
16380
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16381
 
 
16382
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16383
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16384
       else
 
16385
        if test "$host_cpu" = ia64; then
 
16386
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16387
          allow_undefined_flag_GCJ="-z nodefs"
 
16388
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
16389
        else
 
16390
         # Determine the default libpath from the value encoded in an empty executable.
 
16391
         cat >conftest.$ac_ext <<_ACEOF
 
16392
/* confdefs.h.  */
 
16393
_ACEOF
 
16394
cat confdefs.h >>conftest.$ac_ext
 
16395
cat >>conftest.$ac_ext <<_ACEOF
 
16396
/* end confdefs.h.  */
 
16397
 
 
16398
int
 
16399
main ()
 
16400
{
 
16401
 
 
16402
  ;
 
16403
  return 0;
 
16404
}
 
16405
_ACEOF
 
16406
rm -f conftest.$ac_objext conftest$ac_exeext
 
16407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16408
  (eval $ac_link) 2>conftest.er1
 
16409
  ac_status=$?
 
16410
  grep -v '^ *+' conftest.er1 >conftest.err
 
16411
  rm -f conftest.er1
 
16412
  cat conftest.err >&5
 
16413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16414
  (exit $ac_status); } &&
 
16415
         { ac_try='test -z "$ac_c_werror_flag"
 
16416
                         || test ! -s conftest.err'
 
16417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16418
  (eval $ac_try) 2>&5
 
16419
  ac_status=$?
 
16420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16421
  (exit $ac_status); }; } &&
 
16422
         { ac_try='test -s conftest$ac_exeext'
 
16423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16424
  (eval $ac_try) 2>&5
 
16425
  ac_status=$?
 
16426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16427
  (exit $ac_status); }; }; then
 
16428
 
 
16429
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16430
}'`
 
16431
# Check for a 64-bit object if we didn't find anything.
 
16432
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; }
 
16433
}'`; fi
 
16434
else
 
16435
  echo "$as_me: failed program was:" >&5
 
16436
sed 's/^/| /' conftest.$ac_ext >&5
 
16437
 
 
16438
fi
 
16439
rm -f conftest.err conftest.$ac_objext \
 
16440
      conftest$ac_exeext conftest.$ac_ext
 
16441
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16442
 
 
16443
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16444
          # Warning - without using the other run time loading flags,
 
16445
          # -berok will link without error, but may produce a broken library.
 
16446
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16447
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16448
          # Exported symbols can be pulled into shared objects from archives
 
16449
          whole_archive_flag_spec_GCJ='$convenience'
 
16450
          archive_cmds_need_lc_GCJ=yes
 
16451
          # This is similar to how AIX traditionally builds its shared libraries.
 
16452
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16453
        fi
 
16454
      fi
 
16455
      ;;
 
16456
 
 
16457
    amigaos*)
 
16458
      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)'
 
16459
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16460
      hardcode_minus_L_GCJ=yes
 
16461
      # see comment about different semantics on the GNU ld section
 
16462
      ld_shlibs_GCJ=no
 
16463
      ;;
 
16464
 
 
16465
    bsdi[45]*)
 
16466
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16467
      ;;
 
16468
 
 
16469
    cygwin* | mingw* | pw32*)
 
16470
      # When not using gcc, we currently assume that we are using
 
16471
      # Microsoft Visual C++.
 
16472
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16473
      # no search path for DLLs.
 
16474
      hardcode_libdir_flag_spec_GCJ=' '
 
16475
      allow_undefined_flag_GCJ=unsupported
 
16476
      # Tell ltmain to make .lib files, not .a files.
 
16477
      libext=lib
 
16478
      # Tell ltmain to make .dll files, not .so files.
 
16479
      shrext_cmds=".dll"
 
16480
      # FIXME: Setting linknames here is a bad hack.
 
16481
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16482
      # The linker will automatically build a .lib file if we build a DLL.
 
16483
      old_archive_From_new_cmds_GCJ='true'
 
16484
      # FIXME: Should let the user specify the lib program.
 
16485
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16486
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16487
      enable_shared_with_static_runtimes_GCJ=yes
 
16488
      ;;
 
16489
 
 
16490
    darwin* | rhapsody*)
 
16491
      case $host_os in
 
16492
        rhapsody* | darwin1.[012])
 
16493
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16494
         ;;
 
16495
       *) # Darwin 1.3 on
 
16496
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16497
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16498
         else
 
16499
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16500
             10.[012])
 
16501
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16502
               ;;
 
16503
             10.*)
 
16504
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16505
               ;;
 
16506
           esac
 
16507
         fi
 
16508
         ;;
 
16509
      esac
 
16510
      archive_cmds_need_lc_GCJ=no
 
16511
      hardcode_direct_GCJ=no
 
16512
      hardcode_automatic_GCJ=yes
 
16513
      hardcode_shlibpath_var_GCJ=unsupported
 
16514
      whole_archive_flag_spec_GCJ=''
 
16515
      link_all_deplibs_GCJ=yes
 
16516
    if test "$GCC" = yes ; then
 
16517
        output_verbose_link_cmd='echo'
 
16518
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16519
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16520
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16521
      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}'
 
16522
      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}'
 
16523
    else
 
16524
      case $cc_basename in
 
16525
        xlc*)
 
16526
         output_verbose_link_cmd='echo'
 
16527
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16528
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16529
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16530
         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}'
 
16531
          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}'
 
16532
          ;;
 
16533
       *)
 
16534
         ld_shlibs_GCJ=no
 
16535
          ;;
 
16536
      esac
 
16537
    fi
 
16538
      ;;
 
16539
 
 
16540
    dgux*)
 
16541
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16542
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16543
      hardcode_shlibpath_var_GCJ=no
 
16544
      ;;
 
16545
 
 
16546
    freebsd1*)
 
16547
      ld_shlibs_GCJ=no
 
16548
      ;;
 
16549
 
 
16550
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16551
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16552
    # does not break anything, and helps significantly (at the cost of a little
 
16553
    # extra space).
 
16554
    freebsd2.2*)
 
16555
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16556
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16557
      hardcode_direct_GCJ=yes
 
16558
      hardcode_shlibpath_var_GCJ=no
 
16559
      ;;
 
16560
 
 
16561
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16562
    freebsd2*)
 
16563
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16564
      hardcode_direct_GCJ=yes
 
16565
      hardcode_minus_L_GCJ=yes
 
16566
      hardcode_shlibpath_var_GCJ=no
 
16567
      ;;
 
16568
 
 
16569
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16570
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16571
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16572
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16573
      hardcode_direct_GCJ=yes
 
16574
      hardcode_shlibpath_var_GCJ=no
 
16575
      ;;
 
16576
 
 
16577
    hpux9*)
 
16578
      if test "$GCC" = yes; then
 
16579
        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'
 
16580
      else
 
16581
        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'
 
16582
      fi
 
16583
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16584
      hardcode_libdir_separator_GCJ=:
 
16585
      hardcode_direct_GCJ=yes
 
16586
 
 
16587
      # hardcode_minus_L: Not really in the search PATH,
 
16588
      # but as the default location of the library.
 
16589
      hardcode_minus_L_GCJ=yes
 
16590
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16591
      ;;
 
16592
 
 
16593
    hpux10*)
 
16594
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16595
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16596
      else
 
16597
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16598
      fi
 
16599
      if test "$with_gnu_ld" = no; then
 
16600
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16601
        hardcode_libdir_separator_GCJ=:
 
16602
 
 
16603
        hardcode_direct_GCJ=yes
 
16604
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16605
 
 
16606
        # hardcode_minus_L: Not really in the search PATH,
 
16607
        # but as the default location of the library.
 
16608
        hardcode_minus_L_GCJ=yes
 
16609
      fi
 
16610
      ;;
 
16611
 
 
16612
    hpux11*)
 
16613
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16614
        case $host_cpu in
 
16615
        hppa*64*)
 
16616
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16617
          ;;
 
16618
        ia64*)
 
16619
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16620
          ;;
 
16621
        *)
 
16622
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16623
          ;;
 
16624
        esac
 
16625
      else
 
16626
        case $host_cpu in
 
16627
        hppa*64*)
 
16628
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16629
          ;;
 
16630
        ia64*)
 
16631
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16632
          ;;
 
16633
        *)
 
16634
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16635
          ;;
 
16636
        esac
 
16637
      fi
 
16638
      if test "$with_gnu_ld" = no; then
 
16639
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16640
        hardcode_libdir_separator_GCJ=:
 
16641
 
 
16642
        case $host_cpu in
 
16643
        hppa*64*|ia64*)
 
16644
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16645
          hardcode_direct_GCJ=no
 
16646
          hardcode_shlibpath_var_GCJ=no
 
16647
          ;;
 
16648
        *)
 
16649
          hardcode_direct_GCJ=yes
 
16650
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16651
 
 
16652
          # hardcode_minus_L: Not really in the search PATH,
 
16653
          # but as the default location of the library.
 
16654
          hardcode_minus_L_GCJ=yes
 
16655
          ;;
 
16656
        esac
 
16657
      fi
 
16658
      ;;
 
16659
 
 
16660
    irix5* | irix6* | nonstopux*)
 
16661
      if test "$GCC" = yes; then
 
16662
        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'
 
16663
      else
 
16664
        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'
 
16665
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16666
      fi
 
16667
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16668
      hardcode_libdir_separator_GCJ=:
 
16669
      link_all_deplibs_GCJ=yes
 
16670
      ;;
 
16671
 
 
16672
    netbsd*)
 
16673
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16674
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16675
      else
 
16676
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16677
      fi
 
16678
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16679
      hardcode_direct_GCJ=yes
 
16680
      hardcode_shlibpath_var_GCJ=no
 
16681
      ;;
 
16682
 
 
16683
    newsos6)
 
16684
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16685
      hardcode_direct_GCJ=yes
 
16686
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16687
      hardcode_libdir_separator_GCJ=:
 
16688
      hardcode_shlibpath_var_GCJ=no
 
16689
      ;;
 
16690
 
 
16691
    openbsd*)
 
16692
      hardcode_direct_GCJ=yes
 
16693
      hardcode_shlibpath_var_GCJ=no
 
16694
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16695
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16696
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16697
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16698
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16699
      else
 
16700
       case $host_os in
 
16701
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16702
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16703
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16704
           ;;
 
16705
         *)
 
16706
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16707
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16708
           ;;
 
16709
       esac
 
16710
      fi
 
16711
      ;;
 
16712
 
 
16713
    os2*)
 
16714
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16715
      hardcode_minus_L_GCJ=yes
 
16716
      allow_undefined_flag_GCJ=unsupported
 
16717
      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'
 
16718
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16719
      ;;
 
16720
 
 
16721
    osf3*)
 
16722
      if test "$GCC" = yes; then
 
16723
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16724
        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'
 
16725
      else
 
16726
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16727
        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'
 
16728
      fi
 
16729
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16730
      hardcode_libdir_separator_GCJ=:
 
16731
      ;;
 
16732
 
 
16733
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16734
      if test "$GCC" = yes; then
 
16735
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16736
        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'
 
16737
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16738
      else
 
16739
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16740
        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'
 
16741
        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~
 
16742
        $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'
 
16743
 
 
16744
        # Both c and cxx compiler support -rpath directly
 
16745
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16746
      fi
 
16747
      hardcode_libdir_separator_GCJ=:
 
16748
      ;;
 
16749
 
 
16750
    solaris*)
 
16751
      no_undefined_flag_GCJ=' -z text'
 
16752
      if test "$GCC" = yes; then
 
16753
        wlarc='${wl}'
 
16754
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16755
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16756
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16757
      else
 
16758
        wlarc=''
 
16759
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16760
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16761
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16762
      fi
 
16763
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16764
      hardcode_shlibpath_var_GCJ=no
 
16765
      case $host_os in
 
16766
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16767
      *)
 
16768
        # The compiler driver will combine linker options so we
 
16769
        # cannot just pass the convience library names through
 
16770
        # without $wl, iff we do not link with $LD.
 
16771
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16772
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16773
        case $wlarc in
 
16774
        '')
 
16775
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16776
        *)
 
16777
          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' ;;
 
16778
        esac ;;
 
16779
      esac
 
16780
      link_all_deplibs_GCJ=yes
 
16781
      ;;
 
16782
 
 
16783
    sunos4*)
 
16784
      if test "x$host_vendor" = xsequent; then
 
16785
        # Use $CC to link under sequent, because it throws in some extra .o
 
16786
        # files that make .init and .fini sections work.
 
16787
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16788
      else
 
16789
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16790
      fi
 
16791
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16792
      hardcode_direct_GCJ=yes
 
16793
      hardcode_minus_L_GCJ=yes
 
16794
      hardcode_shlibpath_var_GCJ=no
 
16795
      ;;
 
16796
 
 
16797
    sysv4)
 
16798
      case $host_vendor in
 
16799
        sni)
 
16800
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16801
          hardcode_direct_GCJ=yes # is this really true???
 
16802
        ;;
 
16803
        siemens)
 
16804
          ## LD is ld it makes a PLAMLIB
 
16805
          ## CC just makes a GrossModule.
 
16806
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16807
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16808
          hardcode_direct_GCJ=no
 
16809
        ;;
 
16810
        motorola)
 
16811
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16812
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16813
        ;;
 
16814
      esac
 
16815
      runpath_var='LD_RUN_PATH'
 
16816
      hardcode_shlibpath_var_GCJ=no
 
16817
      ;;
 
16818
 
 
16819
    sysv4.3*)
 
16820
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16821
      hardcode_shlibpath_var_GCJ=no
 
16822
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16823
      ;;
 
16824
 
 
16825
    sysv4*MP*)
 
16826
      if test -d /usr/nec; then
 
16827
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16828
        hardcode_shlibpath_var_GCJ=no
 
16829
        runpath_var=LD_RUN_PATH
 
16830
        hardcode_runpath_var=yes
 
16831
        ld_shlibs_GCJ=yes
 
16832
      fi
 
16833
      ;;
 
16834
 
 
16835
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16836
      no_undefined_flag_GCJ='${wl}-z,text'
 
16837
      archive_cmds_need_lc_GCJ=no
 
16838
      hardcode_shlibpath_var_GCJ=no
 
16839
      runpath_var='LD_RUN_PATH'
 
16840
 
 
16841
      if test "$GCC" = yes; then
 
16842
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16843
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16844
      else
 
16845
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16846
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16847
      fi
 
16848
      ;;
 
16849
 
 
16850
    sysv5* | sco3.2v5* | sco5v6*)
 
16851
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16852
      # link with -lc, and that would cause any symbols used from libc to
 
16853
      # always be unresolved, which means just about no library would
 
16854
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16855
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16856
      # as -z defs.
 
16857
      no_undefined_flag_GCJ='${wl}-z,text'
 
16858
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16859
      archive_cmds_need_lc_GCJ=no
 
16860
      hardcode_shlibpath_var_GCJ=no
 
16861
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16862
      hardcode_libdir_separator_GCJ=':'
 
16863
      link_all_deplibs_GCJ=yes
 
16864
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16865
      runpath_var='LD_RUN_PATH'
 
16866
 
 
16867
      if test "$GCC" = yes; then
 
16868
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16869
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16870
      else
 
16871
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16872
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16873
      fi
 
16874
      ;;
 
16875
 
 
16876
    uts4*)
 
16877
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16878
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16879
      hardcode_shlibpath_var_GCJ=no
 
16880
      ;;
 
16881
 
 
16882
    *)
 
16883
      ld_shlibs_GCJ=no
 
16884
      ;;
 
16885
    esac
 
16886
  fi
 
16887
 
 
16888
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16889
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16890
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16891
 
 
16892
#
 
16893
# Do we need to explicitly link libc?
 
16894
#
 
16895
case "x$archive_cmds_need_lc_GCJ" in
 
16896
x|xyes)
 
16897
  # Assume -lc should be added
 
16898
  archive_cmds_need_lc_GCJ=yes
 
16899
 
 
16900
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16901
    case $archive_cmds_GCJ in
 
16902
    *'~'*)
 
16903
      # FIXME: we may have to deal with multi-command sequences.
 
16904
      ;;
 
16905
    '$CC '*)
 
16906
      # Test whether the compiler implicitly links with -lc since on some
 
16907
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16908
      # to ld, don't add -lc before -lgcc.
 
16909
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16910
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16911
      $rm conftest*
 
16912
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16913
 
 
16914
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16915
  (eval $ac_compile) 2>&5
 
16916
  ac_status=$?
 
16917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16918
  (exit $ac_status); } 2>conftest.err; then
 
16919
        soname=conftest
 
16920
        lib=conftest
 
16921
        libobjs=conftest.$ac_objext
 
16922
        deplibs=
 
16923
        wl=$lt_prog_compiler_wl_GCJ
 
16924
        pic_flag=$lt_prog_compiler_pic_GCJ
 
16925
        compiler_flags=-v
 
16926
        linker_flags=-v
 
16927
        verstring=
 
16928
        output_objdir=.
 
16929
        libname=conftest
 
16930
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16931
        allow_undefined_flag_GCJ=
 
16932
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16933
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16934
  ac_status=$?
 
16935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16936
  (exit $ac_status); }
 
16937
        then
 
16938
          archive_cmds_need_lc_GCJ=no
 
16939
        else
 
16940
          archive_cmds_need_lc_GCJ=yes
 
16941
        fi
 
16942
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16943
      else
 
16944
        cat conftest.err 1>&5
 
16945
      fi
 
16946
      $rm conftest*
 
16947
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16948
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16949
      ;;
 
16950
    esac
 
16951
  fi
 
16952
  ;;
 
16953
esac
 
16954
 
 
16955
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16956
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16957
library_names_spec=
 
16958
libname_spec='lib$name'
 
16959
soname_spec=
 
16960
shrext_cmds=".so"
 
16961
postinstall_cmds=
 
16962
postuninstall_cmds=
 
16963
finish_cmds=
 
16964
finish_eval=
 
16965
shlibpath_var=
 
16966
shlibpath_overrides_runpath=unknown
 
16967
version_type=none
 
16968
dynamic_linker="$host_os ld.so"
 
16969
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16970
if test "$GCC" = yes; then
 
16971
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16972
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16973
    # if the path contains ";" then we assume it to be the separator
 
16974
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16975
    # assumed that no part of a normal pathname contains ";" but that should
 
16976
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16977
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16978
  else
 
16979
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16980
  fi
 
16981
else
 
16982
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16983
fi
 
16984
need_lib_prefix=unknown
 
16985
hardcode_into_libs=no
 
16986
 
 
16987
# when you set need_version to no, make sure it does not cause -set_version
 
16988
# flags to be left without arguments
 
16989
need_version=unknown
 
16990
 
 
16991
case $host_os in
 
16992
aix3*)
 
16993
  version_type=linux
 
16994
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16995
  shlibpath_var=LIBPATH
 
16996
 
 
16997
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16998
  soname_spec='${libname}${release}${shared_ext}$major'
 
16999
  ;;
 
17000
 
 
17001
aix4* | aix5*)
 
17002
  version_type=linux
 
17003
  need_lib_prefix=no
 
17004
  need_version=no
 
17005
  hardcode_into_libs=yes
 
17006
  if test "$host_cpu" = ia64; then
 
17007
    # AIX 5 supports IA64
 
17008
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17009
    shlibpath_var=LD_LIBRARY_PATH
 
17010
  else
 
17011
    # With GCC up to 2.95.x, collect2 would create an import file
 
17012
    # for dependence libraries.  The import file would start with
 
17013
    # the line `#! .'.  This would cause the generated library to
 
17014
    # depend on `.', always an invalid library.  This was fixed in
 
17015
    # development snapshots of GCC prior to 3.0.
 
17016
    case $host_os in
 
17017
      aix4 | aix4.[01] | aix4.[01].*)
 
17018
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17019
           echo ' yes '
 
17020
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17021
        :
 
17022
      else
 
17023
        can_build_shared=no
 
17024
      fi
 
17025
      ;;
 
17026
    esac
 
17027
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17028
    # soname into executable. Probably we can add versioning support to
 
17029
    # collect2, so additional links can be useful in future.
 
17030
    if test "$aix_use_runtimelinking" = yes; then
 
17031
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17032
      # instead of lib<name>.a to let people know that these are not
 
17033
      # typical AIX shared libraries.
 
17034
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17035
    else
 
17036
      # We preserve .a as extension for shared libraries through AIX4.2
 
17037
      # and later when we are not doing run time linking.
 
17038
      library_names_spec='${libname}${release}.a $libname.a'
 
17039
      soname_spec='${libname}${release}${shared_ext}$major'
 
17040
    fi
 
17041
    shlibpath_var=LIBPATH
 
17042
  fi
 
17043
  ;;
 
17044
 
 
17045
amigaos*)
 
17046
  library_names_spec='$libname.ixlibrary $libname.a'
 
17047
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17048
  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'
 
17049
  ;;
 
17050
 
 
17051
beos*)
 
17052
  library_names_spec='${libname}${shared_ext}'
 
17053
  dynamic_linker="$host_os ld.so"
 
17054
  shlibpath_var=LIBRARY_PATH
 
17055
  ;;
 
17056
 
 
17057
bsdi[45]*)
 
17058
  version_type=linux
 
17059
  need_version=no
 
17060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17061
  soname_spec='${libname}${release}${shared_ext}$major'
 
17062
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17063
  shlibpath_var=LD_LIBRARY_PATH
 
17064
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17065
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17066
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17067
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17068
  # libtool to hard-code these into programs
 
17069
  ;;
 
17070
 
 
17071
cygwin* | mingw* | pw32*)
 
17072
  version_type=windows
 
17073
  shrext_cmds=".dll"
 
17074
  need_version=no
 
17075
  need_lib_prefix=no
 
17076
 
 
17077
  case $GCC,$host_os in
 
17078
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17079
    library_names_spec='$libname.dll.a'
 
17080
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17081
    postinstall_cmds='base_file=`basename \${file}`~
 
17082
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17083
      dldir=$destdir/`dirname \$dlpath`~
 
17084
      test -d \$dldir || mkdir -p \$dldir~
 
17085
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17086
      chmod a+x \$dldir/$dlname'
 
17087
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17088
      dlpath=$dir/\$dldll~
 
17089
       $rm \$dlpath'
 
17090
    shlibpath_overrides_runpath=yes
 
17091
 
 
17092
    case $host_os in
 
17093
    cygwin*)
 
17094
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17095
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17096
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17097
      ;;
 
17098
    mingw*)
 
17099
      # MinGW DLLs use traditional 'lib' prefix
 
17100
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17101
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17102
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17103
        # It is most probably a Windows format PATH printed by
 
17104
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17105
        # path with ; separators, and with drive letters. We can handle the
 
17106
        # drive letters (cygwin fileutils understands them), so leave them,
 
17107
        # especially as we might pass files found there to a mingw objdump,
 
17108
        # which wouldn't understand a cygwinified path. Ahh.
 
17109
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17110
      else
 
17111
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17112
      fi
 
17113
      ;;
 
17114
    pw32*)
 
17115
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17116
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17117
      ;;
 
17118
    esac
 
17119
    ;;
 
17120
 
 
17121
  *)
 
17122
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17123
    ;;
 
17124
  esac
 
17125
  dynamic_linker='Win32 ld.exe'
 
17126
  # FIXME: first we should search . and the directory the executable is in
 
17127
  shlibpath_var=PATH
 
17128
  ;;
 
17129
 
 
17130
darwin* | rhapsody*)
 
17131
  dynamic_linker="$host_os dyld"
 
17132
  version_type=darwin
 
17133
  need_lib_prefix=no
 
17134
  need_version=no
 
17135
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17136
  soname_spec='${libname}${release}${major}$shared_ext'
 
17137
  shlibpath_overrides_runpath=yes
 
17138
  shlibpath_var=DYLD_LIBRARY_PATH
 
17139
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17140
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17141
  if test "$GCC" = yes; then
 
17142
    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"`
 
17143
  else
 
17144
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17145
  fi
 
17146
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17147
  ;;
 
17148
 
 
17149
dgux*)
 
17150
  version_type=linux
 
17151
  need_lib_prefix=no
 
17152
  need_version=no
 
17153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17154
  soname_spec='${libname}${release}${shared_ext}$major'
 
17155
  shlibpath_var=LD_LIBRARY_PATH
 
17156
  ;;
 
17157
 
 
17158
freebsd1*)
 
17159
  dynamic_linker=no
 
17160
  ;;
 
17161
 
 
17162
kfreebsd*-gnu)
 
17163
  version_type=linux
 
17164
  need_lib_prefix=no
 
17165
  need_version=no
 
17166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17167
  soname_spec='${libname}${release}${shared_ext}$major'
 
17168
  shlibpath_var=LD_LIBRARY_PATH
 
17169
  shlibpath_overrides_runpath=no
 
17170
  hardcode_into_libs=yes
 
17171
  dynamic_linker='GNU ld.so'
 
17172
  ;;
 
17173
 
 
17174
freebsd* | dragonfly*)
 
17175
  # DragonFly does not have aout.  When/if they implement a new
 
17176
  # versioning mechanism, adjust this.
 
17177
  if test -x /usr/bin/objformat; then
 
17178
    objformat=`/usr/bin/objformat`
 
17179
  else
 
17180
    case $host_os in
 
17181
    freebsd[123]*) objformat=aout ;;
 
17182
    *) objformat=elf ;;
 
17183
    esac
 
17184
  fi
 
17185
  version_type=freebsd-$objformat
 
17186
  case $version_type in
 
17187
    freebsd-elf*)
 
17188
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17189
      need_version=no
 
17190
      need_lib_prefix=no
 
17191
      ;;
 
17192
    freebsd-*)
 
17193
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17194
      need_version=yes
 
17195
      ;;
 
17196
  esac
 
17197
  shlibpath_var=LD_LIBRARY_PATH
 
17198
  case $host_os in
 
17199
  freebsd2*)
 
17200
    shlibpath_overrides_runpath=yes
 
17201
    ;;
 
17202
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17203
    shlibpath_overrides_runpath=yes
 
17204
    hardcode_into_libs=yes
 
17205
    ;;
 
17206
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17207
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17208
    shlibpath_overrides_runpath=no
 
17209
    hardcode_into_libs=yes
 
17210
    ;;
 
17211
  freebsd*) # from 4.6 on
 
17212
    shlibpath_overrides_runpath=yes
 
17213
    hardcode_into_libs=yes
 
17214
    ;;
 
17215
  esac
 
17216
  ;;
 
17217
 
 
17218
gnu*)
 
17219
  version_type=linux
 
17220
  need_lib_prefix=no
 
17221
  need_version=no
 
17222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17223
  soname_spec='${libname}${release}${shared_ext}$major'
 
17224
  shlibpath_var=LD_LIBRARY_PATH
 
17225
  hardcode_into_libs=yes
 
17226
  ;;
 
17227
 
 
17228
hpux9* | hpux10* | hpux11*)
 
17229
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17230
  # link against other versions.
 
17231
  version_type=sunos
 
17232
  need_lib_prefix=no
 
17233
  need_version=no
 
17234
  case $host_cpu in
 
17235
  ia64*)
 
17236
    shrext_cmds='.so'
 
17237
    hardcode_into_libs=yes
 
17238
    dynamic_linker="$host_os dld.so"
 
17239
    shlibpath_var=LD_LIBRARY_PATH
 
17240
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17242
    soname_spec='${libname}${release}${shared_ext}$major'
 
17243
    if test "X$HPUX_IA64_MODE" = X32; then
 
17244
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17245
    else
 
17246
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17247
    fi
 
17248
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17249
    ;;
 
17250
   hppa*64*)
 
17251
     shrext_cmds='.sl'
 
17252
     hardcode_into_libs=yes
 
17253
     dynamic_linker="$host_os dld.sl"
 
17254
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17255
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17256
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17257
     soname_spec='${libname}${release}${shared_ext}$major'
 
17258
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17259
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17260
     ;;
 
17261
   *)
 
17262
    shrext_cmds='.sl'
 
17263
    dynamic_linker="$host_os dld.sl"
 
17264
    shlibpath_var=SHLIB_PATH
 
17265
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17266
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17267
    soname_spec='${libname}${release}${shared_ext}$major'
 
17268
    ;;
 
17269
  esac
 
17270
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17271
  postinstall_cmds='chmod 555 $lib'
 
17272
  ;;
 
17273
 
 
17274
interix3*)
 
17275
  version_type=linux
 
17276
  need_lib_prefix=no
 
17277
  need_version=no
 
17278
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17279
  soname_spec='${libname}${release}${shared_ext}$major'
 
17280
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17281
  shlibpath_var=LD_LIBRARY_PATH
 
17282
  shlibpath_overrides_runpath=no
 
17283
  hardcode_into_libs=yes
 
17284
  ;;
 
17285
 
 
17286
irix5* | irix6* | nonstopux*)
 
17287
  case $host_os in
 
17288
    nonstopux*) version_type=nonstopux ;;
 
17289
    *)
 
17290
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17291
                version_type=linux
 
17292
        else
 
17293
                version_type=irix
 
17294
        fi ;;
 
17295
  esac
 
17296
  need_lib_prefix=no
 
17297
  need_version=no
 
17298
  soname_spec='${libname}${release}${shared_ext}$major'
 
17299
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17300
  case $host_os in
 
17301
  irix5* | nonstopux*)
 
17302
    libsuff= shlibsuff=
 
17303
    ;;
 
17304
  *)
 
17305
    case $LD in # libtool.m4 will add one of these switches to LD
 
17306
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17307
      libsuff= shlibsuff= libmagic=32-bit;;
 
17308
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17309
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17310
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17311
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17312
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17313
    esac
 
17314
    ;;
 
17315
  esac
 
17316
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17317
  shlibpath_overrides_runpath=no
 
17318
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17319
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17320
  hardcode_into_libs=yes
 
17321
  ;;
 
17322
 
 
17323
# No shared lib support for Linux oldld, aout, or coff.
 
17324
linux*oldld* | linux*aout* | linux*coff*)
 
17325
  dynamic_linker=no
 
17326
  ;;
 
17327
 
 
17328
# This must be Linux ELF.
 
17329
linux*)
 
17330
  version_type=linux
 
17331
  need_lib_prefix=no
 
17332
  need_version=no
 
17333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17334
  soname_spec='${libname}${release}${shared_ext}$major'
 
17335
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17336
  shlibpath_var=LD_LIBRARY_PATH
 
17337
  shlibpath_overrides_runpath=no
 
17338
  # This implies no fast_install, which is unacceptable.
 
17339
  # Some rework will be needed to allow for fast_install
 
17340
  # before this can be enabled.
 
17341
  hardcode_into_libs=yes
 
17342
 
 
17343
  # Append ld.so.conf contents to the search path
 
17344
  if test -f /etc/ld.so.conf; then
 
17345
    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' ' '`
 
17346
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17347
  fi
 
17348
 
 
17349
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17350
  # powerpc, because MkLinux only supported shared libraries with the
 
17351
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17352
  # most powerpc-linux boxes support dynamic linking these days and
 
17353
  # people can always --disable-shared, the test was removed, and we
 
17354
  # assume the GNU/Linux dynamic linker is in use.
 
17355
  dynamic_linker='GNU/Linux ld.so'
 
17356
  ;;
 
17357
 
 
17358
knetbsd*-gnu)
 
17359
  version_type=linux
 
17360
  need_lib_prefix=no
 
17361
  need_version=no
 
17362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17363
  soname_spec='${libname}${release}${shared_ext}$major'
 
17364
  shlibpath_var=LD_LIBRARY_PATH
 
17365
  shlibpath_overrides_runpath=no
 
17366
  hardcode_into_libs=yes
 
17367
  dynamic_linker='GNU ld.so'
 
17368
  ;;
 
17369
 
 
17370
netbsd*)
 
17371
  version_type=sunos
 
17372
  need_lib_prefix=no
 
17373
  need_version=no
 
17374
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17375
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17376
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17377
    dynamic_linker='NetBSD (a.out) ld.so'
 
17378
  else
 
17379
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17380
    soname_spec='${libname}${release}${shared_ext}$major'
 
17381
    dynamic_linker='NetBSD ld.elf_so'
 
17382
  fi
 
17383
  shlibpath_var=LD_LIBRARY_PATH
 
17384
  shlibpath_overrides_runpath=yes
 
17385
  hardcode_into_libs=yes
 
17386
  ;;
 
17387
 
 
17388
newsos6)
 
17389
  version_type=linux
 
17390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17391
  shlibpath_var=LD_LIBRARY_PATH
 
17392
  shlibpath_overrides_runpath=yes
 
17393
  ;;
 
17394
 
 
17395
nto-qnx*)
 
17396
  version_type=linux
 
17397
  need_lib_prefix=no
 
17398
  need_version=no
 
17399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17400
  soname_spec='${libname}${release}${shared_ext}$major'
 
17401
  shlibpath_var=LD_LIBRARY_PATH
 
17402
  shlibpath_overrides_runpath=yes
 
17403
  ;;
 
17404
 
 
17405
openbsd*)
 
17406
  version_type=sunos
 
17407
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17408
  need_lib_prefix=no
 
17409
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17410
  case $host_os in
 
17411
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17412
    *)                         need_version=no  ;;
 
17413
  esac
 
17414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17415
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17416
  shlibpath_var=LD_LIBRARY_PATH
 
17417
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17418
    case $host_os in
 
17419
      openbsd2.[89] | openbsd2.[89].*)
 
17420
        shlibpath_overrides_runpath=no
 
17421
        ;;
 
17422
      *)
 
17423
        shlibpath_overrides_runpath=yes
 
17424
        ;;
 
17425
      esac
 
17426
  else
 
17427
    shlibpath_overrides_runpath=yes
 
17428
  fi
 
17429
  ;;
 
17430
 
 
17431
os2*)
 
17432
  libname_spec='$name'
 
17433
  shrext_cmds=".dll"
 
17434
  need_lib_prefix=no
 
17435
  library_names_spec='$libname${shared_ext} $libname.a'
 
17436
  dynamic_linker='OS/2 ld.exe'
 
17437
  shlibpath_var=LIBPATH
 
17438
  ;;
 
17439
 
 
17440
osf3* | osf4* | osf5*)
 
17441
  version_type=osf
 
17442
  need_lib_prefix=no
 
17443
  need_version=no
 
17444
  soname_spec='${libname}${release}${shared_ext}$major'
 
17445
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17446
  shlibpath_var=LD_LIBRARY_PATH
 
17447
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17448
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17449
  ;;
 
17450
 
 
17451
solaris*)
 
17452
  version_type=linux
 
17453
  need_lib_prefix=no
 
17454
  need_version=no
 
17455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17456
  soname_spec='${libname}${release}${shared_ext}$major'
 
17457
  shlibpath_var=LD_LIBRARY_PATH
 
17458
  shlibpath_overrides_runpath=yes
 
17459
  hardcode_into_libs=yes
 
17460
  # ldd complains unless libraries are executable
 
17461
  postinstall_cmds='chmod +x $lib'
 
17462
  ;;
 
17463
 
 
17464
sunos4*)
 
17465
  version_type=sunos
 
17466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17467
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17468
  shlibpath_var=LD_LIBRARY_PATH
 
17469
  shlibpath_overrides_runpath=yes
 
17470
  if test "$with_gnu_ld" = yes; then
 
17471
    need_lib_prefix=no
 
17472
  fi
 
17473
  need_version=yes
 
17474
  ;;
 
17475
 
 
17476
sysv4 | sysv4.3*)
 
17477
  version_type=linux
 
17478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17479
  soname_spec='${libname}${release}${shared_ext}$major'
 
17480
  shlibpath_var=LD_LIBRARY_PATH
 
17481
  case $host_vendor in
 
17482
    sni)
 
17483
      shlibpath_overrides_runpath=no
 
17484
      need_lib_prefix=no
 
17485
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17486
      runpath_var=LD_RUN_PATH
 
17487
      ;;
 
17488
    siemens)
 
17489
      need_lib_prefix=no
 
17490
      ;;
 
17491
    motorola)
 
17492
      need_lib_prefix=no
 
17493
      need_version=no
 
17494
      shlibpath_overrides_runpath=no
 
17495
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17496
      ;;
 
17497
  esac
 
17498
  ;;
 
17499
 
 
17500
sysv4*MP*)
 
17501
  if test -d /usr/nec ;then
 
17502
    version_type=linux
 
17503
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17504
    soname_spec='$libname${shared_ext}.$major'
 
17505
    shlibpath_var=LD_LIBRARY_PATH
 
17506
  fi
 
17507
  ;;
 
17508
 
 
17509
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17510
  version_type=freebsd-elf
 
17511
  need_lib_prefix=no
 
17512
  need_version=no
 
17513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17514
  soname_spec='${libname}${release}${shared_ext}$major'
 
17515
  shlibpath_var=LD_LIBRARY_PATH
 
17516
  hardcode_into_libs=yes
 
17517
  if test "$with_gnu_ld" = yes; then
 
17518
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17519
    shlibpath_overrides_runpath=no
 
17520
  else
 
17521
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17522
    shlibpath_overrides_runpath=yes
 
17523
    case $host_os in
 
17524
      sco3.2v5*)
 
17525
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17526
        ;;
 
17527
    esac
 
17528
  fi
 
17529
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17530
  ;;
 
17531
 
 
17532
uts4*)
 
17533
  version_type=linux
 
17534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17535
  soname_spec='${libname}${release}${shared_ext}$major'
 
17536
  shlibpath_var=LD_LIBRARY_PATH
 
17537
  ;;
 
17538
 
 
17539
*)
 
17540
  dynamic_linker=no
 
17541
  ;;
 
17542
esac
 
17543
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17544
echo "${ECHO_T}$dynamic_linker" >&6
 
17545
test "$dynamic_linker" = no && can_build_shared=no
 
17546
 
 
17547
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17548
if test "$GCC" = yes; then
 
17549
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17550
fi
 
17551
 
 
17552
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17553
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17554
hardcode_action_GCJ=
 
17555
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17556
   test -n "$runpath_var_GCJ" || \
 
17557
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17558
 
 
17559
  # We can hardcode non-existant directories.
 
17560
  if test "$hardcode_direct_GCJ" != no &&
 
17561
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17562
     # have to relink, otherwise we might link with an installed library
 
17563
     # when we should be linking with a yet-to-be-installed one
 
17564
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17565
     test "$hardcode_minus_L_GCJ" != no; then
 
17566
    # Linking always hardcodes the temporary library directory.
 
17567
    hardcode_action_GCJ=relink
 
17568
  else
 
17569
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17570
    hardcode_action_GCJ=immediate
 
17571
  fi
 
17572
else
 
17573
  # We cannot hardcode anything, or else we can only hardcode existing
 
17574
  # directories.
 
17575
  hardcode_action_GCJ=unsupported
 
17576
fi
 
17577
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17578
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17579
 
 
17580
if test "$hardcode_action_GCJ" = relink; then
 
17581
  # Fast installation is not supported
 
17582
  enable_fast_install=no
 
17583
elif test "$shlibpath_overrides_runpath" = yes ||
 
17584
     test "$enable_shared" = no; then
 
17585
  # Fast installation is not necessary
 
17586
  enable_fast_install=needless
 
17587
fi
 
17588
 
 
17589
 
 
17590
# The else clause should only fire when bootstrapping the
 
17591
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17592
# with your package, and you will get complaints that there are
 
17593
# no rules to generate ltmain.sh.
 
17594
if test -f "$ltmain"; then
 
17595
  # See if we are running on zsh, and set the options which allow our commands through
 
17596
  # without removal of \ escapes.
 
17597
  if test -n "${ZSH_VERSION+set}" ; then
 
17598
    setopt NO_GLOB_SUBST
 
17599
  fi
 
17600
  # Now quote all the things that may contain metacharacters while being
 
17601
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17602
  # variables and quote the copies for generation of the libtool script.
 
17603
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17604
    SED SHELL STRIP \
 
17605
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17606
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17607
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17608
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17609
    lt_cv_sys_global_symbol_to_c_name_address \
 
17610
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17611
    old_postinstall_cmds old_postuninstall_cmds \
 
17612
    compiler_GCJ \
 
17613
    CC_GCJ \
 
17614
    LD_GCJ \
 
17615
    lt_prog_compiler_wl_GCJ \
 
17616
    lt_prog_compiler_pic_GCJ \
 
17617
    lt_prog_compiler_static_GCJ \
 
17618
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17619
    export_dynamic_flag_spec_GCJ \
 
17620
    thread_safe_flag_spec_GCJ \
 
17621
    whole_archive_flag_spec_GCJ \
 
17622
    enable_shared_with_static_runtimes_GCJ \
 
17623
    old_archive_cmds_GCJ \
 
17624
    old_archive_from_new_cmds_GCJ \
 
17625
    predep_objects_GCJ \
 
17626
    postdep_objects_GCJ \
 
17627
    predeps_GCJ \
 
17628
    postdeps_GCJ \
 
17629
    compiler_lib_search_path_GCJ \
 
17630
    archive_cmds_GCJ \
 
17631
    archive_expsym_cmds_GCJ \
 
17632
    postinstall_cmds_GCJ \
 
17633
    postuninstall_cmds_GCJ \
 
17634
    old_archive_from_expsyms_cmds_GCJ \
 
17635
    allow_undefined_flag_GCJ \
 
17636
    no_undefined_flag_GCJ \
 
17637
    export_symbols_cmds_GCJ \
 
17638
    hardcode_libdir_flag_spec_GCJ \
 
17639
    hardcode_libdir_flag_spec_ld_GCJ \
 
17640
    hardcode_libdir_separator_GCJ \
 
17641
    hardcode_automatic_GCJ \
 
17642
    module_cmds_GCJ \
 
17643
    module_expsym_cmds_GCJ \
 
17644
    lt_cv_prog_compiler_c_o_GCJ \
 
17645
    exclude_expsyms_GCJ \
 
17646
    include_expsyms_GCJ; do
 
17647
 
 
17648
    case $var in
 
17649
    old_archive_cmds_GCJ | \
 
17650
    old_archive_from_new_cmds_GCJ | \
 
17651
    archive_cmds_GCJ | \
 
17652
    archive_expsym_cmds_GCJ | \
 
17653
    module_cmds_GCJ | \
 
17654
    module_expsym_cmds_GCJ | \
 
17655
    old_archive_from_expsyms_cmds_GCJ | \
 
17656
    export_symbols_cmds_GCJ | \
 
17657
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17658
    postinstall_cmds | postuninstall_cmds | \
 
17659
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17660
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17661
      # Double-quote double-evaled strings.
 
17662
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17663
      ;;
 
17664
    *)
 
17665
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17666
      ;;
 
17667
    esac
 
17668
  done
 
17669
 
 
17670
  case $lt_echo in
 
17671
  *'\$0 --fallback-echo"')
 
17672
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17673
    ;;
 
17674
  esac
 
17675
 
 
17676
cfgfile="$ofile"
 
17677
 
 
17678
  cat <<__EOF__ >> "$cfgfile"
 
17679
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17680
 
 
17681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17682
 
 
17683
# Shell to use when invoking shell scripts.
 
17684
SHELL=$lt_SHELL
 
17685
 
 
17686
# Whether or not to build shared libraries.
 
17687
build_libtool_libs=$enable_shared
 
17688
 
 
17689
# Whether or not to build static libraries.
 
17690
build_old_libs=$enable_static
 
17691
 
 
17692
# Whether or not to add -lc for building shared libraries.
 
17693
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17694
 
 
17695
# Whether or not to disallow shared libs when runtime libs are static
 
17696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
17697
 
 
17698
# Whether or not to optimize for fast installation.
 
17699
fast_install=$enable_fast_install
 
17700
 
 
17701
# The host system.
 
17702
host_alias=$host_alias
 
17703
host=$host
 
17704
host_os=$host_os
 
17705
 
 
17706
# The build system.
 
17707
build_alias=$build_alias
 
17708
build=$build
 
17709
build_os=$build_os
 
17710
 
 
17711
# An echo program that does not interpret backslashes.
 
17712
echo=$lt_echo
 
17713
 
 
17714
# The archiver.
 
17715
AR=$lt_AR
 
17716
AR_FLAGS=$lt_AR_FLAGS
 
17717
 
 
17718
# A C compiler.
 
17719
LTCC=$lt_LTCC
 
17720
 
 
17721
# LTCC compiler flags.
 
17722
LTCFLAGS=$lt_LTCFLAGS
 
17723
 
 
17724
# A language-specific compiler.
 
17725
CC=$lt_compiler_GCJ
 
17726
 
 
17727
# Is the compiler the GNU C compiler?
 
17728
with_gcc=$GCC_GCJ
 
17729
 
 
17730
# An ERE matcher.
 
17731
EGREP=$lt_EGREP
 
17732
 
 
17733
# The linker used to build libraries.
 
17734
LD=$lt_LD_GCJ
 
17735
 
 
17736
# Whether we need hard or soft links.
 
17737
LN_S=$lt_LN_S
 
17738
 
 
17739
# A BSD-compatible nm program.
 
17740
NM=$lt_NM
 
17741
 
 
17742
# A symbol stripping program
 
17743
STRIP=$lt_STRIP
 
17744
 
 
17745
# Used to examine libraries when file_magic_cmd begins "file"
 
17746
MAGIC_CMD=$MAGIC_CMD
 
17747
 
 
17748
# Used on cygwin: DLL creation program.
 
17749
DLLTOOL="$DLLTOOL"
 
17750
 
 
17751
# Used on cygwin: object dumper.
 
17752
OBJDUMP="$OBJDUMP"
 
17753
 
 
17754
# Used on cygwin: assembler.
 
17755
AS="$AS"
 
17756
 
 
17757
# The name of the directory that contains temporary libtool files.
 
17758
objdir=$objdir
 
17759
 
 
17760
# How to create reloadable object files.
 
17761
reload_flag=$lt_reload_flag
 
17762
reload_cmds=$lt_reload_cmds
 
17763
 
 
17764
# How to pass a linker flag through the compiler.
 
17765
wl=$lt_lt_prog_compiler_wl_GCJ
 
17766
 
 
17767
# Object file suffix (normally "o").
 
17768
objext="$ac_objext"
 
17769
 
 
17770
# Old archive suffix (normally "a").
 
17771
libext="$libext"
 
17772
 
 
17773
# Shared library suffix (normally ".so").
 
17774
shrext_cmds='$shrext_cmds'
 
17775
 
 
17776
# Executable file suffix (normally "").
 
17777
exeext="$exeext"
 
17778
 
 
17779
# Additional compiler flags for building library objects.
 
17780
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
17781
pic_mode=$pic_mode
 
17782
 
 
17783
# What is the maximum length of a command?
 
17784
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17785
 
 
17786
# Does compiler simultaneously support -c and -o options?
 
17787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
17788
 
 
17789
# Must we lock files when doing compilation?
 
17790
need_locks=$lt_need_locks
 
17791
 
 
17792
# Do we need the lib prefix for modules?
 
17793
need_lib_prefix=$need_lib_prefix
 
17794
 
 
17795
# Do we need a version for libraries?
 
17796
need_version=$need_version
 
17797
 
 
17798
# Whether dlopen is supported.
 
17799
dlopen_support=$enable_dlopen
 
17800
 
 
17801
# Whether dlopen of programs is supported.
 
17802
dlopen_self=$enable_dlopen_self
 
17803
 
 
17804
# Whether dlopen of statically linked programs is supported.
 
17805
dlopen_self_static=$enable_dlopen_self_static
 
17806
 
 
17807
# Compiler flag to prevent dynamic linking.
 
17808
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
17809
 
 
17810
# Compiler flag to turn off builtin functions.
 
17811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
17812
 
 
17813
# Compiler flag to allow reflexive dlopens.
 
17814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
17815
 
 
17816
# Compiler flag to generate shared objects directly from archives.
 
17817
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
17818
 
 
17819
# Compiler flag to generate thread-safe objects.
 
17820
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
17821
 
 
17822
# Library versioning type.
 
17823
version_type=$version_type
 
17824
 
 
17825
# Format of library name prefix.
 
17826
libname_spec=$lt_libname_spec
 
17827
 
 
17828
# List of archive names.  First name is the real one, the rest are links.
 
17829
# The last name is the one that the linker finds with -lNAME.
 
17830
library_names_spec=$lt_library_names_spec
 
17831
 
 
17832
# The coded name of the library, if different from the real name.
 
17833
soname_spec=$lt_soname_spec
 
17834
 
 
17835
# Commands used to build and install an old-style archive.
 
17836
RANLIB=$lt_RANLIB
 
17837
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
17838
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17840
 
 
17841
# Create an old-style archive from a shared archive.
 
17842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
17843
 
 
17844
# Create a temporary old-style archive to link instead of a shared archive.
 
17845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
17846
 
 
17847
# Commands used to build and install a shared archive.
 
17848
archive_cmds=$lt_archive_cmds_GCJ
 
17849
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
17850
postinstall_cmds=$lt_postinstall_cmds
 
17851
postuninstall_cmds=$lt_postuninstall_cmds
 
17852
 
 
17853
# Commands used to build a loadable module (assumed same as above if empty)
 
17854
module_cmds=$lt_module_cmds_GCJ
 
17855
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
17856
 
 
17857
# Commands to strip libraries.
 
17858
old_striplib=$lt_old_striplib
 
17859
striplib=$lt_striplib
 
17860
 
 
17861
# Dependencies to place before the objects being linked to create a
 
17862
# shared library.
 
17863
predep_objects=$lt_predep_objects_GCJ
 
17864
 
 
17865
# Dependencies to place after the objects being linked to create a
 
17866
# shared library.
 
17867
postdep_objects=$lt_postdep_objects_GCJ
 
17868
 
 
17869
# Dependencies to place before the objects being linked to create a
 
17870
# shared library.
 
17871
predeps=$lt_predeps_GCJ
 
17872
 
 
17873
# Dependencies to place after the objects being linked to create a
 
17874
# shared library.
 
17875
postdeps=$lt_postdeps_GCJ
 
17876
 
 
17877
# The library search path used internally by the compiler when linking
 
17878
# a shared library.
 
17879
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
17880
 
 
17881
# Method to check whether dependent libraries are shared objects.
 
17882
deplibs_check_method=$lt_deplibs_check_method
 
17883
 
 
17884
# Command to use when deplibs_check_method == file_magic.
 
17885
file_magic_cmd=$lt_file_magic_cmd
 
17886
 
 
17887
# Flag that allows shared libraries with undefined symbols to be built.
 
17888
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
17889
 
 
17890
# Flag that forces no undefined symbols.
 
17891
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
17892
 
 
17893
# Commands used to finish a libtool library installation in a directory.
 
17894
finish_cmds=$lt_finish_cmds
 
17895
 
 
17896
# Same as above, but a single script fragment to be evaled but not shown.
 
17897
finish_eval=$lt_finish_eval
 
17898
 
 
17899
# Take the output of nm and produce a listing of raw symbols and C names.
 
17900
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17901
 
 
17902
# Transform the output of nm in a proper C declaration
 
17903
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17904
 
 
17905
# Transform the output of nm in a C name address pair
 
17906
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17907
 
 
17908
# This is the shared library runtime path variable.
 
17909
runpath_var=$runpath_var
 
17910
 
 
17911
# This is the shared library path variable.
 
17912
shlibpath_var=$shlibpath_var
 
17913
 
 
17914
# Is shlibpath searched before the hard-coded library search path?
 
17915
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17916
 
 
17917
# How to hardcode a shared library path into an executable.
 
17918
hardcode_action=$hardcode_action_GCJ
 
17919
 
 
17920
# Whether we should hardcode library paths into libraries.
 
17921
hardcode_into_libs=$hardcode_into_libs
 
17922
 
 
17923
# Flag to hardcode \$libdir into a binary during linking.
 
17924
# This must work even if \$libdir does not exist.
 
17925
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
17926
 
 
17927
# If ld is used when linking, flag to hardcode \$libdir into
 
17928
# a binary during linking. This must work even if \$libdir does
 
17929
# not exist.
 
17930
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
17931
 
 
17932
# Whether we need a single -rpath flag with a separated argument.
 
17933
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
17934
 
 
17935
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17936
# resulting binary.
 
17937
hardcode_direct=$hardcode_direct_GCJ
 
17938
 
 
17939
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17940
# resulting binary.
 
17941
hardcode_minus_L=$hardcode_minus_L_GCJ
 
17942
 
 
17943
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17944
# the resulting binary.
 
17945
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
17946
 
 
17947
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17948
# and all subsequent libraries and executables linked against it.
 
17949
hardcode_automatic=$hardcode_automatic_GCJ
 
17950
 
 
17951
# Variables whose values should be saved in libtool wrapper scripts and
 
17952
# restored at relink time.
 
17953
variables_saved_for_relink="$variables_saved_for_relink"
 
17954
 
 
17955
# Whether libtool must link a program against all its dependency libraries.
 
17956
link_all_deplibs=$link_all_deplibs_GCJ
 
17957
 
 
17958
# Compile-time system search path for libraries
 
17959
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17960
 
 
17961
# Run-time system search path for libraries
 
17962
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17963
 
 
17964
# Fix the shell variable \$srcfile for the compiler.
 
17965
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
17966
 
 
17967
# Set to yes if exported symbols are required.
 
17968
always_export_symbols=$always_export_symbols_GCJ
 
17969
 
 
17970
# The commands to list exported symbols.
 
17971
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
17972
 
 
17973
# The commands to extract the exported symbol list from a shared archive.
 
17974
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17975
 
 
17976
# Symbols that should not be listed in the preloaded symbols.
 
17977
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
17978
 
 
17979
# Symbols that must always be exported.
 
17980
include_expsyms=$lt_include_expsyms_GCJ
 
17981
 
 
17982
# ### END LIBTOOL TAG CONFIG: $tagname
 
17983
 
 
17984
__EOF__
 
17985
 
 
17986
 
 
17987
else
 
17988
  # If there is no Makefile yet, we rely on a make rule to execute
 
17989
  # `config.status --recheck' to rerun these tests and create the
 
17990
  # libtool script then.
 
17991
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17992
  if test -f "$ltmain_in"; then
 
17993
    test -f Makefile && make "$ltmain"
 
17994
  fi
 
17995
fi
 
17996
 
 
17997
 
 
17998
ac_ext=c
 
17999
ac_cpp='$CPP $CPPFLAGS'
 
18000
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18001
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18002
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18003
 
 
18004
CC="$lt_save_CC"
 
18005
 
 
18006
        else
 
18007
          tagname=""
 
18008
        fi
 
18009
        ;;
 
18010
 
 
18011
      RC)
 
18012
 
 
18013
 
 
18014
 
 
18015
# Source file extension for RC test sources.
 
18016
ac_ext=rc
 
18017
 
 
18018
# Object file extension for compiled RC test sources.
 
18019
objext=o
 
18020
objext_RC=$objext
 
18021
 
 
18022
# Code to be used in simple compile tests
 
18023
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18024
 
 
18025
# Code to be used in simple link tests
 
18026
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18027
 
 
18028
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18029
 
 
18030
# If no C compiler was specified, use CC.
 
18031
LTCC=${LTCC-"$CC"}
 
18032
 
 
18033
# If no C compiler flags were specified, use CFLAGS.
 
18034
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18035
 
 
18036
# Allow CC to be a program name with arguments.
 
18037
compiler=$CC
 
18038
 
 
18039
 
 
18040
# save warnings/boilerplate of simple test code
 
18041
ac_outfile=conftest.$ac_objext
 
18042
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18043
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18044
_lt_compiler_boilerplate=`cat conftest.err`
 
18045
$rm conftest*
 
18046
 
 
18047
ac_outfile=conftest.$ac_objext
 
18048
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18049
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18050
_lt_linker_boilerplate=`cat conftest.err`
 
18051
$rm conftest*
 
18052
 
 
18053
 
 
18054
# Allow CC to be a program name with arguments.
 
18055
lt_save_CC="$CC"
 
18056
CC=${RC-"windres"}
 
18057
compiler=$CC
 
18058
compiler_RC=$CC
 
18059
for cc_temp in $compiler""; do
 
18060
  case $cc_temp in
 
18061
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18062
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18063
    \-*) ;;
 
18064
    *) break;;
 
18065
  esac
 
18066
done
 
18067
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18068
 
 
18069
lt_cv_prog_compiler_c_o_RC=yes
 
18070
 
 
18071
# The else clause should only fire when bootstrapping the
 
18072
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18073
# with your package, and you will get complaints that there are
 
18074
# no rules to generate ltmain.sh.
 
18075
if test -f "$ltmain"; then
 
18076
  # See if we are running on zsh, and set the options which allow our commands through
 
18077
  # without removal of \ escapes.
 
18078
  if test -n "${ZSH_VERSION+set}" ; then
 
18079
    setopt NO_GLOB_SUBST
 
18080
  fi
 
18081
  # Now quote all the things that may contain metacharacters while being
 
18082
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18083
  # variables and quote the copies for generation of the libtool script.
 
18084
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18085
    SED SHELL STRIP \
 
18086
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18087
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18088
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18089
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18090
    lt_cv_sys_global_symbol_to_c_name_address \
 
18091
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18092
    old_postinstall_cmds old_postuninstall_cmds \
 
18093
    compiler_RC \
 
18094
    CC_RC \
 
18095
    LD_RC \
 
18096
    lt_prog_compiler_wl_RC \
 
18097
    lt_prog_compiler_pic_RC \
 
18098
    lt_prog_compiler_static_RC \
 
18099
    lt_prog_compiler_no_builtin_flag_RC \
 
18100
    export_dynamic_flag_spec_RC \
 
18101
    thread_safe_flag_spec_RC \
 
18102
    whole_archive_flag_spec_RC \
 
18103
    enable_shared_with_static_runtimes_RC \
 
18104
    old_archive_cmds_RC \
 
18105
    old_archive_from_new_cmds_RC \
 
18106
    predep_objects_RC \
 
18107
    postdep_objects_RC \
 
18108
    predeps_RC \
 
18109
    postdeps_RC \
 
18110
    compiler_lib_search_path_RC \
 
18111
    archive_cmds_RC \
 
18112
    archive_expsym_cmds_RC \
 
18113
    postinstall_cmds_RC \
 
18114
    postuninstall_cmds_RC \
 
18115
    old_archive_from_expsyms_cmds_RC \
 
18116
    allow_undefined_flag_RC \
 
18117
    no_undefined_flag_RC \
 
18118
    export_symbols_cmds_RC \
 
18119
    hardcode_libdir_flag_spec_RC \
 
18120
    hardcode_libdir_flag_spec_ld_RC \
 
18121
    hardcode_libdir_separator_RC \
 
18122
    hardcode_automatic_RC \
 
18123
    module_cmds_RC \
 
18124
    module_expsym_cmds_RC \
 
18125
    lt_cv_prog_compiler_c_o_RC \
 
18126
    exclude_expsyms_RC \
 
18127
    include_expsyms_RC; do
 
18128
 
 
18129
    case $var in
 
18130
    old_archive_cmds_RC | \
 
18131
    old_archive_from_new_cmds_RC | \
 
18132
    archive_cmds_RC | \
 
18133
    archive_expsym_cmds_RC | \
 
18134
    module_cmds_RC | \
 
18135
    module_expsym_cmds_RC | \
 
18136
    old_archive_from_expsyms_cmds_RC | \
 
18137
    export_symbols_cmds_RC | \
 
18138
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18139
    postinstall_cmds | postuninstall_cmds | \
 
18140
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18141
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18142
      # Double-quote double-evaled strings.
 
18143
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18144
      ;;
 
18145
    *)
 
18146
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18147
      ;;
 
18148
    esac
 
18149
  done
 
18150
 
 
18151
  case $lt_echo in
 
18152
  *'\$0 --fallback-echo"')
 
18153
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18154
    ;;
 
18155
  esac
 
18156
 
 
18157
cfgfile="$ofile"
 
18158
 
 
18159
  cat <<__EOF__ >> "$cfgfile"
 
18160
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18161
 
 
18162
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18163
 
 
18164
# Shell to use when invoking shell scripts.
 
18165
SHELL=$lt_SHELL
 
18166
 
 
18167
# Whether or not to build shared libraries.
 
18168
build_libtool_libs=$enable_shared
 
18169
 
 
18170
# Whether or not to build static libraries.
 
18171
build_old_libs=$enable_static
 
18172
 
 
18173
# Whether or not to add -lc for building shared libraries.
 
18174
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18175
 
 
18176
# Whether or not to disallow shared libs when runtime libs are static
 
18177
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18178
 
 
18179
# Whether or not to optimize for fast installation.
 
18180
fast_install=$enable_fast_install
 
18181
 
 
18182
# The host system.
 
18183
host_alias=$host_alias
 
18184
host=$host
 
18185
host_os=$host_os
 
18186
 
 
18187
# The build system.
 
18188
build_alias=$build_alias
 
18189
build=$build
 
18190
build_os=$build_os
 
18191
 
 
18192
# An echo program that does not interpret backslashes.
 
18193
echo=$lt_echo
 
18194
 
 
18195
# The archiver.
 
18196
AR=$lt_AR
 
18197
AR_FLAGS=$lt_AR_FLAGS
 
18198
 
 
18199
# A C compiler.
 
18200
LTCC=$lt_LTCC
 
18201
 
 
18202
# LTCC compiler flags.
 
18203
LTCFLAGS=$lt_LTCFLAGS
 
18204
 
 
18205
# A language-specific compiler.
 
18206
CC=$lt_compiler_RC
 
18207
 
 
18208
# Is the compiler the GNU C compiler?
 
18209
with_gcc=$GCC_RC
 
18210
 
 
18211
# An ERE matcher.
 
18212
EGREP=$lt_EGREP
 
18213
 
 
18214
# The linker used to build libraries.
 
18215
LD=$lt_LD_RC
 
18216
 
 
18217
# Whether we need hard or soft links.
 
18218
LN_S=$lt_LN_S
 
18219
 
 
18220
# A BSD-compatible nm program.
 
18221
NM=$lt_NM
 
18222
 
 
18223
# A symbol stripping program
 
18224
STRIP=$lt_STRIP
 
18225
 
 
18226
# Used to examine libraries when file_magic_cmd begins "file"
 
18227
MAGIC_CMD=$MAGIC_CMD
 
18228
 
 
18229
# Used on cygwin: DLL creation program.
 
18230
DLLTOOL="$DLLTOOL"
 
18231
 
 
18232
# Used on cygwin: object dumper.
 
18233
OBJDUMP="$OBJDUMP"
 
18234
 
 
18235
# Used on cygwin: assembler.
 
18236
AS="$AS"
 
18237
 
 
18238
# The name of the directory that contains temporary libtool files.
 
18239
objdir=$objdir
 
18240
 
 
18241
# How to create reloadable object files.
 
18242
reload_flag=$lt_reload_flag
 
18243
reload_cmds=$lt_reload_cmds
 
18244
 
 
18245
# How to pass a linker flag through the compiler.
 
18246
wl=$lt_lt_prog_compiler_wl_RC
 
18247
 
 
18248
# Object file suffix (normally "o").
 
18249
objext="$ac_objext"
 
18250
 
 
18251
# Old archive suffix (normally "a").
 
18252
libext="$libext"
 
18253
 
 
18254
# Shared library suffix (normally ".so").
 
18255
shrext_cmds='$shrext_cmds'
 
18256
 
 
18257
# Executable file suffix (normally "").
 
18258
exeext="$exeext"
 
18259
 
 
18260
# Additional compiler flags for building library objects.
 
18261
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18262
pic_mode=$pic_mode
 
18263
 
 
18264
# What is the maximum length of a command?
 
18265
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18266
 
 
18267
# Does compiler simultaneously support -c and -o options?
 
18268
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18269
 
 
18270
# Must we lock files when doing compilation?
 
18271
need_locks=$lt_need_locks
 
18272
 
 
18273
# Do we need the lib prefix for modules?
 
18274
need_lib_prefix=$need_lib_prefix
 
18275
 
 
18276
# Do we need a version for libraries?
 
18277
need_version=$need_version
 
18278
 
 
18279
# Whether dlopen is supported.
 
18280
dlopen_support=$enable_dlopen
 
18281
 
 
18282
# Whether dlopen of programs is supported.
 
18283
dlopen_self=$enable_dlopen_self
 
18284
 
 
18285
# Whether dlopen of statically linked programs is supported.
 
18286
dlopen_self_static=$enable_dlopen_self_static
 
18287
 
 
18288
# Compiler flag to prevent dynamic linking.
 
18289
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18290
 
 
18291
# Compiler flag to turn off builtin functions.
 
18292
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18293
 
 
18294
# Compiler flag to allow reflexive dlopens.
 
18295
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18296
 
 
18297
# Compiler flag to generate shared objects directly from archives.
 
18298
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18299
 
 
18300
# Compiler flag to generate thread-safe objects.
 
18301
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18302
 
 
18303
# Library versioning type.
 
18304
version_type=$version_type
 
18305
 
 
18306
# Format of library name prefix.
 
18307
libname_spec=$lt_libname_spec
 
18308
 
 
18309
# List of archive names.  First name is the real one, the rest are links.
 
18310
# The last name is the one that the linker finds with -lNAME.
 
18311
library_names_spec=$lt_library_names_spec
 
18312
 
 
18313
# The coded name of the library, if different from the real name.
 
18314
soname_spec=$lt_soname_spec
 
18315
 
 
18316
# Commands used to build and install an old-style archive.
 
18317
RANLIB=$lt_RANLIB
 
18318
old_archive_cmds=$lt_old_archive_cmds_RC
 
18319
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18320
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18321
 
 
18322
# Create an old-style archive from a shared archive.
 
18323
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18324
 
 
18325
# Create a temporary old-style archive to link instead of a shared archive.
 
18326
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18327
 
 
18328
# Commands used to build and install a shared archive.
 
18329
archive_cmds=$lt_archive_cmds_RC
 
18330
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18331
postinstall_cmds=$lt_postinstall_cmds
 
18332
postuninstall_cmds=$lt_postuninstall_cmds
 
18333
 
 
18334
# Commands used to build a loadable module (assumed same as above if empty)
 
18335
module_cmds=$lt_module_cmds_RC
 
18336
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18337
 
 
18338
# Commands to strip libraries.
 
18339
old_striplib=$lt_old_striplib
 
18340
striplib=$lt_striplib
 
18341
 
 
18342
# Dependencies to place before the objects being linked to create a
 
18343
# shared library.
 
18344
predep_objects=$lt_predep_objects_RC
 
18345
 
 
18346
# Dependencies to place after the objects being linked to create a
 
18347
# shared library.
 
18348
postdep_objects=$lt_postdep_objects_RC
 
18349
 
 
18350
# Dependencies to place before the objects being linked to create a
 
18351
# shared library.
 
18352
predeps=$lt_predeps_RC
 
18353
 
 
18354
# Dependencies to place after the objects being linked to create a
 
18355
# shared library.
 
18356
postdeps=$lt_postdeps_RC
 
18357
 
 
18358
# The library search path used internally by the compiler when linking
 
18359
# a shared library.
 
18360
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18361
 
 
18362
# Method to check whether dependent libraries are shared objects.
 
18363
deplibs_check_method=$lt_deplibs_check_method
 
18364
 
 
18365
# Command to use when deplibs_check_method == file_magic.
 
18366
file_magic_cmd=$lt_file_magic_cmd
 
18367
 
 
18368
# Flag that allows shared libraries with undefined symbols to be built.
 
18369
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18370
 
 
18371
# Flag that forces no undefined symbols.
 
18372
no_undefined_flag=$lt_no_undefined_flag_RC
 
18373
 
 
18374
# Commands used to finish a libtool library installation in a directory.
 
18375
finish_cmds=$lt_finish_cmds
 
18376
 
 
18377
# Same as above, but a single script fragment to be evaled but not shown.
 
18378
finish_eval=$lt_finish_eval
 
18379
 
 
18380
# Take the output of nm and produce a listing of raw symbols and C names.
 
18381
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18382
 
 
18383
# Transform the output of nm in a proper C declaration
 
18384
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18385
 
 
18386
# Transform the output of nm in a C name address pair
 
18387
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18388
 
 
18389
# This is the shared library runtime path variable.
 
18390
runpath_var=$runpath_var
 
18391
 
 
18392
# This is the shared library path variable.
 
18393
shlibpath_var=$shlibpath_var
 
18394
 
 
18395
# Is shlibpath searched before the hard-coded library search path?
 
18396
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18397
 
 
18398
# How to hardcode a shared library path into an executable.
 
18399
hardcode_action=$hardcode_action_RC
 
18400
 
 
18401
# Whether we should hardcode library paths into libraries.
 
18402
hardcode_into_libs=$hardcode_into_libs
 
18403
 
 
18404
# Flag to hardcode \$libdir into a binary during linking.
 
18405
# This must work even if \$libdir does not exist.
 
18406
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18407
 
 
18408
# If ld is used when linking, flag to hardcode \$libdir into
 
18409
# a binary during linking. This must work even if \$libdir does
 
18410
# not exist.
 
18411
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18412
 
 
18413
# Whether we need a single -rpath flag with a separated argument.
 
18414
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18415
 
 
18416
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18417
# resulting binary.
 
18418
hardcode_direct=$hardcode_direct_RC
 
18419
 
 
18420
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18421
# resulting binary.
 
18422
hardcode_minus_L=$hardcode_minus_L_RC
 
18423
 
 
18424
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18425
# the resulting binary.
 
18426
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18427
 
 
18428
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18429
# and all subsequent libraries and executables linked against it.
 
18430
hardcode_automatic=$hardcode_automatic_RC
 
18431
 
 
18432
# Variables whose values should be saved in libtool wrapper scripts and
 
18433
# restored at relink time.
 
18434
variables_saved_for_relink="$variables_saved_for_relink"
 
18435
 
 
18436
# Whether libtool must link a program against all its dependency libraries.
 
18437
link_all_deplibs=$link_all_deplibs_RC
 
18438
 
 
18439
# Compile-time system search path for libraries
 
18440
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18441
 
 
18442
# Run-time system search path for libraries
 
18443
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18444
 
 
18445
# Fix the shell variable \$srcfile for the compiler.
 
18446
fix_srcfile_path="$fix_srcfile_path_RC"
 
18447
 
 
18448
# Set to yes if exported symbols are required.
 
18449
always_export_symbols=$always_export_symbols_RC
 
18450
 
 
18451
# The commands to list exported symbols.
 
18452
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18453
 
 
18454
# The commands to extract the exported symbol list from a shared archive.
 
18455
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18456
 
 
18457
# Symbols that should not be listed in the preloaded symbols.
 
18458
exclude_expsyms=$lt_exclude_expsyms_RC
 
18459
 
 
18460
# Symbols that must always be exported.
 
18461
include_expsyms=$lt_include_expsyms_RC
 
18462
 
 
18463
# ### END LIBTOOL TAG CONFIG: $tagname
 
18464
 
 
18465
__EOF__
 
18466
 
 
18467
 
 
18468
else
 
18469
  # If there is no Makefile yet, we rely on a make rule to execute
 
18470
  # `config.status --recheck' to rerun these tests and create the
 
18471
  # libtool script then.
 
18472
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18473
  if test -f "$ltmain_in"; then
 
18474
    test -f Makefile && make "$ltmain"
 
18475
  fi
 
18476
fi
 
18477
 
 
18478
 
 
18479
ac_ext=c
 
18480
ac_cpp='$CPP $CPPFLAGS'
 
18481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18484
 
 
18485
CC="$lt_save_CC"
 
18486
 
 
18487
        ;;
 
18488
 
 
18489
      *)
 
18490
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18491
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18492
   { (exit 1); exit 1; }; }
 
18493
        ;;
 
18494
      esac
 
18495
 
 
18496
      # Append the new tag name to the list of available tags.
 
18497
      if test -n "$tagname" ; then
 
18498
      available_tags="$available_tags $tagname"
 
18499
    fi
 
18500
    fi
 
18501
  done
 
18502
  IFS="$lt_save_ifs"
 
18503
 
 
18504
  # Now substitute the updated list of available tags.
 
18505
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18506
    mv "${ofile}T" "$ofile"
 
18507
    chmod +x "$ofile"
 
18508
  else
 
18509
    rm -f "${ofile}T"
 
18510
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18511
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18512
   { (exit 1); exit 1; }; }
 
18513
  fi
 
18514
fi
 
18515
 
1512
18516
 
1513
18517
 
1514
18518
# This can be used to rebuild libtool when needed
1515
 
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
 
18519
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1516
18520
 
1517
18521
# Always use our own libtool.
1518
18522
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1519
18523
 
1520
 
# Redirect the config.log output again, so that the ltconfig log is not
1521
 
# clobbered by the next message.
1522
 
exec 5>>./config.log
 
18524
# Prevent multiple expansion
 
18525
 
 
18526
 
 
18527
 
 
18528
 
 
18529
 
 
18530
 
 
18531
 
 
18532
 
 
18533
 
 
18534
 
 
18535
 
 
18536
 
 
18537
 
 
18538
 
 
18539
 
 
18540
 
 
18541
 
 
18542
 
 
18543
 
1523
18544
 
1524
18545
# Find a good install program.  We prefer a C program (faster),
1525
18546
# so one script is as good as another.  But avoid the broken or
1528
18549
# SunOS /usr/etc/install
1529
18550
# IRIX /sbin/install
1530
18551
# AIX /bin/install
 
18552
# AmigaOS /C/install, which installs bootblocks on floppy discs
1531
18553
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532
18554
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533
18555
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
18556
# OS/2's system install, which has a completely different semantic
1534
18557
# ./install, which can be erroneously created by make from ./install.sh.
1535
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1536
 
echo "configure:1537: checking for a BSD compatible install" >&5
 
18558
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
18559
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1537
18560
if test -z "$INSTALL"; then
1538
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1539
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18561
if test "${ac_cv_path_install+set}" = set; then
 
18562
  echo $ECHO_N "(cached) $ECHO_C" >&6
1540
18563
else
1541
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1542
 
  for ac_dir in $PATH; do
1543
 
    # Account for people who put trailing slashes in PATH elements.
1544
 
    case "$ac_dir/" in
1545
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1546
 
    *)
1547
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1548
 
      # Don't use installbsd from OSF since it installs stuff as root
1549
 
      # by default.
1550
 
      for ac_prog in ginstall scoinst install; do
1551
 
        if test -f $ac_dir/$ac_prog; then
 
18564
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18565
for as_dir in $PATH
 
18566
do
 
18567
  IFS=$as_save_IFS
 
18568
  test -z "$as_dir" && as_dir=.
 
18569
  # Account for people who put trailing slashes in PATH elements.
 
18570
case $as_dir/ in
 
18571
  ./ | .// | /cC/* | \
 
18572
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
18573
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
18574
  /usr/ucb/* ) ;;
 
18575
  *)
 
18576
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
18577
    # Don't use installbsd from OSF since it installs stuff as root
 
18578
    # by default.
 
18579
    for ac_prog in ginstall scoinst install; do
 
18580
      for ac_exec_ext in '' $ac_executable_extensions; do
 
18581
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1552
18582
          if test $ac_prog = install &&
1553
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
18583
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554
18584
            # AIX install.  It has an incompatible calling convention.
1555
18585
            :
 
18586
          elif test $ac_prog = install &&
 
18587
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
18588
            # program-specific install script used by HP pwplus--don't use.
 
18589
            :
1556
18590
          else
1557
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1558
 
            break 2
 
18591
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
18592
            break 3
1559
18593
          fi
1560
18594
        fi
1561
18595
      done
1562
 
      ;;
1563
 
    esac
1564
 
  done
1565
 
  IFS="$ac_save_IFS"
 
18596
    done
 
18597
    ;;
 
18598
esac
 
18599
done
 
18600
 
1566
18601
 
1567
18602
fi
1568
18603
  if test "${ac_cv_path_install+set}" = set; then
1569
 
    INSTALL="$ac_cv_path_install"
 
18604
    INSTALL=$ac_cv_path_install
1570
18605
  else
1571
18606
    # As a last resort, use the slow shell script.  We don't cache a
1572
18607
    # path for INSTALL within a source directory, because that will
1573
18608
    # break other packages using the cache if that directory is
1574
18609
    # removed, or if the path is relative.
1575
 
    INSTALL="$ac_install_sh"
 
18610
    INSTALL=$ac_install_sh
1576
18611
  fi
1577
18612
fi
1578
 
echo "$ac_t""$INSTALL" 1>&6
 
18613
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
18614
echo "${ECHO_T}$INSTALL" >&6
1579
18615
 
1580
18616
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1581
18617
# It thinks the first close brace ends the variable substitution.
1582
18618
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1583
18619
 
1584
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
18620
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1585
18621
 
1586
18622
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1587
18623
 
1588
 
# Extract the first word of "gcc", so it can be a program name with args.
 
18624
ac_ext=c
 
18625
ac_cpp='$CPP $CPPFLAGS'
 
18626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18629
if test -n "$ac_tool_prefix"; then
 
18630
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
18631
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
18632
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18633
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18634
if test "${ac_cv_prog_CC+set}" = set; then
 
18635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18636
else
 
18637
  if test -n "$CC"; then
 
18638
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18639
else
 
18640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18641
for as_dir in $PATH
 
18642
do
 
18643
  IFS=$as_save_IFS
 
18644
  test -z "$as_dir" && as_dir=.
 
18645
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18646
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18647
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
18648
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18649
    break 2
 
18650
  fi
 
18651
done
 
18652
done
 
18653
 
 
18654
fi
 
18655
fi
 
18656
CC=$ac_cv_prog_CC
 
18657
if test -n "$CC"; then
 
18658
  echo "$as_me:$LINENO: result: $CC" >&5
 
18659
echo "${ECHO_T}$CC" >&6
 
18660
else
 
18661
  echo "$as_me:$LINENO: result: no" >&5
 
18662
echo "${ECHO_T}no" >&6
 
18663
fi
 
18664
 
 
18665
fi
 
18666
if test -z "$ac_cv_prog_CC"; then
 
18667
  ac_ct_CC=$CC
 
18668
  # Extract the first word of "gcc", so it can be a program name with args.
1589
18669
set dummy gcc; ac_word=$2
1590
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1591
 
echo "configure:1592: checking for $ac_word" >&5
1592
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1593
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18670
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18672
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18674
else
 
18675
  if test -n "$ac_ct_CC"; then
 
18676
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18677
else
 
18678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18679
for as_dir in $PATH
 
18680
do
 
18681
  IFS=$as_save_IFS
 
18682
  test -z "$as_dir" && as_dir=.
 
18683
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18684
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18685
    ac_cv_prog_ac_ct_CC="gcc"
 
18686
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18687
    break 2
 
18688
  fi
 
18689
done
 
18690
done
 
18691
 
 
18692
fi
 
18693
fi
 
18694
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18695
if test -n "$ac_ct_CC"; then
 
18696
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18697
echo "${ECHO_T}$ac_ct_CC" >&6
 
18698
else
 
18699
  echo "$as_me:$LINENO: result: no" >&5
 
18700
echo "${ECHO_T}no" >&6
 
18701
fi
 
18702
 
 
18703
  CC=$ac_ct_CC
 
18704
else
 
18705
  CC="$ac_cv_prog_CC"
 
18706
fi
 
18707
 
 
18708
if test -z "$CC"; then
 
18709
  if test -n "$ac_tool_prefix"; then
 
18710
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
18711
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
18712
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18713
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18714
if test "${ac_cv_prog_CC+set}" = set; then
 
18715
  echo $ECHO_N "(cached) $ECHO_C" >&6
1594
18716
else
1595
18717
  if test -n "$CC"; then
1596
18718
  ac_cv_prog_CC="$CC" # Let the user override the test.
1597
18719
else
1598
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1599
 
  ac_dummy="$PATH"
1600
 
  for ac_dir in $ac_dummy; do
1601
 
    test -z "$ac_dir" && ac_dir=.
1602
 
    if test -f $ac_dir/$ac_word; then
1603
 
      ac_cv_prog_CC="gcc"
1604
 
      break
1605
 
    fi
1606
 
  done
1607
 
  IFS="$ac_save_ifs"
1608
 
fi
1609
 
fi
1610
 
CC="$ac_cv_prog_CC"
 
18720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18721
for as_dir in $PATH
 
18722
do
 
18723
  IFS=$as_save_IFS
 
18724
  test -z "$as_dir" && as_dir=.
 
18725
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18727
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
18728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18729
    break 2
 
18730
  fi
 
18731
done
 
18732
done
 
18733
 
 
18734
fi
 
18735
fi
 
18736
CC=$ac_cv_prog_CC
1611
18737
if test -n "$CC"; then
1612
 
  echo "$ac_t""$CC" 1>&6
1613
 
else
1614
 
  echo "$ac_t""no" 1>&6
1615
 
fi
1616
 
 
 
18738
  echo "$as_me:$LINENO: result: $CC" >&5
 
18739
echo "${ECHO_T}$CC" >&6
 
18740
else
 
18741
  echo "$as_me:$LINENO: result: no" >&5
 
18742
echo "${ECHO_T}no" >&6
 
18743
fi
 
18744
 
 
18745
fi
 
18746
if test -z "$ac_cv_prog_CC"; then
 
18747
  ac_ct_CC=$CC
 
18748
  # Extract the first word of "cc", so it can be a program name with args.
 
18749
set dummy cc; ac_word=$2
 
18750
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18752
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18754
else
 
18755
  if test -n "$ac_ct_CC"; then
 
18756
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18757
else
 
18758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18759
for as_dir in $PATH
 
18760
do
 
18761
  IFS=$as_save_IFS
 
18762
  test -z "$as_dir" && as_dir=.
 
18763
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18764
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18765
    ac_cv_prog_ac_ct_CC="cc"
 
18766
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18767
    break 2
 
18768
  fi
 
18769
done
 
18770
done
 
18771
 
 
18772
fi
 
18773
fi
 
18774
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18775
if test -n "$ac_ct_CC"; then
 
18776
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18777
echo "${ECHO_T}$ac_ct_CC" >&6
 
18778
else
 
18779
  echo "$as_me:$LINENO: result: no" >&5
 
18780
echo "${ECHO_T}no" >&6
 
18781
fi
 
18782
 
 
18783
  CC=$ac_ct_CC
 
18784
else
 
18785
  CC="$ac_cv_prog_CC"
 
18786
fi
 
18787
 
 
18788
fi
1617
18789
if test -z "$CC"; then
1618
18790
  # Extract the first word of "cc", so it can be a program name with args.
1619
18791
set dummy cc; ac_word=$2
1620
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621
 
echo "configure:1622: checking for $ac_word" >&5
1622
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1623
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18792
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18794
if test "${ac_cv_prog_CC+set}" = set; then
 
18795
  echo $ECHO_N "(cached) $ECHO_C" >&6
1624
18796
else
1625
18797
  if test -n "$CC"; then
1626
18798
  ac_cv_prog_CC="$CC" # Let the user override the test.
1627
18799
else
1628
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1629
18800
  ac_prog_rejected=no
1630
 
  ac_dummy="$PATH"
1631
 
  for ac_dir in $ac_dummy; do
1632
 
    test -z "$ac_dir" && ac_dir=.
1633
 
    if test -f $ac_dir/$ac_word; then
1634
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1635
 
        ac_prog_rejected=yes
1636
 
        continue
1637
 
      fi
1638
 
      ac_cv_prog_CC="cc"
1639
 
      break
1640
 
    fi
1641
 
  done
1642
 
  IFS="$ac_save_ifs"
 
18801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18802
for as_dir in $PATH
 
18803
do
 
18804
  IFS=$as_save_IFS
 
18805
  test -z "$as_dir" && as_dir=.
 
18806
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18807
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18808
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
18809
       ac_prog_rejected=yes
 
18810
       continue
 
18811
     fi
 
18812
    ac_cv_prog_CC="cc"
 
18813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18814
    break 2
 
18815
  fi
 
18816
done
 
18817
done
 
18818
 
1643
18819
if test $ac_prog_rejected = yes; then
1644
18820
  # We found a bogon in the path, so make sure we never use it.
1645
18821
  set dummy $ac_cv_prog_CC
1646
18822
  shift
1647
 
  if test $# -gt 0; then
 
18823
  if test $# != 0; then
1648
18824
    # We chose a different compiler from the bogus one.
1649
18825
    # However, it has the same basename, so the bogon will be chosen
1650
18826
    # first if we set CC to just the basename; use the full file name.
1651
18827
    shift
1652
 
    set dummy "$ac_dir/$ac_word" "$@"
1653
 
    shift
1654
 
    ac_cv_prog_CC="$@"
 
18828
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1655
18829
  fi
1656
18830
fi
1657
18831
fi
1658
18832
fi
1659
 
CC="$ac_cv_prog_CC"
 
18833
CC=$ac_cv_prog_CC
1660
18834
if test -n "$CC"; then
1661
 
  echo "$ac_t""$CC" 1>&6
 
18835
  echo "$as_me:$LINENO: result: $CC" >&5
 
18836
echo "${ECHO_T}$CC" >&6
1662
18837
else
1663
 
  echo "$ac_t""no" 1>&6
 
18838
  echo "$as_me:$LINENO: result: no" >&5
 
18839
echo "${ECHO_T}no" >&6
1664
18840
fi
1665
18841
 
1666
 
  if test -z "$CC"; then
1667
 
    case "`uname -s`" in
1668
 
    *win32* | *WIN32*)
1669
 
      # Extract the first word of "cl", so it can be a program name with args.
1670
 
set dummy cl; ac_word=$2
1671
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1672
 
echo "configure:1673: checking for $ac_word" >&5
1673
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1674
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18842
fi
 
18843
if test -z "$CC"; then
 
18844
  if test -n "$ac_tool_prefix"; then
 
18845
  for ac_prog in cl
 
18846
  do
 
18847
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
18848
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
18849
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18850
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18851
if test "${ac_cv_prog_CC+set}" = set; then
 
18852
  echo $ECHO_N "(cached) $ECHO_C" >&6
1675
18853
else
1676
18854
  if test -n "$CC"; then
1677
18855
  ac_cv_prog_CC="$CC" # Let the user override the test.
1678
18856
else
1679
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1680
 
  ac_dummy="$PATH"
1681
 
  for ac_dir in $ac_dummy; do
1682
 
    test -z "$ac_dir" && ac_dir=.
1683
 
    if test -f $ac_dir/$ac_word; then
1684
 
      ac_cv_prog_CC="cl"
1685
 
      break
1686
 
    fi
 
18857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18858
for as_dir in $PATH
 
18859
do
 
18860
  IFS=$as_save_IFS
 
18861
  test -z "$as_dir" && as_dir=.
 
18862
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18863
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18864
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
18865
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18866
    break 2
 
18867
  fi
 
18868
done
 
18869
done
 
18870
 
 
18871
fi
 
18872
fi
 
18873
CC=$ac_cv_prog_CC
 
18874
if test -n "$CC"; then
 
18875
  echo "$as_me:$LINENO: result: $CC" >&5
 
18876
echo "${ECHO_T}$CC" >&6
 
18877
else
 
18878
  echo "$as_me:$LINENO: result: no" >&5
 
18879
echo "${ECHO_T}no" >&6
 
18880
fi
 
18881
 
 
18882
    test -n "$CC" && break
1687
18883
  done
1688
 
  IFS="$ac_save_ifs"
1689
 
fi
1690
 
fi
1691
 
CC="$ac_cv_prog_CC"
1692
 
if test -n "$CC"; then
1693
 
  echo "$ac_t""$CC" 1>&6
1694
 
else
1695
 
  echo "$ac_t""no" 1>&6
1696
 
fi
1697
 
 ;;
1698
 
    esac
1699
 
  fi
1700
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1701
 
fi
1702
 
 
1703
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1704
 
echo "configure:1705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1705
 
 
1706
 
ac_ext=c
1707
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1708
 
ac_cpp='$CPP $CPPFLAGS'
1709
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1710
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1711
 
cross_compiling=$ac_cv_prog_cc_cross
1712
 
 
1713
 
cat > conftest.$ac_ext << EOF
1714
 
 
1715
 
#line 1716 "configure"
1716
 
#include "confdefs.h"
1717
 
 
1718
 
main(){return(0);}
1719
 
EOF
1720
 
if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1721
 
  ac_cv_prog_cc_works=yes
1722
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1723
 
  if (./conftest; exit) 2>/dev/null; then
1724
 
    ac_cv_prog_cc_cross=no
1725
 
  else
1726
 
    ac_cv_prog_cc_cross=yes
1727
 
  fi
1728
 
else
1729
 
  echo "configure: failed program was:" >&5
1730
 
  cat conftest.$ac_ext >&5
1731
 
  ac_cv_prog_cc_works=no
1732
 
fi
1733
 
rm -fr conftest*
1734
 
ac_ext=c
1735
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1736
 
ac_cpp='$CPP $CPPFLAGS'
1737
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1738
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1739
 
cross_compiling=$ac_cv_prog_cc_cross
1740
 
 
1741
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1742
 
if test $ac_cv_prog_cc_works = no; then
1743
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1744
 
fi
1745
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1746
 
echo "configure:1747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1747
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1748
 
cross_compiling=$ac_cv_prog_cc_cross
1749
 
 
1750
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1751
 
echo "configure:1752: checking whether we are using GNU C" >&5
1752
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1753
 
  echo $ac_n "(cached) $ac_c" 1>&6
1754
 
else
1755
 
  cat > conftest.c <<EOF
1756
 
#ifdef __GNUC__
1757
 
  yes;
 
18884
fi
 
18885
if test -z "$CC"; then
 
18886
  ac_ct_CC=$CC
 
18887
  for ac_prog in cl
 
18888
do
 
18889
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
18890
set dummy $ac_prog; ac_word=$2
 
18891
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18893
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18895
else
 
18896
  if test -n "$ac_ct_CC"; then
 
18897
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18898
else
 
18899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18900
for as_dir in $PATH
 
18901
do
 
18902
  IFS=$as_save_IFS
 
18903
  test -z "$as_dir" && as_dir=.
 
18904
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18905
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18906
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
18907
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18908
    break 2
 
18909
  fi
 
18910
done
 
18911
done
 
18912
 
 
18913
fi
 
18914
fi
 
18915
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18916
if test -n "$ac_ct_CC"; then
 
18917
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18918
echo "${ECHO_T}$ac_ct_CC" >&6
 
18919
else
 
18920
  echo "$as_me:$LINENO: result: no" >&5
 
18921
echo "${ECHO_T}no" >&6
 
18922
fi
 
18923
 
 
18924
  test -n "$ac_ct_CC" && break
 
18925
done
 
18926
 
 
18927
  CC=$ac_ct_CC
 
18928
fi
 
18929
 
 
18930
fi
 
18931
 
 
18932
 
 
18933
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
18934
See \`config.log' for more details." >&5
 
18935
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
18936
See \`config.log' for more details." >&2;}
 
18937
   { (exit 1); exit 1; }; }
 
18938
 
 
18939
# Provide some information about the compiler.
 
18940
echo "$as_me:$LINENO:" \
 
18941
     "checking for C compiler version" >&5
 
18942
ac_compiler=`set X $ac_compile; echo $2`
 
18943
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
18944
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
18945
  ac_status=$?
 
18946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18947
  (exit $ac_status); }
 
18948
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
18949
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
18950
  ac_status=$?
 
18951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18952
  (exit $ac_status); }
 
18953
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
18954
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
18955
  ac_status=$?
 
18956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18957
  (exit $ac_status); }
 
18958
 
 
18959
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
18960
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
18961
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
18962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18963
else
 
18964
  cat >conftest.$ac_ext <<_ACEOF
 
18965
/* confdefs.h.  */
 
18966
_ACEOF
 
18967
cat confdefs.h >>conftest.$ac_ext
 
18968
cat >>conftest.$ac_ext <<_ACEOF
 
18969
/* end confdefs.h.  */
 
18970
 
 
18971
int
 
18972
main ()
 
18973
{
 
18974
#ifndef __GNUC__
 
18975
       choke me
1758
18976
#endif
1759
 
EOF
1760
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1761
 
  ac_cv_prog_gcc=yes
1762
 
else
1763
 
  ac_cv_prog_gcc=no
1764
 
fi
1765
 
fi
1766
 
 
1767
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1768
 
 
1769
 
if test $ac_cv_prog_gcc = yes; then
1770
 
  GCC=yes
1771
 
else
1772
 
  GCC=
1773
 
fi
1774
 
 
1775
 
ac_test_CFLAGS="${CFLAGS+set}"
1776
 
ac_save_CFLAGS="$CFLAGS"
1777
 
CFLAGS=
1778
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1779
 
echo "configure:1780: checking whether ${CC-cc} accepts -g" >&5
1780
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1781
 
  echo $ac_n "(cached) $ac_c" 1>&6
1782
 
else
1783
 
  echo 'void f(){}' > conftest.c
1784
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
18977
 
 
18978
  ;
 
18979
  return 0;
 
18980
}
 
18981
_ACEOF
 
18982
rm -f conftest.$ac_objext
 
18983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18984
  (eval $ac_compile) 2>conftest.er1
 
18985
  ac_status=$?
 
18986
  grep -v '^ *+' conftest.er1 >conftest.err
 
18987
  rm -f conftest.er1
 
18988
  cat conftest.err >&5
 
18989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18990
  (exit $ac_status); } &&
 
18991
         { ac_try='test -z "$ac_c_werror_flag"
 
18992
                         || test ! -s conftest.err'
 
18993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18994
  (eval $ac_try) 2>&5
 
18995
  ac_status=$?
 
18996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18997
  (exit $ac_status); }; } &&
 
18998
         { ac_try='test -s conftest.$ac_objext'
 
18999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19000
  (eval $ac_try) 2>&5
 
19001
  ac_status=$?
 
19002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19003
  (exit $ac_status); }; }; then
 
19004
  ac_compiler_gnu=yes
 
19005
else
 
19006
  echo "$as_me: failed program was:" >&5
 
19007
sed 's/^/| /' conftest.$ac_ext >&5
 
19008
 
 
19009
ac_compiler_gnu=no
 
19010
fi
 
19011
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19012
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19013
 
 
19014
fi
 
19015
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19016
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
19017
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19018
ac_test_CFLAGS=${CFLAGS+set}
 
19019
ac_save_CFLAGS=$CFLAGS
 
19020
CFLAGS="-g"
 
19021
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19022
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
19023
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19025
else
 
19026
  cat >conftest.$ac_ext <<_ACEOF
 
19027
/* confdefs.h.  */
 
19028
_ACEOF
 
19029
cat confdefs.h >>conftest.$ac_ext
 
19030
cat >>conftest.$ac_ext <<_ACEOF
 
19031
/* end confdefs.h.  */
 
19032
 
 
19033
int
 
19034
main ()
 
19035
{
 
19036
 
 
19037
  ;
 
19038
  return 0;
 
19039
}
 
19040
_ACEOF
 
19041
rm -f conftest.$ac_objext
 
19042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19043
  (eval $ac_compile) 2>conftest.er1
 
19044
  ac_status=$?
 
19045
  grep -v '^ *+' conftest.er1 >conftest.err
 
19046
  rm -f conftest.er1
 
19047
  cat conftest.err >&5
 
19048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19049
  (exit $ac_status); } &&
 
19050
         { ac_try='test -z "$ac_c_werror_flag"
 
19051
                         || test ! -s conftest.err'
 
19052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19053
  (eval $ac_try) 2>&5
 
19054
  ac_status=$?
 
19055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19056
  (exit $ac_status); }; } &&
 
19057
         { ac_try='test -s conftest.$ac_objext'
 
19058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19059
  (eval $ac_try) 2>&5
 
19060
  ac_status=$?
 
19061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19062
  (exit $ac_status); }; }; then
1785
19063
  ac_cv_prog_cc_g=yes
1786
19064
else
1787
 
  ac_cv_prog_cc_g=no
1788
 
fi
1789
 
rm -f conftest*
1790
 
 
1791
 
fi
1792
 
 
1793
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
19065
  echo "$as_me: failed program was:" >&5
 
19066
sed 's/^/| /' conftest.$ac_ext >&5
 
19067
 
 
19068
ac_cv_prog_cc_g=no
 
19069
fi
 
19070
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19071
fi
 
19072
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19073
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1794
19074
if test "$ac_test_CFLAGS" = set; then
1795
 
  CFLAGS="$ac_save_CFLAGS"
 
19075
  CFLAGS=$ac_save_CFLAGS
1796
19076
elif test $ac_cv_prog_cc_g = yes; then
1797
19077
  if test "$GCC" = yes; then
1798
19078
    CFLAGS="-g -O2"
1806
19086
    CFLAGS=
1807
19087
  fi
1808
19088
fi
1809
 
 
1810
 
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1811
 
do
1812
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1813
 
set dummy $ac_prog; ac_word=$2
1814
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815
 
echo "configure:1816: checking for $ac_word" >&5
1816
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1817
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
19089
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19090
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19091
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
19092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19093
else
 
19094
  ac_cv_prog_cc_stdc=no
 
19095
ac_save_CC=$CC
 
19096
cat >conftest.$ac_ext <<_ACEOF
 
19097
/* confdefs.h.  */
 
19098
_ACEOF
 
19099
cat confdefs.h >>conftest.$ac_ext
 
19100
cat >>conftest.$ac_ext <<_ACEOF
 
19101
/* end confdefs.h.  */
 
19102
#include <stdarg.h>
 
19103
#include <stdio.h>
 
19104
#include <sys/types.h>
 
19105
#include <sys/stat.h>
 
19106
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19107
struct buf { int x; };
 
19108
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19109
static char *e (p, i)
 
19110
     char **p;
 
19111
     int i;
 
19112
{
 
19113
  return p[i];
 
19114
}
 
19115
static char *f (char * (*g) (char **, int), char **p, ...)
 
19116
{
 
19117
  char *s;
 
19118
  va_list v;
 
19119
  va_start (v,p);
 
19120
  s = g (p, va_arg (v,int));
 
19121
  va_end (v);
 
19122
  return s;
 
19123
}
 
19124
 
 
19125
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19126
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19127
   These don't provoke an error unfortunately, instead are silently treated
 
19128
   as 'x'.  The following induces an error, until -std1 is added to get
 
19129
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19130
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19131
   that's true only with -std1.  */
 
19132
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19133
 
 
19134
int test (int i, double x);
 
19135
struct s1 {int (*f) (int a);};
 
19136
struct s2 {int (*f) (double a);};
 
19137
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19138
int argc;
 
19139
char **argv;
 
19140
int
 
19141
main ()
 
19142
{
 
19143
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19144
  ;
 
19145
  return 0;
 
19146
}
 
19147
_ACEOF
 
19148
# Don't try gcc -ansi; that turns off useful extensions and
 
19149
# breaks some systems' header files.
 
19150
# AIX                   -qlanglvl=ansi
 
19151
# Ultrix and OSF/1      -std1
 
19152
# HP-UX 10.20 and later -Ae
 
19153
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19154
# SVR4                  -Xc -D__EXTENSIONS__
 
19155
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19156
do
 
19157
  CC="$ac_save_CC $ac_arg"
 
19158
  rm -f conftest.$ac_objext
 
19159
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19160
  (eval $ac_compile) 2>conftest.er1
 
19161
  ac_status=$?
 
19162
  grep -v '^ *+' conftest.er1 >conftest.err
 
19163
  rm -f conftest.er1
 
19164
  cat conftest.err >&5
 
19165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19166
  (exit $ac_status); } &&
 
19167
         { ac_try='test -z "$ac_c_werror_flag"
 
19168
                         || test ! -s conftest.err'
 
19169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19170
  (eval $ac_try) 2>&5
 
19171
  ac_status=$?
 
19172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19173
  (exit $ac_status); }; } &&
 
19174
         { ac_try='test -s conftest.$ac_objext'
 
19175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19176
  (eval $ac_try) 2>&5
 
19177
  ac_status=$?
 
19178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19179
  (exit $ac_status); }; }; then
 
19180
  ac_cv_prog_cc_stdc=$ac_arg
 
19181
break
 
19182
else
 
19183
  echo "$as_me: failed program was:" >&5
 
19184
sed 's/^/| /' conftest.$ac_ext >&5
 
19185
 
 
19186
fi
 
19187
rm -f conftest.err conftest.$ac_objext
 
19188
done
 
19189
rm -f conftest.$ac_ext conftest.$ac_objext
 
19190
CC=$ac_save_CC
 
19191
 
 
19192
fi
 
19193
 
 
19194
case "x$ac_cv_prog_cc_stdc" in
 
19195
  x|xno)
 
19196
    echo "$as_me:$LINENO: result: none needed" >&5
 
19197
echo "${ECHO_T}none needed" >&6 ;;
 
19198
  *)
 
19199
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19200
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19201
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
19202
esac
 
19203
 
 
19204
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19205
# in C++ we need to declare it.  In case someone uses the same compiler
 
19206
# for both compiling C and C++ we need to have the C++ compiler decide
 
19207
# the declaration of exit, since it's the most demanding environment.
 
19208
cat >conftest.$ac_ext <<_ACEOF
 
19209
#ifndef __cplusplus
 
19210
  choke me
 
19211
#endif
 
19212
_ACEOF
 
19213
rm -f conftest.$ac_objext
 
19214
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19215
  (eval $ac_compile) 2>conftest.er1
 
19216
  ac_status=$?
 
19217
  grep -v '^ *+' conftest.er1 >conftest.err
 
19218
  rm -f conftest.er1
 
19219
  cat conftest.err >&5
 
19220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19221
  (exit $ac_status); } &&
 
19222
         { ac_try='test -z "$ac_c_werror_flag"
 
19223
                         || test ! -s conftest.err'
 
19224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19225
  (eval $ac_try) 2>&5
 
19226
  ac_status=$?
 
19227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19228
  (exit $ac_status); }; } &&
 
19229
         { ac_try='test -s conftest.$ac_objext'
 
19230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19231
  (eval $ac_try) 2>&5
 
19232
  ac_status=$?
 
19233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19234
  (exit $ac_status); }; }; then
 
19235
  for ac_declaration in \
 
19236
   '' \
 
19237
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19238
   'extern "C" void std::exit (int); using std::exit;' \
 
19239
   'extern "C" void exit (int) throw ();' \
 
19240
   'extern "C" void exit (int);' \
 
19241
   'void exit (int);'
 
19242
do
 
19243
  cat >conftest.$ac_ext <<_ACEOF
 
19244
/* confdefs.h.  */
 
19245
_ACEOF
 
19246
cat confdefs.h >>conftest.$ac_ext
 
19247
cat >>conftest.$ac_ext <<_ACEOF
 
19248
/* end confdefs.h.  */
 
19249
$ac_declaration
 
19250
#include <stdlib.h>
 
19251
int
 
19252
main ()
 
19253
{
 
19254
exit (42);
 
19255
  ;
 
19256
  return 0;
 
19257
}
 
19258
_ACEOF
 
19259
rm -f conftest.$ac_objext
 
19260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19261
  (eval $ac_compile) 2>conftest.er1
 
19262
  ac_status=$?
 
19263
  grep -v '^ *+' conftest.er1 >conftest.err
 
19264
  rm -f conftest.er1
 
19265
  cat conftest.err >&5
 
19266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19267
  (exit $ac_status); } &&
 
19268
         { ac_try='test -z "$ac_c_werror_flag"
 
19269
                         || test ! -s conftest.err'
 
19270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19271
  (eval $ac_try) 2>&5
 
19272
  ac_status=$?
 
19273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19274
  (exit $ac_status); }; } &&
 
19275
         { ac_try='test -s conftest.$ac_objext'
 
19276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19277
  (eval $ac_try) 2>&5
 
19278
  ac_status=$?
 
19279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19280
  (exit $ac_status); }; }; then
 
19281
  :
 
19282
else
 
19283
  echo "$as_me: failed program was:" >&5
 
19284
sed 's/^/| /' conftest.$ac_ext >&5
 
19285
 
 
19286
continue
 
19287
fi
 
19288
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19289
  cat >conftest.$ac_ext <<_ACEOF
 
19290
/* confdefs.h.  */
 
19291
_ACEOF
 
19292
cat confdefs.h >>conftest.$ac_ext
 
19293
cat >>conftest.$ac_ext <<_ACEOF
 
19294
/* end confdefs.h.  */
 
19295
$ac_declaration
 
19296
int
 
19297
main ()
 
19298
{
 
19299
exit (42);
 
19300
  ;
 
19301
  return 0;
 
19302
}
 
19303
_ACEOF
 
19304
rm -f conftest.$ac_objext
 
19305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19306
  (eval $ac_compile) 2>conftest.er1
 
19307
  ac_status=$?
 
19308
  grep -v '^ *+' conftest.er1 >conftest.err
 
19309
  rm -f conftest.er1
 
19310
  cat conftest.err >&5
 
19311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19312
  (exit $ac_status); } &&
 
19313
         { ac_try='test -z "$ac_c_werror_flag"
 
19314
                         || test ! -s conftest.err'
 
19315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19316
  (eval $ac_try) 2>&5
 
19317
  ac_status=$?
 
19318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19319
  (exit $ac_status); }; } &&
 
19320
         { ac_try='test -s conftest.$ac_objext'
 
19321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19322
  (eval $ac_try) 2>&5
 
19323
  ac_status=$?
 
19324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19325
  (exit $ac_status); }; }; then
 
19326
  break
 
19327
else
 
19328
  echo "$as_me: failed program was:" >&5
 
19329
sed 's/^/| /' conftest.$ac_ext >&5
 
19330
 
 
19331
fi
 
19332
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19333
done
 
19334
rm -f conftest*
 
19335
if test -n "$ac_declaration"; then
 
19336
  echo '#ifdef __cplusplus' >>confdefs.h
 
19337
  echo $ac_declaration      >>confdefs.h
 
19338
  echo '#endif'             >>confdefs.h
 
19339
fi
 
19340
 
 
19341
else
 
19342
  echo "$as_me: failed program was:" >&5
 
19343
sed 's/^/| /' conftest.$ac_ext >&5
 
19344
 
 
19345
fi
 
19346
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19347
ac_ext=c
 
19348
ac_cpp='$CPP $CPPFLAGS'
 
19349
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19350
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19351
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19352
 
 
19353
depcc="$CC"   am_compiler_list=
 
19354
 
 
19355
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19356
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
19357
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
19358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19359
else
 
19360
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19361
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19362
  # making bogus files that we don't know about and never remove.  For
 
19363
  # instance it was reported that on HP-UX the gcc test will end up
 
19364
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19365
  # in D'.
 
19366
  mkdir conftest.dir
 
19367
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19368
  # using a relative directory.
 
19369
  cp "$am_depcomp" conftest.dir
 
19370
  cd conftest.dir
 
19371
  # We will build objects and dependencies in a subdirectory because
 
19372
  # it helps to detect inapplicable dependency modes.  For instance
 
19373
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19374
  # side effect of compilation, but ICC will put the dependencies in
 
19375
  # the current directory while Tru64 will put them in the object
 
19376
  # directory.
 
19377
  mkdir sub
 
19378
 
 
19379
  am_cv_CC_dependencies_compiler_type=none
 
19380
  if test "$am_compiler_list" = ""; then
 
19381
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19382
  fi
 
19383
  for depmode in $am_compiler_list; do
 
19384
    # Setup a source with many dependencies, because some compilers
 
19385
    # like to wrap large dependency lists on column 80 (with \), and
 
19386
    # we should not choose a depcomp mode which is confused by this.
 
19387
    #
 
19388
    # We need to recreate these files for each test, as the compiler may
 
19389
    # overwrite some of them when testing with obscure command lines.
 
19390
    # This happens at least with the AIX C compiler.
 
19391
    : > sub/conftest.c
 
19392
    for i in 1 2 3 4 5 6; do
 
19393
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19394
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19395
      # Solaris 8's {/usr,}/bin/sh.
 
19396
      touch sub/conftst$i.h
 
19397
    done
 
19398
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19399
 
 
19400
    case $depmode in
 
19401
    nosideeffect)
 
19402
      # after this tag, mechanisms are not by side-effect, so they'll
 
19403
      # only be used when explicitly requested
 
19404
      if test "x$enable_dependency_tracking" = xyes; then
 
19405
        continue
 
19406
      else
 
19407
        break
 
19408
      fi
 
19409
      ;;
 
19410
    none) break ;;
 
19411
    esac
 
19412
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19413
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19414
    # handle `-M -o', and we need to detect this.
 
19415
    if depmode=$depmode \
 
19416
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19417
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19418
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19419
         >/dev/null 2>conftest.err &&
 
19420
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19421
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19422
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19423
      # icc doesn't choke on unknown options, it will just issue warnings
 
19424
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19425
      # that says an option was ignored or not supported.
 
19426
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19427
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19428
      # The diagnosis changed in icc 8.0:
 
19429
      #   icc: Command line remark: option '-MP' not supported
 
19430
      if (grep 'ignoring option' conftest.err ||
 
19431
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19432
        am_cv_CC_dependencies_compiler_type=$depmode
 
19433
        break
 
19434
      fi
 
19435
    fi
 
19436
  done
 
19437
 
 
19438
  cd ..
 
19439
  rm -rf conftest.dir
 
19440
else
 
19441
  am_cv_CC_dependencies_compiler_type=none
 
19442
fi
 
19443
 
 
19444
fi
 
19445
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
19446
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
19447
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
19448
 
 
19449
 
 
19450
 
 
19451
if
 
19452
  test "x$enable_dependency_tracking" != xno \
 
19453
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
19454
  am__fastdepCC_TRUE=
 
19455
  am__fastdepCC_FALSE='#'
 
19456
else
 
19457
  am__fastdepCC_TRUE='#'
 
19458
  am__fastdepCC_FALSE=
 
19459
fi
 
19460
 
 
19461
 
 
19462
ac_ext=cc
 
19463
ac_cpp='$CXXCPP $CPPFLAGS'
 
19464
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19465
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19466
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
19467
if test -n "$ac_tool_prefix"; then
 
19468
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
19469
  do
 
19470
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19471
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19472
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19473
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19474
if test "${ac_cv_prog_CXX+set}" = set; then
 
19475
  echo $ECHO_N "(cached) $ECHO_C" >&6
1818
19476
else
1819
19477
  if test -n "$CXX"; then
1820
19478
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1821
19479
else
1822
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1823
 
  ac_dummy="$PATH"
1824
 
  for ac_dir in $ac_dummy; do
1825
 
    test -z "$ac_dir" && ac_dir=.
1826
 
    if test -f $ac_dir/$ac_word; then
1827
 
      ac_cv_prog_CXX="$ac_prog"
1828
 
      break
1829
 
    fi
1830
 
  done
1831
 
  IFS="$ac_save_ifs"
1832
 
fi
1833
 
fi
1834
 
CXX="$ac_cv_prog_CXX"
 
19480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19481
for as_dir in $PATH
 
19482
do
 
19483
  IFS=$as_save_IFS
 
19484
  test -z "$as_dir" && as_dir=.
 
19485
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19486
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19487
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
19488
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19489
    break 2
 
19490
  fi
 
19491
done
 
19492
done
 
19493
 
 
19494
fi
 
19495
fi
 
19496
CXX=$ac_cv_prog_CXX
1835
19497
if test -n "$CXX"; then
1836
 
  echo "$ac_t""$CXX" 1>&6
1837
 
else
1838
 
  echo "$ac_t""no" 1>&6
1839
 
fi
1840
 
 
1841
 
test -n "$CXX" && break
1842
 
done
1843
 
test -n "$CXX" || CXX="gcc"
1844
 
 
1845
 
 
1846
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1847
 
echo "configure:1848: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1848
 
 
1849
 
ac_ext=C
1850
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1851
 
ac_cpp='$CXXCPP $CPPFLAGS'
1852
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1853
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1854
 
cross_compiling=$ac_cv_prog_cxx_cross
1855
 
 
1856
 
cat > conftest.$ac_ext << EOF
1857
 
 
1858
 
#line 1859 "configure"
1859
 
#include "confdefs.h"
1860
 
 
1861
 
int main(){return(0);}
1862
 
EOF
1863
 
if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1864
 
  ac_cv_prog_cxx_works=yes
1865
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1866
 
  if (./conftest; exit) 2>/dev/null; then
1867
 
    ac_cv_prog_cxx_cross=no
1868
 
  else
1869
 
    ac_cv_prog_cxx_cross=yes
 
19498
  echo "$as_me:$LINENO: result: $CXX" >&5
 
19499
echo "${ECHO_T}$CXX" >&6
 
19500
else
 
19501
  echo "$as_me:$LINENO: result: no" >&5
 
19502
echo "${ECHO_T}no" >&6
 
19503
fi
 
19504
 
 
19505
    test -n "$CXX" && break
 
19506
  done
 
19507
fi
 
19508
if test -z "$CXX"; then
 
19509
  ac_ct_CXX=$CXX
 
19510
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
19511
do
 
19512
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19513
set dummy $ac_prog; ac_word=$2
 
19514
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19515
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19516
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
19517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19518
else
 
19519
  if test -n "$ac_ct_CXX"; then
 
19520
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
19521
else
 
19522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19523
for as_dir in $PATH
 
19524
do
 
19525
  IFS=$as_save_IFS
 
19526
  test -z "$as_dir" && as_dir=.
 
19527
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19528
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19529
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
19530
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19531
    break 2
1870
19532
  fi
1871
 
else
1872
 
  echo "configure: failed program was:" >&5
1873
 
  cat conftest.$ac_ext >&5
1874
 
  ac_cv_prog_cxx_works=no
1875
 
fi
1876
 
rm -fr conftest*
1877
 
ac_ext=c
1878
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1879
 
ac_cpp='$CPP $CPPFLAGS'
1880
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1881
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1882
 
cross_compiling=$ac_cv_prog_cc_cross
1883
 
 
1884
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1885
 
if test $ac_cv_prog_cxx_works = no; then
1886
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1887
 
fi
1888
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1889
 
echo "configure:1890: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1890
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1891
 
cross_compiling=$ac_cv_prog_cxx_cross
1892
 
 
1893
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1894
 
echo "configure:1895: checking whether we are using GNU C++" >&5
1895
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1896
 
  echo $ac_n "(cached) $ac_c" 1>&6
1897
 
else
1898
 
  cat > conftest.C <<EOF
1899
 
#ifdef __GNUC__
1900
 
  yes;
 
19533
done
 
19534
done
 
19535
 
 
19536
fi
 
19537
fi
 
19538
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
19539
if test -n "$ac_ct_CXX"; then
 
19540
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
19541
echo "${ECHO_T}$ac_ct_CXX" >&6
 
19542
else
 
19543
  echo "$as_me:$LINENO: result: no" >&5
 
19544
echo "${ECHO_T}no" >&6
 
19545
fi
 
19546
 
 
19547
  test -n "$ac_ct_CXX" && break
 
19548
done
 
19549
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
19550
 
 
19551
  CXX=$ac_ct_CXX
 
19552
fi
 
19553
 
 
19554
 
 
19555
# Provide some information about the compiler.
 
19556
echo "$as_me:$LINENO:" \
 
19557
     "checking for C++ compiler version" >&5
 
19558
ac_compiler=`set X $ac_compile; echo $2`
 
19559
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19560
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19561
  ac_status=$?
 
19562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19563
  (exit $ac_status); }
 
19564
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19565
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19566
  ac_status=$?
 
19567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19568
  (exit $ac_status); }
 
19569
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19570
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19571
  ac_status=$?
 
19572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19573
  (exit $ac_status); }
 
19574
 
 
19575
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
19576
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
19577
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
19578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19579
else
 
19580
  cat >conftest.$ac_ext <<_ACEOF
 
19581
/* confdefs.h.  */
 
19582
_ACEOF
 
19583
cat confdefs.h >>conftest.$ac_ext
 
19584
cat >>conftest.$ac_ext <<_ACEOF
 
19585
/* end confdefs.h.  */
 
19586
 
 
19587
int
 
19588
main ()
 
19589
{
 
19590
#ifndef __GNUC__
 
19591
       choke me
1901
19592
#endif
1902
 
EOF
1903
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1904
 
  ac_cv_prog_gxx=yes
1905
 
else
1906
 
  ac_cv_prog_gxx=no
1907
 
fi
1908
 
fi
1909
 
 
1910
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1911
 
 
1912
 
if test $ac_cv_prog_gxx = yes; then
1913
 
  GXX=yes
1914
 
else
1915
 
  GXX=
1916
 
fi
1917
 
 
1918
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1919
 
ac_save_CXXFLAGS="$CXXFLAGS"
1920
 
CXXFLAGS=
1921
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1922
 
echo "configure:1923: checking whether ${CXX-g++} accepts -g" >&5
1923
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1924
 
  echo $ac_n "(cached) $ac_c" 1>&6
1925
 
else
1926
 
  echo 'void f(){}' > conftest.cc
1927
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 
19593
 
 
19594
  ;
 
19595
  return 0;
 
19596
}
 
19597
_ACEOF
 
19598
rm -f conftest.$ac_objext
 
19599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19600
  (eval $ac_compile) 2>conftest.er1
 
19601
  ac_status=$?
 
19602
  grep -v '^ *+' conftest.er1 >conftest.err
 
19603
  rm -f conftest.er1
 
19604
  cat conftest.err >&5
 
19605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19606
  (exit $ac_status); } &&
 
19607
         { ac_try='test -z "$ac_cxx_werror_flag"
 
19608
                         || test ! -s conftest.err'
 
19609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19610
  (eval $ac_try) 2>&5
 
19611
  ac_status=$?
 
19612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19613
  (exit $ac_status); }; } &&
 
19614
         { ac_try='test -s conftest.$ac_objext'
 
19615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19616
  (eval $ac_try) 2>&5
 
19617
  ac_status=$?
 
19618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19619
  (exit $ac_status); }; }; then
 
19620
  ac_compiler_gnu=yes
 
19621
else
 
19622
  echo "$as_me: failed program was:" >&5
 
19623
sed 's/^/| /' conftest.$ac_ext >&5
 
19624
 
 
19625
ac_compiler_gnu=no
 
19626
fi
 
19627
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19628
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
19629
 
 
19630
fi
 
19631
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
19632
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
19633
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
19634
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
19635
ac_save_CXXFLAGS=$CXXFLAGS
 
19636
CXXFLAGS="-g"
 
19637
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
19638
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
19639
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
19640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19641
else
 
19642
  cat >conftest.$ac_ext <<_ACEOF
 
19643
/* confdefs.h.  */
 
19644
_ACEOF
 
19645
cat confdefs.h >>conftest.$ac_ext
 
19646
cat >>conftest.$ac_ext <<_ACEOF
 
19647
/* end confdefs.h.  */
 
19648
 
 
19649
int
 
19650
main ()
 
19651
{
 
19652
 
 
19653
  ;
 
19654
  return 0;
 
19655
}
 
19656
_ACEOF
 
19657
rm -f conftest.$ac_objext
 
19658
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19659
  (eval $ac_compile) 2>conftest.er1
 
19660
  ac_status=$?
 
19661
  grep -v '^ *+' conftest.er1 >conftest.err
 
19662
  rm -f conftest.er1
 
19663
  cat conftest.err >&5
 
19664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19665
  (exit $ac_status); } &&
 
19666
         { ac_try='test -z "$ac_cxx_werror_flag"
 
19667
                         || test ! -s conftest.err'
 
19668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19669
  (eval $ac_try) 2>&5
 
19670
  ac_status=$?
 
19671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19672
  (exit $ac_status); }; } &&
 
19673
         { ac_try='test -s conftest.$ac_objext'
 
19674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19675
  (eval $ac_try) 2>&5
 
19676
  ac_status=$?
 
19677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19678
  (exit $ac_status); }; }; then
1928
19679
  ac_cv_prog_cxx_g=yes
1929
19680
else
1930
 
  ac_cv_prog_cxx_g=no
1931
 
fi
1932
 
rm -f conftest*
1933
 
 
1934
 
fi
1935
 
 
1936
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 
19681
  echo "$as_me: failed program was:" >&5
 
19682
sed 's/^/| /' conftest.$ac_ext >&5
 
19683
 
 
19684
ac_cv_prog_cxx_g=no
 
19685
fi
 
19686
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19687
fi
 
19688
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
19689
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1937
19690
if test "$ac_test_CXXFLAGS" = set; then
1938
 
  CXXFLAGS="$ac_save_CXXFLAGS"
 
19691
  CXXFLAGS=$ac_save_CXXFLAGS
1939
19692
elif test $ac_cv_prog_cxx_g = yes; then
1940
19693
  if test "$GXX" = yes; then
1941
19694
    CXXFLAGS="-g -O2"
1949
19702
    CXXFLAGS=
1950
19703
  fi
1951
19704
fi
1952
 
 
1953
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1954
 
echo "configure:1955: checking whether ${MAKE-make} sets \${MAKE}" >&5
1955
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1956
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1957
 
  echo $ac_n "(cached) $ac_c" 1>&6
1958
 
else
1959
 
  cat > conftestmake <<\EOF
 
19705
for ac_declaration in \
 
19706
   '' \
 
19707
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19708
   'extern "C" void std::exit (int); using std::exit;' \
 
19709
   'extern "C" void exit (int) throw ();' \
 
19710
   'extern "C" void exit (int);' \
 
19711
   'void exit (int);'
 
19712
do
 
19713
  cat >conftest.$ac_ext <<_ACEOF
 
19714
/* confdefs.h.  */
 
19715
_ACEOF
 
19716
cat confdefs.h >>conftest.$ac_ext
 
19717
cat >>conftest.$ac_ext <<_ACEOF
 
19718
/* end confdefs.h.  */
 
19719
$ac_declaration
 
19720
#include <stdlib.h>
 
19721
int
 
19722
main ()
 
19723
{
 
19724
exit (42);
 
19725
  ;
 
19726
  return 0;
 
19727
}
 
19728
_ACEOF
 
19729
rm -f conftest.$ac_objext
 
19730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19731
  (eval $ac_compile) 2>conftest.er1
 
19732
  ac_status=$?
 
19733
  grep -v '^ *+' conftest.er1 >conftest.err
 
19734
  rm -f conftest.er1
 
19735
  cat conftest.err >&5
 
19736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19737
  (exit $ac_status); } &&
 
19738
         { ac_try='test -z "$ac_cxx_werror_flag"
 
19739
                         || test ! -s conftest.err'
 
19740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19741
  (eval $ac_try) 2>&5
 
19742
  ac_status=$?
 
19743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19744
  (exit $ac_status); }; } &&
 
19745
         { ac_try='test -s conftest.$ac_objext'
 
19746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19747
  (eval $ac_try) 2>&5
 
19748
  ac_status=$?
 
19749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19750
  (exit $ac_status); }; }; then
 
19751
  :
 
19752
else
 
19753
  echo "$as_me: failed program was:" >&5
 
19754
sed 's/^/| /' conftest.$ac_ext >&5
 
19755
 
 
19756
continue
 
19757
fi
 
19758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19759
  cat >conftest.$ac_ext <<_ACEOF
 
19760
/* confdefs.h.  */
 
19761
_ACEOF
 
19762
cat confdefs.h >>conftest.$ac_ext
 
19763
cat >>conftest.$ac_ext <<_ACEOF
 
19764
/* end confdefs.h.  */
 
19765
$ac_declaration
 
19766
int
 
19767
main ()
 
19768
{
 
19769
exit (42);
 
19770
  ;
 
19771
  return 0;
 
19772
}
 
19773
_ACEOF
 
19774
rm -f conftest.$ac_objext
 
19775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19776
  (eval $ac_compile) 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_cxx_werror_flag"
 
19784
                         || test ! -s conftest.err'
 
19785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19786
  (eval $ac_try) 2>&5
 
19787
  ac_status=$?
 
19788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19789
  (exit $ac_status); }; } &&
 
19790
         { ac_try='test -s conftest.$ac_objext'
 
19791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19792
  (eval $ac_try) 2>&5
 
19793
  ac_status=$?
 
19794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19795
  (exit $ac_status); }; }; then
 
19796
  break
 
19797
else
 
19798
  echo "$as_me: failed program was:" >&5
 
19799
sed 's/^/| /' conftest.$ac_ext >&5
 
19800
 
 
19801
fi
 
19802
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19803
done
 
19804
rm -f conftest*
 
19805
if test -n "$ac_declaration"; then
 
19806
  echo '#ifdef __cplusplus' >>confdefs.h
 
19807
  echo $ac_declaration      >>confdefs.h
 
19808
  echo '#endif'             >>confdefs.h
 
19809
fi
 
19810
 
 
19811
ac_ext=c
 
19812
ac_cpp='$CPP $CPPFLAGS'
 
19813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19816
 
 
19817
depcc="$CXX"  am_compiler_list=
 
19818
 
 
19819
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19820
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
19821
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
19822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19823
else
 
19824
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19825
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19826
  # making bogus files that we don't know about and never remove.  For
 
19827
  # instance it was reported that on HP-UX the gcc test will end up
 
19828
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19829
  # in D'.
 
19830
  mkdir conftest.dir
 
19831
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19832
  # using a relative directory.
 
19833
  cp "$am_depcomp" conftest.dir
 
19834
  cd conftest.dir
 
19835
  # We will build objects and dependencies in a subdirectory because
 
19836
  # it helps to detect inapplicable dependency modes.  For instance
 
19837
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19838
  # side effect of compilation, but ICC will put the dependencies in
 
19839
  # the current directory while Tru64 will put them in the object
 
19840
  # directory.
 
19841
  mkdir sub
 
19842
 
 
19843
  am_cv_CXX_dependencies_compiler_type=none
 
19844
  if test "$am_compiler_list" = ""; then
 
19845
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19846
  fi
 
19847
  for depmode in $am_compiler_list; do
 
19848
    # Setup a source with many dependencies, because some compilers
 
19849
    # like to wrap large dependency lists on column 80 (with \), and
 
19850
    # we should not choose a depcomp mode which is confused by this.
 
19851
    #
 
19852
    # We need to recreate these files for each test, as the compiler may
 
19853
    # overwrite some of them when testing with obscure command lines.
 
19854
    # This happens at least with the AIX C compiler.
 
19855
    : > sub/conftest.c
 
19856
    for i in 1 2 3 4 5 6; do
 
19857
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19858
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19859
      # Solaris 8's {/usr,}/bin/sh.
 
19860
      touch sub/conftst$i.h
 
19861
    done
 
19862
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19863
 
 
19864
    case $depmode in
 
19865
    nosideeffect)
 
19866
      # after this tag, mechanisms are not by side-effect, so they'll
 
19867
      # only be used when explicitly requested
 
19868
      if test "x$enable_dependency_tracking" = xyes; then
 
19869
        continue
 
19870
      else
 
19871
        break
 
19872
      fi
 
19873
      ;;
 
19874
    none) break ;;
 
19875
    esac
 
19876
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19877
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19878
    # handle `-M -o', and we need to detect this.
 
19879
    if depmode=$depmode \
 
19880
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19881
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19882
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19883
         >/dev/null 2>conftest.err &&
 
19884
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19885
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19886
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19887
      # icc doesn't choke on unknown options, it will just issue warnings
 
19888
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19889
      # that says an option was ignored or not supported.
 
19890
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19891
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19892
      # The diagnosis changed in icc 8.0:
 
19893
      #   icc: Command line remark: option '-MP' not supported
 
19894
      if (grep 'ignoring option' conftest.err ||
 
19895
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19896
        am_cv_CXX_dependencies_compiler_type=$depmode
 
19897
        break
 
19898
      fi
 
19899
    fi
 
19900
  done
 
19901
 
 
19902
  cd ..
 
19903
  rm -rf conftest.dir
 
19904
else
 
19905
  am_cv_CXX_dependencies_compiler_type=none
 
19906
fi
 
19907
 
 
19908
fi
 
19909
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
19910
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
19911
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
19912
 
 
19913
 
 
19914
 
 
19915
if
 
19916
  test "x$enable_dependency_tracking" != xno \
 
19917
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
19918
  am__fastdepCXX_TRUE=
 
19919
  am__fastdepCXX_FALSE='#'
 
19920
else
 
19921
  am__fastdepCXX_TRUE='#'
 
19922
  am__fastdepCXX_FALSE=
 
19923
fi
 
19924
 
 
19925
 
 
19926
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
19927
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
19928
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
19929
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
19930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19931
else
 
19932
  cat >conftest.make <<\_ACEOF
1960
19933
all:
1961
 
        @echo 'ac_maketemp="${MAKE}"'
1962
 
EOF
 
19934
        @echo 'ac_maketemp="$(MAKE)"'
 
19935
_ACEOF
1963
19936
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1964
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
19937
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1965
19938
if test -n "$ac_maketemp"; then
1966
19939
  eval ac_cv_prog_make_${ac_make}_set=yes
1967
19940
else
1968
19941
  eval ac_cv_prog_make_${ac_make}_set=no
1969
19942
fi
1970
 
rm -f conftestmake
 
19943
rm -f conftest.make
1971
19944
fi
1972
19945
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1973
 
  echo "$ac_t""yes" 1>&6
 
19946
  echo "$as_me:$LINENO: result: yes" >&5
 
19947
echo "${ECHO_T}yes" >&6
1974
19948
  SET_MAKE=
1975
19949
else
1976
 
  echo "$ac_t""no" 1>&6
 
19950
  echo "$as_me:$LINENO: result: no" >&5
 
19951
echo "${ECHO_T}no" >&6
1977
19952
  SET_MAKE="MAKE=${MAKE-make}"
1978
19953
fi
1979
19954
 
1980
19955
ac_ext=c
1981
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1982
19956
ac_cpp='$CPP $CPPFLAGS'
1983
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1984
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1985
 
cross_compiling=$ac_cv_prog_cc_cross
 
19957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1986
19960
 
1987
19961
 
1988
19962
# Check for headers
1989
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1990
 
echo "configure:1991: checking how to run the C preprocessor" >&5
1991
 
# On Suns, sometimes $CPP names a directory.
1992
 
if test -n "$CPP" && test -d "$CPP"; then
1993
 
  CPP=
1994
 
fi
1995
 
if test -z "$CPP"; then
1996
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1997
 
  echo $ac_n "(cached) $ac_c" 1>&6
1998
 
else
1999
 
    # This must be in double quotes, not single quotes, because CPP may get
2000
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
2001
 
  CPP="${CC-cc} -E"
2002
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2003
 
  # not just through cpp.
2004
 
  cat > conftest.$ac_ext <<EOF
2005
 
#line 2006 "configure"
2006
 
#include "confdefs.h"
2007
 
#include <assert.h>
2008
 
Syntax Error
2009
 
EOF
2010
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011
 
{ (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013
 
if test -z "$ac_err"; then
2014
 
  :
2015
 
else
2016
 
  echo "$ac_err" >&5
2017
 
  echo "configure: failed program was:" >&5
2018
 
  cat conftest.$ac_ext >&5
2019
 
  rm -rf conftest*
2020
 
  CPP="${CC-cc} -E -traditional-cpp"
2021
 
  cat > conftest.$ac_ext <<EOF
2022
 
#line 2023 "configure"
2023
 
#include "confdefs.h"
2024
 
#include <assert.h>
2025
 
Syntax Error
2026
 
EOF
2027
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2028
 
{ (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2029
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2030
 
if test -z "$ac_err"; then
2031
 
  :
2032
 
else
2033
 
  echo "$ac_err" >&5
2034
 
  echo "configure: failed program was:" >&5
2035
 
  cat conftest.$ac_ext >&5
2036
 
  rm -rf conftest*
2037
 
  CPP="${CC-cc} -nologo -E"
2038
 
  cat > conftest.$ac_ext <<EOF
2039
 
#line 2040 "configure"
2040
 
#include "confdefs.h"
2041
 
#include <assert.h>
2042
 
Syntax Error
2043
 
EOF
2044
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2045
 
{ (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2046
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2047
 
if test -z "$ac_err"; then
2048
 
  :
2049
 
else
2050
 
  echo "$ac_err" >&5
2051
 
  echo "configure: failed program was:" >&5
2052
 
  cat conftest.$ac_ext >&5
2053
 
  rm -rf conftest*
2054
 
  CPP=/lib/cpp
2055
 
fi
2056
 
rm -f conftest*
2057
 
fi
2058
 
rm -f conftest*
2059
 
fi
2060
 
rm -f conftest*
2061
 
  ac_cv_prog_CPP="$CPP"
2062
 
fi
2063
 
  CPP="$ac_cv_prog_CPP"
2064
 
else
2065
 
  ac_cv_prog_CPP="$CPP"
2066
 
fi
2067
 
echo "$ac_t""$CPP" 1>&6
2068
 
 
2069
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2070
 
echo "configure:2071: checking for ANSI C header files" >&5
2071
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2072
 
  echo $ac_n "(cached) $ac_c" 1>&6
2073
 
else
2074
 
  cat > conftest.$ac_ext <<EOF
2075
 
#line 2076 "configure"
2076
 
#include "confdefs.h"
 
19963
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
19964
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
19965
if test "${ac_cv_header_stdc+set}" = set; then
 
19966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19967
else
 
19968
  cat >conftest.$ac_ext <<_ACEOF
 
19969
/* confdefs.h.  */
 
19970
_ACEOF
 
19971
cat confdefs.h >>conftest.$ac_ext
 
19972
cat >>conftest.$ac_ext <<_ACEOF
 
19973
/* end confdefs.h.  */
2077
19974
#include <stdlib.h>
2078
19975
#include <stdarg.h>
2079
19976
#include <string.h>
2080
19977
#include <float.h>
2081
 
EOF
2082
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2083
 
{ (eval echo configure:2084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2084
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2085
 
if test -z "$ac_err"; then
2086
 
  rm -rf conftest*
 
19978
 
 
19979
int
 
19980
main ()
 
19981
{
 
19982
 
 
19983
  ;
 
19984
  return 0;
 
19985
}
 
19986
_ACEOF
 
19987
rm -f conftest.$ac_objext
 
19988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19989
  (eval $ac_compile) 2>conftest.er1
 
19990
  ac_status=$?
 
19991
  grep -v '^ *+' conftest.er1 >conftest.err
 
19992
  rm -f conftest.er1
 
19993
  cat conftest.err >&5
 
19994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19995
  (exit $ac_status); } &&
 
19996
         { ac_try='test -z "$ac_c_werror_flag"
 
19997
                         || test ! -s conftest.err'
 
19998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19999
  (eval $ac_try) 2>&5
 
20000
  ac_status=$?
 
20001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20002
  (exit $ac_status); }; } &&
 
20003
         { ac_try='test -s conftest.$ac_objext'
 
20004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20005
  (eval $ac_try) 2>&5
 
20006
  ac_status=$?
 
20007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20008
  (exit $ac_status); }; }; then
2087
20009
  ac_cv_header_stdc=yes
2088
20010
else
2089
 
  echo "$ac_err" >&5
2090
 
  echo "configure: failed program was:" >&5
2091
 
  cat conftest.$ac_ext >&5
2092
 
  rm -rf conftest*
2093
 
  ac_cv_header_stdc=no
 
20011
  echo "$as_me: failed program was:" >&5
 
20012
sed 's/^/| /' conftest.$ac_ext >&5
 
20013
 
 
20014
ac_cv_header_stdc=no
2094
20015
fi
2095
 
rm -f conftest*
 
20016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2096
20017
 
2097
20018
if test $ac_cv_header_stdc = yes; then
2098
20019
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2099
 
cat > conftest.$ac_ext <<EOF
2100
 
#line 2101 "configure"
2101
 
#include "confdefs.h"
 
20020
  cat >conftest.$ac_ext <<_ACEOF
 
20021
/* confdefs.h.  */
 
20022
_ACEOF
 
20023
cat confdefs.h >>conftest.$ac_ext
 
20024
cat >>conftest.$ac_ext <<_ACEOF
 
20025
/* end confdefs.h.  */
2102
20026
#include <string.h>
2103
 
EOF
 
20027
 
 
20028
_ACEOF
2104
20029
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2105
 
  egrep "memchr" >/dev/null 2>&1; then
 
20030
  $EGREP "memchr" >/dev/null 2>&1; then
2106
20031
  :
2107
20032
else
2108
 
  rm -rf conftest*
2109
20033
  ac_cv_header_stdc=no
2110
20034
fi
2111
20035
rm -f conftest*
2114
20038
 
2115
20039
if test $ac_cv_header_stdc = yes; then
2116
20040
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2117
 
cat > conftest.$ac_ext <<EOF
2118
 
#line 2119 "configure"
2119
 
#include "confdefs.h"
 
20041
  cat >conftest.$ac_ext <<_ACEOF
 
20042
/* confdefs.h.  */
 
20043
_ACEOF
 
20044
cat confdefs.h >>conftest.$ac_ext
 
20045
cat >>conftest.$ac_ext <<_ACEOF
 
20046
/* end confdefs.h.  */
2120
20047
#include <stdlib.h>
2121
 
EOF
 
20048
 
 
20049
_ACEOF
2122
20050
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123
 
  egrep "free" >/dev/null 2>&1; then
 
20051
  $EGREP "free" >/dev/null 2>&1; then
2124
20052
  :
2125
20053
else
2126
 
  rm -rf conftest*
2127
20054
  ac_cv_header_stdc=no
2128
20055
fi
2129
20056
rm -f conftest*
2132
20059
 
2133
20060
if test $ac_cv_header_stdc = yes; then
2134
20061
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2135
 
if test "$cross_compiling" = yes; then
 
20062
  if test "$cross_compiling" = yes; then
2136
20063
  :
2137
20064
else
2138
 
  cat > conftest.$ac_ext <<EOF
2139
 
#line 2140 "configure"
2140
 
#include "confdefs.h"
 
20065
  cat >conftest.$ac_ext <<_ACEOF
 
20066
/* confdefs.h.  */
 
20067
_ACEOF
 
20068
cat confdefs.h >>conftest.$ac_ext
 
20069
cat >>conftest.$ac_ext <<_ACEOF
 
20070
/* end confdefs.h.  */
2141
20071
#include <ctype.h>
2142
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2143
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20072
#if ((' ' & 0x0FF) == 0x020)
 
20073
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20074
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20075
#else
 
20076
# define ISLOWER(c) \
 
20077
                   (('a' <= (c) && (c) <= 'i') \
 
20078
                     || ('j' <= (c) && (c) <= 'r') \
 
20079
                     || ('s' <= (c) && (c) <= 'z'))
 
20080
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20081
#endif
 
20082
 
2144
20083
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2145
 
int main () { int i; for (i = 0; i < 256; i++)
2146
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2147
 
exit (0); }
2148
 
 
2149
 
EOF
2150
 
if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2151
 
then
 
20084
int
 
20085
main ()
 
20086
{
 
20087
  int i;
 
20088
  for (i = 0; i < 256; i++)
 
20089
    if (XOR (islower (i), ISLOWER (i))
 
20090
        || toupper (i) != TOUPPER (i))
 
20091
      exit(2);
 
20092
  exit (0);
 
20093
}
 
20094
_ACEOF
 
20095
rm -f conftest$ac_exeext
 
20096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20097
  (eval $ac_link) 2>&5
 
20098
  ac_status=$?
 
20099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20100
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20102
  (eval $ac_try) 2>&5
 
20103
  ac_status=$?
 
20104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20105
  (exit $ac_status); }; }; then
2152
20106
  :
2153
20107
else
2154
 
  echo "configure: failed program was:" >&5
2155
 
  cat conftest.$ac_ext >&5
2156
 
  rm -fr conftest*
2157
 
  ac_cv_header_stdc=no
2158
 
fi
2159
 
rm -fr conftest*
2160
 
fi
2161
 
 
2162
 
fi
2163
 
fi
2164
 
 
2165
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
20108
  echo "$as_me: program exited with status $ac_status" >&5
 
20109
echo "$as_me: failed program was:" >&5
 
20110
sed 's/^/| /' conftest.$ac_ext >&5
 
20111
 
 
20112
( exit $ac_status )
 
20113
ac_cv_header_stdc=no
 
20114
fi
 
20115
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20116
fi
 
20117
fi
 
20118
fi
 
20119
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20120
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2166
20121
if test $ac_cv_header_stdc = yes; then
2167
 
  cat >> confdefs.h <<\EOF
 
20122
 
 
20123
cat >>confdefs.h <<\_ACEOF
2168
20124
#define STDC_HEADERS 1
2169
 
EOF
 
20125
_ACEOF
2170
20126
 
2171
20127
fi
2172
20128
 
2173
 
for ac_hdr in sys/types.h stdlib.h stdio.h errno.h string.h assert.h
 
20129
 
 
20130
 
 
20131
 
 
20132
 
 
20133
 
 
20134
 
 
20135
for ac_header in sys/types.h stdlib.h stdio.h errno.h string.h assert.h
2174
20136
do
2175
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2176
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2177
 
echo "configure:2178: checking for $ac_hdr" >&5
2178
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2179
 
  echo $ac_n "(cached) $ac_c" 1>&6
2180
 
else
2181
 
  cat > conftest.$ac_ext <<EOF
2182
 
#line 2183 "configure"
2183
 
#include "confdefs.h"
2184
 
#include <$ac_hdr>
2185
 
EOF
2186
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2187
 
{ (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2188
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2189
 
if test -z "$ac_err"; then
2190
 
  rm -rf conftest*
2191
 
  eval "ac_cv_header_$ac_safe=yes"
2192
 
else
2193
 
  echo "$ac_err" >&5
2194
 
  echo "configure: failed program was:" >&5
2195
 
  cat conftest.$ac_ext >&5
2196
 
  rm -rf conftest*
2197
 
  eval "ac_cv_header_$ac_safe=no"
2198
 
fi
2199
 
rm -f conftest*
2200
 
fi
2201
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2202
 
  echo "$ac_t""yes" 1>&6
2203
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2204
 
  cat >> confdefs.h <<EOF
2205
 
#define $ac_tr_hdr 1
2206
 
EOF
2207
 
 
2208
 
else
2209
 
  echo "$ac_t""no" 1>&6
2210
 
{ echo "configure: error: required header files missing" 1>&2; exit 1; }
2211
 
fi
 
20137
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20138
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20139
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20140
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20141
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20143
fi
 
20144
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20145
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20146
else
 
20147
  # Is the header compilable?
 
20148
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20149
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20150
cat >conftest.$ac_ext <<_ACEOF
 
20151
/* confdefs.h.  */
 
20152
_ACEOF
 
20153
cat confdefs.h >>conftest.$ac_ext
 
20154
cat >>conftest.$ac_ext <<_ACEOF
 
20155
/* end confdefs.h.  */
 
20156
$ac_includes_default
 
20157
#include <$ac_header>
 
20158
_ACEOF
 
20159
rm -f conftest.$ac_objext
 
20160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20161
  (eval $ac_compile) 2>conftest.er1
 
20162
  ac_status=$?
 
20163
  grep -v '^ *+' conftest.er1 >conftest.err
 
20164
  rm -f conftest.er1
 
20165
  cat conftest.err >&5
 
20166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20167
  (exit $ac_status); } &&
 
20168
         { ac_try='test -z "$ac_c_werror_flag"
 
20169
                         || test ! -s conftest.err'
 
20170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20171
  (eval $ac_try) 2>&5
 
20172
  ac_status=$?
 
20173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20174
  (exit $ac_status); }; } &&
 
20175
         { ac_try='test -s conftest.$ac_objext'
 
20176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20177
  (eval $ac_try) 2>&5
 
20178
  ac_status=$?
 
20179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20180
  (exit $ac_status); }; }; then
 
20181
  ac_header_compiler=yes
 
20182
else
 
20183
  echo "$as_me: failed program was:" >&5
 
20184
sed 's/^/| /' conftest.$ac_ext >&5
 
20185
 
 
20186
ac_header_compiler=no
 
20187
fi
 
20188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20189
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20190
echo "${ECHO_T}$ac_header_compiler" >&6
 
20191
 
 
20192
# Is the header present?
 
20193
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20194
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20195
cat >conftest.$ac_ext <<_ACEOF
 
20196
/* confdefs.h.  */
 
20197
_ACEOF
 
20198
cat confdefs.h >>conftest.$ac_ext
 
20199
cat >>conftest.$ac_ext <<_ACEOF
 
20200
/* end confdefs.h.  */
 
20201
#include <$ac_header>
 
20202
_ACEOF
 
20203
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20204
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20205
  ac_status=$?
 
20206
  grep -v '^ *+' conftest.er1 >conftest.err
 
20207
  rm -f conftest.er1
 
20208
  cat conftest.err >&5
 
20209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20210
  (exit $ac_status); } >/dev/null; then
 
20211
  if test -s conftest.err; then
 
20212
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20213
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20214
  else
 
20215
    ac_cpp_err=
 
20216
  fi
 
20217
else
 
20218
  ac_cpp_err=yes
 
20219
fi
 
20220
if test -z "$ac_cpp_err"; then
 
20221
  ac_header_preproc=yes
 
20222
else
 
20223
  echo "$as_me: failed program was:" >&5
 
20224
sed 's/^/| /' conftest.$ac_ext >&5
 
20225
 
 
20226
  ac_header_preproc=no
 
20227
fi
 
20228
rm -f conftest.err conftest.$ac_ext
 
20229
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20230
echo "${ECHO_T}$ac_header_preproc" >&6
 
20231
 
 
20232
# So?  What about this header?
 
20233
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20234
  yes:no: )
 
20235
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20236
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20237
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20238
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20239
    ac_header_preproc=yes
 
20240
    ;;
 
20241
  no:yes:* )
 
20242
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20243
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20244
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20245
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20246
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20247
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20248
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20249
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20250
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20251
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20252
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20253
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20254
    (
 
20255
      cat <<\_ASBOX
 
20256
## ------------------------------------------ ##
 
20257
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20258
## ------------------------------------------ ##
 
20259
_ASBOX
 
20260
    ) |
 
20261
      sed "s/^/$as_me: WARNING:     /" >&2
 
20262
    ;;
 
20263
esac
 
20264
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20265
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20266
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20268
else
 
20269
  eval "$as_ac_Header=\$ac_header_preproc"
 
20270
fi
 
20271
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20272
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20273
 
 
20274
fi
 
20275
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20276
  cat >>confdefs.h <<_ACEOF
 
20277
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20278
_ACEOF
 
20279
 
 
20280
else
 
20281
  { { echo "$as_me:$LINENO: error: required header files missing" >&5
 
20282
echo "$as_me: error: required header files missing" >&2;}
 
20283
   { (exit 1); exit 1; }; }
 
20284
fi
 
20285
 
2212
20286
done
2213
20287
 
2214
20288
 
2229
20303
        fi # short
2230
20304
        fi # long
2231
20305
        fi # int
2232
 
        
 
20306
 
2233
20307
else
2234
 
  cat > conftest.$ac_ext <<EOF
2235
 
#line 2236 "configure"
2236
 
#include "confdefs.h"
 
20308
  cat >conftest.$ac_ext <<_ACEOF
 
20309
/* confdefs.h.  */
 
20310
_ACEOF
 
20311
cat confdefs.h >>conftest.$ac_ext
 
20312
cat >>conftest.$ac_ext <<_ACEOF
 
20313
/* end confdefs.h.  */
2237
20314
 
2238
20315
        #include <stdio.h>
2239
20316
        #include <stdlib.h>
2246
20323
            fclose(f);
2247
20324
            exit (0);
2248
20325
        }
2249
 
        
2250
 
EOF
2251
 
if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2252
 
then
2253
 
  #Success   
 
20326
 
 
20327
_ACEOF
 
20328
rm -f conftest$ac_exeext
 
20329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20330
  (eval $ac_link) 2>&5
 
20331
  ac_status=$?
 
20332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20333
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20335
  (eval $ac_try) 2>&5
 
20336
  ac_status=$?
 
20337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20338
  (exit $ac_status); }; }; then
 
20339
  #Success
2254
20340
        SIZEOF_SHORT=`cat $__TMPFILE`
2255
20341
        echo `cat $__TMPFILE`
2256
20342
        rm -f $__TMPFILE
2257
 
        
 
20343
 
2258
20344
else
2259
 
  echo "configure: failed program was:" >&5
2260
 
  cat conftest.$ac_ext >&5
2261
 
  rm -fr conftest*
2262
 
  #Failure
 
20345
  echo "$as_me: program exited with status $ac_status" >&5
 
20346
echo "$as_me: failed program was:" >&5
 
20347
sed 's/^/| /' conftest.$ac_ext >&5
 
20348
 
 
20349
( exit $ac_status )
 
20350
#Failure
2263
20351
        SIZEOF_SHORT="CHECK_SIZE_FAILED"
2264
20352
        rm -f $__TMPFILE
2265
 
        
2266
 
fi
2267
 
rm -fr conftest*
2268
 
fi
2269
 
 # AC_TRY_RUN
2270
 
    
 
20353
 
 
20354
fi
 
20355
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20356
fi # AC_TRY_RUN
 
20357
 
2271
20358
 
2272
20359
 
2273
20360
    __TMPFILE=/tmp/conftestval   # Change this to something really unique.
2286
20373
        fi # short
2287
20374
        fi # long
2288
20375
        fi # int
2289
 
        
 
20376
 
2290
20377
else
2291
 
  cat > conftest.$ac_ext <<EOF
2292
 
#line 2293 "configure"
2293
 
#include "confdefs.h"
 
20378
  cat >conftest.$ac_ext <<_ACEOF
 
20379
/* confdefs.h.  */
 
20380
_ACEOF
 
20381
cat confdefs.h >>conftest.$ac_ext
 
20382
cat >>conftest.$ac_ext <<_ACEOF
 
20383
/* end confdefs.h.  */
2294
20384
 
2295
20385
        #include <stdio.h>
2296
20386
        #include <stdlib.h>
2303
20393
            fclose(f);
2304
20394
            exit (0);
2305
20395
        }
2306
 
        
2307
 
EOF
2308
 
if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2309
 
then
2310
 
  #Success   
 
20396
 
 
20397
_ACEOF
 
20398
rm -f conftest$ac_exeext
 
20399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20400
  (eval $ac_link) 2>&5
 
20401
  ac_status=$?
 
20402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20403
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20405
  (eval $ac_try) 2>&5
 
20406
  ac_status=$?
 
20407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20408
  (exit $ac_status); }; }; then
 
20409
  #Success
2311
20410
        SIZEOF_INT=`cat $__TMPFILE`
2312
20411
        echo `cat $__TMPFILE`
2313
20412
        rm -f $__TMPFILE
2314
 
        
 
20413
 
2315
20414
else
2316
 
  echo "configure: failed program was:" >&5
2317
 
  cat conftest.$ac_ext >&5
2318
 
  rm -fr conftest*
2319
 
  #Failure
 
20415
  echo "$as_me: program exited with status $ac_status" >&5
 
20416
echo "$as_me: failed program was:" >&5
 
20417
sed 's/^/| /' conftest.$ac_ext >&5
 
20418
 
 
20419
( exit $ac_status )
 
20420
#Failure
2320
20421
        SIZEOF_INT="CHECK_SIZE_FAILED"
2321
20422
        rm -f $__TMPFILE
2322
 
        
2323
 
fi
2324
 
rm -fr conftest*
2325
 
fi
2326
 
 # AC_TRY_RUN
2327
 
    
 
20423
 
 
20424
fi
 
20425
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20426
fi # AC_TRY_RUN
 
20427
 
2328
20428
 
2329
20429
 
2330
20430
    __TMPFILE=/tmp/conftestval   # Change this to something really unique.
2343
20443
        fi # short
2344
20444
        fi # long
2345
20445
        fi # int
2346
 
        
 
20446
 
2347
20447
else
2348
 
  cat > conftest.$ac_ext <<EOF
2349
 
#line 2350 "configure"
2350
 
#include "confdefs.h"
 
20448
  cat >conftest.$ac_ext <<_ACEOF
 
20449
/* confdefs.h.  */
 
20450
_ACEOF
 
20451
cat confdefs.h >>conftest.$ac_ext
 
20452
cat >>conftest.$ac_ext <<_ACEOF
 
20453
/* end confdefs.h.  */
2351
20454
 
2352
20455
        #include <stdio.h>
2353
20456
        #include <stdlib.h>
2360
20463
            fclose(f);
2361
20464
            exit (0);
2362
20465
        }
2363
 
        
2364
 
EOF
2365
 
if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2366
 
then
2367
 
  #Success   
 
20466
 
 
20467
_ACEOF
 
20468
rm -f conftest$ac_exeext
 
20469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20470
  (eval $ac_link) 2>&5
 
20471
  ac_status=$?
 
20472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20473
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20475
  (eval $ac_try) 2>&5
 
20476
  ac_status=$?
 
20477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20478
  (exit $ac_status); }; }; then
 
20479
  #Success
2368
20480
        SIZEOF_LONG=`cat $__TMPFILE`
2369
20481
        echo `cat $__TMPFILE`
2370
20482
        rm -f $__TMPFILE
2371
 
        
 
20483
 
2372
20484
else
2373
 
  echo "configure: failed program was:" >&5
2374
 
  cat conftest.$ac_ext >&5
2375
 
  rm -fr conftest*
2376
 
  #Failure
 
20485
  echo "$as_me: program exited with status $ac_status" >&5
 
20486
echo "$as_me: failed program was:" >&5
 
20487
sed 's/^/| /' conftest.$ac_ext >&5
 
20488
 
 
20489
( exit $ac_status )
 
20490
#Failure
2377
20491
        SIZEOF_LONG="CHECK_SIZE_FAILED"
2378
20492
        rm -f $__TMPFILE
2379
 
        
2380
 
fi
2381
 
rm -fr conftest*
2382
 
fi
2383
 
 # AC_TRY_RUN
2384
 
    
 
20493
 
 
20494
fi
 
20495
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20496
fi # AC_TRY_RUN
 
20497
 
2385
20498
 
2386
20499
 
2387
20500
    __TMPFILE=/tmp/conftestval   # Change this to something really unique.
2400
20513
        fi # short
2401
20514
        fi # long
2402
20515
        fi # int
2403
 
        
 
20516
 
2404
20517
else
2405
 
  cat > conftest.$ac_ext <<EOF
2406
 
#line 2407 "configure"
2407
 
#include "confdefs.h"
 
20518
  cat >conftest.$ac_ext <<_ACEOF
 
20519
/* confdefs.h.  */
 
20520
_ACEOF
 
20521
cat confdefs.h >>conftest.$ac_ext
 
20522
cat >>conftest.$ac_ext <<_ACEOF
 
20523
/* end confdefs.h.  */
2408
20524
 
2409
20525
        #include <stdio.h>
2410
20526
        #include <stdlib.h>
2417
20533
            fclose(f);
2418
20534
            exit (0);
2419
20535
        }
2420
 
        
2421
 
EOF
2422
 
if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2423
 
then
2424
 
  #Success   
 
20536
 
 
20537
_ACEOF
 
20538
rm -f conftest$ac_exeext
 
20539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20540
  (eval $ac_link) 2>&5
 
20541
  ac_status=$?
 
20542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20543
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20545
  (eval $ac_try) 2>&5
 
20546
  ac_status=$?
 
20547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20548
  (exit $ac_status); }; }; then
 
20549
  #Success
2425
20550
        SIZEOF_LONG_LONG=`cat $__TMPFILE`
2426
20551
        echo `cat $__TMPFILE`
2427
20552
        rm -f $__TMPFILE
2428
 
        
 
20553
 
2429
20554
else
2430
 
  echo "configure: failed program was:" >&5
2431
 
  cat conftest.$ac_ext >&5
2432
 
  rm -fr conftest*
2433
 
  #Failure
 
20555
  echo "$as_me: program exited with status $ac_status" >&5
 
20556
echo "$as_me: failed program was:" >&5
 
20557
sed 's/^/| /' conftest.$ac_ext >&5
 
20558
 
 
20559
( exit $ac_status )
 
20560
#Failure
2434
20561
        SIZEOF_LONG_LONG="CHECK_SIZE_FAILED"
2435
20562
        rm -f $__TMPFILE
2436
 
        
2437
 
fi
2438
 
rm -fr conftest*
2439
 
fi
2440
 
 # AC_TRY_RUN
2441
 
    
 
20563
 
 
20564
fi
 
20565
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20566
fi # AC_TRY_RUN
 
20567
 
2442
20568
 
2443
20569
 
2444
20570
if test x$SIZEOF_INT = x4; then
2450
20576
else if test x$SIZEOF_SHORT =x4; then
2451
20577
    INT32_T=short
2452
20578
else
2453
 
    { echo "configure: error: Did not find any 4-byte int type!" 1>&2; exit 1; }
 
20579
    { { echo "$as_me:$LINENO: error: Did not find any 4-byte int type!" >&5
 
20580
echo "$as_me: error: Did not find any 4-byte int type!" >&2;}
 
20581
   { (exit 1); exit 1; }; }
2454
20582
fi # SIZEOF_SHORT
2455
20583
fi # SIZEOF_LONG_LONG
2456
20584
fi # SIZEOF_LONG
2464
20592
  DEBUG_ON=$withval
2465
20593
else
2466
20594
  DEBUG_ON=no
2467
 
fi
2468
 
 
 
20595
fi;
2469
20596
 
2470
20597
# Enable debugging
2471
20598
if test x$DEBUG_ON = xyes; then
2478
20605
CXXFLAGS="-O2 -Wall"
2479
20606
 
2480
20607
# Set special cflags if GCC is used
2481
 
if test x$ac_cv_prog_gcc = xyes; then
 
20608
if test x$ac_cv_c_compiler_gnu = xyes; then
2482
20609
    CFLAGS="$CFLAGS -Wall -ansi"
2483
20610
fi
2484
20611
 
2485
20612
 
2486
 
trap '' 1 2 15
2487
 
cat > confcache <<\EOF
 
20613
                                        ac_config_files="$ac_config_files Makefile src/ght_hash_table.h src/Makefile examples/Makefile"
 
20614
cat >confcache <<\_ACEOF
2488
20615
# This file is a shell script that caches the results of configure
2489
20616
# tests run on this system so they can be shared between configure
2490
 
# scripts and configure runs.  It is not useful on other systems.
2491
 
# If it contains results you don't want to keep, you may remove or edit it.
2492
 
#
2493
 
# By default, configure uses ./config.cache as the cache file,
2494
 
# creating it if it does not exist already.  You can give configure
2495
 
# the --cache-file=FILE option to use a different cache file; that is
2496
 
# what configure does when it calls configure scripts in
2497
 
# subdirectories, so they share the cache.
2498
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2499
 
# config.status only pays attention to the cache file if you give it the
2500
 
# --recheck option to rerun configure.
2501
 
#
2502
 
EOF
 
20617
# scripts and configure runs, see configure's option --config-cache.
 
20618
# It is not useful on other systems.  If it contains results you don't
 
20619
# want to keep, you may remove or edit it.
 
20620
#
 
20621
# config.status only pays attention to the cache file if you give it
 
20622
# the --recheck option to rerun configure.
 
20623
#
 
20624
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20625
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20626
# following values.
 
20627
 
 
20628
_ACEOF
 
20629
 
2503
20630
# The following way of writing the cache mishandles newlines in values,
2504
20631
# but we know of no workaround that is simple, portable, and efficient.
2505
20632
# So, don't put newlines in cache variables' values.
2506
20633
# Ultrix sh set writes to stderr and can't be redirected directly,
2507
20634
# and sets the high bit in the cache file unless we assign to the vars.
2508
 
(set) 2>&1 |
2509
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2510
 
  *ac_space=\ *)
2511
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
2512
 
    # turns \\\\ into \\, and sed turns \\ into \).
2513
 
    sed -n \
2514
 
      -e "s/'/'\\\\''/g" \
2515
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2516
 
    ;;
2517
 
  *)
2518
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2519
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2520
 
    ;;
2521
 
  esac >> confcache
2522
 
if cmp -s $cache_file confcache; then
2523
 
  :
2524
 
else
 
20635
{
 
20636
  (set) 2>&1 |
 
20637
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
20638
    *ac_space=\ *)
 
20639
      # `set' does not quote correctly, so add quotes (double-quote
 
20640
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20641
      sed -n \
 
20642
        "s/'/'\\\\''/g;
 
20643
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20644
      ;;
 
20645
    *)
 
20646
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20647
      sed -n \
 
20648
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
20649
      ;;
 
20650
    esac;
 
20651
} |
 
20652
  sed '
 
20653
     t clear
 
20654
     : clear
 
20655
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20656
     t end
 
20657
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20658
     : end' >>confcache
 
20659
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2525
20660
  if test -w $cache_file; then
2526
 
    echo "updating cache $cache_file"
2527
 
    cat confcache > $cache_file
 
20661
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
20662
    cat confcache >$cache_file
2528
20663
  else
2529
20664
    echo "not updating unwritable cache $cache_file"
2530
20665
  fi
2531
20666
fi
2532
20667
rm -f confcache
2533
20668
 
2534
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2535
 
 
2536
20669
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2537
20670
# Let make expand exec_prefix.
2538
20671
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2539
20672
 
2540
 
# Any assignment to VPATH causes Sun make to only execute
2541
 
# the first set of double-colon rules, so remove it if not needed.
2542
 
# If there is a colon in the path, we need to keep it.
 
20673
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20674
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20675
# trailing colons and then remove the whole line if VPATH becomes empty
 
20676
# (actually we leave an empty line to preserve line numbers).
2543
20677
if test "x$srcdir" = x.; then
2544
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
20678
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20679
s/:*\$(srcdir):*/:/;
 
20680
s/:*\${srcdir}:*/:/;
 
20681
s/:*@srcdir@:*/:/;
 
20682
s/^\([^=]*=[     ]*\):*/\1/;
 
20683
s/:*$//;
 
20684
s/^[^=]*=[       ]*$//;
 
20685
}'
2545
20686
fi
2546
20687
 
2547
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2548
 
 
2549
20688
DEFS=-DHAVE_CONFIG_H
2550
20689
 
2551
 
# Without the "./", some shells look in PATH for config.status.
 
20690
ac_libobjs=
 
20691
ac_ltlibobjs=
 
20692
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20693
  # 1. Remove the extension, and $U if already installed.
 
20694
  ac_i=`echo "$ac_i" |
 
20695
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
20696
  # 2. Add them.
 
20697
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
20698
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
20699
done
 
20700
LIBOBJS=$ac_libobjs
 
20701
 
 
20702
LTLIBOBJS=$ac_ltlibobjs
 
20703
 
 
20704
 
 
20705
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20706
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20707
Usually this means the macro was only invoked conditionally." >&5
 
20708
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20709
Usually this means the macro was only invoked conditionally." >&2;}
 
20710
   { (exit 1); exit 1; }; }
 
20711
fi
 
20712
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20713
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20714
Usually this means the macro was only invoked conditionally." >&5
 
20715
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20716
Usually this means the macro was only invoked conditionally." >&2;}
 
20717
   { (exit 1); exit 1; }; }
 
20718
fi
 
20719
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20720
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20721
Usually this means the macro was only invoked conditionally." >&5
 
20722
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20723
Usually this means the macro was only invoked conditionally." >&2;}
 
20724
   { (exit 1); exit 1; }; }
 
20725
fi
 
20726
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20727
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20728
Usually this means the macro was only invoked conditionally." >&5
 
20729
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20730
Usually this means the macro was only invoked conditionally." >&2;}
 
20731
   { (exit 1); exit 1; }; }
 
20732
fi
 
20733
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20734
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20735
Usually this means the macro was only invoked conditionally." >&5
 
20736
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20737
Usually this means the macro was only invoked conditionally." >&2;}
 
20738
   { (exit 1); exit 1; }; }
 
20739
fi
 
20740
 
2552
20741
: ${CONFIG_STATUS=./config.status}
2553
 
 
2554
 
echo creating $CONFIG_STATUS
2555
 
rm -f $CONFIG_STATUS
2556
 
cat > $CONFIG_STATUS <<EOF
2557
 
#! /bin/sh
2558
 
# Generated automatically by configure.
 
20742
ac_clean_files_save=$ac_clean_files
 
20743
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20744
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20745
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20746
cat >$CONFIG_STATUS <<_ACEOF
 
20747
#! $SHELL
 
20748
# Generated by $as_me.
2559
20749
# Run this file to recreate the current configuration.
2560
 
# This directory was configured as follows,
2561
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2562
 
#
2563
 
# $0 $ac_configure_args
2564
 
#
2565
20750
# Compiler output produced by configure, useful for debugging
2566
 
# configure, is in ./config.log if it exists.
2567
 
 
2568
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2569
 
for ac_option
2570
 
do
2571
 
  case "\$ac_option" in
 
20751
# configure, is in config.log if it exists.
 
20752
 
 
20753
debug=false
 
20754
ac_cs_recheck=false
 
20755
ac_cs_silent=false
 
20756
SHELL=\${CONFIG_SHELL-$SHELL}
 
20757
_ACEOF
 
20758
 
 
20759
cat >>$CONFIG_STATUS <<\_ACEOF
 
20760
## --------------------- ##
 
20761
## M4sh Initialization.  ##
 
20762
## --------------------- ##
 
20763
 
 
20764
# Be Bourne compatible
 
20765
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20766
  emulate sh
 
20767
  NULLCMD=:
 
20768
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20769
  # is contrary to our usage.  Disable this feature.
 
20770
  alias -g '${1+"$@"}'='"$@"'
 
20771
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20772
  set -o posix
 
20773
fi
 
20774
DUALCASE=1; export DUALCASE # for MKS sh
 
20775
 
 
20776
# Support unset when possible.
 
20777
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20778
  as_unset=unset
 
20779
else
 
20780
  as_unset=false
 
20781
fi
 
20782
 
 
20783
 
 
20784
# Work around bugs in pre-3.0 UWIN ksh.
 
20785
$as_unset ENV MAIL MAILPATH
 
20786
PS1='$ '
 
20787
PS2='> '
 
20788
PS4='+ '
 
20789
 
 
20790
# NLS nuisances.
 
20791
for as_var in \
 
20792
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20793
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20794
  LC_TELEPHONE LC_TIME
 
20795
do
 
20796
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20797
    eval $as_var=C; export $as_var
 
20798
  else
 
20799
    $as_unset $as_var
 
20800
  fi
 
20801
done
 
20802
 
 
20803
# Required to use basename.
 
20804
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20805
  as_expr=expr
 
20806
else
 
20807
  as_expr=false
 
20808
fi
 
20809
 
 
20810
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
20811
  as_basename=basename
 
20812
else
 
20813
  as_basename=false
 
20814
fi
 
20815
 
 
20816
 
 
20817
# Name of the executable.
 
20818
as_me=`$as_basename "$0" ||
 
20819
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20820
         X"$0" : 'X\(//\)$' \| \
 
20821
         X"$0" : 'X\(/\)$' \| \
 
20822
         .     : '\(.\)' 2>/dev/null ||
 
20823
echo X/"$0" |
 
20824
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
20825
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
20826
          /^X\/\(\/\).*/{ s//\1/; q; }
 
20827
          s/.*/./; q'`
 
20828
 
 
20829
 
 
20830
# PATH needs CR, and LINENO needs CR and PATH.
 
20831
# Avoid depending upon Character Ranges.
 
20832
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20833
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20834
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20835
as_cr_digits='0123456789'
 
20836
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20837
 
 
20838
# The user is always right.
 
20839
if test "${PATH_SEPARATOR+set}" != set; then
 
20840
  echo "#! /bin/sh" >conf$$.sh
 
20841
  echo  "exit 0"   >>conf$$.sh
 
20842
  chmod +x conf$$.sh
 
20843
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20844
    PATH_SEPARATOR=';'
 
20845
  else
 
20846
    PATH_SEPARATOR=:
 
20847
  fi
 
20848
  rm -f conf$$.sh
 
20849
fi
 
20850
 
 
20851
 
 
20852
  as_lineno_1=$LINENO
 
20853
  as_lineno_2=$LINENO
 
20854
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20855
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20856
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20857
  # Find who we are.  Look in the path if we contain no path at all
 
20858
  # relative or not.
 
20859
  case $0 in
 
20860
    *[\\/]* ) as_myself=$0 ;;
 
20861
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20862
for as_dir in $PATH
 
20863
do
 
20864
  IFS=$as_save_IFS
 
20865
  test -z "$as_dir" && as_dir=.
 
20866
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20867
done
 
20868
 
 
20869
       ;;
 
20870
  esac
 
20871
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20872
  # in which case we are not to be found in the path.
 
20873
  if test "x$as_myself" = x; then
 
20874
    as_myself=$0
 
20875
  fi
 
20876
  if test ! -f "$as_myself"; then
 
20877
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20878
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20879
   { (exit 1); exit 1; }; }
 
20880
  fi
 
20881
  case $CONFIG_SHELL in
 
20882
  '')
 
20883
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20884
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20885
do
 
20886
  IFS=$as_save_IFS
 
20887
  test -z "$as_dir" && as_dir=.
 
20888
  for as_base in sh bash ksh sh5; do
 
20889
         case $as_dir in
 
20890
         /*)
 
20891
           if ("$as_dir/$as_base" -c '
 
20892
  as_lineno_1=$LINENO
 
20893
  as_lineno_2=$LINENO
 
20894
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20895
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20896
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20897
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20898
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20899
             CONFIG_SHELL=$as_dir/$as_base
 
20900
             export CONFIG_SHELL
 
20901
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20902
           fi;;
 
20903
         esac
 
20904
       done
 
20905
done
 
20906
;;
 
20907
  esac
 
20908
 
 
20909
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20910
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20911
  # line-number line before each line; the second 'sed' does the real
 
20912
  # work.  The second script uses 'N' to pair each line-number line
 
20913
  # with the numbered line, and appends trailing '-' during
 
20914
  # substitution so that $LINENO is not a special case at line end.
 
20915
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20916
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20917
  sed '=' <$as_myself |
 
20918
    sed '
 
20919
      N
 
20920
      s,$,-,
 
20921
      : loop
 
20922
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20923
      t loop
 
20924
      s,-$,,
 
20925
      s,^['$as_cr_digits']*\n,,
 
20926
    ' >$as_me.lineno &&
 
20927
  chmod +x $as_me.lineno ||
 
20928
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20929
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20930
   { (exit 1); exit 1; }; }
 
20931
 
 
20932
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20933
  # (the dirname of $[0] is not the place where we might find the
 
20934
  # original and so on.  Autoconf is especially sensible to this).
 
20935
  . ./$as_me.lineno
 
20936
  # Exit status is that of the last command.
 
20937
  exit
 
20938
}
 
20939
 
 
20940
 
 
20941
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20942
  *c*,-n*) ECHO_N= ECHO_C='
 
20943
' ECHO_T='      ' ;;
 
20944
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20945
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20946
esac
 
20947
 
 
20948
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20949
  as_expr=expr
 
20950
else
 
20951
  as_expr=false
 
20952
fi
 
20953
 
 
20954
rm -f conf$$ conf$$.exe conf$$.file
 
20955
echo >conf$$.file
 
20956
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20957
  # We could just check for DJGPP; but this test a) works b) is more generic
 
20958
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
20959
  if test -f conf$$.exe; then
 
20960
    # Don't use ln at all; we don't have any links
 
20961
    as_ln_s='cp -p'
 
20962
  else
 
20963
    as_ln_s='ln -s'
 
20964
  fi
 
20965
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20966
  as_ln_s=ln
 
20967
else
 
20968
  as_ln_s='cp -p'
 
20969
fi
 
20970
rm -f conf$$ conf$$.exe conf$$.file
 
20971
 
 
20972
if mkdir -p . 2>/dev/null; then
 
20973
  as_mkdir_p=:
 
20974
else
 
20975
  test -d ./-p && rmdir ./-p
 
20976
  as_mkdir_p=false
 
20977
fi
 
20978
 
 
20979
as_executable_p="test -f"
 
20980
 
 
20981
# Sed expression to map a string onto a valid CPP name.
 
20982
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20983
 
 
20984
# Sed expression to map a string onto a valid variable name.
 
20985
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20986
 
 
20987
 
 
20988
# IFS
 
20989
# We need space, tab and new line, in precisely that order.
 
20990
as_nl='
 
20991
'
 
20992
IFS="   $as_nl"
 
20993
 
 
20994
# CDPATH.
 
20995
$as_unset CDPATH
 
20996
 
 
20997
exec 6>&1
 
20998
 
 
20999
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
21000
# report actual input values of CONFIG_FILES etc. instead of their
 
21001
# values after options handling.  Logging --version etc. is OK.
 
21002
exec 5>>config.log
 
21003
{
 
21004
  echo
 
21005
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21006
## Running $as_me. ##
 
21007
_ASBOX
 
21008
} >&5
 
21009
cat >&5 <<_CSEOF
 
21010
 
 
21011
This file was extended by $as_me, which was
 
21012
generated by GNU Autoconf 2.59.  Invocation command line was
 
21013
 
 
21014
  CONFIG_FILES    = $CONFIG_FILES
 
21015
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
21016
  CONFIG_LINKS    = $CONFIG_LINKS
 
21017
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
21018
  $ $0 $@
 
21019
 
 
21020
_CSEOF
 
21021
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
21022
echo >&5
 
21023
_ACEOF
 
21024
 
 
21025
# Files that config.status was made for.
 
21026
if test -n "$ac_config_files"; then
 
21027
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
21028
fi
 
21029
 
 
21030
if test -n "$ac_config_headers"; then
 
21031
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
21032
fi
 
21033
 
 
21034
if test -n "$ac_config_links"; then
 
21035
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
21036
fi
 
21037
 
 
21038
if test -n "$ac_config_commands"; then
 
21039
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
21040
fi
 
21041
 
 
21042
cat >>$CONFIG_STATUS <<\_ACEOF
 
21043
 
 
21044
ac_cs_usage="\
 
21045
\`$as_me' instantiates files from templates according to the
 
21046
current configuration.
 
21047
 
 
21048
Usage: $0 [OPTIONS] [FILE]...
 
21049
 
 
21050
  -h, --help       print this help, then exit
 
21051
  -V, --version    print version number, then exit
 
21052
  -q, --quiet      do not print progress messages
 
21053
  -d, --debug      don't remove temporary files
 
21054
      --recheck    update $as_me by reconfiguring in the same conditions
 
21055
  --file=FILE[:TEMPLATE]
 
21056
                   instantiate the configuration file FILE
 
21057
  --header=FILE[:TEMPLATE]
 
21058
                   instantiate the configuration header FILE
 
21059
 
 
21060
Configuration files:
 
21061
$config_files
 
21062
 
 
21063
Configuration headers:
 
21064
$config_headers
 
21065
 
 
21066
Configuration commands:
 
21067
$config_commands
 
21068
 
 
21069
Report bugs to <bug-autoconf@gnu.org>."
 
21070
_ACEOF
 
21071
 
 
21072
cat >>$CONFIG_STATUS <<_ACEOF
 
21073
ac_cs_version="\\
 
21074
config.status
 
21075
configured by $0, generated by GNU Autoconf 2.59,
 
21076
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
21077
 
 
21078
Copyright (C) 2003 Free Software Foundation, Inc.
 
21079
This config.status script is free software; the Free Software Foundation
 
21080
gives unlimited permission to copy, distribute and modify it."
 
21081
srcdir=$srcdir
 
21082
INSTALL="$INSTALL"
 
21083
_ACEOF
 
21084
 
 
21085
cat >>$CONFIG_STATUS <<\_ACEOF
 
21086
# If no file are specified by the user, then we need to provide default
 
21087
# value.  By we need to know if files were specified by the user.
 
21088
ac_need_defaults=:
 
21089
while test $# != 0
 
21090
do
 
21091
  case $1 in
 
21092
  --*=*)
 
21093
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
21094
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
21095
    ac_shift=:
 
21096
    ;;
 
21097
  -*)
 
21098
    ac_option=$1
 
21099
    ac_optarg=$2
 
21100
    ac_shift=shift
 
21101
    ;;
 
21102
  *) # This is not an option, so the user has probably given explicit
 
21103
     # arguments.
 
21104
     ac_option=$1
 
21105
     ac_need_defaults=false;;
 
21106
  esac
 
21107
 
 
21108
  case $ac_option in
 
21109
  # Handling of the options.
 
21110
_ACEOF
 
21111
cat >>$CONFIG_STATUS <<\_ACEOF
2572
21112
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2573
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2574
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2575
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2576
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2577
 
    exit 0 ;;
2578
 
  -help | --help | --hel | --he | --h)
2579
 
    echo "\$ac_cs_usage"; exit 0 ;;
2580
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
2581
 
  esac
2582
 
done
2583
 
 
2584
 
ac_given_srcdir=$srcdir
2585
 
ac_given_INSTALL="$INSTALL"
2586
 
 
2587
 
trap 'rm -fr `echo "Makefile src/ght_hash_table.h src/Makefile examples/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2588
 
EOF
2589
 
cat >> $CONFIG_STATUS <<EOF
2590
 
 
2591
 
# Protect against being on the right side of a sed subst in config.status.
2592
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2593
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2594
 
$ac_vpsub
 
21113
    ac_cs_recheck=: ;;
 
21114
  --version | --vers* | -V )
 
21115
    echo "$ac_cs_version"; exit 0 ;;
 
21116
  --he | --h)
 
21117
    # Conflict between --help and --header
 
21118
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
21119
Try \`$0 --help' for more information." >&5
 
21120
echo "$as_me: error: ambiguous option: $1
 
21121
Try \`$0 --help' for more information." >&2;}
 
21122
   { (exit 1); exit 1; }; };;
 
21123
  --help | --hel | -h )
 
21124
    echo "$ac_cs_usage"; exit 0 ;;
 
21125
  --debug | --d* | -d )
 
21126
    debug=: ;;
 
21127
  --file | --fil | --fi | --f )
 
21128
    $ac_shift
 
21129
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21130
    ac_need_defaults=false;;
 
21131
  --header | --heade | --head | --hea )
 
21132
    $ac_shift
 
21133
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21134
    ac_need_defaults=false;;
 
21135
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21136
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21137
    ac_cs_silent=: ;;
 
21138
 
 
21139
  # This is an error.
 
21140
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21141
Try \`$0 --help' for more information." >&5
 
21142
echo "$as_me: error: unrecognized option: $1
 
21143
Try \`$0 --help' for more information." >&2;}
 
21144
   { (exit 1); exit 1; }; } ;;
 
21145
 
 
21146
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21147
 
 
21148
  esac
 
21149
  shift
 
21150
done
 
21151
 
 
21152
ac_configure_extra_args=
 
21153
 
 
21154
if $ac_cs_silent; then
 
21155
  exec 6>/dev/null
 
21156
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21157
fi
 
21158
 
 
21159
_ACEOF
 
21160
cat >>$CONFIG_STATUS <<_ACEOF
 
21161
if \$ac_cs_recheck; then
 
21162
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21163
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21164
fi
 
21165
 
 
21166
_ACEOF
 
21167
 
 
21168
cat >>$CONFIG_STATUS <<_ACEOF
 
21169
#
 
21170
# INIT-COMMANDS section.
 
21171
#
 
21172
 
 
21173
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21174
 
 
21175
_ACEOF
 
21176
 
 
21177
 
 
21178
 
 
21179
cat >>$CONFIG_STATUS <<\_ACEOF
 
21180
for ac_config_target in $ac_config_targets
 
21181
do
 
21182
  case "$ac_config_target" in
 
21183
  # Handling of arguments.
 
21184
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21185
  "src/ght_hash_table.h" ) CONFIG_FILES="$CONFIG_FILES src/ght_hash_table.h" ;;
 
21186
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
21187
  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
 
21188
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21189
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21190
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21191
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21192
   { (exit 1); exit 1; }; };;
 
21193
  esac
 
21194
done
 
21195
 
 
21196
# If the user did not use the arguments to specify the items to instantiate,
 
21197
# then the envvar interface is used.  Set only those that are not.
 
21198
# We use the long form for the default assignment because of an extremely
 
21199
# bizarre bug on SunOS 4.1.3.
 
21200
if $ac_need_defaults; then
 
21201
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21202
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21203
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21204
fi
 
21205
 
 
21206
# Have a temporary directory for convenience.  Make it in the build tree
 
21207
# simply because there is no reason to put it here, and in addition,
 
21208
# creating and moving files from /tmp can sometimes cause problems.
 
21209
# Create a temporary directory, and hook for its removal unless debugging.
 
21210
$debug ||
 
21211
{
 
21212
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21213
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21214
}
 
21215
 
 
21216
# Create a (secure) tmp directory for tmp files.
 
21217
 
 
21218
{
 
21219
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21220
  test -n "$tmp" && test -d "$tmp"
 
21221
}  ||
 
21222
{
 
21223
  tmp=./confstat$$-$RANDOM
 
21224
  (umask 077 && mkdir $tmp)
 
21225
} ||
 
21226
{
 
21227
   echo "$me: cannot create a temporary directory in ." >&2
 
21228
   { (exit 1); exit 1; }
 
21229
}
 
21230
 
 
21231
_ACEOF
 
21232
 
 
21233
cat >>$CONFIG_STATUS <<_ACEOF
 
21234
 
 
21235
#
 
21236
# CONFIG_FILES section.
 
21237
#
 
21238
 
 
21239
# No need to generate the scripts if there are no CONFIG_FILES.
 
21240
# This happens for instance when ./config.status config.h
 
21241
if test -n "\$CONFIG_FILES"; then
 
21242
  # Protect against being on the right side of a sed subst in config.status.
 
21243
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21244
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21245
s,@SHELL@,$SHELL,;t t
 
21246
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21247
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21248
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21249
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21250
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21251
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21252
s,@exec_prefix@,$exec_prefix,;t t
 
21253
s,@prefix@,$prefix,;t t
 
21254
s,@program_transform_name@,$program_transform_name,;t t
 
21255
s,@bindir@,$bindir,;t t
 
21256
s,@sbindir@,$sbindir,;t t
 
21257
s,@libexecdir@,$libexecdir,;t t
 
21258
s,@datadir@,$datadir,;t t
 
21259
s,@sysconfdir@,$sysconfdir,;t t
 
21260
s,@sharedstatedir@,$sharedstatedir,;t t
 
21261
s,@localstatedir@,$localstatedir,;t t
 
21262
s,@libdir@,$libdir,;t t
 
21263
s,@includedir@,$includedir,;t t
 
21264
s,@oldincludedir@,$oldincludedir,;t t
 
21265
s,@infodir@,$infodir,;t t
 
21266
s,@mandir@,$mandir,;t t
 
21267
s,@build_alias@,$build_alias,;t t
 
21268
s,@host_alias@,$host_alias,;t t
 
21269
s,@target_alias@,$target_alias,;t t
 
21270
s,@DEFS@,$DEFS,;t t
 
21271
s,@ECHO_C@,$ECHO_C,;t t
 
21272
s,@ECHO_N@,$ECHO_N,;t t
 
21273
s,@ECHO_T@,$ECHO_T,;t t
 
21274
s,@LIBS@,$LIBS,;t t
 
21275
s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
 
21276
s,@MINOR_VERSION@,$MINOR_VERSION,;t t
 
21277
s,@MICRO_VERSION@,$MICRO_VERSION,;t t
 
21278
s,@INTERFACE_AGE@,$INTERFACE_AGE,;t t
 
21279
s,@BINARY_AGE@,$BINARY_AGE,;t t
 
21280
s,@VERSION@,$VERSION,;t t
 
21281
s,@LT_RELEASE@,$LT_RELEASE,;t t
 
21282
s,@LT_CURRENT@,$LT_CURRENT,;t t
 
21283
s,@LT_REVISION@,$LT_REVISION,;t t
 
21284
s,@LT_AGE@,$LT_AGE,;t t
 
21285
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
21286
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
21287
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
21288
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
21289
s,@PACKAGE@,$PACKAGE,;t t
 
21290
s,@ACLOCAL@,$ACLOCAL,;t t
 
21291
s,@AUTOCONF@,$AUTOCONF,;t t
 
21292
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21293
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21294
s,@MAKEINFO@,$MAKEINFO,;t t
 
21295
s,@install_sh@,$install_sh,;t t
 
21296
s,@STRIP@,$STRIP,;t t
 
21297
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21298
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21299
s,@mkdir_p@,$mkdir_p,;t t
 
21300
s,@AWK@,$AWK,;t t
 
21301
s,@SET_MAKE@,$SET_MAKE,;t t
 
21302
s,@am__leading_dot@,$am__leading_dot,;t t
 
21303
s,@AMTAR@,$AMTAR,;t t
 
21304
s,@am__tar@,$am__tar,;t t
 
21305
s,@am__untar@,$am__untar,;t t
 
21306
s,@build@,$build,;t t
 
21307
s,@build_cpu@,$build_cpu,;t t
 
21308
s,@build_vendor@,$build_vendor,;t t
 
21309
s,@build_os@,$build_os,;t t
 
21310
s,@host@,$host,;t t
 
21311
s,@host_cpu@,$host_cpu,;t t
 
21312
s,@host_vendor@,$host_vendor,;t t
 
21313
s,@host_os@,$host_os,;t t
 
21314
s,@CC@,$CC,;t t
 
21315
s,@CFLAGS@,$CFLAGS,;t t
 
21316
s,@LDFLAGS@,$LDFLAGS,;t t
 
21317
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
21318
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
21319
s,@EXEEXT@,$EXEEXT,;t t
 
21320
s,@OBJEXT@,$OBJEXT,;t t
 
21321
s,@DEPDIR@,$DEPDIR,;t t
 
21322
s,@am__include@,$am__include,;t t
 
21323
s,@am__quote@,$am__quote,;t t
 
21324
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
21325
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
21326
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
21327
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
21328
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
21329
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
21330
s,@EGREP@,$EGREP,;t t
 
21331
s,@LN_S@,$LN_S,;t t
 
21332
s,@ECHO@,$ECHO,;t t
 
21333
s,@AR@,$AR,;t t
 
21334
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
21335
s,@RANLIB@,$RANLIB,;t t
 
21336
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21337
s,@CPP@,$CPP,;t t
 
21338
s,@CXX@,$CXX,;t t
 
21339
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21340
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
21341
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
21342
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
21343
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
21344
s,@CXXCPP@,$CXXCPP,;t t
 
21345
s,@F77@,$F77,;t t
 
21346
s,@FFLAGS@,$FFLAGS,;t t
 
21347
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
21348
s,@LIBTOOL@,$LIBTOOL,;t t
 
21349
s,@INT32_T@,$INT32_T,;t t
 
21350
s,@LIBOBJS@,$LIBOBJS,;t t
 
21351
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21352
CEOF
 
21353
 
 
21354
_ACEOF
 
21355
 
 
21356
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21357
  # Split the substitutions into bite-sized pieces for seds with
 
21358
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21359
  ac_max_sed_lines=48
 
21360
  ac_sed_frag=1 # Number of current file.
 
21361
  ac_beg=1 # First line for current file.
 
21362
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21363
  ac_more_lines=:
 
21364
  ac_sed_cmds=
 
21365
  while $ac_more_lines; do
 
21366
    if test $ac_beg -gt 1; then
 
21367
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21368
    else
 
21369
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21370
    fi
 
21371
    if test ! -s $tmp/subs.frag; then
 
21372
      ac_more_lines=false
 
21373
    else
 
21374
      # The purpose of the label and of the branching condition is to
 
21375
      # speed up the sed processing (if there are no `@' at all, there
 
21376
      # is no need to browse any of the substitutions).
 
21377
      # These are the two extra sed commands mentioned above.
 
21378
      (echo ':t
 
21379
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21380
      if test -z "$ac_sed_cmds"; then
 
21381
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21382
      else
 
21383
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21384
      fi
 
21385
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21386
      ac_beg=$ac_end
 
21387
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21388
    fi
 
21389
  done
 
21390
  if test -z "$ac_sed_cmds"; then
 
21391
    ac_sed_cmds=cat
 
21392
  fi
 
21393
fi # test -n "$CONFIG_FILES"
 
21394
 
 
21395
_ACEOF
 
21396
cat >>$CONFIG_STATUS <<\_ACEOF
 
21397
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
21398
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21399
  case $ac_file in
 
21400
  - | *:- | *:-:* ) # input from stdin
 
21401
        cat >$tmp/stdin
 
21402
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21403
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21404
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21405
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21406
  * )   ac_file_in=$ac_file.in ;;
 
21407
  esac
 
21408
 
 
21409
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
21410
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21411
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21412
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21413
         X"$ac_file" : 'X\(//\)$' \| \
 
21414
         X"$ac_file" : 'X\(/\)' \| \
 
21415
         .     : '\(.\)' 2>/dev/null ||
 
21416
echo X"$ac_file" |
 
21417
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21418
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21419
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21420
          /^X\(\/\).*/{ s//\1/; q; }
 
21421
          s/.*/./; q'`
 
21422
  { if $as_mkdir_p; then
 
21423
    mkdir -p "$ac_dir"
 
21424
  else
 
21425
    as_dir="$ac_dir"
 
21426
    as_dirs=
 
21427
    while test ! -d "$as_dir"; do
 
21428
      as_dirs="$as_dir $as_dirs"
 
21429
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21430
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21431
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21432
         X"$as_dir" : 'X\(//\)$' \| \
 
21433
         X"$as_dir" : 'X\(/\)' \| \
 
21434
         .     : '\(.\)' 2>/dev/null ||
 
21435
echo X"$as_dir" |
 
21436
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21437
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21438
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21439
          /^X\(\/\).*/{ s//\1/; q; }
 
21440
          s/.*/./; q'`
 
21441
    done
 
21442
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21443
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21444
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21445
   { (exit 1); exit 1; }; }; }
 
21446
 
 
21447
  ac_builddir=.
 
21448
 
 
21449
if test "$ac_dir" != .; then
 
21450
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21451
  # A "../" for each directory in $ac_dir_suffix.
 
21452
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21453
else
 
21454
  ac_dir_suffix= ac_top_builddir=
 
21455
fi
 
21456
 
 
21457
case $srcdir in
 
21458
  .)  # No --srcdir option.  We are building in place.
 
21459
    ac_srcdir=.
 
21460
    if test -z "$ac_top_builddir"; then
 
21461
       ac_top_srcdir=.
 
21462
    else
 
21463
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21464
    fi ;;
 
21465
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21466
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21467
    ac_top_srcdir=$srcdir ;;
 
21468
  *) # Relative path.
 
21469
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21470
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21471
esac
 
21472
 
 
21473
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21474
# the directories may not exist.
 
21475
case `pwd` in
 
21476
.) ac_abs_builddir="$ac_dir";;
 
21477
*)
 
21478
  case "$ac_dir" in
 
21479
  .) ac_abs_builddir=`pwd`;;
 
21480
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21481
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21482
  esac;;
 
21483
esac
 
21484
case $ac_abs_builddir in
 
21485
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21486
*)
 
21487
  case ${ac_top_builddir}. in
 
21488
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21489
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21490
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21491
  esac;;
 
21492
esac
 
21493
case $ac_abs_builddir in
 
21494
.) ac_abs_srcdir=$ac_srcdir;;
 
21495
*)
 
21496
  case $ac_srcdir in
 
21497
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21498
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21499
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21500
  esac;;
 
21501
esac
 
21502
case $ac_abs_builddir in
 
21503
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21504
*)
 
21505
  case $ac_top_srcdir in
 
21506
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21507
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21508
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21509
  esac;;
 
21510
esac
 
21511
 
 
21512
 
 
21513
  case $INSTALL in
 
21514
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21515
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
21516
  esac
 
21517
 
 
21518
  if test x"$ac_file" != x-; then
 
21519
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21520
echo "$as_me: creating $ac_file" >&6;}
 
21521
    rm -f "$ac_file"
 
21522
  fi
 
21523
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21524
  # use $as_me), people would be surprised to read:
 
21525
  #    /* config.h.  Generated by config.status.  */
 
21526
  if test x"$ac_file" = x-; then
 
21527
    configure_input=
 
21528
  else
 
21529
    configure_input="$ac_file.  "
 
21530
  fi
 
21531
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
21532
                                     sed 's,.*/,,'` by configure."
 
21533
 
 
21534
  # First look for the input files in the build tree, otherwise in the
 
21535
  # src tree.
 
21536
  ac_file_inputs=`IFS=:
 
21537
    for f in $ac_file_in; do
 
21538
      case $f in
 
21539
      -) echo $tmp/stdin ;;
 
21540
      [\\/$]*)
 
21541
         # Absolute (can't be DOS-style, as IFS=:)
 
21542
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21543
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21544
   { (exit 1); exit 1; }; }
 
21545
         echo "$f";;
 
21546
      *) # Relative
 
21547
         if test -f "$f"; then
 
21548
           # Build tree
 
21549
           echo "$f"
 
21550
         elif test -f "$srcdir/$f"; then
 
21551
           # Source tree
 
21552
           echo "$srcdir/$f"
 
21553
         else
 
21554
           # /dev/null tree
 
21555
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21556
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21557
   { (exit 1); exit 1; }; }
 
21558
         fi;;
 
21559
      esac
 
21560
    done` || { (exit 1); exit 1; }
 
21561
_ACEOF
 
21562
cat >>$CONFIG_STATUS <<_ACEOF
 
21563
  sed "$ac_vpsub
2595
21564
$extrasub
2596
 
s%@SHELL@%$SHELL%g
2597
 
s%@CFLAGS@%$CFLAGS%g
2598
 
s%@CPPFLAGS@%$CPPFLAGS%g
2599
 
s%@CXXFLAGS@%$CXXFLAGS%g
2600
 
s%@FFLAGS@%$FFLAGS%g
2601
 
s%@DEFS@%$DEFS%g
2602
 
s%@LDFLAGS@%$LDFLAGS%g
2603
 
s%@LIBS@%$LIBS%g
2604
 
s%@exec_prefix@%$exec_prefix%g
2605
 
s%@prefix@%$prefix%g
2606
 
s%@program_transform_name@%$program_transform_name%g
2607
 
s%@bindir@%$bindir%g
2608
 
s%@sbindir@%$sbindir%g
2609
 
s%@libexecdir@%$libexecdir%g
2610
 
s%@datadir@%$datadir%g
2611
 
s%@sysconfdir@%$sysconfdir%g
2612
 
s%@sharedstatedir@%$sharedstatedir%g
2613
 
s%@localstatedir@%$localstatedir%g
2614
 
s%@libdir@%$libdir%g
2615
 
s%@includedir@%$includedir%g
2616
 
s%@oldincludedir@%$oldincludedir%g
2617
 
s%@infodir@%$infodir%g
2618
 
s%@mandir@%$mandir%g
2619
 
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
2620
 
s%@MINOR_VERSION@%$MINOR_VERSION%g
2621
 
s%@MICRO_VERSION@%$MICRO_VERSION%g
2622
 
s%@INTERFACE_AGE@%$INTERFACE_AGE%g
2623
 
s%@BINARY_AGE@%$BINARY_AGE%g
2624
 
s%@VERSION@%$VERSION%g
2625
 
s%@LT_RELEASE@%$LT_RELEASE%g
2626
 
s%@LT_CURRENT@%$LT_CURRENT%g
2627
 
s%@LT_REVISION@%$LT_REVISION%g
2628
 
s%@LT_AGE@%$LT_AGE%g
2629
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2630
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2631
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
2632
 
s%@PACKAGE@%$PACKAGE%g
2633
 
s%@ACLOCAL@%$ACLOCAL%g
2634
 
s%@AUTOCONF@%$AUTOCONF%g
2635
 
s%@AUTOMAKE@%$AUTOMAKE%g
2636
 
s%@AUTOHEADER@%$AUTOHEADER%g
2637
 
s%@MAKEINFO@%$MAKEINFO%g
2638
 
s%@SET_MAKE@%$SET_MAKE%g
2639
 
s%@host@%$host%g
2640
 
s%@host_alias@%$host_alias%g
2641
 
s%@host_cpu@%$host_cpu%g
2642
 
s%@host_vendor@%$host_vendor%g
2643
 
s%@host_os@%$host_os%g
2644
 
s%@build@%$build%g
2645
 
s%@build_alias@%$build_alias%g
2646
 
s%@build_cpu@%$build_cpu%g
2647
 
s%@build_vendor@%$build_vendor%g
2648
 
s%@build_os@%$build_os%g
2649
 
s%@RANLIB@%$RANLIB%g
2650
 
s%@CC@%$CC%g
2651
 
s%@LD@%$LD%g
2652
 
s%@NM@%$NM%g
2653
 
s%@LN_S@%$LN_S%g
2654
 
s%@LIBTOOL@%$LIBTOOL%g
2655
 
s%@CXX@%$CXX%g
2656
 
s%@CPP@%$CPP%g
2657
 
s%@INT32_T@%$INT32_T%g
2658
 
 
2659
 
CEOF
2660
 
EOF
2661
 
 
2662
 
cat >> $CONFIG_STATUS <<\EOF
2663
 
 
2664
 
# Split the substitutions into bite-sized pieces for seds with
2665
 
# small command number limits, like on Digital OSF/1 and HP-UX.
2666
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2667
 
ac_file=1 # Number of current file.
2668
 
ac_beg=1 # First line for current file.
2669
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2670
 
ac_more_lines=:
2671
 
ac_sed_cmds=""
2672
 
while $ac_more_lines; do
2673
 
  if test $ac_beg -gt 1; then
2674
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2675
 
  else
2676
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2677
 
  fi
2678
 
  if test ! -s conftest.s$ac_file; then
2679
 
    ac_more_lines=false
2680
 
    rm -f conftest.s$ac_file
2681
 
  else
2682
 
    if test -z "$ac_sed_cmds"; then
2683
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
2684
 
    else
2685
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2686
 
    fi
2687
 
    ac_file=`expr $ac_file + 1`
2688
 
    ac_beg=$ac_end
2689
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2690
 
  fi
 
21565
_ACEOF
 
21566
cat >>$CONFIG_STATUS <<\_ACEOF
 
21567
:t
 
21568
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21569
s,@configure_input@,$configure_input,;t t
 
21570
s,@srcdir@,$ac_srcdir,;t t
 
21571
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
21572
s,@top_srcdir@,$ac_top_srcdir,;t t
 
21573
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
21574
s,@builddir@,$ac_builddir,;t t
 
21575
s,@abs_builddir@,$ac_abs_builddir,;t t
 
21576
s,@top_builddir@,$ac_top_builddir,;t t
 
21577
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
21578
s,@INSTALL@,$ac_INSTALL,;t t
 
21579
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
21580
  rm -f $tmp/stdin
 
21581
  if test x"$ac_file" != x-; then
 
21582
    mv $tmp/out $ac_file
 
21583
  else
 
21584
    cat $tmp/out
 
21585
    rm -f $tmp/out
 
21586
  fi
 
21587
 
2691
21588
done
2692
 
if test -z "$ac_sed_cmds"; then
2693
 
  ac_sed_cmds=cat
2694
 
fi
2695
 
EOF
2696
 
 
2697
 
cat >> $CONFIG_STATUS <<EOF
2698
 
 
2699
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile src/ght_hash_table.h src/Makefile examples/Makefile"}
2700
 
EOF
2701
 
cat >> $CONFIG_STATUS <<\EOF
2702
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2703
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2704
 
  case "$ac_file" in
2705
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2706
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2707
 
  *) ac_file_in="${ac_file}.in" ;;
2708
 
  esac
2709
 
 
2710
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2711
 
 
2712
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
2713
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2714
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2715
 
    # The file is in a subdirectory.
2716
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2717
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2718
 
    # A "../" for each directory in $ac_dir_suffix.
2719
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2720
 
  else
2721
 
    ac_dir_suffix= ac_dots=
2722
 
  fi
2723
 
 
2724
 
  case "$ac_given_srcdir" in
2725
 
  .)  srcdir=.
2726
 
      if test -z "$ac_dots"; then top_srcdir=.
2727
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2728
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2729
 
  *) # Relative path.
2730
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2731
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2732
 
  esac
2733
 
 
2734
 
  case "$ac_given_INSTALL" in
2735
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2736
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2737
 
  esac
2738
 
 
2739
 
  echo creating "$ac_file"
2740
 
  rm -f "$ac_file"
2741
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2742
 
  case "$ac_file" in
2743
 
  *Makefile*) ac_comsub="1i\\
2744
 
# $configure_input" ;;
2745
 
  *) ac_comsub= ;;
2746
 
  esac
2747
 
 
2748
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2749
 
  sed -e "$ac_comsub
2750
 
s%@configure_input@%$configure_input%g
2751
 
s%@srcdir@%$srcdir%g
2752
 
s%@top_srcdir@%$top_srcdir%g
2753
 
s%@INSTALL@%$INSTALL%g
2754
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2755
 
fi; done
2756
 
rm -f conftest.s*
 
21589
_ACEOF
 
21590
cat >>$CONFIG_STATUS <<\_ACEOF
 
21591
 
 
21592
#
 
21593
# CONFIG_HEADER section.
 
21594
#
2757
21595
 
2758
21596
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2759
21597
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2760
21598
#
2761
21599
# ac_d sets the value in "#define NAME VALUE" lines.
2762
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2763
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2764
 
ac_dC='\3'
2765
 
ac_dD='%g'
2766
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2767
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2768
 
ac_uB='\([      ]\)%\1#\2define\3'
 
21600
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
21601
ac_dB='[         ].*$,\1#\2'
 
21602
ac_dC=' '
 
21603
ac_dD=',;t'
 
21604
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
21605
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
21606
ac_uB='$,\1#\2define\3'
2769
21607
ac_uC=' '
2770
 
ac_uD='\4%g'
2771
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2772
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2773
 
ac_eB='$%\1#\2define\3'
2774
 
ac_eC=' '
2775
 
ac_eD='%g'
 
21608
ac_uD=',;t'
2776
21609
 
2777
 
if test "${CONFIG_HEADERS+set}" != set; then
2778
 
EOF
2779
 
cat >> $CONFIG_STATUS <<EOF
2780
 
  CONFIG_HEADERS="config.h"
2781
 
EOF
2782
 
cat >> $CONFIG_STATUS <<\EOF
2783
 
fi
2784
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
21610
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2785
21611
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2786
 
  case "$ac_file" in
2787
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2788
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2789
 
  *) ac_file_in="${ac_file}.in" ;;
 
21612
  case $ac_file in
 
21613
  - | *:- | *:-:* ) # input from stdin
 
21614
        cat >$tmp/stdin
 
21615
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21616
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21617
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21618
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21619
  * )   ac_file_in=$ac_file.in ;;
2790
21620
  esac
2791
21621
 
2792
 
  echo creating $ac_file
2793
 
 
2794
 
  rm -f conftest.frag conftest.in conftest.out
2795
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2796
 
  cat $ac_file_inputs > conftest.in
2797
 
 
2798
 
EOF
2799
 
 
2800
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
2801
 
# the proper values into config.h.in to produce config.h.  And first:
2802
 
# Protect against being on the right side of a sed subst in config.status.
2803
 
# Protect against being in an unquoted here document in config.status.
2804
 
rm -f conftest.vals
2805
 
cat > conftest.hdr <<\EOF
2806
 
s/[\\&%]/\\&/g
2807
 
s%[\\$`]%\\&%g
2808
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2809
 
s%ac_d%ac_u%gp
2810
 
s%ac_u%ac_e%gp
2811
 
EOF
2812
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
2813
 
rm -f conftest.hdr
 
21622
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21623
echo "$as_me: creating $ac_file" >&6;}
 
21624
 
 
21625
  # First look for the input files in the build tree, otherwise in the
 
21626
  # src tree.
 
21627
  ac_file_inputs=`IFS=:
 
21628
    for f in $ac_file_in; do
 
21629
      case $f in
 
21630
      -) echo $tmp/stdin ;;
 
21631
      [\\/$]*)
 
21632
         # Absolute (can't be DOS-style, as IFS=:)
 
21633
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21634
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21635
   { (exit 1); exit 1; }; }
 
21636
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
21637
         echo "$f";;
 
21638
      *) # Relative
 
21639
         if test -f "$f"; then
 
21640
           # Build tree
 
21641
           echo "$f"
 
21642
         elif test -f "$srcdir/$f"; then
 
21643
           # Source tree
 
21644
           echo "$srcdir/$f"
 
21645
         else
 
21646
           # /dev/null tree
 
21647
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21648
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21649
   { (exit 1); exit 1; }; }
 
21650
         fi;;
 
21651
      esac
 
21652
    done` || { (exit 1); exit 1; }
 
21653
  # Remove the trailing spaces.
 
21654
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
21655
 
 
21656
_ACEOF
 
21657
 
 
21658
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
21659
# `conftest.undefs', that substitutes the proper values into
 
21660
# config.h.in to produce config.h.  The first handles `#define'
 
21661
# templates, and the second `#undef' templates.
 
21662
# And first: Protect against being on the right side of a sed subst in
 
21663
# config.status.  Protect against being in an unquoted here document
 
21664
# in config.status.
 
21665
rm -f conftest.defines conftest.undefs
 
21666
# Using a here document instead of a string reduces the quoting nightmare.
 
21667
# Putting comments in sed scripts is not portable.
 
21668
#
 
21669
# `end' is used to avoid that the second main sed command (meant for
 
21670
# 0-ary CPP macros) applies to n-ary macro definitions.
 
21671
# See the Autoconf documentation for `clear'.
 
21672
cat >confdef2sed.sed <<\_ACEOF
 
21673
s/[\\&,]/\\&/g
 
21674
s,[\\$`],\\&,g
 
21675
t clear
 
21676
: clear
 
21677
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
21678
t end
 
21679
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
21680
: end
 
21681
_ACEOF
 
21682
# If some macros were called several times there might be several times
 
21683
# the same #defines, which is useless.  Nevertheless, we may not want to
 
21684
# sort them, since we want the *last* AC-DEFINE to be honored.
 
21685
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
21686
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
21687
rm -f confdef2sed.sed
2814
21688
 
2815
21689
# This sed command replaces #undef with comments.  This is necessary, for
2816
21690
# example, in the case of _POSIX_SOURCE, which is predefined and required
2817
21691
# on some systems where configure will not decide to define it.
2818
 
cat >> conftest.vals <<\EOF
2819
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2820
 
EOF
2821
 
 
2822
 
# Break up conftest.vals because some shells have a limit on
2823
 
# the size of here documents, and old seds have small limits too.
2824
 
 
2825
 
rm -f conftest.tail
2826
 
while :
2827
 
do
2828
 
  ac_lines=`grep -c . conftest.vals`
2829
 
  # grep -c gives empty output for an empty file on some AIX systems.
2830
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2831
 
  # Write a limited-size here document to conftest.frag.
2832
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2833
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2834
 
  echo 'CEOF
2835
 
  sed -f conftest.frag conftest.in > conftest.out
2836
 
  rm -f conftest.in
2837
 
  mv conftest.out conftest.in
2838
 
' >> $CONFIG_STATUS
2839
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2840
 
  rm -f conftest.vals
2841
 
  mv conftest.tail conftest.vals
2842
 
done
2843
 
rm -f conftest.vals
2844
 
 
2845
 
cat >> $CONFIG_STATUS <<\EOF
2846
 
  rm -f conftest.frag conftest.h
2847
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2848
 
  cat conftest.in >> conftest.h
2849
 
  rm -f conftest.in
2850
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2851
 
    echo "$ac_file is unchanged"
2852
 
    rm -f conftest.h
2853
 
  else
2854
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
2855
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2856
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2857
 
      # The file is in a subdirectory.
2858
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
21692
cat >>conftest.undefs <<\_ACEOF
 
21693
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
21694
_ACEOF
 
21695
 
 
21696
# Break up conftest.defines because some shells have a limit on the size
 
21697
# of here documents, and old seds have small limits too (100 cmds).
 
21698
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
21699
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
21700
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
21701
echo '  :' >>$CONFIG_STATUS
 
21702
rm -f conftest.tail
 
21703
while grep . conftest.defines >/dev/null
 
21704
do
 
21705
  # Write a limited-size here document to $tmp/defines.sed.
 
21706
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
21707
  # Speed up: don't consider the non `#define' lines.
 
21708
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
21709
  # Work around the forget-to-reset-the-flag bug.
 
21710
  echo 't clr' >>$CONFIG_STATUS
 
21711
  echo ': clr' >>$CONFIG_STATUS
 
21712
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
21713
  echo 'CEOF
 
21714
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
21715
  rm -f $tmp/in
 
21716
  mv $tmp/out $tmp/in
 
21717
' >>$CONFIG_STATUS
 
21718
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
21719
  rm -f conftest.defines
 
21720
  mv conftest.tail conftest.defines
 
21721
done
 
21722
rm -f conftest.defines
 
21723
echo '  fi # grep' >>$CONFIG_STATUS
 
21724
echo >>$CONFIG_STATUS
 
21725
 
 
21726
# Break up conftest.undefs because some shells have a limit on the size
 
21727
# of here documents, and old seds have small limits too (100 cmds).
 
21728
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
21729
rm -f conftest.tail
 
21730
while grep . conftest.undefs >/dev/null
 
21731
do
 
21732
  # Write a limited-size here document to $tmp/undefs.sed.
 
21733
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
21734
  # Speed up: don't consider the non `#undef'
 
21735
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
21736
  # Work around the forget-to-reset-the-flag bug.
 
21737
  echo 't clr' >>$CONFIG_STATUS
 
21738
  echo ': clr' >>$CONFIG_STATUS
 
21739
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
21740
  echo 'CEOF
 
21741
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
21742
  rm -f $tmp/in
 
21743
  mv $tmp/out $tmp/in
 
21744
' >>$CONFIG_STATUS
 
21745
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
21746
  rm -f conftest.undefs
 
21747
  mv conftest.tail conftest.undefs
 
21748
done
 
21749
rm -f conftest.undefs
 
21750
 
 
21751
cat >>$CONFIG_STATUS <<\_ACEOF
 
21752
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21753
  # use $as_me), people would be surprised to read:
 
21754
  #    /* config.h.  Generated by config.status.  */
 
21755
  if test x"$ac_file" = x-; then
 
21756
    echo "/* Generated by configure.  */" >$tmp/config.h
 
21757
  else
 
21758
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
21759
  fi
 
21760
  cat $tmp/in >>$tmp/config.h
 
21761
  rm -f $tmp/in
 
21762
  if test x"$ac_file" != x-; then
 
21763
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
21764
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21765
echo "$as_me: $ac_file is unchanged" >&6;}
 
21766
    else
 
21767
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21768
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21769
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21770
         X"$ac_file" : 'X\(//\)$' \| \
 
21771
         X"$ac_file" : 'X\(/\)' \| \
 
21772
         .     : '\(.\)' 2>/dev/null ||
 
21773
echo X"$ac_file" |
 
21774
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21775
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21776
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21777
          /^X\(\/\).*/{ s//\1/; q; }
 
21778
          s/.*/./; q'`
 
21779
      { if $as_mkdir_p; then
 
21780
    mkdir -p "$ac_dir"
 
21781
  else
 
21782
    as_dir="$ac_dir"
 
21783
    as_dirs=
 
21784
    while test ! -d "$as_dir"; do
 
21785
      as_dirs="$as_dir $as_dirs"
 
21786
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21787
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21788
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21789
         X"$as_dir" : 'X\(//\)$' \| \
 
21790
         X"$as_dir" : 'X\(/\)' \| \
 
21791
         .     : '\(.\)' 2>/dev/null ||
 
21792
echo X"$as_dir" |
 
21793
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21794
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21795
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21796
          /^X\(\/\).*/{ s//\1/; q; }
 
21797
          s/.*/./; q'`
 
21798
    done
 
21799
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21800
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21801
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21802
   { (exit 1); exit 1; }; }; }
 
21803
 
 
21804
      rm -f $ac_file
 
21805
      mv $tmp/config.h $ac_file
2859
21806
    fi
2860
 
    rm -f $ac_file
2861
 
    mv conftest.h $ac_file
2862
 
  fi
2863
 
fi; done
2864
 
 
2865
 
EOF
2866
 
cat >> $CONFIG_STATUS <<EOF
2867
 
 
2868
 
 
2869
 
EOF
2870
 
cat >> $CONFIG_STATUS <<\EOF
2871
 
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2872
 
 
2873
 
exit 0
2874
 
EOF
 
21807
  else
 
21808
    cat $tmp/config.h
 
21809
    rm -f $tmp/config.h
 
21810
  fi
 
21811
# Compute $ac_file's index in $config_headers.
 
21812
_am_stamp_count=1
 
21813
for _am_header in $config_headers :; do
 
21814
  case $_am_header in
 
21815
    $ac_file | $ac_file:* )
 
21816
      break ;;
 
21817
    * )
 
21818
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21819
  esac
 
21820
done
 
21821
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
21822
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21823
         X$ac_file : 'X\(//\)[^/]' \| \
 
21824
         X$ac_file : 'X\(//\)$' \| \
 
21825
         X$ac_file : 'X\(/\)' \| \
 
21826
         .     : '\(.\)' 2>/dev/null ||
 
21827
echo X$ac_file |
 
21828
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21829
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21830
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21831
          /^X\(\/\).*/{ s//\1/; q; }
 
21832
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21833
done
 
21834
_ACEOF
 
21835
cat >>$CONFIG_STATUS <<\_ACEOF
 
21836
 
 
21837
#
 
21838
# CONFIG_COMMANDS section.
 
21839
#
 
21840
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
21841
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
21842
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21843
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
21844
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21845
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
21846
         X"$ac_dest" : 'X\(//\)$' \| \
 
21847
         X"$ac_dest" : 'X\(/\)' \| \
 
21848
         .     : '\(.\)' 2>/dev/null ||
 
21849
echo X"$ac_dest" |
 
21850
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21851
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21852
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21853
          /^X\(\/\).*/{ s//\1/; q; }
 
21854
          s/.*/./; q'`
 
21855
  { if $as_mkdir_p; then
 
21856
    mkdir -p "$ac_dir"
 
21857
  else
 
21858
    as_dir="$ac_dir"
 
21859
    as_dirs=
 
21860
    while test ! -d "$as_dir"; do
 
21861
      as_dirs="$as_dir $as_dirs"
 
21862
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21863
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21864
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21865
         X"$as_dir" : 'X\(//\)$' \| \
 
21866
         X"$as_dir" : 'X\(/\)' \| \
 
21867
         .     : '\(.\)' 2>/dev/null ||
 
21868
echo X"$as_dir" |
 
21869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21870
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21871
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21872
          /^X\(\/\).*/{ s//\1/; q; }
 
21873
          s/.*/./; q'`
 
21874
    done
 
21875
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21876
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21877
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21878
   { (exit 1); exit 1; }; }; }
 
21879
 
 
21880
  ac_builddir=.
 
21881
 
 
21882
if test "$ac_dir" != .; then
 
21883
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21884
  # A "../" for each directory in $ac_dir_suffix.
 
21885
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21886
else
 
21887
  ac_dir_suffix= ac_top_builddir=
 
21888
fi
 
21889
 
 
21890
case $srcdir in
 
21891
  .)  # No --srcdir option.  We are building in place.
 
21892
    ac_srcdir=.
 
21893
    if test -z "$ac_top_builddir"; then
 
21894
       ac_top_srcdir=.
 
21895
    else
 
21896
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21897
    fi ;;
 
21898
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21899
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21900
    ac_top_srcdir=$srcdir ;;
 
21901
  *) # Relative path.
 
21902
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21903
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21904
esac
 
21905
 
 
21906
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21907
# the directories may not exist.
 
21908
case `pwd` in
 
21909
.) ac_abs_builddir="$ac_dir";;
 
21910
*)
 
21911
  case "$ac_dir" in
 
21912
  .) ac_abs_builddir=`pwd`;;
 
21913
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21914
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21915
  esac;;
 
21916
esac
 
21917
case $ac_abs_builddir in
 
21918
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21919
*)
 
21920
  case ${ac_top_builddir}. in
 
21921
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21922
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21923
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21924
  esac;;
 
21925
esac
 
21926
case $ac_abs_builddir in
 
21927
.) ac_abs_srcdir=$ac_srcdir;;
 
21928
*)
 
21929
  case $ac_srcdir in
 
21930
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21931
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21932
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21933
  esac;;
 
21934
esac
 
21935
case $ac_abs_builddir in
 
21936
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21937
*)
 
21938
  case $ac_top_srcdir in
 
21939
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21940
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21941
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21942
  esac;;
 
21943
esac
 
21944
 
 
21945
 
 
21946
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
21947
echo "$as_me: executing $ac_dest commands" >&6;}
 
21948
  case $ac_dest in
 
21949
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21950
  # Strip MF so we end up with the name of the file.
 
21951
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21952
  # Check whether this is an Automake generated Makefile or not.
 
21953
  # We used to match only the files named `Makefile.in', but
 
21954
  # some people rename them; so instead we look at the file content.
 
21955
  # Grep'ing the first line is not enough: some people post-process
 
21956
  # each Makefile.in and add a new line on top of each file to say so.
 
21957
  # So let's grep whole file.
 
21958
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21959
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
21960
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21961
         X"$mf" : 'X\(//\)[^/]' \| \
 
21962
         X"$mf" : 'X\(//\)$' \| \
 
21963
         X"$mf" : 'X\(/\)' \| \
 
21964
         .     : '\(.\)' 2>/dev/null ||
 
21965
echo X"$mf" |
 
21966
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21967
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21968
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21969
          /^X\(\/\).*/{ s//\1/; q; }
 
21970
          s/.*/./; q'`
 
21971
  else
 
21972
    continue
 
21973
  fi
 
21974
  # Extract the definition of DEPDIR, am__include, and am__quote
 
21975
  # from the Makefile without running `make'.
 
21976
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21977
  test -z "$DEPDIR" && continue
 
21978
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21979
  test -z "am__include" && continue
 
21980
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21981
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21982
  U=`sed -n 's/^U = //p' < "$mf"`
 
21983
  # Find all dependency output files, they are included files with
 
21984
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21985
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
21986
  # expansion.
 
21987
  for file in `sed -n "
 
21988
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21989
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21990
    # Make sure the directory exists.
 
21991
    test -f "$dirpart/$file" && continue
 
21992
    fdir=`(dirname "$file") 2>/dev/null ||
 
21993
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21994
         X"$file" : 'X\(//\)[^/]' \| \
 
21995
         X"$file" : 'X\(//\)$' \| \
 
21996
         X"$file" : 'X\(/\)' \| \
 
21997
         .     : '\(.\)' 2>/dev/null ||
 
21998
echo X"$file" |
 
21999
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22000
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22001
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22002
          /^X\(\/\).*/{ s//\1/; q; }
 
22003
          s/.*/./; q'`
 
22004
    { if $as_mkdir_p; then
 
22005
    mkdir -p $dirpart/$fdir
 
22006
  else
 
22007
    as_dir=$dirpart/$fdir
 
22008
    as_dirs=
 
22009
    while test ! -d "$as_dir"; do
 
22010
      as_dirs="$as_dir $as_dirs"
 
22011
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22012
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22013
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22014
         X"$as_dir" : 'X\(//\)$' \| \
 
22015
         X"$as_dir" : 'X\(/\)' \| \
 
22016
         .     : '\(.\)' 2>/dev/null ||
 
22017
echo X"$as_dir" |
 
22018
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22019
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22020
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22021
          /^X\(\/\).*/{ s//\1/; q; }
 
22022
          s/.*/./; q'`
 
22023
    done
 
22024
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22025
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
22026
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
22027
   { (exit 1); exit 1; }; }; }
 
22028
 
 
22029
    # echo "creating $dirpart/$file"
 
22030
    echo '# dummy' > "$dirpart/$file"
 
22031
  done
 
22032
done
 
22033
 ;;
 
22034
  esac
 
22035
done
 
22036
_ACEOF
 
22037
 
 
22038
cat >>$CONFIG_STATUS <<\_ACEOF
 
22039
 
 
22040
{ (exit 0); exit 0; }
 
22041
_ACEOF
2875
22042
chmod +x $CONFIG_STATUS
2876
 
rm -fr confdefs* $ac_clean_files
2877
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
22043
ac_clean_files=$ac_clean_files_save
 
22044
 
 
22045
 
 
22046
# configure is writing to config.log, and then calls config.status.
 
22047
# config.status does its own redirection, appending to config.log.
 
22048
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22049
# by configure, so config.status won't be able to write to it; its
 
22050
# output is simply discarded.  So we exec the FD to /dev/null,
 
22051
# effectively closing config.log, so it can be properly (re)opened and
 
22052
# appended to by config.status.  When coming back to configure, we
 
22053
# need to make the FD available again.
 
22054
if test "$no_create" != yes; then
 
22055
  ac_cs_success=:
 
22056
  ac_config_status_args=
 
22057
  test "$silent" = yes &&
 
22058
    ac_config_status_args="$ac_config_status_args --quiet"
 
22059
  exec 5>/dev/null
 
22060
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22061
  exec 5>>config.log
 
22062
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22063
  # would make configure fail if this is the last instruction.
 
22064
  $ac_cs_success || { (exit 1); exit 1; }
 
22065
fi
2878
22066