~profzoom/ubuntu/quantal/wmaker/bug-1079925

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-11-10 14:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041110140530-qpd66b5lm38x7apk
Tags: upstream-0.91.0
ImportĀ upstreamĀ versionĀ 0.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
289
       echo_test_string="`eval $cmd`" &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="src/WindowMaker.h"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA CPP_PATH NOSTRICTALIASING PKGCONFIG XGETTEXT DLLIBS INTLIBS NLSDIR MOFILES WPMOFILES WINGSMOFILES supported_locales LITE NETLIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIBRARY_PATH XFTCONFIG XFTFLAGS XFTLIBS XCFLAGS XLFLAGS XLIBS LIBRARY_SEARCH_PATH HEADER_SEARCH_PATH GFXLIBS ICONEXT wprefsdir LIBOBJS LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_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
X features:
 
1014
  --x-includes=DIR    X include files are in DIR
 
1015
  --x-libraries=DIR   X library files are in DIR
 
1016
 
 
1017
System types:
 
1018
  --build=BUILD     configure for building on BUILD [guessed]
 
1019
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1020
_ACEOF
 
1021
fi
 
1022
 
 
1023
if test -n "$ac_init_help"; then
 
1024
 
 
1025
  cat <<\_ACEOF
 
1026
 
 
1027
Optional Features:
 
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1030
  --enable-shared[=PKGS]
 
1031
                          build shared libraries [default=yes]
 
1032
  --enable-static[=PKGS]
 
1033
                          build static libraries [default=yes]
 
1034
  --enable-fast-install[=PKGS]
 
1035
                          optimize for fast installation [default=yes]
 
1036
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1037
  --enable-lite           disable some stuff (dont use it)
 
1038
  --disable-locale        disable use of X locale support
 
1039
  --enable-modelock       XKB keyboard language status support
 
1040
  --disable-shape         disable shaped window extension support
 
1041
  --enable-xinerama       enable Xinerama extension support
 
1042
  --disable-shm           disable usage of MIT-SHM extension
 
1043
  --disable-xpm           disable use of XPM pixmaps through libXpm
 
1044
  --disable-png           disable PNG support through libpng
 
1045
  --disable-jpeg          disable JPEG support through libjpeg
 
1046
  --disable-gif           disable GIF support through libgif or libungif
 
1047
  --disable-tiff          disable use of TIFF images through libtiff
 
1048
  --enable-usermenu       user defined menus for applications
 
1049
 
 
1050
 
 
1051
Optional Packages:
 
1052
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1053
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1054
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1055
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1056
                          both]
 
1057
  --with-tags[=TAGS]
 
1058
                          include additional configurations [automatic]
 
1059
  --with-libs-from        pass compiler flags to look for libraries
 
1060
  --with-incs-from        pass compiler flags to look for header files
 
1061
  --with-nlsdir=PATH      specify where the locale stuff should go
 
1062
  --with-x                use the X Window System
 
1063
  --with-pixmapdir=PATH   specify where pixmaps are located DATADIR/pixmaps
 
1064
  --with-appspath=PATH    specify the directory for GNUstep applications
 
1065
 
 
1066
Some influential environment variables:
 
1067
  CC          C compiler command
 
1068
  CFLAGS      C compiler flags
 
1069
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1070
              nonstandard directory <lib dir>
 
1071
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1072
              headers in a nonstandard directory <include dir>
 
1073
  CPP         C preprocessor
 
1074
  CXX         C++ compiler command
 
1075
  CXXFLAGS    C++ compiler flags
 
1076
  CXXCPP      C++ preprocessor
 
1077
  F77         Fortran 77 compiler command
 
1078
  FFLAGS      Fortran 77 compiler flags
 
1079
 
 
1080
Use these variables to override the choices made by `configure' or to help
 
1081
it to find libraries and programs with nonstandard names/locations.
 
1082
 
 
1083
_ACEOF
 
1084
fi
 
1085
 
 
1086
if test "$ac_init_help" = "recursive"; then
 
1087
  # If there are subdirs, report their specific --help.
 
1088
  ac_popdir=`pwd`
 
1089
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1090
    test -d $ac_dir || continue
 
1091
    ac_builddir=.
 
1092
 
 
1093
if test "$ac_dir" != .; then
 
1094
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1095
  # A "../" for each directory in $ac_dir_suffix.
 
1096
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1097
else
 
1098
  ac_dir_suffix= ac_top_builddir=
 
1099
fi
 
1100
 
 
1101
case $srcdir in
 
1102
  .)  # No --srcdir option.  We are building in place.
 
1103
    ac_srcdir=.
 
1104
    if test -z "$ac_top_builddir"; then
 
1105
       ac_top_srcdir=.
 
1106
    else
 
1107
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1108
    fi ;;
 
1109
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1110
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1111
    ac_top_srcdir=$srcdir ;;
 
1112
  *) # Relative path.
 
1113
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1114
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1115
esac
 
1116
 
 
1117
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1118
# the directories may not exist.
 
1119
case `pwd` in
 
1120
.) ac_abs_builddir="$ac_dir";;
 
1121
*)
 
1122
  case "$ac_dir" in
 
1123
  .) ac_abs_builddir=`pwd`;;
 
1124
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1125
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1126
  esac;;
 
1127
esac
 
1128
case $ac_abs_builddir in
 
1129
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1130
*)
 
1131
  case ${ac_top_builddir}. in
 
1132
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1133
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1134
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1135
  esac;;
 
1136
esac
 
1137
case $ac_abs_builddir in
 
1138
.) ac_abs_srcdir=$ac_srcdir;;
 
1139
*)
 
1140
  case $ac_srcdir in
 
1141
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1142
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1143
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1144
  esac;;
 
1145
esac
 
1146
case $ac_abs_builddir in
 
1147
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1148
*)
 
1149
  case $ac_top_srcdir in
 
1150
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1151
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1152
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1153
  esac;;
 
1154
esac
 
1155
 
 
1156
    cd $ac_dir
 
1157
    # Check for guested configure; otherwise get Cygnus style configure.
 
1158
    if test -f $ac_srcdir/configure.gnu; then
 
1159
      echo
 
1160
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1161
    elif test -f $ac_srcdir/configure; then
 
1162
      echo
 
1163
      $SHELL $ac_srcdir/configure  --help=recursive
 
1164
    elif test -f $ac_srcdir/configure.ac ||
 
1165
           test -f $ac_srcdir/configure.in; then
 
1166
      echo
 
1167
      $ac_configure --help
 
1168
    else
 
1169
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1170
    fi
 
1171
    cd "$ac_popdir"
 
1172
  done
 
1173
fi
 
1174
 
 
1175
test -n "$ac_init_help" && exit 0
 
1176
if $ac_init_version; then
 
1177
  cat <<\_ACEOF
 
1178
 
 
1179
Copyright (C) 2003 Free Software Foundation, Inc.
 
1180
This configure script is free software; the Free Software Foundation
 
1181
gives unlimited permission to copy, distribute and modify it.
 
1182
_ACEOF
 
1183
  exit 0
 
1184
fi
 
1185
exec 5>config.log
 
1186
cat >&5 <<_ACEOF
 
1187
This file contains any messages produced by compilers while
 
1188
running configure, to aid debugging if configure makes a mistake.
 
1189
 
 
1190
It was created by $as_me, which was
 
1191
generated by GNU Autoconf 2.59.  Invocation command line was
 
1192
 
 
1193
  $ $0 $@
 
1194
 
 
1195
_ACEOF
 
1196
{
 
1197
cat <<_ASUNAME
 
1198
## --------- ##
 
1199
## Platform. ##
 
1200
## --------- ##
 
1201
 
 
1202
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1203
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1204
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1205
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1206
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1207
 
 
1208
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1209
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1210
 
 
1211
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1212
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1213
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1214
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1215
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1216
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1217
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1218
 
 
1219
_ASUNAME
 
1220
 
 
1221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1222
for as_dir in $PATH
 
1223
do
 
1224
  IFS=$as_save_IFS
 
1225
  test -z "$as_dir" && as_dir=.
 
1226
  echo "PATH: $as_dir"
 
1227
done
 
1228
 
 
1229
} >&5
 
1230
 
 
1231
cat >&5 <<_ACEOF
 
1232
 
 
1233
 
 
1234
## ----------- ##
 
1235
## Core tests. ##
 
1236
## ----------- ##
 
1237
 
 
1238
_ACEOF
 
1239
 
 
1240
 
 
1241
# Keep a trace of the command line.
 
1242
# Strip out --no-create and --no-recursion so they do not pile up.
 
1243
# Strip out --silent because we don't want to record it for future runs.
 
1244
# Also quote any args containing shell meta-characters.
 
1245
# Make two passes to allow for proper duplicate-argument suppression.
 
1246
ac_configure_args=
 
1247
ac_configure_args0=
 
1248
ac_configure_args1=
 
1249
ac_sep=
 
1250
ac_must_keep_next=false
 
1251
for ac_pass in 1 2
 
1252
do
 
1253
  for ac_arg
 
1254
  do
 
1255
    case $ac_arg in
 
1256
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1257
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1258
    | -silent | --silent | --silen | --sile | --sil)
 
1259
      continue ;;
 
1260
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1261
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1262
    esac
 
1263
    case $ac_pass in
 
1264
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1265
    2)
 
1266
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1267
      if test $ac_must_keep_next = true; then
 
1268
        ac_must_keep_next=false # Got value, back to normal.
 
1269
      else
 
1270
        case $ac_arg in
 
1271
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1272
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1273
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1274
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1275
            case "$ac_configure_args0 " in
 
1276
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1277
            esac
 
1278
            ;;
 
1279
          -* ) ac_must_keep_next=true ;;
 
1280
        esac
 
1281
      fi
 
1282
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1283
      # Get rid of the leading space.
 
1284
      ac_sep=" "
 
1285
      ;;
 
1286
    esac
 
1287
  done
 
1288
done
 
1289
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1290
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1291
 
 
1292
# When interrupted or exit'd, cleanup temporary files, and complete
 
1293
# config.log.  We remove comments because anyway the quotes in there
 
1294
# would cause problems or look ugly.
 
1295
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1296
# such as our DU 5.0 friend, will then `close' the trap.
 
1297
trap 'exit_status=$?
 
1298
  # Save into config.log some information that might help in debugging.
 
1299
  {
 
1300
    echo
 
1301
 
 
1302
    cat <<\_ASBOX
 
1303
## ---------------- ##
 
1304
## Cache variables. ##
 
1305
## ---------------- ##
 
1306
_ASBOX
 
1307
    echo
 
1308
    # The following way of writing the cache mishandles newlines in values,
 
1309
{
 
1310
  (set) 2>&1 |
 
1311
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1312
    *ac_space=\ *)
 
1313
      sed -n \
 
1314
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1315
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1316
      ;;
 
1317
    *)
 
1318
      sed -n \
 
1319
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1320
      ;;
 
1321
    esac;
 
1322
}
 
1323
    echo
 
1324
 
 
1325
    cat <<\_ASBOX
 
1326
## ----------------- ##
 
1327
## Output variables. ##
 
1328
## ----------------- ##
 
1329
_ASBOX
 
1330
    echo
 
1331
    for ac_var in $ac_subst_vars
 
1332
    do
 
1333
      eval ac_val=$`echo $ac_var`
 
1334
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1335
    done | sort
 
1336
    echo
 
1337
 
 
1338
    if test -n "$ac_subst_files"; then
 
1339
      cat <<\_ASBOX
 
1340
## ------------- ##
 
1341
## Output files. ##
 
1342
## ------------- ##
 
1343
_ASBOX
 
1344
      echo
 
1345
      for ac_var in $ac_subst_files
 
1346
      do
 
1347
        eval ac_val=$`echo $ac_var`
 
1348
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1349
      done | sort
 
1350
      echo
 
1351
    fi
 
1352
 
 
1353
    if test -s confdefs.h; then
 
1354
      cat <<\_ASBOX
 
1355
## ----------- ##
 
1356
## confdefs.h. ##
 
1357
## ----------- ##
 
1358
_ASBOX
 
1359
      echo
 
1360
      sed "/^$/d" confdefs.h | sort
 
1361
      echo
 
1362
    fi
 
1363
    test "$ac_signal" != 0 &&
 
1364
      echo "$as_me: caught signal $ac_signal"
 
1365
    echo "$as_me: exit $exit_status"
 
1366
  } >&5
 
1367
  rm -f core *.core &&
 
1368
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1369
    exit $exit_status
 
1370
     ' 0
 
1371
for ac_signal in 1 2 13 15; do
 
1372
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1373
done
 
1374
ac_signal=0
 
1375
 
 
1376
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1377
rm -rf conftest* confdefs.h
 
1378
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1379
echo >confdefs.h
 
1380
 
 
1381
# Predefined preprocessor variables.
 
1382
 
 
1383
cat >>confdefs.h <<_ACEOF
 
1384
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1385
_ACEOF
 
1386
 
 
1387
 
 
1388
cat >>confdefs.h <<_ACEOF
 
1389
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1390
_ACEOF
 
1391
 
 
1392
 
 
1393
cat >>confdefs.h <<_ACEOF
 
1394
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1395
_ACEOF
 
1396
 
 
1397
 
 
1398
cat >>confdefs.h <<_ACEOF
 
1399
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1400
_ACEOF
 
1401
 
 
1402
 
 
1403
cat >>confdefs.h <<_ACEOF
 
1404
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1405
_ACEOF
 
1406
 
 
1407
 
 
1408
# Let the site file select an alternate cache file if it wants to.
 
1409
# Prefer explicitly selected file to automatically selected ones.
 
1410
if test -z "$CONFIG_SITE"; then
 
1411
  if test "x$prefix" != xNONE; then
 
1412
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1413
  else
 
1414
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1415
  fi
 
1416
fi
 
1417
for ac_site_file in $CONFIG_SITE; do
 
1418
  if test -r "$ac_site_file"; then
 
1419
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1420
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1421
    sed 's/^/| /' "$ac_site_file" >&5
 
1422
    . "$ac_site_file"
 
1423
  fi
 
1424
done
 
1425
 
 
1426
if test -r "$cache_file"; then
 
1427
  # Some versions of bash will fail to source /dev/null (special
 
1428
  # files actually), so we avoid doing that.
 
1429
  if test -f "$cache_file"; then
 
1430
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1431
echo "$as_me: loading cache $cache_file" >&6;}
 
1432
    case $cache_file in
 
1433
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1434
      *)                      . ./$cache_file;;
 
1435
    esac
 
1436
  fi
 
1437
else
 
1438
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1439
echo "$as_me: creating cache $cache_file" >&6;}
 
1440
  >$cache_file
 
1441
fi
 
1442
 
 
1443
# Check that the precious variables saved in the cache have kept the same
 
1444
# value.
 
1445
ac_cache_corrupted=false
 
1446
for ac_var in `(set) 2>&1 |
 
1447
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1448
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1449
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1450
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1451
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1452
  case $ac_old_set,$ac_new_set in
 
1453
    set,)
 
1454
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1455
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1456
      ac_cache_corrupted=: ;;
 
1457
    ,set)
 
1458
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1459
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1460
      ac_cache_corrupted=: ;;
 
1461
    ,);;
 
1462
    *)
 
1463
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1464
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1465
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1466
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1467
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1468
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1469
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1470
        ac_cache_corrupted=:
 
1471
      fi;;
 
1472
  esac
 
1473
  # Pass precious variables to config.status.
 
1474
  if test "$ac_new_set" = set; then
 
1475
    case $ac_new_val in
 
1476
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1477
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1478
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1479
    esac
 
1480
    case " $ac_configure_args " in
 
1481
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1482
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1483
    esac
 
1484
  fi
 
1485
done
 
1486
if $ac_cache_corrupted; then
 
1487
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1488
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1489
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1490
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1491
   { (exit 1); exit 1; }; }
 
1492
fi
 
1493
 
 
1494
ac_ext=c
 
1495
ac_cpp='$CPP $CPPFLAGS'
 
1496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
am__api_version="1.4"
 
1522
ac_aux_dir=
 
1523
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1524
  if test -f $ac_dir/install-sh; then
 
1525
    ac_aux_dir=$ac_dir
 
1526
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1527
    break
 
1528
  elif test -f $ac_dir/install.sh; then
 
1529
    ac_aux_dir=$ac_dir
 
1530
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1531
    break
 
1532
  elif test -f $ac_dir/shtool; then
 
1533
    ac_aux_dir=$ac_dir
 
1534
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1535
    break
 
1536
  fi
 
1537
done
 
1538
if test -z "$ac_aux_dir"; then
 
1539
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1540
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1541
   { (exit 1); exit 1; }; }
 
1542
fi
 
1543
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1544
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1545
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1546
 
 
1547
# Find a good install program.  We prefer a C program (faster),
 
1548
# so one script is as good as another.  But avoid the broken or
 
1549
# incompatible versions:
 
1550
# SysV /etc/install, /usr/sbin/install
 
1551
# SunOS /usr/etc/install
 
1552
# IRIX /sbin/install
 
1553
# AIX /bin/install
 
1554
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1555
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1556
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1557
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1558
# OS/2's system install, which has a completely different semantic
 
1559
# ./install, which can be erroneously created by make from ./install.sh.
 
1560
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1561
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1562
if test -z "$INSTALL"; then
 
1563
if test "${ac_cv_path_install+set}" = set; then
 
1564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1565
else
 
1566
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1567
for as_dir in $PATH
 
1568
do
 
1569
  IFS=$as_save_IFS
 
1570
  test -z "$as_dir" && as_dir=.
 
1571
  # Account for people who put trailing slashes in PATH elements.
 
1572
case $as_dir/ in
 
1573
  ./ | .// | /cC/* | \
 
1574
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1575
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1576
  /usr/ucb/* ) ;;
 
1577
  *)
 
1578
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1579
    # Don't use installbsd from OSF since it installs stuff as root
 
1580
    # by default.
 
1581
    for ac_prog in ginstall scoinst install; do
 
1582
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1583
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1584
          if test $ac_prog = install &&
 
1585
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1586
            # AIX install.  It has an incompatible calling convention.
 
1587
            :
 
1588
          elif test $ac_prog = install &&
 
1589
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1590
            # program-specific install script used by HP pwplus--don't use.
 
1591
            :
 
1592
          else
 
1593
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1594
            break 3
 
1595
          fi
 
1596
        fi
 
1597
      done
 
1598
    done
 
1599
    ;;
 
1600
esac
 
1601
done
 
1602
 
 
1603
 
 
1604
fi
 
1605
  if test "${ac_cv_path_install+set}" = set; then
 
1606
    INSTALL=$ac_cv_path_install
 
1607
  else
 
1608
    # As a last resort, use the slow shell script.  We don't cache a
 
1609
    # path for INSTALL within a source directory, because that will
 
1610
    # break other packages using the cache if that directory is
 
1611
    # removed, or if the path is relative.
 
1612
    INSTALL=$ac_install_sh
 
1613
  fi
 
1614
fi
 
1615
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1616
echo "${ECHO_T}$INSTALL" >&6
 
1617
 
 
1618
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1619
# It thinks the first close brace ends the variable substitution.
 
1620
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1621
 
 
1622
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1623
 
 
1624
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1625
 
 
1626
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1627
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1628
# Just in case
 
1629
sleep 1
 
1630
echo timestamp > conftestfile
 
1631
# Do `set' in a subshell so we don't clobber the current shell's
 
1632
# arguments.  Must try -L first in case configure is actually a
 
1633
# symlink; some systems play weird games with the mod time of symlinks
 
1634
# (eg FreeBSD returns the mod time of the symlink's containing
 
1635
# directory).
 
1636
if (
 
1637
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1638
   if test "$*" = "X"; then
 
1639
      # -L didn't work.
 
1640
      set X `ls -t $srcdir/configure conftestfile`
 
1641
   fi
 
1642
   if test "$*" != "X $srcdir/configure conftestfile" \
 
1643
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1644
 
 
1645
      # If neither matched, then we have a broken ls.  This can happen
 
1646
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1647
      # broken ls alias from the environment.  This has actually
 
1648
      # happened.  Such a system could not be considered "sane".
 
1649
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1650
alias in your environment" >&5
 
1651
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1652
alias in your environment" >&2;}
 
1653
   { (exit 1); exit 1; }; }
 
1654
   fi
 
1655
 
 
1656
   test "$2" = conftestfile
 
1657
   )
 
1658
then
 
1659
   # Ok.
 
1660
   :
 
1661
else
 
1662
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1663
Check your system clock" >&5
 
1664
echo "$as_me: error: newly created file is older than distributed files!
 
1665
Check your system clock" >&2;}
 
1666
   { (exit 1); exit 1; }; }
 
1667
fi
 
1668
rm -f conftest*
 
1669
echo "$as_me:$LINENO: result: yes" >&5
 
1670
echo "${ECHO_T}yes" >&6
 
1671
test "$program_prefix" != NONE &&
 
1672
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1673
# Use a double $ so make ignores it.
 
1674
test "$program_suffix" != NONE &&
 
1675
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1676
# Double any \ or $.  echo might interpret backslashes.
 
1677
# By default was `s,x,x', remove it if useless.
 
1678
cat <<\_ACEOF >conftest.sed
 
1679
s/[\\$]/&&/g;s/;s,x,x,$//
 
1680
_ACEOF
 
1681
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1682
rm conftest.sed
 
1683
 
 
1684
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1685
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1686
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1687
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1689
else
 
1690
  cat >conftest.make <<\_ACEOF
 
1691
all:
 
1692
        @echo 'ac_maketemp="$(MAKE)"'
 
1693
_ACEOF
 
1694
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1695
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1696
if test -n "$ac_maketemp"; then
 
1697
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1698
else
 
1699
  eval ac_cv_prog_make_${ac_make}_set=no
 
1700
fi
 
1701
rm -f conftest.make
 
1702
fi
 
1703
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1704
  echo "$as_me:$LINENO: result: yes" >&5
 
1705
echo "${ECHO_T}yes" >&6
 
1706
  SET_MAKE=
 
1707
else
 
1708
  echo "$as_me:$LINENO: result: no" >&5
 
1709
echo "${ECHO_T}no" >&6
 
1710
  SET_MAKE="MAKE=${MAKE-make}"
 
1711
fi
 
1712
 
 
1713
 
 
1714
PACKAGE=WindowMaker
 
1715
 
 
1716
VERSION=0.91.0
 
1717
 
 
1718
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
1719
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1720
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1721
   { (exit 1); exit 1; }; }
 
1722
fi
 
1723
 
 
1724
cat >>confdefs.h <<_ACEOF
 
1725
#define PACKAGE "$PACKAGE"
 
1726
_ACEOF
 
1727
 
 
1728
 
 
1729
cat >>confdefs.h <<_ACEOF
 
1730
#define VERSION "$VERSION"
 
1731
_ACEOF
 
1732
 
 
1733
 
 
1734
 
 
1735
missing_dir=`cd $ac_aux_dir && pwd`
 
1736
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
 
1737
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
 
1738
# Run test in a subshell; some versions of sh will print an error if
 
1739
# an executable is not found, even if stderr is redirected.
 
1740
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1741
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1742
   ACLOCAL=aclocal-${am__api_version}
 
1743
   echo "$as_me:$LINENO: result: found" >&5
 
1744
echo "${ECHO_T}found" >&6
 
1745
else
 
1746
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
 
1747
   echo "$as_me:$LINENO: result: missing" >&5
 
1748
echo "${ECHO_T}missing" >&6
 
1749
fi
 
1750
 
 
1751
echo "$as_me:$LINENO: checking for working autoconf" >&5
 
1752
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 
1753
# Run test in a subshell; some versions of sh will print an error if
 
1754
# an executable is not found, even if stderr is redirected.
 
1755
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1756
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
1757
   AUTOCONF=autoconf
 
1758
   echo "$as_me:$LINENO: result: found" >&5
 
1759
echo "${ECHO_T}found" >&6
 
1760
else
 
1761
   AUTOCONF="$missing_dir/missing autoconf"
 
1762
   echo "$as_me:$LINENO: result: missing" >&5
 
1763
echo "${ECHO_T}missing" >&6
 
1764
fi
 
1765
 
 
1766
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
 
1767
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
 
1768
# Run test in a subshell; some versions of sh will print an error if
 
1769
# an executable is not found, even if stderr is redirected.
 
1770
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1771
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1772
   AUTOMAKE=automake-${am__api_version}
 
1773
   echo "$as_me:$LINENO: result: found" >&5
 
1774
echo "${ECHO_T}found" >&6
 
1775
else
 
1776
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
 
1777
   echo "$as_me:$LINENO: result: missing" >&5
 
1778
echo "${ECHO_T}missing" >&6
 
1779
fi
 
1780
 
 
1781
echo "$as_me:$LINENO: checking for working autoheader" >&5
 
1782
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 
1783
# Run test in a subshell; some versions of sh will print an error if
 
1784
# an executable is not found, even if stderr is redirected.
 
1785
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1786
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
1787
   AUTOHEADER=autoheader
 
1788
   echo "$as_me:$LINENO: result: found" >&5
 
1789
echo "${ECHO_T}found" >&6
 
1790
else
 
1791
   AUTOHEADER="$missing_dir/missing autoheader"
 
1792
   echo "$as_me:$LINENO: result: missing" >&5
 
1793
echo "${ECHO_T}missing" >&6
 
1794
fi
 
1795
 
 
1796
echo "$as_me:$LINENO: checking for working makeinfo" >&5
 
1797
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 
1798
# Run test in a subshell; some versions of sh will print an error if
 
1799
# an executable is not found, even if stderr is redirected.
 
1800
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1801
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
1802
   MAKEINFO=makeinfo
 
1803
   echo "$as_me:$LINENO: result: found" >&5
 
1804
echo "${ECHO_T}found" >&6
 
1805
else
 
1806
   MAKEINFO="$missing_dir/missing makeinfo"
 
1807
   echo "$as_me:$LINENO: result: missing" >&5
 
1808
echo "${ECHO_T}missing" >&6
 
1809
fi
 
1810
 
 
1811
 
 
1812
 
 
1813
# Check whether --enable-shared or --disable-shared was given.
 
1814
if test "${enable_shared+set}" = set; then
 
1815
  enableval="$enable_shared"
 
1816
  p=${PACKAGE-default}
 
1817
    case $enableval in
 
1818
    yes) enable_shared=yes ;;
 
1819
    no) enable_shared=no ;;
 
1820
    *)
 
1821
      enable_shared=no
 
1822
      # Look at the argument we got.  We use all the common list separators.
 
1823
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1824
      for pkg in $enableval; do
 
1825
        IFS="$lt_save_ifs"
 
1826
        if test "X$pkg" = "X$p"; then
 
1827
          enable_shared=yes
 
1828
        fi
 
1829
      done
 
1830
      IFS="$lt_save_ifs"
 
1831
      ;;
 
1832
    esac
 
1833
else
 
1834
  enable_shared=yes
 
1835
fi;
 
1836
 
 
1837
# Check whether --enable-static or --disable-static was given.
 
1838
if test "${enable_static+set}" = set; then
 
1839
  enableval="$enable_static"
 
1840
  p=${PACKAGE-default}
 
1841
    case $enableval in
 
1842
    yes) enable_static=yes ;;
 
1843
    no) enable_static=no ;;
 
1844
    *)
 
1845
     enable_static=no
 
1846
      # Look at the argument we got.  We use all the common list separators.
 
1847
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1848
      for pkg in $enableval; do
 
1849
        IFS="$lt_save_ifs"
 
1850
        if test "X$pkg" = "X$p"; then
 
1851
          enable_static=yes
 
1852
        fi
 
1853
      done
 
1854
      IFS="$lt_save_ifs"
 
1855
      ;;
 
1856
    esac
 
1857
else
 
1858
  enable_static=yes
 
1859
fi;
 
1860
 
 
1861
# Check whether --enable-fast-install or --disable-fast-install was given.
 
1862
if test "${enable_fast_install+set}" = set; then
 
1863
  enableval="$enable_fast_install"
 
1864
  p=${PACKAGE-default}
 
1865
    case $enableval in
 
1866
    yes) enable_fast_install=yes ;;
 
1867
    no) enable_fast_install=no ;;
 
1868
    *)
 
1869
      enable_fast_install=no
 
1870
      # Look at the argument we got.  We use all the common list separators.
 
1871
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1872
      for pkg in $enableval; do
 
1873
        IFS="$lt_save_ifs"
 
1874
        if test "X$pkg" = "X$p"; then
 
1875
          enable_fast_install=yes
 
1876
        fi
 
1877
      done
 
1878
      IFS="$lt_save_ifs"
 
1879
      ;;
 
1880
    esac
 
1881
else
 
1882
  enable_fast_install=yes
 
1883
fi;
 
1884
 
 
1885
# Make sure we can run config.sub.
 
1886
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1887
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1888
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1889
   { (exit 1); exit 1; }; }
 
1890
 
 
1891
echo "$as_me:$LINENO: checking build system type" >&5
 
1892
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1893
if test "${ac_cv_build+set}" = set; then
 
1894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1895
else
 
1896
  ac_cv_build_alias=$build_alias
 
1897
test -z "$ac_cv_build_alias" &&
 
1898
  ac_cv_build_alias=`$ac_config_guess`
 
1899
test -z "$ac_cv_build_alias" &&
 
1900
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1901
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1902
   { (exit 1); exit 1; }; }
 
1903
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1904
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1905
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1906
   { (exit 1); exit 1; }; }
 
1907
 
 
1908
fi
 
1909
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1910
echo "${ECHO_T}$ac_cv_build" >&6
 
1911
build=$ac_cv_build
 
1912
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1913
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1914
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1915
 
 
1916
 
 
1917
echo "$as_me:$LINENO: checking host system type" >&5
 
1918
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1919
if test "${ac_cv_host+set}" = set; then
 
1920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1921
else
 
1922
  ac_cv_host_alias=$host_alias
 
1923
test -z "$ac_cv_host_alias" &&
 
1924
  ac_cv_host_alias=$ac_cv_build_alias
 
1925
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1926
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1927
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1928
   { (exit 1); exit 1; }; }
 
1929
 
 
1930
fi
 
1931
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1932
echo "${ECHO_T}$ac_cv_host" >&6
 
1933
host=$ac_cv_host
 
1934
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1935
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1936
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1937
 
 
1938
 
 
1939
ac_ext=c
 
1940
ac_cpp='$CPP $CPPFLAGS'
 
1941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1944
if test -n "$ac_tool_prefix"; then
 
1945
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1946
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1947
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1949
if test "${ac_cv_prog_CC+set}" = set; then
 
1950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1951
else
 
1952
  if test -n "$CC"; then
 
1953
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1954
else
 
1955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1956
for as_dir in $PATH
 
1957
do
 
1958
  IFS=$as_save_IFS
 
1959
  test -z "$as_dir" && as_dir=.
 
1960
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1961
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1962
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1963
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1964
    break 2
 
1965
  fi
 
1966
done
 
1967
done
 
1968
 
 
1969
fi
 
1970
fi
 
1971
CC=$ac_cv_prog_CC
 
1972
if test -n "$CC"; then
 
1973
  echo "$as_me:$LINENO: result: $CC" >&5
 
1974
echo "${ECHO_T}$CC" >&6
 
1975
else
 
1976
  echo "$as_me:$LINENO: result: no" >&5
 
1977
echo "${ECHO_T}no" >&6
 
1978
fi
 
1979
 
 
1980
fi
 
1981
if test -z "$ac_cv_prog_CC"; then
 
1982
  ac_ct_CC=$CC
 
1983
  # Extract the first word of "gcc", so it can be a program name with args.
 
1984
set dummy gcc; ac_word=$2
 
1985
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1986
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1987
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1989
else
 
1990
  if test -n "$ac_ct_CC"; then
 
1991
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1992
else
 
1993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1994
for as_dir in $PATH
 
1995
do
 
1996
  IFS=$as_save_IFS
 
1997
  test -z "$as_dir" && as_dir=.
 
1998
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1999
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2000
    ac_cv_prog_ac_ct_CC="gcc"
 
2001
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2002
    break 2
 
2003
  fi
 
2004
done
 
2005
done
 
2006
 
 
2007
fi
 
2008
fi
 
2009
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2010
if test -n "$ac_ct_CC"; then
 
2011
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2012
echo "${ECHO_T}$ac_ct_CC" >&6
 
2013
else
 
2014
  echo "$as_me:$LINENO: result: no" >&5
 
2015
echo "${ECHO_T}no" >&6
 
2016
fi
 
2017
 
 
2018
  CC=$ac_ct_CC
 
2019
else
 
2020
  CC="$ac_cv_prog_CC"
 
2021
fi
 
2022
 
 
2023
if test -z "$CC"; then
 
2024
  if test -n "$ac_tool_prefix"; then
 
2025
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2026
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2027
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2029
if test "${ac_cv_prog_CC+set}" = set; then
 
2030
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2031
else
 
2032
  if test -n "$CC"; then
 
2033
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2034
else
 
2035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2036
for as_dir in $PATH
 
2037
do
 
2038
  IFS=$as_save_IFS
 
2039
  test -z "$as_dir" && as_dir=.
 
2040
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2041
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2042
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2043
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2044
    break 2
 
2045
  fi
 
2046
done
 
2047
done
 
2048
 
 
2049
fi
 
2050
fi
 
2051
CC=$ac_cv_prog_CC
 
2052
if test -n "$CC"; then
 
2053
  echo "$as_me:$LINENO: result: $CC" >&5
 
2054
echo "${ECHO_T}$CC" >&6
 
2055
else
 
2056
  echo "$as_me:$LINENO: result: no" >&5
 
2057
echo "${ECHO_T}no" >&6
 
2058
fi
 
2059
 
 
2060
fi
 
2061
if test -z "$ac_cv_prog_CC"; then
 
2062
  ac_ct_CC=$CC
 
2063
  # Extract the first word of "cc", so it can be a program name with args.
 
2064
set dummy cc; ac_word=$2
 
2065
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2067
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2069
else
 
2070
  if test -n "$ac_ct_CC"; then
 
2071
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2072
else
 
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2074
for as_dir in $PATH
 
2075
do
 
2076
  IFS=$as_save_IFS
 
2077
  test -z "$as_dir" && as_dir=.
 
2078
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2079
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2080
    ac_cv_prog_ac_ct_CC="cc"
 
2081
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2082
    break 2
 
2083
  fi
 
2084
done
 
2085
done
 
2086
 
 
2087
fi
 
2088
fi
 
2089
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2090
if test -n "$ac_ct_CC"; then
 
2091
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2092
echo "${ECHO_T}$ac_ct_CC" >&6
 
2093
else
 
2094
  echo "$as_me:$LINENO: result: no" >&5
 
2095
echo "${ECHO_T}no" >&6
 
2096
fi
 
2097
 
 
2098
  CC=$ac_ct_CC
 
2099
else
 
2100
  CC="$ac_cv_prog_CC"
 
2101
fi
 
2102
 
 
2103
fi
 
2104
if test -z "$CC"; then
 
2105
  # Extract the first word of "cc", so it can be a program name with args.
 
2106
set dummy cc; ac_word=$2
 
2107
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2109
if test "${ac_cv_prog_CC+set}" = set; then
 
2110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2111
else
 
2112
  if test -n "$CC"; then
 
2113
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2114
else
 
2115
  ac_prog_rejected=no
 
2116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2117
for as_dir in $PATH
 
2118
do
 
2119
  IFS=$as_save_IFS
 
2120
  test -z "$as_dir" && as_dir=.
 
2121
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2122
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2123
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2124
       ac_prog_rejected=yes
 
2125
       continue
 
2126
     fi
 
2127
    ac_cv_prog_CC="cc"
 
2128
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2129
    break 2
 
2130
  fi
 
2131
done
 
2132
done
 
2133
 
 
2134
if test $ac_prog_rejected = yes; then
 
2135
  # We found a bogon in the path, so make sure we never use it.
 
2136
  set dummy $ac_cv_prog_CC
 
2137
  shift
 
2138
  if test $# != 0; then
 
2139
    # We chose a different compiler from the bogus one.
 
2140
    # However, it has the same basename, so the bogon will be chosen
 
2141
    # first if we set CC to just the basename; use the full file name.
 
2142
    shift
 
2143
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2144
  fi
 
2145
fi
 
2146
fi
 
2147
fi
 
2148
CC=$ac_cv_prog_CC
 
2149
if test -n "$CC"; then
 
2150
  echo "$as_me:$LINENO: result: $CC" >&5
 
2151
echo "${ECHO_T}$CC" >&6
 
2152
else
 
2153
  echo "$as_me:$LINENO: result: no" >&5
 
2154
echo "${ECHO_T}no" >&6
 
2155
fi
 
2156
 
 
2157
fi
 
2158
if test -z "$CC"; then
 
2159
  if test -n "$ac_tool_prefix"; then
 
2160
  for ac_prog in cl
 
2161
  do
 
2162
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2163
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2164
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2166
if test "${ac_cv_prog_CC+set}" = set; then
 
2167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2168
else
 
2169
  if test -n "$CC"; then
 
2170
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2171
else
 
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2173
for as_dir in $PATH
 
2174
do
 
2175
  IFS=$as_save_IFS
 
2176
  test -z "$as_dir" && as_dir=.
 
2177
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2178
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2179
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2180
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2181
    break 2
 
2182
  fi
 
2183
done
 
2184
done
 
2185
 
 
2186
fi
 
2187
fi
 
2188
CC=$ac_cv_prog_CC
 
2189
if test -n "$CC"; then
 
2190
  echo "$as_me:$LINENO: result: $CC" >&5
 
2191
echo "${ECHO_T}$CC" >&6
 
2192
else
 
2193
  echo "$as_me:$LINENO: result: no" >&5
 
2194
echo "${ECHO_T}no" >&6
 
2195
fi
 
2196
 
 
2197
    test -n "$CC" && break
 
2198
  done
 
2199
fi
 
2200
if test -z "$CC"; then
 
2201
  ac_ct_CC=$CC
 
2202
  for ac_prog in cl
 
2203
do
 
2204
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2205
set dummy $ac_prog; ac_word=$2
 
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2208
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2210
else
 
2211
  if test -n "$ac_ct_CC"; then
 
2212
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2213
else
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2221
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2223
    break 2
 
2224
  fi
 
2225
done
 
2226
done
 
2227
 
 
2228
fi
 
2229
fi
 
2230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2231
if test -n "$ac_ct_CC"; then
 
2232
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2233
echo "${ECHO_T}$ac_ct_CC" >&6
 
2234
else
 
2235
  echo "$as_me:$LINENO: result: no" >&5
 
2236
echo "${ECHO_T}no" >&6
 
2237
fi
 
2238
 
 
2239
  test -n "$ac_ct_CC" && break
 
2240
done
 
2241
 
 
2242
  CC=$ac_ct_CC
 
2243
fi
 
2244
 
 
2245
fi
 
2246
 
 
2247
 
 
2248
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2249
See \`config.log' for more details." >&5
 
2250
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2251
See \`config.log' for more details." >&2;}
 
2252
   { (exit 1); exit 1; }; }
 
2253
 
 
2254
# Provide some information about the compiler.
 
2255
echo "$as_me:$LINENO:" \
 
2256
     "checking for C compiler version" >&5
 
2257
ac_compiler=`set X $ac_compile; echo $2`
 
2258
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2259
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2260
  ac_status=$?
 
2261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2262
  (exit $ac_status); }
 
2263
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2264
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2265
  ac_status=$?
 
2266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2267
  (exit $ac_status); }
 
2268
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2269
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2270
  ac_status=$?
 
2271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2272
  (exit $ac_status); }
 
2273
 
 
2274
cat >conftest.$ac_ext <<_ACEOF
 
2275
/* confdefs.h.  */
 
2276
_ACEOF
 
2277
cat confdefs.h >>conftest.$ac_ext
 
2278
cat >>conftest.$ac_ext <<_ACEOF
 
2279
/* end confdefs.h.  */
 
2280
 
 
2281
int
 
2282
main ()
 
2283
{
 
2284
 
 
2285
  ;
 
2286
  return 0;
 
2287
}
 
2288
_ACEOF
 
2289
ac_clean_files_save=$ac_clean_files
 
2290
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2291
# Try to create an executable without -o first, disregard a.out.
 
2292
# It will help us diagnose broken compilers, and finding out an intuition
 
2293
# of exeext.
 
2294
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2295
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2296
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2297
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2298
  (eval $ac_link_default) 2>&5
 
2299
  ac_status=$?
 
2300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2301
  (exit $ac_status); }; then
 
2302
  # Find the output, starting from the most likely.  This scheme is
 
2303
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2304
# resort.
 
2305
 
 
2306
# Be careful to initialize this variable, since it used to be cached.
 
2307
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2308
ac_cv_exeext=
 
2309
# b.out is created by i960 compilers.
 
2310
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2311
do
 
2312
  test -f "$ac_file" || continue
 
2313
  case $ac_file in
 
2314
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2315
        ;;
 
2316
    conftest.$ac_ext )
 
2317
        # This is the source file.
 
2318
        ;;
 
2319
    [ab].out )
 
2320
        # We found the default executable, but exeext='' is most
 
2321
        # certainly right.
 
2322
        break;;
 
2323
    *.* )
 
2324
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2325
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2326
        # but it would be cool to find out if it's true.  Does anybody
 
2327
        # maintain Libtool? --akim.
 
2328
        export ac_cv_exeext
 
2329
        break;;
 
2330
    * )
 
2331
        break;;
 
2332
  esac
 
2333
done
 
2334
else
 
2335
  echo "$as_me: failed program was:" >&5
 
2336
sed 's/^/| /' conftest.$ac_ext >&5
 
2337
 
 
2338
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2339
See \`config.log' for more details." >&5
 
2340
echo "$as_me: error: C compiler cannot create executables
 
2341
See \`config.log' for more details." >&2;}
 
2342
   { (exit 77); exit 77; }; }
 
2343
fi
 
2344
 
 
2345
ac_exeext=$ac_cv_exeext
 
2346
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2347
echo "${ECHO_T}$ac_file" >&6
 
2348
 
 
2349
# Check the compiler produces executables we can run.  If not, either
 
2350
# the compiler is broken, or we cross compile.
 
2351
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2352
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2353
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2354
# If not cross compiling, check that we can run a simple program.
 
2355
if test "$cross_compiling" != yes; then
 
2356
  if { ac_try='./$ac_file'
 
2357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2358
  (eval $ac_try) 2>&5
 
2359
  ac_status=$?
 
2360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2361
  (exit $ac_status); }; }; then
 
2362
    cross_compiling=no
 
2363
  else
 
2364
    if test "$cross_compiling" = maybe; then
 
2365
        cross_compiling=yes
 
2366
    else
 
2367
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2368
If you meant to cross compile, use \`--host'.
 
2369
See \`config.log' for more details." >&5
 
2370
echo "$as_me: error: cannot run C compiled programs.
 
2371
If you meant to cross compile, use \`--host'.
 
2372
See \`config.log' for more details." >&2;}
 
2373
   { (exit 1); exit 1; }; }
 
2374
    fi
 
2375
  fi
 
2376
fi
 
2377
echo "$as_me:$LINENO: result: yes" >&5
 
2378
echo "${ECHO_T}yes" >&6
 
2379
 
 
2380
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2381
ac_clean_files=$ac_clean_files_save
 
2382
# Check the compiler produces executables we can run.  If not, either
 
2383
# the compiler is broken, or we cross compile.
 
2384
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2385
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2386
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2387
echo "${ECHO_T}$cross_compiling" >&6
 
2388
 
 
2389
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2390
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2392
  (eval $ac_link) 2>&5
 
2393
  ac_status=$?
 
2394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2395
  (exit $ac_status); }; then
 
2396
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2397
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2398
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2399
# `rm'.
 
2400
for ac_file in conftest.exe conftest conftest.*; do
 
2401
  test -f "$ac_file" || continue
 
2402
  case $ac_file in
 
2403
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2404
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2405
          export ac_cv_exeext
 
2406
          break;;
 
2407
    * ) break;;
 
2408
  esac
 
2409
done
 
2410
else
 
2411
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2412
See \`config.log' for more details." >&5
 
2413
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2414
See \`config.log' for more details." >&2;}
 
2415
   { (exit 1); exit 1; }; }
 
2416
fi
 
2417
 
 
2418
rm -f conftest$ac_cv_exeext
 
2419
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2420
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2421
 
 
2422
rm -f conftest.$ac_ext
 
2423
EXEEXT=$ac_cv_exeext
 
2424
ac_exeext=$EXEEXT
 
2425
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2426
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2427
if test "${ac_cv_objext+set}" = set; then
 
2428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2429
else
 
2430
  cat >conftest.$ac_ext <<_ACEOF
 
2431
/* confdefs.h.  */
 
2432
_ACEOF
 
2433
cat confdefs.h >>conftest.$ac_ext
 
2434
cat >>conftest.$ac_ext <<_ACEOF
 
2435
/* end confdefs.h.  */
 
2436
 
 
2437
int
 
2438
main ()
 
2439
{
 
2440
 
 
2441
  ;
 
2442
  return 0;
 
2443
}
 
2444
_ACEOF
 
2445
rm -f conftest.o conftest.obj
 
2446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2447
  (eval $ac_compile) 2>&5
 
2448
  ac_status=$?
 
2449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2450
  (exit $ac_status); }; then
 
2451
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2452
  case $ac_file in
 
2453
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2454
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2455
       break;;
 
2456
  esac
 
2457
done
 
2458
else
 
2459
  echo "$as_me: failed program was:" >&5
 
2460
sed 's/^/| /' conftest.$ac_ext >&5
 
2461
 
 
2462
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2463
See \`config.log' for more details." >&5
 
2464
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2465
See \`config.log' for more details." >&2;}
 
2466
   { (exit 1); exit 1; }; }
 
2467
fi
 
2468
 
 
2469
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2470
fi
 
2471
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2472
echo "${ECHO_T}$ac_cv_objext" >&6
 
2473
OBJEXT=$ac_cv_objext
 
2474
ac_objext=$OBJEXT
 
2475
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2476
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2477
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2479
else
 
2480
  cat >conftest.$ac_ext <<_ACEOF
 
2481
/* confdefs.h.  */
 
2482
_ACEOF
 
2483
cat confdefs.h >>conftest.$ac_ext
 
2484
cat >>conftest.$ac_ext <<_ACEOF
 
2485
/* end confdefs.h.  */
 
2486
 
 
2487
int
 
2488
main ()
 
2489
{
 
2490
#ifndef __GNUC__
 
2491
       choke me
 
2492
#endif
 
2493
 
 
2494
  ;
 
2495
  return 0;
 
2496
}
 
2497
_ACEOF
 
2498
rm -f conftest.$ac_objext
 
2499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2500
  (eval $ac_compile) 2>conftest.er1
 
2501
  ac_status=$?
 
2502
  grep -v '^ *+' conftest.er1 >conftest.err
 
2503
  rm -f conftest.er1
 
2504
  cat conftest.err >&5
 
2505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2506
  (exit $ac_status); } &&
 
2507
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2509
  (eval $ac_try) 2>&5
 
2510
  ac_status=$?
 
2511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2512
  (exit $ac_status); }; } &&
 
2513
         { ac_try='test -s conftest.$ac_objext'
 
2514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2515
  (eval $ac_try) 2>&5
 
2516
  ac_status=$?
 
2517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2518
  (exit $ac_status); }; }; then
 
2519
  ac_compiler_gnu=yes
 
2520
else
 
2521
  echo "$as_me: failed program was:" >&5
 
2522
sed 's/^/| /' conftest.$ac_ext >&5
 
2523
 
 
2524
ac_compiler_gnu=no
 
2525
fi
 
2526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2527
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2528
 
 
2529
fi
 
2530
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2531
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2532
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2533
ac_test_CFLAGS=${CFLAGS+set}
 
2534
ac_save_CFLAGS=$CFLAGS
 
2535
CFLAGS="-g"
 
2536
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2537
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2538
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2540
else
 
2541
  cat >conftest.$ac_ext <<_ACEOF
 
2542
/* confdefs.h.  */
 
2543
_ACEOF
 
2544
cat confdefs.h >>conftest.$ac_ext
 
2545
cat >>conftest.$ac_ext <<_ACEOF
 
2546
/* end confdefs.h.  */
 
2547
 
 
2548
int
 
2549
main ()
 
2550
{
 
2551
 
 
2552
  ;
 
2553
  return 0;
 
2554
}
 
2555
_ACEOF
 
2556
rm -f conftest.$ac_objext
 
2557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2558
  (eval $ac_compile) 2>conftest.er1
 
2559
  ac_status=$?
 
2560
  grep -v '^ *+' conftest.er1 >conftest.err
 
2561
  rm -f conftest.er1
 
2562
  cat conftest.err >&5
 
2563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2564
  (exit $ac_status); } &&
 
2565
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2567
  (eval $ac_try) 2>&5
 
2568
  ac_status=$?
 
2569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2570
  (exit $ac_status); }; } &&
 
2571
         { ac_try='test -s conftest.$ac_objext'
 
2572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2573
  (eval $ac_try) 2>&5
 
2574
  ac_status=$?
 
2575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2576
  (exit $ac_status); }; }; then
 
2577
  ac_cv_prog_cc_g=yes
 
2578
else
 
2579
  echo "$as_me: failed program was:" >&5
 
2580
sed 's/^/| /' conftest.$ac_ext >&5
 
2581
 
 
2582
ac_cv_prog_cc_g=no
 
2583
fi
 
2584
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2585
fi
 
2586
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2587
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2588
if test "$ac_test_CFLAGS" = set; then
 
2589
  CFLAGS=$ac_save_CFLAGS
 
2590
elif test $ac_cv_prog_cc_g = yes; then
 
2591
  if test "$GCC" = yes; then
 
2592
    CFLAGS="-g -O2"
 
2593
  else
 
2594
    CFLAGS="-g"
 
2595
  fi
 
2596
else
 
2597
  if test "$GCC" = yes; then
 
2598
    CFLAGS="-O2"
 
2599
  else
 
2600
    CFLAGS=
 
2601
  fi
 
2602
fi
 
2603
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2604
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2605
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2607
else
 
2608
  ac_cv_prog_cc_stdc=no
 
2609
ac_save_CC=$CC
 
2610
cat >conftest.$ac_ext <<_ACEOF
 
2611
/* confdefs.h.  */
 
2612
_ACEOF
 
2613
cat confdefs.h >>conftest.$ac_ext
 
2614
cat >>conftest.$ac_ext <<_ACEOF
 
2615
/* end confdefs.h.  */
 
2616
#include <stdarg.h>
 
2617
#include <stdio.h>
 
2618
#include <sys/types.h>
 
2619
#include <sys/stat.h>
 
2620
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2621
struct buf { int x; };
 
2622
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2623
static char *e (p, i)
 
2624
     char **p;
 
2625
     int i;
 
2626
{
 
2627
  return p[i];
 
2628
}
 
2629
static char *f (char * (*g) (char **, int), char **p, ...)
 
2630
{
 
2631
  char *s;
 
2632
  va_list v;
 
2633
  va_start (v,p);
 
2634
  s = g (p, va_arg (v,int));
 
2635
  va_end (v);
 
2636
  return s;
 
2637
}
 
2638
 
 
2639
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2640
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2641
   These don't provoke an error unfortunately, instead are silently treated
 
2642
   as 'x'.  The following induces an error, until -std1 is added to get
 
2643
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2644
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2645
   that's true only with -std1.  */
 
2646
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2647
 
 
2648
int test (int i, double x);
 
2649
struct s1 {int (*f) (int a);};
 
2650
struct s2 {int (*f) (double a);};
 
2651
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2652
int argc;
 
2653
char **argv;
 
2654
int
 
2655
main ()
 
2656
{
 
2657
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2658
  ;
 
2659
  return 0;
 
2660
}
 
2661
_ACEOF
 
2662
# Don't try gcc -ansi; that turns off useful extensions and
 
2663
# breaks some systems' header files.
 
2664
# AIX                   -qlanglvl=ansi
 
2665
# Ultrix and OSF/1      -std1
 
2666
# HP-UX 10.20 and later -Ae
 
2667
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2668
# SVR4                  -Xc -D__EXTENSIONS__
 
2669
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2670
do
 
2671
  CC="$ac_save_CC $ac_arg"
 
2672
  rm -f conftest.$ac_objext
 
2673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2674
  (eval $ac_compile) 2>conftest.er1
 
2675
  ac_status=$?
 
2676
  grep -v '^ *+' conftest.er1 >conftest.err
 
2677
  rm -f conftest.er1
 
2678
  cat conftest.err >&5
 
2679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2680
  (exit $ac_status); } &&
 
2681
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2683
  (eval $ac_try) 2>&5
 
2684
  ac_status=$?
 
2685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2686
  (exit $ac_status); }; } &&
 
2687
         { ac_try='test -s conftest.$ac_objext'
 
2688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2689
  (eval $ac_try) 2>&5
 
2690
  ac_status=$?
 
2691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2692
  (exit $ac_status); }; }; then
 
2693
  ac_cv_prog_cc_stdc=$ac_arg
 
2694
break
 
2695
else
 
2696
  echo "$as_me: failed program was:" >&5
 
2697
sed 's/^/| /' conftest.$ac_ext >&5
 
2698
 
 
2699
fi
 
2700
rm -f conftest.err conftest.$ac_objext
 
2701
done
 
2702
rm -f conftest.$ac_ext conftest.$ac_objext
 
2703
CC=$ac_save_CC
 
2704
 
 
2705
fi
 
2706
 
 
2707
case "x$ac_cv_prog_cc_stdc" in
 
2708
  x|xno)
 
2709
    echo "$as_me:$LINENO: result: none needed" >&5
 
2710
echo "${ECHO_T}none needed" >&6 ;;
 
2711
  *)
 
2712
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2713
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2714
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2715
esac
 
2716
 
 
2717
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2718
# in C++ we need to declare it.  In case someone uses the same compiler
 
2719
# for both compiling C and C++ we need to have the C++ compiler decide
 
2720
# the declaration of exit, since it's the most demanding environment.
 
2721
cat >conftest.$ac_ext <<_ACEOF
 
2722
#ifndef __cplusplus
 
2723
  choke me
 
2724
#endif
 
2725
_ACEOF
 
2726
rm -f conftest.$ac_objext
 
2727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2728
  (eval $ac_compile) 2>conftest.er1
 
2729
  ac_status=$?
 
2730
  grep -v '^ *+' conftest.er1 >conftest.err
 
2731
  rm -f conftest.er1
 
2732
  cat conftest.err >&5
 
2733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2734
  (exit $ac_status); } &&
 
2735
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2737
  (eval $ac_try) 2>&5
 
2738
  ac_status=$?
 
2739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2740
  (exit $ac_status); }; } &&
 
2741
         { ac_try='test -s conftest.$ac_objext'
 
2742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2743
  (eval $ac_try) 2>&5
 
2744
  ac_status=$?
 
2745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2746
  (exit $ac_status); }; }; then
 
2747
  for ac_declaration in \
 
2748
   '' \
 
2749
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2750
   'extern "C" void std::exit (int); using std::exit;' \
 
2751
   'extern "C" void exit (int) throw ();' \
 
2752
   'extern "C" void exit (int);' \
 
2753
   'void exit (int);'
 
2754
do
 
2755
  cat >conftest.$ac_ext <<_ACEOF
 
2756
/* confdefs.h.  */
 
2757
_ACEOF
 
2758
cat confdefs.h >>conftest.$ac_ext
 
2759
cat >>conftest.$ac_ext <<_ACEOF
 
2760
/* end confdefs.h.  */
 
2761
$ac_declaration
 
2762
#include <stdlib.h>
 
2763
int
 
2764
main ()
 
2765
{
 
2766
exit (42);
 
2767
  ;
 
2768
  return 0;
 
2769
}
 
2770
_ACEOF
 
2771
rm -f conftest.$ac_objext
 
2772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2773
  (eval $ac_compile) 2>conftest.er1
 
2774
  ac_status=$?
 
2775
  grep -v '^ *+' conftest.er1 >conftest.err
 
2776
  rm -f conftest.er1
 
2777
  cat conftest.err >&5
 
2778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2779
  (exit $ac_status); } &&
 
2780
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2782
  (eval $ac_try) 2>&5
 
2783
  ac_status=$?
 
2784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2785
  (exit $ac_status); }; } &&
 
2786
         { ac_try='test -s conftest.$ac_objext'
 
2787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2788
  (eval $ac_try) 2>&5
 
2789
  ac_status=$?
 
2790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2791
  (exit $ac_status); }; }; then
 
2792
  :
 
2793
else
 
2794
  echo "$as_me: failed program was:" >&5
 
2795
sed 's/^/| /' conftest.$ac_ext >&5
 
2796
 
 
2797
continue
 
2798
fi
 
2799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2800
  cat >conftest.$ac_ext <<_ACEOF
 
2801
/* confdefs.h.  */
 
2802
_ACEOF
 
2803
cat confdefs.h >>conftest.$ac_ext
 
2804
cat >>conftest.$ac_ext <<_ACEOF
 
2805
/* end confdefs.h.  */
 
2806
$ac_declaration
 
2807
int
 
2808
main ()
 
2809
{
 
2810
exit (42);
 
2811
  ;
 
2812
  return 0;
 
2813
}
 
2814
_ACEOF
 
2815
rm -f conftest.$ac_objext
 
2816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2817
  (eval $ac_compile) 2>conftest.er1
 
2818
  ac_status=$?
 
2819
  grep -v '^ *+' conftest.er1 >conftest.err
 
2820
  rm -f conftest.er1
 
2821
  cat conftest.err >&5
 
2822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2823
  (exit $ac_status); } &&
 
2824
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2826
  (eval $ac_try) 2>&5
 
2827
  ac_status=$?
 
2828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2829
  (exit $ac_status); }; } &&
 
2830
         { ac_try='test -s conftest.$ac_objext'
 
2831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2832
  (eval $ac_try) 2>&5
 
2833
  ac_status=$?
 
2834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2835
  (exit $ac_status); }; }; then
 
2836
  break
 
2837
else
 
2838
  echo "$as_me: failed program was:" >&5
 
2839
sed 's/^/| /' conftest.$ac_ext >&5
 
2840
 
 
2841
fi
 
2842
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2843
done
 
2844
rm -f conftest*
 
2845
if test -n "$ac_declaration"; then
 
2846
  echo '#ifdef __cplusplus' >>confdefs.h
 
2847
  echo $ac_declaration      >>confdefs.h
 
2848
  echo '#endif'             >>confdefs.h
 
2849
fi
 
2850
 
 
2851
else
 
2852
  echo "$as_me: failed program was:" >&5
 
2853
sed 's/^/| /' conftest.$ac_ext >&5
 
2854
 
 
2855
fi
 
2856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2857
ac_ext=c
 
2858
ac_cpp='$CPP $CPPFLAGS'
 
2859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2862
 
 
2863
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
2864
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
2865
if test "${lt_cv_path_SED+set}" = set; then
 
2866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2867
else
 
2868
  # Loop through the user's path and test for sed and gsed.
 
2869
# Then use that list of sed's as ones to test for truncation.
 
2870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2871
for as_dir in $PATH
 
2872
do
 
2873
  IFS=$as_save_IFS
 
2874
  test -z "$as_dir" && as_dir=.
 
2875
  for lt_ac_prog in sed gsed; do
 
2876
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2877
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
2878
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
2879
      fi
 
2880
    done
 
2881
  done
 
2882
done
 
2883
lt_ac_max=0
 
2884
lt_ac_count=0
 
2885
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
2886
# along with /bin/sed that truncates output.
 
2887
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
2888
  test ! -f $lt_ac_sed && break
 
2889
  cat /dev/null > conftest.in
 
2890
  lt_ac_count=0
 
2891
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
2892
  # Check for GNU sed and select it if it is found.
 
2893
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
2894
    lt_cv_path_SED=$lt_ac_sed
 
2895
    break
 
2896
  fi
 
2897
  while true; do
 
2898
    cat conftest.in conftest.in >conftest.tmp
 
2899
    mv conftest.tmp conftest.in
 
2900
    cp conftest.in conftest.nl
 
2901
    echo >>conftest.nl
 
2902
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
2903
    cmp -s conftest.out conftest.nl || break
 
2904
    # 10000 chars as input seems more than enough
 
2905
    test $lt_ac_count -gt 10 && break
 
2906
    lt_ac_count=`expr $lt_ac_count + 1`
 
2907
    if test $lt_ac_count -gt $lt_ac_max; then
 
2908
      lt_ac_max=$lt_ac_count
 
2909
      lt_cv_path_SED=$lt_ac_sed
 
2910
    fi
 
2911
  done
 
2912
done
 
2913
SED=$lt_cv_path_SED
 
2914
 
 
2915
fi
 
2916
 
 
2917
echo "$as_me:$LINENO: result: $SED" >&5
 
2918
echo "${ECHO_T}$SED" >&6
 
2919
 
 
2920
echo "$as_me:$LINENO: checking for egrep" >&5
 
2921
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2922
if test "${ac_cv_prog_egrep+set}" = set; then
 
2923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2924
else
 
2925
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2926
    then ac_cv_prog_egrep='grep -E'
 
2927
    else ac_cv_prog_egrep='egrep'
 
2928
    fi
 
2929
fi
 
2930
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2931
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2932
 EGREP=$ac_cv_prog_egrep
 
2933
 
 
2934
 
 
2935
 
 
2936
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
2937
if test "${with_gnu_ld+set}" = set; then
 
2938
  withval="$with_gnu_ld"
 
2939
  test "$withval" = no || with_gnu_ld=yes
 
2940
else
 
2941
  with_gnu_ld=no
 
2942
fi;
 
2943
ac_prog=ld
 
2944
if test "$GCC" = yes; then
 
2945
  # Check if gcc -print-prog-name=ld gives a path.
 
2946
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
2947
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
2948
  case $host in
 
2949
  *-*-mingw*)
 
2950
    # gcc leaves a trailing carriage return which upsets mingw
 
2951
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2952
  *)
 
2953
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2954
  esac
 
2955
  case $ac_prog in
 
2956
    # Accept absolute paths.
 
2957
    [\\/]* | ?:[\\/]*)
 
2958
      re_direlt='/[^/][^/]*/\.\./'
 
2959
      # Canonicalize the pathname of ld
 
2960
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2961
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2962
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2963
      done
 
2964
      test -z "$LD" && LD="$ac_prog"
 
2965
      ;;
 
2966
  "")
 
2967
    # If it fails, then pretend we aren't using GCC.
 
2968
    ac_prog=ld
 
2969
    ;;
 
2970
  *)
 
2971
    # If it is relative, then search for the first ld in PATH.
 
2972
    with_gnu_ld=unknown
 
2973
    ;;
 
2974
  esac
 
2975
elif test "$with_gnu_ld" = yes; then
 
2976
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
2977
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
2978
else
 
2979
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
2980
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
2981
fi
 
2982
if test "${lt_cv_path_LD+set}" = set; then
 
2983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2984
else
 
2985
  if test -z "$LD"; then
 
2986
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2987
  for ac_dir in $PATH; do
 
2988
    IFS="$lt_save_ifs"
 
2989
    test -z "$ac_dir" && ac_dir=.
 
2990
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2991
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2992
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2993
      # but apparently some GNU ld's only accept -v.
 
2994
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2995
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2996
      *GNU* | *'with BFD'*)
 
2997
        test "$with_gnu_ld" != no && break
 
2998
        ;;
 
2999
      *)
 
3000
        test "$with_gnu_ld" != yes && break
 
3001
        ;;
 
3002
      esac
 
3003
    fi
 
3004
  done
 
3005
  IFS="$lt_save_ifs"
 
3006
else
 
3007
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3008
fi
 
3009
fi
 
3010
 
 
3011
LD="$lt_cv_path_LD"
 
3012
if test -n "$LD"; then
 
3013
  echo "$as_me:$LINENO: result: $LD" >&5
 
3014
echo "${ECHO_T}$LD" >&6
 
3015
else
 
3016
  echo "$as_me:$LINENO: result: no" >&5
 
3017
echo "${ECHO_T}no" >&6
 
3018
fi
 
3019
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3020
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3021
   { (exit 1); exit 1; }; }
 
3022
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3023
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3024
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3026
else
 
3027
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3028
case `$LD -v 2>&1 </dev/null` in
 
3029
*GNU* | *'with BFD'*)
 
3030
  lt_cv_prog_gnu_ld=yes
 
3031
  ;;
 
3032
*)
 
3033
  lt_cv_prog_gnu_ld=no
 
3034
  ;;
 
3035
esac
 
3036
fi
 
3037
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3038
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3039
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3040
 
 
3041
 
 
3042
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3043
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3044
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3046
else
 
3047
  lt_cv_ld_reload_flag='-r'
 
3048
fi
 
3049
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3050
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3051
reload_flag=$lt_cv_ld_reload_flag
 
3052
case $reload_flag in
 
3053
"" | " "*) ;;
 
3054
*) reload_flag=" $reload_flag" ;;
 
3055
esac
 
3056
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3057
 
 
3058
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3059
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3060
if test "${lt_cv_path_NM+set}" = set; then
 
3061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3062
else
 
3063
  if test -n "$NM"; then
 
3064
  # Let the user override the test.
 
3065
  lt_cv_path_NM="$NM"
 
3066
else
 
3067
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3068
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3069
    IFS="$lt_save_ifs"
 
3070
    test -z "$ac_dir" && ac_dir=.
 
3071
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3072
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3073
      # Check to see if the nm accepts a BSD-compat flag.
 
3074
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3075
      #   nm: unknown option "B" ignored
 
3076
      # Tru64's nm complains that /dev/null is an invalid object file
 
3077
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3078
      */dev/null* | *'Invalid file or object type'*)
 
3079
        lt_cv_path_NM="$tmp_nm -B"
 
3080
        break
 
3081
        ;;
 
3082
      *)
 
3083
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3084
        */dev/null*)
 
3085
          lt_cv_path_NM="$tmp_nm -p"
 
3086
          break
 
3087
          ;;
 
3088
        *)
 
3089
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3090
          continue # so that we can try to find one that supports BSD flags
 
3091
          ;;
 
3092
        esac
 
3093
      esac
 
3094
    fi
 
3095
  done
 
3096
  IFS="$lt_save_ifs"
 
3097
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3098
fi
 
3099
fi
 
3100
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3101
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3102
NM="$lt_cv_path_NM"
 
3103
 
 
3104
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3105
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3106
LN_S=$as_ln_s
 
3107
if test "$LN_S" = "ln -s"; then
 
3108
  echo "$as_me:$LINENO: result: yes" >&5
 
3109
echo "${ECHO_T}yes" >&6
 
3110
else
 
3111
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3112
echo "${ECHO_T}no, using $LN_S" >&6
 
3113
fi
 
3114
 
 
3115
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3116
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3117
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3119
else
 
3120
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3121
lt_cv_file_magic_test_file=
 
3122
lt_cv_deplibs_check_method='unknown'
 
3123
# Need to set the preceding variable on all platforms that support
 
3124
# interlibrary dependencies.
 
3125
# 'none' -- dependencies not supported.
 
3126
# `unknown' -- same as none, but documents that we really don't know.
 
3127
# 'pass_all' -- all dependencies passed with no checks.
 
3128
# 'test_compile' -- check by making test program.
 
3129
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3130
# which responds to the $file_magic_cmd with a given extended regex.
 
3131
# If you have `file' or equivalent on your system and you're not sure
 
3132
# whether `pass_all' will *always* work, you probably want this one.
 
3133
 
 
3134
case $host_os in
 
3135
aix4* | aix5*)
 
3136
  lt_cv_deplibs_check_method=pass_all
 
3137
  ;;
 
3138
 
 
3139
beos*)
 
3140
  lt_cv_deplibs_check_method=pass_all
 
3141
  ;;
 
3142
 
 
3143
bsdi4*)
 
3144
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3145
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3146
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3147
  ;;
 
3148
 
 
3149
cygwin*)
 
3150
  # func_win32_libid is a shell function defined in ltmain.sh
 
3151
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3152
  lt_cv_file_magic_cmd='func_win32_libid'
 
3153
  ;;
 
3154
 
 
3155
mingw* | pw32*)
 
3156
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3157
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3158
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3159
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3160
  ;;
 
3161
 
 
3162
darwin* | rhapsody*)
 
3163
  lt_cv_deplibs_check_method=pass_all
 
3164
  ;;
 
3165
 
 
3166
freebsd* | kfreebsd*-gnu)
 
3167
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3168
    case $host_cpu in
 
3169
    i*86 )
 
3170
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3171
      # Let's accept both of them until this is cleared up.
 
3172
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3173
      lt_cv_file_magic_cmd=/usr/bin/file
 
3174
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3175
      ;;
 
3176
    esac
 
3177
  else
 
3178
    lt_cv_deplibs_check_method=pass_all
 
3179
  fi
 
3180
  ;;
 
3181
 
 
3182
gnu*)
 
3183
  lt_cv_deplibs_check_method=pass_all
 
3184
  ;;
 
3185
 
 
3186
hpux10.20* | hpux11*)
 
3187
  lt_cv_file_magic_cmd=/usr/bin/file
 
3188
  case "$host_cpu" in
 
3189
  ia64*)
 
3190
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3191
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3192
    ;;
 
3193
  hppa*64*)
 
3194
    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]'
 
3195
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3196
    ;;
 
3197
  *)
 
3198
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3199
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3200
    ;;
 
3201
  esac
 
3202
  ;;
 
3203
 
 
3204
irix5* | irix6* | nonstopux*)
 
3205
  case $LD in
 
3206
  *-32|*"-32 ") libmagic=32-bit;;
 
3207
  *-n32|*"-n32 ") libmagic=N32;;
 
3208
  *-64|*"-64 ") libmagic=64-bit;;
 
3209
  *) libmagic=never-match;;
 
3210
  esac
 
3211
  lt_cv_deplibs_check_method=pass_all
 
3212
  ;;
 
3213
 
 
3214
# This must be Linux ELF.
 
3215
linux*)
 
3216
  lt_cv_deplibs_check_method=pass_all
 
3217
  ;;
 
3218
 
 
3219
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3220
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3221
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3222
  else
 
3223
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3224
  fi
 
3225
  ;;
 
3226
 
 
3227
newos6*)
 
3228
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3229
  lt_cv_file_magic_cmd=/usr/bin/file
 
3230
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3231
  ;;
 
3232
 
 
3233
nto-qnx*)
 
3234
  lt_cv_deplibs_check_method=unknown
 
3235
  ;;
 
3236
 
 
3237
openbsd*)
 
3238
  lt_cv_file_magic_cmd=/usr/bin/file
 
3239
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3240
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3241
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3242
  else
 
3243
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3244
  fi
 
3245
  ;;
 
3246
 
 
3247
osf3* | osf4* | osf5*)
 
3248
  lt_cv_deplibs_check_method=pass_all
 
3249
  ;;
 
3250
 
 
3251
sco3.2v5*)
 
3252
  lt_cv_deplibs_check_method=pass_all
 
3253
  ;;
 
3254
 
 
3255
solaris*)
 
3256
  lt_cv_deplibs_check_method=pass_all
 
3257
  ;;
 
3258
 
 
3259
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3260
  case $host_vendor in
 
3261
  motorola)
 
3262
    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]'
 
3263
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3264
    ;;
 
3265
  ncr)
 
3266
    lt_cv_deplibs_check_method=pass_all
 
3267
    ;;
 
3268
  sequent)
 
3269
    lt_cv_file_magic_cmd='/bin/file'
 
3270
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3271
    ;;
 
3272
  sni)
 
3273
    lt_cv_file_magic_cmd='/bin/file'
 
3274
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3275
    lt_cv_file_magic_test_file=/lib/libc.so
 
3276
    ;;
 
3277
  siemens)
 
3278
    lt_cv_deplibs_check_method=pass_all
 
3279
    ;;
 
3280
  esac
 
3281
  ;;
 
3282
 
 
3283
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3284
  lt_cv_deplibs_check_method=pass_all
 
3285
  ;;
 
3286
esac
 
3287
 
 
3288
fi
 
3289
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3290
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3291
file_magic_cmd=$lt_cv_file_magic_cmd
 
3292
deplibs_check_method=$lt_cv_deplibs_check_method
 
3293
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3294
 
 
3295
 
 
3296
 
 
3297
 
 
3298
# If no C compiler was specified, use CC.
 
3299
LTCC=${LTCC-"$CC"}
 
3300
 
 
3301
# Allow CC to be a program name with arguments.
 
3302
compiler=$CC
 
3303
 
 
3304
 
 
3305
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3306
if test "${enable_libtool_lock+set}" = set; then
 
3307
  enableval="$enable_libtool_lock"
 
3308
 
 
3309
fi;
 
3310
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3311
 
 
3312
# Some flags need to be propagated to the compiler or linker for good
 
3313
# libtool support.
 
3314
case $host in
 
3315
ia64-*-hpux*)
 
3316
  # Find out which ABI we are using.
 
3317
  echo 'int i;' > conftest.$ac_ext
 
3318
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3319
  (eval $ac_compile) 2>&5
 
3320
  ac_status=$?
 
3321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3322
  (exit $ac_status); }; then
 
3323
    case `/usr/bin/file conftest.$ac_objext` in
 
3324
    *ELF-32*)
 
3325
      HPUX_IA64_MODE="32"
 
3326
      ;;
 
3327
    *ELF-64*)
 
3328
      HPUX_IA64_MODE="64"
 
3329
      ;;
 
3330
    esac
 
3331
  fi
 
3332
  rm -rf conftest*
 
3333
  ;;
 
3334
*-*-irix6*)
 
3335
  # Find out which ABI we are using.
 
3336
  echo '#line 3336 "configure"' > conftest.$ac_ext
 
3337
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3338
  (eval $ac_compile) 2>&5
 
3339
  ac_status=$?
 
3340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3341
  (exit $ac_status); }; then
 
3342
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3343
    case `/usr/bin/file conftest.$ac_objext` in
 
3344
    *32-bit*)
 
3345
      LD="${LD-ld} -melf32bsmip"
 
3346
      ;;
 
3347
    *N32*)
 
3348
      LD="${LD-ld} -melf32bmipn32"
 
3349
      ;;
 
3350
    *64-bit*)
 
3351
      LD="${LD-ld} -melf64bmip"
 
3352
      ;;
 
3353
    esac
 
3354
   else
 
3355
    case `/usr/bin/file conftest.$ac_objext` in
 
3356
    *32-bit*)
 
3357
      LD="${LD-ld} -32"
 
3358
      ;;
 
3359
    *N32*)
 
3360
      LD="${LD-ld} -n32"
 
3361
      ;;
 
3362
    *64-bit*)
 
3363
      LD="${LD-ld} -64"
 
3364
      ;;
 
3365
    esac
 
3366
   fi
 
3367
  fi
 
3368
  rm -rf conftest*
 
3369
  ;;
 
3370
 
 
3371
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3372
  # Find out which ABI we are using.
 
3373
  echo 'int i;' > conftest.$ac_ext
 
3374
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3375
  (eval $ac_compile) 2>&5
 
3376
  ac_status=$?
 
3377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3378
  (exit $ac_status); }; then
 
3379
    case "`/usr/bin/file conftest.o`" in
 
3380
    *32-bit*)
 
3381
      case $host in
 
3382
        x86_64-*linux*)
 
3383
          LD="${LD-ld} -m elf_i386"
 
3384
          ;;
 
3385
        ppc64-*linux*|powerpc64-*linux*)
 
3386
          LD="${LD-ld} -m elf32ppclinux"
 
3387
          ;;
 
3388
        s390x-*linux*)
 
3389
          LD="${LD-ld} -m elf_s390"
 
3390
          ;;
 
3391
        sparc64-*linux*)
 
3392
          LD="${LD-ld} -m elf32_sparc"
 
3393
          ;;
 
3394
      esac
 
3395
      ;;
 
3396
    *64-bit*)
 
3397
      case $host in
 
3398
        x86_64-*linux*)
 
3399
          LD="${LD-ld} -m elf_x86_64"
 
3400
          ;;
 
3401
        ppc*-*linux*|powerpc*-*linux*)
 
3402
          LD="${LD-ld} -m elf64ppc"
 
3403
          ;;
 
3404
        s390*-*linux*)
 
3405
          LD="${LD-ld} -m elf64_s390"
 
3406
          ;;
 
3407
        sparc*-*linux*)
 
3408
          LD="${LD-ld} -m elf64_sparc"
 
3409
          ;;
 
3410
      esac
 
3411
      ;;
 
3412
    esac
 
3413
  fi
 
3414
  rm -rf conftest*
 
3415
  ;;
 
3416
 
 
3417
*-*-sco3.2v5*)
 
3418
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3419
  SAVE_CFLAGS="$CFLAGS"
 
3420
  CFLAGS="$CFLAGS -belf"
 
3421
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3422
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3423
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3425
else
 
3426
  ac_ext=c
 
3427
ac_cpp='$CPP $CPPFLAGS'
 
3428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3431
 
 
3432
     cat >conftest.$ac_ext <<_ACEOF
 
3433
/* confdefs.h.  */
 
3434
_ACEOF
 
3435
cat confdefs.h >>conftest.$ac_ext
 
3436
cat >>conftest.$ac_ext <<_ACEOF
 
3437
/* end confdefs.h.  */
 
3438
 
 
3439
int
 
3440
main ()
 
3441
{
 
3442
 
 
3443
  ;
 
3444
  return 0;
 
3445
}
 
3446
_ACEOF
 
3447
rm -f conftest.$ac_objext conftest$ac_exeext
 
3448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3449
  (eval $ac_link) 2>conftest.er1
 
3450
  ac_status=$?
 
3451
  grep -v '^ *+' conftest.er1 >conftest.err
 
3452
  rm -f conftest.er1
 
3453
  cat conftest.err >&5
 
3454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3455
  (exit $ac_status); } &&
 
3456
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3458
  (eval $ac_try) 2>&5
 
3459
  ac_status=$?
 
3460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3461
  (exit $ac_status); }; } &&
 
3462
         { ac_try='test -s conftest$ac_exeext'
 
3463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3464
  (eval $ac_try) 2>&5
 
3465
  ac_status=$?
 
3466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3467
  (exit $ac_status); }; }; then
 
3468
  lt_cv_cc_needs_belf=yes
 
3469
else
 
3470
  echo "$as_me: failed program was:" >&5
 
3471
sed 's/^/| /' conftest.$ac_ext >&5
 
3472
 
 
3473
lt_cv_cc_needs_belf=no
 
3474
fi
 
3475
rm -f conftest.err conftest.$ac_objext \
 
3476
      conftest$ac_exeext conftest.$ac_ext
 
3477
     ac_ext=c
 
3478
ac_cpp='$CPP $CPPFLAGS'
 
3479
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3480
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3481
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3482
 
 
3483
fi
 
3484
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3485
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3486
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3487
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3488
    CFLAGS="$SAVE_CFLAGS"
 
3489
  fi
 
3490
  ;;
 
3491
 
 
3492
esac
 
3493
 
 
3494
need_locks="$enable_libtool_lock"
 
3495
 
 
3496
 
 
3497
ac_ext=c
 
3498
ac_cpp='$CPP $CPPFLAGS'
 
3499
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3500
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3501
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3502
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3503
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3504
# On Suns, sometimes $CPP names a directory.
 
3505
if test -n "$CPP" && test -d "$CPP"; then
 
3506
  CPP=
 
3507
fi
 
3508
if test -z "$CPP"; then
 
3509
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3511
else
 
3512
      # Double quotes because CPP needs to be expanded
 
3513
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3514
    do
 
3515
      ac_preproc_ok=false
 
3516
for ac_c_preproc_warn_flag in '' yes
 
3517
do
 
3518
  # Use a header file that comes with gcc, so configuring glibc
 
3519
  # with a fresh cross-compiler works.
 
3520
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3521
  # <limits.h> exists even on freestanding compilers.
 
3522
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3523
  # not just through cpp. "Syntax error" is here to catch this case.
 
3524
  cat >conftest.$ac_ext <<_ACEOF
 
3525
/* confdefs.h.  */
 
3526
_ACEOF
 
3527
cat confdefs.h >>conftest.$ac_ext
 
3528
cat >>conftest.$ac_ext <<_ACEOF
 
3529
/* end confdefs.h.  */
 
3530
#ifdef __STDC__
 
3531
# include <limits.h>
 
3532
#else
 
3533
# include <assert.h>
 
3534
#endif
 
3535
                     Syntax error
 
3536
_ACEOF
 
3537
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3538
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3539
  ac_status=$?
 
3540
  grep -v '^ *+' conftest.er1 >conftest.err
 
3541
  rm -f conftest.er1
 
3542
  cat conftest.err >&5
 
3543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3544
  (exit $ac_status); } >/dev/null; then
 
3545
  if test -s conftest.err; then
 
3546
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3547
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3548
  else
 
3549
    ac_cpp_err=
 
3550
  fi
 
3551
else
 
3552
  ac_cpp_err=yes
 
3553
fi
 
3554
if test -z "$ac_cpp_err"; then
 
3555
  :
 
3556
else
 
3557
  echo "$as_me: failed program was:" >&5
 
3558
sed 's/^/| /' conftest.$ac_ext >&5
 
3559
 
 
3560
  # Broken: fails on valid input.
 
3561
continue
 
3562
fi
 
3563
rm -f conftest.err conftest.$ac_ext
 
3564
 
 
3565
  # OK, works on sane cases.  Now check whether non-existent headers
 
3566
  # can be detected and how.
 
3567
  cat >conftest.$ac_ext <<_ACEOF
 
3568
/* confdefs.h.  */
 
3569
_ACEOF
 
3570
cat confdefs.h >>conftest.$ac_ext
 
3571
cat >>conftest.$ac_ext <<_ACEOF
 
3572
/* end confdefs.h.  */
 
3573
#include <ac_nonexistent.h>
 
3574
_ACEOF
 
3575
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3576
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3577
  ac_status=$?
 
3578
  grep -v '^ *+' conftest.er1 >conftest.err
 
3579
  rm -f conftest.er1
 
3580
  cat conftest.err >&5
 
3581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3582
  (exit $ac_status); } >/dev/null; then
 
3583
  if test -s conftest.err; then
 
3584
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3585
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3586
  else
 
3587
    ac_cpp_err=
 
3588
  fi
 
3589
else
 
3590
  ac_cpp_err=yes
 
3591
fi
 
3592
if test -z "$ac_cpp_err"; then
 
3593
  # Broken: success on invalid input.
 
3594
continue
 
3595
else
 
3596
  echo "$as_me: failed program was:" >&5
 
3597
sed 's/^/| /' conftest.$ac_ext >&5
 
3598
 
 
3599
  # Passes both tests.
 
3600
ac_preproc_ok=:
 
3601
break
 
3602
fi
 
3603
rm -f conftest.err conftest.$ac_ext
 
3604
 
 
3605
done
 
3606
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3607
rm -f conftest.err conftest.$ac_ext
 
3608
if $ac_preproc_ok; then
 
3609
  break
 
3610
fi
 
3611
 
 
3612
    done
 
3613
    ac_cv_prog_CPP=$CPP
 
3614
 
 
3615
fi
 
3616
  CPP=$ac_cv_prog_CPP
 
3617
else
 
3618
  ac_cv_prog_CPP=$CPP
 
3619
fi
 
3620
echo "$as_me:$LINENO: result: $CPP" >&5
 
3621
echo "${ECHO_T}$CPP" >&6
 
3622
ac_preproc_ok=false
 
3623
for ac_c_preproc_warn_flag in '' yes
 
3624
do
 
3625
  # Use a header file that comes with gcc, so configuring glibc
 
3626
  # with a fresh cross-compiler works.
 
3627
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3628
  # <limits.h> exists even on freestanding compilers.
 
3629
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3630
  # not just through cpp. "Syntax error" is here to catch this case.
 
3631
  cat >conftest.$ac_ext <<_ACEOF
 
3632
/* confdefs.h.  */
 
3633
_ACEOF
 
3634
cat confdefs.h >>conftest.$ac_ext
 
3635
cat >>conftest.$ac_ext <<_ACEOF
 
3636
/* end confdefs.h.  */
 
3637
#ifdef __STDC__
 
3638
# include <limits.h>
 
3639
#else
 
3640
# include <assert.h>
 
3641
#endif
 
3642
                     Syntax error
 
3643
_ACEOF
 
3644
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3645
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3646
  ac_status=$?
 
3647
  grep -v '^ *+' conftest.er1 >conftest.err
 
3648
  rm -f conftest.er1
 
3649
  cat conftest.err >&5
 
3650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3651
  (exit $ac_status); } >/dev/null; then
 
3652
  if test -s conftest.err; then
 
3653
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3654
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3655
  else
 
3656
    ac_cpp_err=
 
3657
  fi
 
3658
else
 
3659
  ac_cpp_err=yes
 
3660
fi
 
3661
if test -z "$ac_cpp_err"; then
 
3662
  :
 
3663
else
 
3664
  echo "$as_me: failed program was:" >&5
 
3665
sed 's/^/| /' conftest.$ac_ext >&5
 
3666
 
 
3667
  # Broken: fails on valid input.
 
3668
continue
 
3669
fi
 
3670
rm -f conftest.err conftest.$ac_ext
 
3671
 
 
3672
  # OK, works on sane cases.  Now check whether non-existent headers
 
3673
  # can be detected and how.
 
3674
  cat >conftest.$ac_ext <<_ACEOF
 
3675
/* confdefs.h.  */
 
3676
_ACEOF
 
3677
cat confdefs.h >>conftest.$ac_ext
 
3678
cat >>conftest.$ac_ext <<_ACEOF
 
3679
/* end confdefs.h.  */
 
3680
#include <ac_nonexistent.h>
 
3681
_ACEOF
 
3682
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3683
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3684
  ac_status=$?
 
3685
  grep -v '^ *+' conftest.er1 >conftest.err
 
3686
  rm -f conftest.er1
 
3687
  cat conftest.err >&5
 
3688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3689
  (exit $ac_status); } >/dev/null; then
 
3690
  if test -s conftest.err; then
 
3691
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3692
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3693
  else
 
3694
    ac_cpp_err=
 
3695
  fi
 
3696
else
 
3697
  ac_cpp_err=yes
 
3698
fi
 
3699
if test -z "$ac_cpp_err"; then
 
3700
  # Broken: success on invalid input.
 
3701
continue
 
3702
else
 
3703
  echo "$as_me: failed program was:" >&5
 
3704
sed 's/^/| /' conftest.$ac_ext >&5
 
3705
 
 
3706
  # Passes both tests.
 
3707
ac_preproc_ok=:
 
3708
break
 
3709
fi
 
3710
rm -f conftest.err conftest.$ac_ext
 
3711
 
 
3712
done
 
3713
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3714
rm -f conftest.err conftest.$ac_ext
 
3715
if $ac_preproc_ok; then
 
3716
  :
 
3717
else
 
3718
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3719
See \`config.log' for more details." >&5
 
3720
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3721
See \`config.log' for more details." >&2;}
 
3722
   { (exit 1); exit 1; }; }
 
3723
fi
 
3724
 
 
3725
ac_ext=c
 
3726
ac_cpp='$CPP $CPPFLAGS'
 
3727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3730
 
 
3731
 
 
3732
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3733
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3734
if test "${ac_cv_header_stdc+set}" = set; then
 
3735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3736
else
 
3737
  cat >conftest.$ac_ext <<_ACEOF
 
3738
/* confdefs.h.  */
 
3739
_ACEOF
 
3740
cat confdefs.h >>conftest.$ac_ext
 
3741
cat >>conftest.$ac_ext <<_ACEOF
 
3742
/* end confdefs.h.  */
 
3743
#include <stdlib.h>
 
3744
#include <stdarg.h>
 
3745
#include <string.h>
 
3746
#include <float.h>
 
3747
 
 
3748
int
 
3749
main ()
 
3750
{
 
3751
 
 
3752
  ;
 
3753
  return 0;
 
3754
}
 
3755
_ACEOF
 
3756
rm -f conftest.$ac_objext
 
3757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3758
  (eval $ac_compile) 2>conftest.er1
 
3759
  ac_status=$?
 
3760
  grep -v '^ *+' conftest.er1 >conftest.err
 
3761
  rm -f conftest.er1
 
3762
  cat conftest.err >&5
 
3763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3764
  (exit $ac_status); } &&
 
3765
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3767
  (eval $ac_try) 2>&5
 
3768
  ac_status=$?
 
3769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3770
  (exit $ac_status); }; } &&
 
3771
         { ac_try='test -s conftest.$ac_objext'
 
3772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3773
  (eval $ac_try) 2>&5
 
3774
  ac_status=$?
 
3775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3776
  (exit $ac_status); }; }; then
 
3777
  ac_cv_header_stdc=yes
 
3778
else
 
3779
  echo "$as_me: failed program was:" >&5
 
3780
sed 's/^/| /' conftest.$ac_ext >&5
 
3781
 
 
3782
ac_cv_header_stdc=no
 
3783
fi
 
3784
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3785
 
 
3786
if test $ac_cv_header_stdc = yes; then
 
3787
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3788
  cat >conftest.$ac_ext <<_ACEOF
 
3789
/* confdefs.h.  */
 
3790
_ACEOF
 
3791
cat confdefs.h >>conftest.$ac_ext
 
3792
cat >>conftest.$ac_ext <<_ACEOF
 
3793
/* end confdefs.h.  */
 
3794
#include <string.h>
 
3795
 
 
3796
_ACEOF
 
3797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3798
  $EGREP "memchr" >/dev/null 2>&1; then
 
3799
  :
 
3800
else
 
3801
  ac_cv_header_stdc=no
 
3802
fi
 
3803
rm -f conftest*
 
3804
 
 
3805
fi
 
3806
 
 
3807
if test $ac_cv_header_stdc = yes; then
 
3808
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3809
  cat >conftest.$ac_ext <<_ACEOF
 
3810
/* confdefs.h.  */
 
3811
_ACEOF
 
3812
cat confdefs.h >>conftest.$ac_ext
 
3813
cat >>conftest.$ac_ext <<_ACEOF
 
3814
/* end confdefs.h.  */
 
3815
#include <stdlib.h>
 
3816
 
 
3817
_ACEOF
 
3818
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3819
  $EGREP "free" >/dev/null 2>&1; then
 
3820
  :
 
3821
else
 
3822
  ac_cv_header_stdc=no
 
3823
fi
 
3824
rm -f conftest*
 
3825
 
 
3826
fi
 
3827
 
 
3828
if test $ac_cv_header_stdc = yes; then
 
3829
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3830
  if test "$cross_compiling" = yes; then
 
3831
  :
 
3832
else
 
3833
  cat >conftest.$ac_ext <<_ACEOF
 
3834
/* confdefs.h.  */
 
3835
_ACEOF
 
3836
cat confdefs.h >>conftest.$ac_ext
 
3837
cat >>conftest.$ac_ext <<_ACEOF
 
3838
/* end confdefs.h.  */
 
3839
#include <ctype.h>
 
3840
#if ((' ' & 0x0FF) == 0x020)
 
3841
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3842
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3843
#else
 
3844
# define ISLOWER(c) \
 
3845
                   (('a' <= (c) && (c) <= 'i') \
 
3846
                     || ('j' <= (c) && (c) <= 'r') \
 
3847
                     || ('s' <= (c) && (c) <= 'z'))
 
3848
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3849
#endif
 
3850
 
 
3851
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3852
int
 
3853
main ()
 
3854
{
 
3855
  int i;
 
3856
  for (i = 0; i < 256; i++)
 
3857
    if (XOR (islower (i), ISLOWER (i))
 
3858
        || toupper (i) != TOUPPER (i))
 
3859
      exit(2);
 
3860
  exit (0);
 
3861
}
 
3862
_ACEOF
 
3863
rm -f conftest$ac_exeext
 
3864
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3865
  (eval $ac_link) 2>&5
 
3866
  ac_status=$?
 
3867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3868
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3870
  (eval $ac_try) 2>&5
 
3871
  ac_status=$?
 
3872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3873
  (exit $ac_status); }; }; then
 
3874
  :
 
3875
else
 
3876
  echo "$as_me: program exited with status $ac_status" >&5
 
3877
echo "$as_me: failed program was:" >&5
 
3878
sed 's/^/| /' conftest.$ac_ext >&5
 
3879
 
 
3880
( exit $ac_status )
 
3881
ac_cv_header_stdc=no
 
3882
fi
 
3883
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3884
fi
 
3885
fi
 
3886
fi
 
3887
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3888
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3889
if test $ac_cv_header_stdc = yes; then
 
3890
 
 
3891
cat >>confdefs.h <<\_ACEOF
 
3892
#define STDC_HEADERS 1
 
3893
_ACEOF
 
3894
 
 
3895
fi
 
3896
 
 
3897
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3898
 
 
3899
 
 
3900
 
 
3901
 
 
3902
 
 
3903
 
 
3904
 
 
3905
 
 
3906
 
 
3907
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3908
                  inttypes.h stdint.h unistd.h
 
3909
do
 
3910
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3911
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3912
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3913
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3915
else
 
3916
  cat >conftest.$ac_ext <<_ACEOF
 
3917
/* confdefs.h.  */
 
3918
_ACEOF
 
3919
cat confdefs.h >>conftest.$ac_ext
 
3920
cat >>conftest.$ac_ext <<_ACEOF
 
3921
/* end confdefs.h.  */
 
3922
$ac_includes_default
 
3923
 
 
3924
#include <$ac_header>
 
3925
_ACEOF
 
3926
rm -f conftest.$ac_objext
 
3927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3928
  (eval $ac_compile) 2>conftest.er1
 
3929
  ac_status=$?
 
3930
  grep -v '^ *+' conftest.er1 >conftest.err
 
3931
  rm -f conftest.er1
 
3932
  cat conftest.err >&5
 
3933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3934
  (exit $ac_status); } &&
 
3935
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3937
  (eval $ac_try) 2>&5
 
3938
  ac_status=$?
 
3939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3940
  (exit $ac_status); }; } &&
 
3941
         { ac_try='test -s conftest.$ac_objext'
 
3942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3943
  (eval $ac_try) 2>&5
 
3944
  ac_status=$?
 
3945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3946
  (exit $ac_status); }; }; then
 
3947
  eval "$as_ac_Header=yes"
 
3948
else
 
3949
  echo "$as_me: failed program was:" >&5
 
3950
sed 's/^/| /' conftest.$ac_ext >&5
 
3951
 
 
3952
eval "$as_ac_Header=no"
 
3953
fi
 
3954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3955
fi
 
3956
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3957
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3958
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3959
  cat >>confdefs.h <<_ACEOF
 
3960
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3961
_ACEOF
 
3962
 
 
3963
fi
 
3964
 
 
3965
done
 
3966
 
 
3967
 
 
3968
 
 
3969
for ac_header in dlfcn.h
 
3970
do
 
3971
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3972
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3973
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3974
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3975
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3977
fi
 
3978
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3979
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3980
else
 
3981
  # Is the header compilable?
 
3982
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3983
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3984
cat >conftest.$ac_ext <<_ACEOF
 
3985
/* confdefs.h.  */
 
3986
_ACEOF
 
3987
cat confdefs.h >>conftest.$ac_ext
 
3988
cat >>conftest.$ac_ext <<_ACEOF
 
3989
/* end confdefs.h.  */
 
3990
$ac_includes_default
 
3991
#include <$ac_header>
 
3992
_ACEOF
 
3993
rm -f conftest.$ac_objext
 
3994
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3995
  (eval $ac_compile) 2>conftest.er1
 
3996
  ac_status=$?
 
3997
  grep -v '^ *+' conftest.er1 >conftest.err
 
3998
  rm -f conftest.er1
 
3999
  cat conftest.err >&5
 
4000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4001
  (exit $ac_status); } &&
 
4002
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4004
  (eval $ac_try) 2>&5
 
4005
  ac_status=$?
 
4006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4007
  (exit $ac_status); }; } &&
 
4008
         { ac_try='test -s conftest.$ac_objext'
 
4009
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4010
  (eval $ac_try) 2>&5
 
4011
  ac_status=$?
 
4012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4013
  (exit $ac_status); }; }; then
 
4014
  ac_header_compiler=yes
 
4015
else
 
4016
  echo "$as_me: failed program was:" >&5
 
4017
sed 's/^/| /' conftest.$ac_ext >&5
 
4018
 
 
4019
ac_header_compiler=no
 
4020
fi
 
4021
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4022
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4023
echo "${ECHO_T}$ac_header_compiler" >&6
 
4024
 
 
4025
# Is the header present?
 
4026
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4027
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4028
cat >conftest.$ac_ext <<_ACEOF
 
4029
/* confdefs.h.  */
 
4030
_ACEOF
 
4031
cat confdefs.h >>conftest.$ac_ext
 
4032
cat >>conftest.$ac_ext <<_ACEOF
 
4033
/* end confdefs.h.  */
 
4034
#include <$ac_header>
 
4035
_ACEOF
 
4036
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4037
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4038
  ac_status=$?
 
4039
  grep -v '^ *+' conftest.er1 >conftest.err
 
4040
  rm -f conftest.er1
 
4041
  cat conftest.err >&5
 
4042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4043
  (exit $ac_status); } >/dev/null; then
 
4044
  if test -s conftest.err; then
 
4045
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4046
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4047
  else
 
4048
    ac_cpp_err=
 
4049
  fi
 
4050
else
 
4051
  ac_cpp_err=yes
 
4052
fi
 
4053
if test -z "$ac_cpp_err"; then
 
4054
  ac_header_preproc=yes
 
4055
else
 
4056
  echo "$as_me: failed program was:" >&5
 
4057
sed 's/^/| /' conftest.$ac_ext >&5
 
4058
 
 
4059
  ac_header_preproc=no
 
4060
fi
 
4061
rm -f conftest.err conftest.$ac_ext
 
4062
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4063
echo "${ECHO_T}$ac_header_preproc" >&6
 
4064
 
 
4065
# So?  What about this header?
 
4066
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4067
  yes:no: )
 
4068
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4069
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4070
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4071
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4072
    ac_header_preproc=yes
 
4073
    ;;
 
4074
  no:yes:* )
 
4075
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4076
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4077
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4078
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4079
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4080
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4081
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4082
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4083
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4084
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4085
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4086
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4087
    (
 
4088
      cat <<\_ASBOX
 
4089
## ------------------------------------------ ##
 
4090
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4091
## ------------------------------------------ ##
 
4092
_ASBOX
 
4093
    ) |
 
4094
      sed "s/^/$as_me: WARNING:     /" >&2
 
4095
    ;;
 
4096
esac
 
4097
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4098
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4099
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4101
else
 
4102
  eval "$as_ac_Header=\$ac_header_preproc"
 
4103
fi
 
4104
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4105
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4106
 
 
4107
fi
 
4108
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4109
  cat >>confdefs.h <<_ACEOF
 
4110
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4111
_ACEOF
 
4112
 
 
4113
fi
 
4114
 
 
4115
done
 
4116
 
 
4117
ac_ext=cc
 
4118
ac_cpp='$CXXCPP $CPPFLAGS'
 
4119
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4120
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4121
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4122
if test -n "$ac_tool_prefix"; then
 
4123
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4124
  do
 
4125
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4126
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4127
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4128
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4129
if test "${ac_cv_prog_CXX+set}" = set; then
 
4130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4131
else
 
4132
  if test -n "$CXX"; then
 
4133
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4134
else
 
4135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4136
for as_dir in $PATH
 
4137
do
 
4138
  IFS=$as_save_IFS
 
4139
  test -z "$as_dir" && as_dir=.
 
4140
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4141
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4142
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4143
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4144
    break 2
 
4145
  fi
 
4146
done
 
4147
done
 
4148
 
 
4149
fi
 
4150
fi
 
4151
CXX=$ac_cv_prog_CXX
 
4152
if test -n "$CXX"; then
 
4153
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4154
echo "${ECHO_T}$CXX" >&6
 
4155
else
 
4156
  echo "$as_me:$LINENO: result: no" >&5
 
4157
echo "${ECHO_T}no" >&6
 
4158
fi
 
4159
 
 
4160
    test -n "$CXX" && break
 
4161
  done
 
4162
fi
 
4163
if test -z "$CXX"; then
 
4164
  ac_ct_CXX=$CXX
 
4165
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4166
do
 
4167
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4168
set dummy $ac_prog; ac_word=$2
 
4169
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4170
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4171
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4173
else
 
4174
  if test -n "$ac_ct_CXX"; then
 
4175
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4176
else
 
4177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4178
for as_dir in $PATH
 
4179
do
 
4180
  IFS=$as_save_IFS
 
4181
  test -z "$as_dir" && as_dir=.
 
4182
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4183
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4184
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4185
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4186
    break 2
 
4187
  fi
 
4188
done
 
4189
done
 
4190
 
 
4191
fi
 
4192
fi
 
4193
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4194
if test -n "$ac_ct_CXX"; then
 
4195
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4196
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4197
else
 
4198
  echo "$as_me:$LINENO: result: no" >&5
 
4199
echo "${ECHO_T}no" >&6
 
4200
fi
 
4201
 
 
4202
  test -n "$ac_ct_CXX" && break
 
4203
done
 
4204
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4205
 
 
4206
  CXX=$ac_ct_CXX
 
4207
fi
 
4208
 
 
4209
 
 
4210
# Provide some information about the compiler.
 
4211
echo "$as_me:$LINENO:" \
 
4212
     "checking for C++ compiler version" >&5
 
4213
ac_compiler=`set X $ac_compile; echo $2`
 
4214
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4215
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4216
  ac_status=$?
 
4217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4218
  (exit $ac_status); }
 
4219
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4220
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4221
  ac_status=$?
 
4222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4223
  (exit $ac_status); }
 
4224
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4225
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4226
  ac_status=$?
 
4227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4228
  (exit $ac_status); }
 
4229
 
 
4230
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4231
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4232
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4234
else
 
4235
  cat >conftest.$ac_ext <<_ACEOF
 
4236
/* confdefs.h.  */
 
4237
_ACEOF
 
4238
cat confdefs.h >>conftest.$ac_ext
 
4239
cat >>conftest.$ac_ext <<_ACEOF
 
4240
/* end confdefs.h.  */
 
4241
 
 
4242
int
 
4243
main ()
 
4244
{
 
4245
#ifndef __GNUC__
 
4246
       choke me
 
4247
#endif
 
4248
 
 
4249
  ;
 
4250
  return 0;
 
4251
}
 
4252
_ACEOF
 
4253
rm -f conftest.$ac_objext
 
4254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4255
  (eval $ac_compile) 2>conftest.er1
 
4256
  ac_status=$?
 
4257
  grep -v '^ *+' conftest.er1 >conftest.err
 
4258
  rm -f conftest.er1
 
4259
  cat conftest.err >&5
 
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4261
  (exit $ac_status); } &&
 
4262
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4264
  (eval $ac_try) 2>&5
 
4265
  ac_status=$?
 
4266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4267
  (exit $ac_status); }; } &&
 
4268
         { ac_try='test -s conftest.$ac_objext'
 
4269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4270
  (eval $ac_try) 2>&5
 
4271
  ac_status=$?
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); }; }; then
 
4274
  ac_compiler_gnu=yes
 
4275
else
 
4276
  echo "$as_me: failed program was:" >&5
 
4277
sed 's/^/| /' conftest.$ac_ext >&5
 
4278
 
 
4279
ac_compiler_gnu=no
 
4280
fi
 
4281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4282
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4283
 
 
4284
fi
 
4285
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4286
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4287
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4288
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4289
ac_save_CXXFLAGS=$CXXFLAGS
 
4290
CXXFLAGS="-g"
 
4291
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4292
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4293
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4295
else
 
4296
  cat >conftest.$ac_ext <<_ACEOF
 
4297
/* confdefs.h.  */
 
4298
_ACEOF
 
4299
cat confdefs.h >>conftest.$ac_ext
 
4300
cat >>conftest.$ac_ext <<_ACEOF
 
4301
/* end confdefs.h.  */
 
4302
 
 
4303
int
 
4304
main ()
 
4305
{
 
4306
 
 
4307
  ;
 
4308
  return 0;
 
4309
}
 
4310
_ACEOF
 
4311
rm -f conftest.$ac_objext
 
4312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4313
  (eval $ac_compile) 2>conftest.er1
 
4314
  ac_status=$?
 
4315
  grep -v '^ *+' conftest.er1 >conftest.err
 
4316
  rm -f conftest.er1
 
4317
  cat conftest.err >&5
 
4318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4319
  (exit $ac_status); } &&
 
4320
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4322
  (eval $ac_try) 2>&5
 
4323
  ac_status=$?
 
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4325
  (exit $ac_status); }; } &&
 
4326
         { ac_try='test -s conftest.$ac_objext'
 
4327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4328
  (eval $ac_try) 2>&5
 
4329
  ac_status=$?
 
4330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4331
  (exit $ac_status); }; }; then
 
4332
  ac_cv_prog_cxx_g=yes
 
4333
else
 
4334
  echo "$as_me: failed program was:" >&5
 
4335
sed 's/^/| /' conftest.$ac_ext >&5
 
4336
 
 
4337
ac_cv_prog_cxx_g=no
 
4338
fi
 
4339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4340
fi
 
4341
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4342
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4343
if test "$ac_test_CXXFLAGS" = set; then
 
4344
  CXXFLAGS=$ac_save_CXXFLAGS
 
4345
elif test $ac_cv_prog_cxx_g = yes; then
 
4346
  if test "$GXX" = yes; then
 
4347
    CXXFLAGS="-g -O2"
 
4348
  else
 
4349
    CXXFLAGS="-g"
 
4350
  fi
 
4351
else
 
4352
  if test "$GXX" = yes; then
 
4353
    CXXFLAGS="-O2"
 
4354
  else
 
4355
    CXXFLAGS=
 
4356
  fi
 
4357
fi
 
4358
for ac_declaration in \
 
4359
   '' \
 
4360
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4361
   'extern "C" void std::exit (int); using std::exit;' \
 
4362
   'extern "C" void exit (int) throw ();' \
 
4363
   'extern "C" void exit (int);' \
 
4364
   'void exit (int);'
 
4365
do
 
4366
  cat >conftest.$ac_ext <<_ACEOF
 
4367
/* confdefs.h.  */
 
4368
_ACEOF
 
4369
cat confdefs.h >>conftest.$ac_ext
 
4370
cat >>conftest.$ac_ext <<_ACEOF
 
4371
/* end confdefs.h.  */
 
4372
$ac_declaration
 
4373
#include <stdlib.h>
 
4374
int
 
4375
main ()
 
4376
{
 
4377
exit (42);
 
4378
  ;
 
4379
  return 0;
 
4380
}
 
4381
_ACEOF
 
4382
rm -f conftest.$ac_objext
 
4383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4384
  (eval $ac_compile) 2>conftest.er1
 
4385
  ac_status=$?
 
4386
  grep -v '^ *+' conftest.er1 >conftest.err
 
4387
  rm -f conftest.er1
 
4388
  cat conftest.err >&5
 
4389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4390
  (exit $ac_status); } &&
 
4391
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4393
  (eval $ac_try) 2>&5
 
4394
  ac_status=$?
 
4395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4396
  (exit $ac_status); }; } &&
 
4397
         { ac_try='test -s conftest.$ac_objext'
 
4398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4399
  (eval $ac_try) 2>&5
 
4400
  ac_status=$?
 
4401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4402
  (exit $ac_status); }; }; then
 
4403
  :
 
4404
else
 
4405
  echo "$as_me: failed program was:" >&5
 
4406
sed 's/^/| /' conftest.$ac_ext >&5
 
4407
 
 
4408
continue
 
4409
fi
 
4410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4411
  cat >conftest.$ac_ext <<_ACEOF
 
4412
/* confdefs.h.  */
 
4413
_ACEOF
 
4414
cat confdefs.h >>conftest.$ac_ext
 
4415
cat >>conftest.$ac_ext <<_ACEOF
 
4416
/* end confdefs.h.  */
 
4417
$ac_declaration
 
4418
int
 
4419
main ()
 
4420
{
 
4421
exit (42);
 
4422
  ;
 
4423
  return 0;
 
4424
}
 
4425
_ACEOF
 
4426
rm -f conftest.$ac_objext
 
4427
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4428
  (eval $ac_compile) 2>conftest.er1
 
4429
  ac_status=$?
 
4430
  grep -v '^ *+' conftest.er1 >conftest.err
 
4431
  rm -f conftest.er1
 
4432
  cat conftest.err >&5
 
4433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4434
  (exit $ac_status); } &&
 
4435
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4437
  (eval $ac_try) 2>&5
 
4438
  ac_status=$?
 
4439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4440
  (exit $ac_status); }; } &&
 
4441
         { ac_try='test -s conftest.$ac_objext'
 
4442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4443
  (eval $ac_try) 2>&5
 
4444
  ac_status=$?
 
4445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4446
  (exit $ac_status); }; }; then
 
4447
  break
 
4448
else
 
4449
  echo "$as_me: failed program was:" >&5
 
4450
sed 's/^/| /' conftest.$ac_ext >&5
 
4451
 
 
4452
fi
 
4453
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4454
done
 
4455
rm -f conftest*
 
4456
if test -n "$ac_declaration"; then
 
4457
  echo '#ifdef __cplusplus' >>confdefs.h
 
4458
  echo $ac_declaration      >>confdefs.h
 
4459
  echo '#endif'             >>confdefs.h
 
4460
fi
 
4461
 
 
4462
ac_ext=cc
 
4463
ac_cpp='$CXXCPP $CPPFLAGS'
 
4464
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4465
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4466
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4467
 
 
4468
ac_ext=cc
 
4469
ac_cpp='$CXXCPP $CPPFLAGS'
 
4470
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4471
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4472
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4473
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4474
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4475
if test -z "$CXXCPP"; then
 
4476
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4478
else
 
4479
      # Double quotes because CXXCPP needs to be expanded
 
4480
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4481
    do
 
4482
      ac_preproc_ok=false
 
4483
for ac_cxx_preproc_warn_flag in '' yes
 
4484
do
 
4485
  # Use a header file that comes with gcc, so configuring glibc
 
4486
  # with a fresh cross-compiler works.
 
4487
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4488
  # <limits.h> exists even on freestanding compilers.
 
4489
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4490
  # not just through cpp. "Syntax error" is here to catch this case.
 
4491
  cat >conftest.$ac_ext <<_ACEOF
 
4492
/* confdefs.h.  */
 
4493
_ACEOF
 
4494
cat confdefs.h >>conftest.$ac_ext
 
4495
cat >>conftest.$ac_ext <<_ACEOF
 
4496
/* end confdefs.h.  */
 
4497
#ifdef __STDC__
 
4498
# include <limits.h>
 
4499
#else
 
4500
# include <assert.h>
 
4501
#endif
 
4502
                     Syntax error
 
4503
_ACEOF
 
4504
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4505
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4506
  ac_status=$?
 
4507
  grep -v '^ *+' conftest.er1 >conftest.err
 
4508
  rm -f conftest.er1
 
4509
  cat conftest.err >&5
 
4510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4511
  (exit $ac_status); } >/dev/null; then
 
4512
  if test -s conftest.err; then
 
4513
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4514
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4515
  else
 
4516
    ac_cpp_err=
 
4517
  fi
 
4518
else
 
4519
  ac_cpp_err=yes
 
4520
fi
 
4521
if test -z "$ac_cpp_err"; then
 
4522
  :
 
4523
else
 
4524
  echo "$as_me: failed program was:" >&5
 
4525
sed 's/^/| /' conftest.$ac_ext >&5
 
4526
 
 
4527
  # Broken: fails on valid input.
 
4528
continue
 
4529
fi
 
4530
rm -f conftest.err conftest.$ac_ext
 
4531
 
 
4532
  # OK, works on sane cases.  Now check whether non-existent headers
 
4533
  # can be detected and how.
 
4534
  cat >conftest.$ac_ext <<_ACEOF
 
4535
/* confdefs.h.  */
 
4536
_ACEOF
 
4537
cat confdefs.h >>conftest.$ac_ext
 
4538
cat >>conftest.$ac_ext <<_ACEOF
 
4539
/* end confdefs.h.  */
 
4540
#include <ac_nonexistent.h>
 
4541
_ACEOF
 
4542
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4543
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4544
  ac_status=$?
 
4545
  grep -v '^ *+' conftest.er1 >conftest.err
 
4546
  rm -f conftest.er1
 
4547
  cat conftest.err >&5
 
4548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4549
  (exit $ac_status); } >/dev/null; then
 
4550
  if test -s conftest.err; then
 
4551
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4552
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4553
  else
 
4554
    ac_cpp_err=
 
4555
  fi
 
4556
else
 
4557
  ac_cpp_err=yes
 
4558
fi
 
4559
if test -z "$ac_cpp_err"; then
 
4560
  # Broken: success on invalid input.
 
4561
continue
 
4562
else
 
4563
  echo "$as_me: failed program was:" >&5
 
4564
sed 's/^/| /' conftest.$ac_ext >&5
 
4565
 
 
4566
  # Passes both tests.
 
4567
ac_preproc_ok=:
 
4568
break
 
4569
fi
 
4570
rm -f conftest.err conftest.$ac_ext
 
4571
 
 
4572
done
 
4573
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4574
rm -f conftest.err conftest.$ac_ext
 
4575
if $ac_preproc_ok; then
 
4576
  break
 
4577
fi
 
4578
 
 
4579
    done
 
4580
    ac_cv_prog_CXXCPP=$CXXCPP
 
4581
 
 
4582
fi
 
4583
  CXXCPP=$ac_cv_prog_CXXCPP
 
4584
else
 
4585
  ac_cv_prog_CXXCPP=$CXXCPP
 
4586
fi
 
4587
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4588
echo "${ECHO_T}$CXXCPP" >&6
 
4589
ac_preproc_ok=false
 
4590
for ac_cxx_preproc_warn_flag in '' yes
 
4591
do
 
4592
  # Use a header file that comes with gcc, so configuring glibc
 
4593
  # with a fresh cross-compiler works.
 
4594
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4595
  # <limits.h> exists even on freestanding compilers.
 
4596
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4597
  # not just through cpp. "Syntax error" is here to catch this case.
 
4598
  cat >conftest.$ac_ext <<_ACEOF
 
4599
/* confdefs.h.  */
 
4600
_ACEOF
 
4601
cat confdefs.h >>conftest.$ac_ext
 
4602
cat >>conftest.$ac_ext <<_ACEOF
 
4603
/* end confdefs.h.  */
 
4604
#ifdef __STDC__
 
4605
# include <limits.h>
 
4606
#else
 
4607
# include <assert.h>
 
4608
#endif
 
4609
                     Syntax error
 
4610
_ACEOF
 
4611
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4612
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4613
  ac_status=$?
 
4614
  grep -v '^ *+' conftest.er1 >conftest.err
 
4615
  rm -f conftest.er1
 
4616
  cat conftest.err >&5
 
4617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4618
  (exit $ac_status); } >/dev/null; then
 
4619
  if test -s conftest.err; then
 
4620
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4621
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4622
  else
 
4623
    ac_cpp_err=
 
4624
  fi
 
4625
else
 
4626
  ac_cpp_err=yes
 
4627
fi
 
4628
if test -z "$ac_cpp_err"; then
 
4629
  :
 
4630
else
 
4631
  echo "$as_me: failed program was:" >&5
 
4632
sed 's/^/| /' conftest.$ac_ext >&5
 
4633
 
 
4634
  # Broken: fails on valid input.
 
4635
continue
 
4636
fi
 
4637
rm -f conftest.err conftest.$ac_ext
 
4638
 
 
4639
  # OK, works on sane cases.  Now check whether non-existent headers
 
4640
  # can be detected and how.
 
4641
  cat >conftest.$ac_ext <<_ACEOF
 
4642
/* confdefs.h.  */
 
4643
_ACEOF
 
4644
cat confdefs.h >>conftest.$ac_ext
 
4645
cat >>conftest.$ac_ext <<_ACEOF
 
4646
/* end confdefs.h.  */
 
4647
#include <ac_nonexistent.h>
 
4648
_ACEOF
 
4649
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4650
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4651
  ac_status=$?
 
4652
  grep -v '^ *+' conftest.er1 >conftest.err
 
4653
  rm -f conftest.er1
 
4654
  cat conftest.err >&5
 
4655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4656
  (exit $ac_status); } >/dev/null; then
 
4657
  if test -s conftest.err; then
 
4658
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4659
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4660
  else
 
4661
    ac_cpp_err=
 
4662
  fi
 
4663
else
 
4664
  ac_cpp_err=yes
 
4665
fi
 
4666
if test -z "$ac_cpp_err"; then
 
4667
  # Broken: success on invalid input.
 
4668
continue
 
4669
else
 
4670
  echo "$as_me: failed program was:" >&5
 
4671
sed 's/^/| /' conftest.$ac_ext >&5
 
4672
 
 
4673
  # Passes both tests.
 
4674
ac_preproc_ok=:
 
4675
break
 
4676
fi
 
4677
rm -f conftest.err conftest.$ac_ext
 
4678
 
 
4679
done
 
4680
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4681
rm -f conftest.err conftest.$ac_ext
 
4682
if $ac_preproc_ok; then
 
4683
  :
 
4684
else
 
4685
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4686
See \`config.log' for more details." >&5
 
4687
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4688
See \`config.log' for more details." >&2;}
 
4689
   { (exit 1); exit 1; }; }
 
4690
fi
 
4691
 
 
4692
ac_ext=cc
 
4693
ac_cpp='$CXXCPP $CPPFLAGS'
 
4694
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4695
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4696
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4697
 
 
4698
 
 
4699
ac_ext=f
 
4700
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
4701
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4702
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
4703
if test -n "$ac_tool_prefix"; then
 
4704
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4705
  do
 
4706
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4707
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4708
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4710
if test "${ac_cv_prog_F77+set}" = set; then
 
4711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4712
else
 
4713
  if test -n "$F77"; then
 
4714
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
4715
else
 
4716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4717
for as_dir in $PATH
 
4718
do
 
4719
  IFS=$as_save_IFS
 
4720
  test -z "$as_dir" && as_dir=.
 
4721
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4722
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4723
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
4724
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4725
    break 2
 
4726
  fi
 
4727
done
 
4728
done
 
4729
 
 
4730
fi
 
4731
fi
 
4732
F77=$ac_cv_prog_F77
 
4733
if test -n "$F77"; then
 
4734
  echo "$as_me:$LINENO: result: $F77" >&5
 
4735
echo "${ECHO_T}$F77" >&6
 
4736
else
 
4737
  echo "$as_me:$LINENO: result: no" >&5
 
4738
echo "${ECHO_T}no" >&6
 
4739
fi
 
4740
 
 
4741
    test -n "$F77" && break
 
4742
  done
 
4743
fi
 
4744
if test -z "$F77"; then
 
4745
  ac_ct_F77=$F77
 
4746
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4747
do
 
4748
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4749
set dummy $ac_prog; ac_word=$2
 
4750
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4752
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
4753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4754
else
 
4755
  if test -n "$ac_ct_F77"; then
 
4756
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
4757
else
 
4758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4759
for as_dir in $PATH
 
4760
do
 
4761
  IFS=$as_save_IFS
 
4762
  test -z "$as_dir" && as_dir=.
 
4763
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4764
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4765
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
4766
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4767
    break 2
 
4768
  fi
 
4769
done
 
4770
done
 
4771
 
 
4772
fi
 
4773
fi
 
4774
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
4775
if test -n "$ac_ct_F77"; then
 
4776
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4777
echo "${ECHO_T}$ac_ct_F77" >&6
 
4778
else
 
4779
  echo "$as_me:$LINENO: result: no" >&5
 
4780
echo "${ECHO_T}no" >&6
 
4781
fi
 
4782
 
 
4783
  test -n "$ac_ct_F77" && break
 
4784
done
 
4785
 
 
4786
  F77=$ac_ct_F77
 
4787
fi
 
4788
 
 
4789
 
 
4790
# Provide some information about the compiler.
 
4791
echo "$as_me:4791:" \
 
4792
     "checking for Fortran 77 compiler version" >&5
 
4793
ac_compiler=`set X $ac_compile; echo $2`
 
4794
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4795
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4796
  ac_status=$?
 
4797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4798
  (exit $ac_status); }
 
4799
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4800
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4801
  ac_status=$?
 
4802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4803
  (exit $ac_status); }
 
4804
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4805
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4806
  ac_status=$?
 
4807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4808
  (exit $ac_status); }
 
4809
rm -f a.out
 
4810
 
 
4811
# If we don't use `.F' as extension, the preprocessor is not run on the
 
4812
# input file.  (Note that this only needs to work for GNU compilers.)
 
4813
ac_save_ext=$ac_ext
 
4814
ac_ext=F
 
4815
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
4816
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
4817
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
4818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4819
else
 
4820
  cat >conftest.$ac_ext <<_ACEOF
 
4821
      program main
 
4822
#ifndef __GNUC__
 
4823
       choke me
 
4824
#endif
 
4825
 
 
4826
      end
 
4827
_ACEOF
 
4828
rm -f conftest.$ac_objext
 
4829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4830
  (eval $ac_compile) 2>conftest.er1
 
4831
  ac_status=$?
 
4832
  grep -v '^ *+' conftest.er1 >conftest.err
 
4833
  rm -f conftest.er1
 
4834
  cat conftest.err >&5
 
4835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4836
  (exit $ac_status); } &&
 
4837
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
4838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4839
  (eval $ac_try) 2>&5
 
4840
  ac_status=$?
 
4841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4842
  (exit $ac_status); }; } &&
 
4843
         { ac_try='test -s conftest.$ac_objext'
 
4844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4845
  (eval $ac_try) 2>&5
 
4846
  ac_status=$?
 
4847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4848
  (exit $ac_status); }; }; then
 
4849
  ac_compiler_gnu=yes
 
4850
else
 
4851
  echo "$as_me: failed program was:" >&5
 
4852
sed 's/^/| /' conftest.$ac_ext >&5
 
4853
 
 
4854
ac_compiler_gnu=no
 
4855
fi
 
4856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4857
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
4858
 
 
4859
fi
 
4860
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
4861
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
4862
ac_ext=$ac_save_ext
 
4863
ac_test_FFLAGS=${FFLAGS+set}
 
4864
ac_save_FFLAGS=$FFLAGS
 
4865
FFLAGS=
 
4866
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
4867
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
4868
if test "${ac_cv_prog_f77_g+set}" = set; then
 
4869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4870
else
 
4871
  FFLAGS=-g
 
4872
cat >conftest.$ac_ext <<_ACEOF
 
4873
      program main
 
4874
 
 
4875
      end
 
4876
_ACEOF
 
4877
rm -f conftest.$ac_objext
 
4878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4879
  (eval $ac_compile) 2>conftest.er1
 
4880
  ac_status=$?
 
4881
  grep -v '^ *+' conftest.er1 >conftest.err
 
4882
  rm -f conftest.er1
 
4883
  cat conftest.err >&5
 
4884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4885
  (exit $ac_status); } &&
 
4886
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
4887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4888
  (eval $ac_try) 2>&5
 
4889
  ac_status=$?
 
4890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4891
  (exit $ac_status); }; } &&
 
4892
         { ac_try='test -s conftest.$ac_objext'
 
4893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4894
  (eval $ac_try) 2>&5
 
4895
  ac_status=$?
 
4896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4897
  (exit $ac_status); }; }; then
 
4898
  ac_cv_prog_f77_g=yes
 
4899
else
 
4900
  echo "$as_me: failed program was:" >&5
 
4901
sed 's/^/| /' conftest.$ac_ext >&5
 
4902
 
 
4903
ac_cv_prog_f77_g=no
 
4904
fi
 
4905
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4906
 
 
4907
fi
 
4908
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
4909
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
4910
if test "$ac_test_FFLAGS" = set; then
 
4911
  FFLAGS=$ac_save_FFLAGS
 
4912
elif test $ac_cv_prog_f77_g = yes; then
 
4913
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4914
    FFLAGS="-g -O2"
 
4915
  else
 
4916
    FFLAGS="-g"
 
4917
  fi
 
4918
else
 
4919
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4920
    FFLAGS="-O2"
 
4921
  else
 
4922
    FFLAGS=
 
4923
  fi
 
4924
fi
 
4925
 
 
4926
G77=`test $ac_compiler_gnu = yes && echo yes`
 
4927
ac_ext=c
 
4928
ac_cpp='$CPP $CPPFLAGS'
 
4929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4932
 
 
4933
 
 
4934
 
 
4935
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
4936
 
 
4937
# find the maximum length of command line arguments
 
4938
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4939
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4940
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4942
else
 
4943
    i=0
 
4944
  teststring="ABCD"
 
4945
 
 
4946
  case $build_os in
 
4947
  msdosdjgpp*)
 
4948
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4949
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4950
    # during glob expansion).  Even if it were fixed, the result of this
 
4951
    # check would be larger than it should be.
 
4952
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4953
    ;;
 
4954
 
 
4955
  gnu*)
 
4956
    # Under GNU Hurd, this test is not required because there is
 
4957
    # no limit to the length of command line arguments.
 
4958
    # Libtool will interpret -1 as no limit whatsoever
 
4959
    lt_cv_sys_max_cmd_len=-1;
 
4960
    ;;
 
4961
 
 
4962
  cygwin* | mingw*)
 
4963
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4964
    # about 5 minutes as the teststring grows exponentially.
 
4965
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4966
    # you end up with a "frozen" computer, even though with patience
 
4967
    # the test eventually succeeds (with a max line length of 256k).
 
4968
    # Instead, let's just punt: use the minimum linelength reported by
 
4969
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4970
    lt_cv_sys_max_cmd_len=8192;
 
4971
    ;;
 
4972
 
 
4973
  amigaos*)
 
4974
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4975
    # So we just punt and use a minimum line length of 8192.
 
4976
    lt_cv_sys_max_cmd_len=8192;
 
4977
    ;;
 
4978
 
 
4979
 *)
 
4980
    # If test is not a shell built-in, we'll probably end up computing a
 
4981
    # maximum length that is only half of the actual maximum length, but
 
4982
    # we can't tell.
 
4983
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
4984
               = "XX$teststring") >/dev/null 2>&1 &&
 
4985
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
4986
            lt_cv_sys_max_cmd_len=$new_result &&
 
4987
            test $i != 17 # 1/2 MB should be enough
 
4988
    do
 
4989
      i=`expr $i + 1`
 
4990
      teststring=$teststring$teststring
 
4991
    done
 
4992
    teststring=
 
4993
    # Add a significant safety factor because C++ compilers can tack on massive
 
4994
    # amounts of additional arguments before passing them to the linker.
 
4995
    # It appears as though 1/2 is a usable value.
 
4996
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4997
    ;;
 
4998
  esac
 
4999
 
 
5000
fi
 
5001
 
 
5002
if test -n $lt_cv_sys_max_cmd_len ; then
 
5003
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5004
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5005
else
 
5006
  echo "$as_me:$LINENO: result: none" >&5
 
5007
echo "${ECHO_T}none" >&6
 
5008
fi
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5014
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5015
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5016
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5018
else
 
5019
 
 
5020
# These are sane defaults that work on at least a few old systems.
 
5021
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5022
 
 
5023
# Character class describing NM global symbol codes.
 
5024
symcode='[BCDEGRST]'
 
5025
 
 
5026
# Regexp to match symbols that can be accessed directly from C.
 
5027
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5028
 
 
5029
# Transform the above into a raw symbol and a C symbol.
 
5030
symxfrm='\1 \2\3 \3'
 
5031
 
 
5032
# Transform an extracted symbol line into a proper C declaration
 
5033
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5034
 
 
5035
# Transform an extracted symbol line into symbol name and symbol address
 
5036
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'"
 
5037
 
 
5038
# Define system-specific variables.
 
5039
case $host_os in
 
5040
aix*)
 
5041
  symcode='[BCDT]'
 
5042
  ;;
 
5043
cygwin* | mingw* | pw32*)
 
5044
  symcode='[ABCDGISTW]'
 
5045
  ;;
 
5046
hpux*) # Its linker distinguishes data from code symbols
 
5047
  if test "$host_cpu" = ia64; then
 
5048
    symcode='[ABCDEGRST]'
 
5049
  fi
 
5050
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5051
  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'"
 
5052
  ;;
 
5053
irix* | nonstopux*)
 
5054
  symcode='[BCDEGRST]'
 
5055
  ;;
 
5056
osf*)
 
5057
  symcode='[BCDEGQRST]'
 
5058
  ;;
 
5059
solaris* | sysv5*)
 
5060
  symcode='[BDRT]'
 
5061
  ;;
 
5062
sysv4)
 
5063
  symcode='[DFNSTU]'
 
5064
  ;;
 
5065
esac
 
5066
 
 
5067
# Handle CRLF in mingw tool chain
 
5068
opt_cr=
 
5069
case $build_os in
 
5070
mingw*)
 
5071
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5072
  ;;
 
5073
esac
 
5074
 
 
5075
# If we're using GNU nm, then use its standard symbol codes.
 
5076
case `$NM -V 2>&1` in
 
5077
*GNU* | *'with BFD'*)
 
5078
  symcode='[ABCDGIRSTW]' ;;
 
5079
esac
 
5080
 
 
5081
# Try without a prefix undercore, then with it.
 
5082
for ac_symprfx in "" "_"; do
 
5083
 
 
5084
  # Write the raw and C identifiers.
 
5085
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5086
 
 
5087
  # Check to see that the pipe works correctly.
 
5088
  pipe_works=no
 
5089
 
 
5090
  rm -f conftest*
 
5091
  cat > conftest.$ac_ext <<EOF
 
5092
#ifdef __cplusplus
 
5093
extern "C" {
 
5094
#endif
 
5095
char nm_test_var;
 
5096
void nm_test_func(){}
 
5097
#ifdef __cplusplus
 
5098
}
 
5099
#endif
 
5100
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5101
EOF
 
5102
 
 
5103
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5104
  (eval $ac_compile) 2>&5
 
5105
  ac_status=$?
 
5106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5107
  (exit $ac_status); }; then
 
5108
    # Now try to grab the symbols.
 
5109
    nlist=conftest.nm
 
5110
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5111
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5112
  ac_status=$?
 
5113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5114
  (exit $ac_status); } && test -s "$nlist"; then
 
5115
      # Try sorting and uniquifying the output.
 
5116
      if sort "$nlist" | uniq > "$nlist"T; then
 
5117
        mv -f "$nlist"T "$nlist"
 
5118
      else
 
5119
        rm -f "$nlist"T
 
5120
      fi
 
5121
 
 
5122
      # Make sure that we snagged all the symbols we need.
 
5123
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5124
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5125
          cat <<EOF > conftest.$ac_ext
 
5126
#ifdef __cplusplus
 
5127
extern "C" {
 
5128
#endif
 
5129
 
 
5130
EOF
 
5131
          # Now generate the symbol file.
 
5132
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5133
 
 
5134
          cat <<EOF >> conftest.$ac_ext
 
5135
#if defined (__STDC__) && __STDC__
 
5136
# define lt_ptr_t void *
 
5137
#else
 
5138
# define lt_ptr_t char *
 
5139
# define const
 
5140
#endif
 
5141
 
 
5142
/* The mapping between symbol names and symbols. */
 
5143
const struct {
 
5144
  const char *name;
 
5145
  lt_ptr_t address;
 
5146
}
 
5147
lt_preloaded_symbols[] =
 
5148
{
 
5149
EOF
 
5150
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5151
          cat <<\EOF >> conftest.$ac_ext
 
5152
  {0, (lt_ptr_t) 0}
 
5153
};
 
5154
 
 
5155
#ifdef __cplusplus
 
5156
}
 
5157
#endif
 
5158
EOF
 
5159
          # Now try linking the two files.
 
5160
          mv conftest.$ac_objext conftstm.$ac_objext
 
5161
          lt_save_LIBS="$LIBS"
 
5162
          lt_save_CFLAGS="$CFLAGS"
 
5163
          LIBS="conftstm.$ac_objext"
 
5164
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5165
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5166
  (eval $ac_link) 2>&5
 
5167
  ac_status=$?
 
5168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5169
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5170
            pipe_works=yes
 
5171
          fi
 
5172
          LIBS="$lt_save_LIBS"
 
5173
          CFLAGS="$lt_save_CFLAGS"
 
5174
        else
 
5175
          echo "cannot find nm_test_func in $nlist" >&5
 
5176
        fi
 
5177
      else
 
5178
        echo "cannot find nm_test_var in $nlist" >&5
 
5179
      fi
 
5180
    else
 
5181
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5182
    fi
 
5183
  else
 
5184
    echo "$progname: failed program was:" >&5
 
5185
    cat conftest.$ac_ext >&5
 
5186
  fi
 
5187
  rm -f conftest* conftst*
 
5188
 
 
5189
  # Do not use the global_symbol_pipe unless it works.
 
5190
  if test "$pipe_works" = yes; then
 
5191
    break
 
5192
  else
 
5193
    lt_cv_sys_global_symbol_pipe=
 
5194
  fi
 
5195
done
 
5196
 
 
5197
fi
 
5198
 
 
5199
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5200
  lt_cv_sys_global_symbol_to_cdecl=
 
5201
fi
 
5202
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5203
  echo "$as_me:$LINENO: result: failed" >&5
 
5204
echo "${ECHO_T}failed" >&6
 
5205
else
 
5206
  echo "$as_me:$LINENO: result: ok" >&5
 
5207
echo "${ECHO_T}ok" >&6
 
5208
fi
 
5209
 
 
5210
echo "$as_me:$LINENO: checking for objdir" >&5
 
5211
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5212
if test "${lt_cv_objdir+set}" = set; then
 
5213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5214
else
 
5215
  rm -f .libs 2>/dev/null
 
5216
mkdir .libs 2>/dev/null
 
5217
if test -d .libs; then
 
5218
  lt_cv_objdir=.libs
 
5219
else
 
5220
  # MS-DOS does not allow filenames that begin with a dot.
 
5221
  lt_cv_objdir=_libs
 
5222
fi
 
5223
rmdir .libs 2>/dev/null
 
5224
fi
 
5225
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5226
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5227
objdir=$lt_cv_objdir
 
5228
 
 
5229
 
 
5230
 
 
5231
 
 
5232
 
 
5233
case $host_os in
 
5234
aix3*)
 
5235
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5236
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5237
  # vanish in a puff of smoke.
 
5238
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5239
    COLLECT_NAMES=
 
5240
    export COLLECT_NAMES
 
5241
  fi
 
5242
  ;;
 
5243
esac
 
5244
 
 
5245
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5246
# metacharacters that are still active within double-quoted strings.
 
5247
Xsed='sed -e s/^X//'
 
5248
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5249
 
 
5250
# Same as above, but do not quote variable references.
 
5251
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5252
 
 
5253
# Sed substitution to delay expansion of an escaped shell variable in a
 
5254
# double_quote_subst'ed string.
 
5255
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5256
 
 
5257
# Sed substitution to avoid accidental globbing in evaled expressions
 
5258
no_glob_subst='s/\*/\\\*/g'
 
5259
 
 
5260
# Constants:
 
5261
rm="rm -f"
 
5262
 
 
5263
# Global variables:
 
5264
default_ofile=libtool
 
5265
can_build_shared=yes
 
5266
 
 
5267
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5268
# which needs '.lib').
 
5269
libext=a
 
5270
ltmain="$ac_aux_dir/ltmain.sh"
 
5271
ofile="$default_ofile"
 
5272
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5273
 
 
5274
if test -n "$ac_tool_prefix"; then
 
5275
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5276
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5277
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5279
if test "${ac_cv_prog_AR+set}" = set; then
 
5280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5281
else
 
5282
  if test -n "$AR"; then
 
5283
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5284
else
 
5285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5286
for as_dir in $PATH
 
5287
do
 
5288
  IFS=$as_save_IFS
 
5289
  test -z "$as_dir" && as_dir=.
 
5290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5291
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5292
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5293
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5294
    break 2
 
5295
  fi
 
5296
done
 
5297
done
 
5298
 
 
5299
fi
 
5300
fi
 
5301
AR=$ac_cv_prog_AR
 
5302
if test -n "$AR"; then
 
5303
  echo "$as_me:$LINENO: result: $AR" >&5
 
5304
echo "${ECHO_T}$AR" >&6
 
5305
else
 
5306
  echo "$as_me:$LINENO: result: no" >&5
 
5307
echo "${ECHO_T}no" >&6
 
5308
fi
 
5309
 
 
5310
fi
 
5311
if test -z "$ac_cv_prog_AR"; then
 
5312
  ac_ct_AR=$AR
 
5313
  # Extract the first word of "ar", so it can be a program name with args.
 
5314
set dummy ar; ac_word=$2
 
5315
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5317
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5319
else
 
5320
  if test -n "$ac_ct_AR"; then
 
5321
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5322
else
 
5323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5324
for as_dir in $PATH
 
5325
do
 
5326
  IFS=$as_save_IFS
 
5327
  test -z "$as_dir" && as_dir=.
 
5328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5330
    ac_cv_prog_ac_ct_AR="ar"
 
5331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5332
    break 2
 
5333
  fi
 
5334
done
 
5335
done
 
5336
 
 
5337
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5338
fi
 
5339
fi
 
5340
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5341
if test -n "$ac_ct_AR"; then
 
5342
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5343
echo "${ECHO_T}$ac_ct_AR" >&6
 
5344
else
 
5345
  echo "$as_me:$LINENO: result: no" >&5
 
5346
echo "${ECHO_T}no" >&6
 
5347
fi
 
5348
 
 
5349
  AR=$ac_ct_AR
 
5350
else
 
5351
  AR="$ac_cv_prog_AR"
 
5352
fi
 
5353
 
 
5354
if test -n "$ac_tool_prefix"; then
 
5355
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5356
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5357
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5359
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5361
else
 
5362
  if test -n "$RANLIB"; then
 
5363
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5364
else
 
5365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5366
for as_dir in $PATH
 
5367
do
 
5368
  IFS=$as_save_IFS
 
5369
  test -z "$as_dir" && as_dir=.
 
5370
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5371
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5372
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5373
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5374
    break 2
 
5375
  fi
 
5376
done
 
5377
done
 
5378
 
 
5379
fi
 
5380
fi
 
5381
RANLIB=$ac_cv_prog_RANLIB
 
5382
if test -n "$RANLIB"; then
 
5383
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5384
echo "${ECHO_T}$RANLIB" >&6
 
5385
else
 
5386
  echo "$as_me:$LINENO: result: no" >&5
 
5387
echo "${ECHO_T}no" >&6
 
5388
fi
 
5389
 
 
5390
fi
 
5391
if test -z "$ac_cv_prog_RANLIB"; then
 
5392
  ac_ct_RANLIB=$RANLIB
 
5393
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5394
set dummy ranlib; ac_word=$2
 
5395
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5397
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5399
else
 
5400
  if test -n "$ac_ct_RANLIB"; then
 
5401
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5402
else
 
5403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5404
for as_dir in $PATH
 
5405
do
 
5406
  IFS=$as_save_IFS
 
5407
  test -z "$as_dir" && as_dir=.
 
5408
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5410
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5412
    break 2
 
5413
  fi
 
5414
done
 
5415
done
 
5416
 
 
5417
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5418
fi
 
5419
fi
 
5420
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5421
if test -n "$ac_ct_RANLIB"; then
 
5422
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5423
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5424
else
 
5425
  echo "$as_me:$LINENO: result: no" >&5
 
5426
echo "${ECHO_T}no" >&6
 
5427
fi
 
5428
 
 
5429
  RANLIB=$ac_ct_RANLIB
 
5430
else
 
5431
  RANLIB="$ac_cv_prog_RANLIB"
 
5432
fi
 
5433
 
 
5434
if test -n "$ac_tool_prefix"; then
 
5435
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5436
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5437
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5439
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5441
else
 
5442
  if test -n "$STRIP"; then
 
5443
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5444
else
 
5445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5446
for as_dir in $PATH
 
5447
do
 
5448
  IFS=$as_save_IFS
 
5449
  test -z "$as_dir" && as_dir=.
 
5450
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5451
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5452
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5454
    break 2
 
5455
  fi
 
5456
done
 
5457
done
 
5458
 
 
5459
fi
 
5460
fi
 
5461
STRIP=$ac_cv_prog_STRIP
 
5462
if test -n "$STRIP"; then
 
5463
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5464
echo "${ECHO_T}$STRIP" >&6
 
5465
else
 
5466
  echo "$as_me:$LINENO: result: no" >&5
 
5467
echo "${ECHO_T}no" >&6
 
5468
fi
 
5469
 
 
5470
fi
 
5471
if test -z "$ac_cv_prog_STRIP"; then
 
5472
  ac_ct_STRIP=$STRIP
 
5473
  # Extract the first word of "strip", so it can be a program name with args.
 
5474
set dummy strip; ac_word=$2
 
5475
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5477
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5479
else
 
5480
  if test -n "$ac_ct_STRIP"; then
 
5481
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5482
else
 
5483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5484
for as_dir in $PATH
 
5485
do
 
5486
  IFS=$as_save_IFS
 
5487
  test -z "$as_dir" && as_dir=.
 
5488
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5489
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5490
    ac_cv_prog_ac_ct_STRIP="strip"
 
5491
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5492
    break 2
 
5493
  fi
 
5494
done
 
5495
done
 
5496
 
 
5497
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5498
fi
 
5499
fi
 
5500
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5501
if test -n "$ac_ct_STRIP"; then
 
5502
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5503
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5504
else
 
5505
  echo "$as_me:$LINENO: result: no" >&5
 
5506
echo "${ECHO_T}no" >&6
 
5507
fi
 
5508
 
 
5509
  STRIP=$ac_ct_STRIP
 
5510
else
 
5511
  STRIP="$ac_cv_prog_STRIP"
 
5512
fi
 
5513
 
 
5514
 
 
5515
old_CC="$CC"
 
5516
old_CFLAGS="$CFLAGS"
 
5517
 
 
5518
# Set sane defaults for various variables
 
5519
test -z "$AR" && AR=ar
 
5520
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5521
test -z "$AS" && AS=as
 
5522
test -z "$CC" && CC=cc
 
5523
test -z "$LTCC" && LTCC=$CC
 
5524
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5525
test -z "$LD" && LD=ld
 
5526
test -z "$LN_S" && LN_S="ln -s"
 
5527
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5528
test -z "$NM" && NM=nm
 
5529
test -z "$SED" && SED=sed
 
5530
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5531
test -z "$RANLIB" && RANLIB=:
 
5532
test -z "$STRIP" && STRIP=:
 
5533
test -z "$ac_objext" && ac_objext=o
 
5534
 
 
5535
# Determine commands to create old-style static archives.
 
5536
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5537
old_postinstall_cmds='chmod 644 $oldlib'
 
5538
old_postuninstall_cmds=
 
5539
 
 
5540
if test -n "$RANLIB"; then
 
5541
  case $host_os in
 
5542
  openbsd*)
 
5543
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5544
    ;;
 
5545
  *)
 
5546
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5547
    ;;
 
5548
  esac
 
5549
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5550
fi
 
5551
 
 
5552
# Only perform the check for file, if the check method requires it
 
5553
case $deplibs_check_method in
 
5554
file_magic*)
 
5555
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5556
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5557
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5558
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5560
else
 
5561
  case $MAGIC_CMD in
 
5562
[\\/*] |  ?:[\\/]*)
 
5563
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5564
  ;;
 
5565
*)
 
5566
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5567
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5568
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5569
  for ac_dir in $ac_dummy; do
 
5570
    IFS="$lt_save_ifs"
 
5571
    test -z "$ac_dir" && ac_dir=.
 
5572
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5573
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5574
      if test -n "$file_magic_test_file"; then
 
5575
        case $deplibs_check_method in
 
5576
        "file_magic "*)
 
5577
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5578
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5579
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5580
            $EGREP "$file_magic_regex" > /dev/null; then
 
5581
            :
 
5582
          else
 
5583
            cat <<EOF 1>&2
 
5584
 
 
5585
*** Warning: the command libtool uses to detect shared libraries,
 
5586
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5587
*** The result is that libtool may fail to recognize shared libraries
 
5588
*** as such.  This will affect the creation of libtool libraries that
 
5589
*** depend on shared libraries, but programs linked with such libtool
 
5590
*** libraries will work regardless of this problem.  Nevertheless, you
 
5591
*** may want to report the problem to your system manager and/or to
 
5592
*** bug-libtool@gnu.org
 
5593
 
 
5594
EOF
 
5595
          fi ;;
 
5596
        esac
 
5597
      fi
 
5598
      break
 
5599
    fi
 
5600
  done
 
5601
  IFS="$lt_save_ifs"
 
5602
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5603
  ;;
 
5604
esac
 
5605
fi
 
5606
 
 
5607
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5608
if test -n "$MAGIC_CMD"; then
 
5609
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5610
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5611
else
 
5612
  echo "$as_me:$LINENO: result: no" >&5
 
5613
echo "${ECHO_T}no" >&6
 
5614
fi
 
5615
 
 
5616
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5617
  if test -n "$ac_tool_prefix"; then
 
5618
    echo "$as_me:$LINENO: checking for file" >&5
 
5619
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5620
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5622
else
 
5623
  case $MAGIC_CMD in
 
5624
[\\/*] |  ?:[\\/]*)
 
5625
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5626
  ;;
 
5627
*)
 
5628
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5629
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5630
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5631
  for ac_dir in $ac_dummy; do
 
5632
    IFS="$lt_save_ifs"
 
5633
    test -z "$ac_dir" && ac_dir=.
 
5634
    if test -f $ac_dir/file; then
 
5635
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5636
      if test -n "$file_magic_test_file"; then
 
5637
        case $deplibs_check_method in
 
5638
        "file_magic "*)
 
5639
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5640
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5641
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5642
            $EGREP "$file_magic_regex" > /dev/null; then
 
5643
            :
 
5644
          else
 
5645
            cat <<EOF 1>&2
 
5646
 
 
5647
*** Warning: the command libtool uses to detect shared libraries,
 
5648
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5649
*** The result is that libtool may fail to recognize shared libraries
 
5650
*** as such.  This will affect the creation of libtool libraries that
 
5651
*** depend on shared libraries, but programs linked with such libtool
 
5652
*** libraries will work regardless of this problem.  Nevertheless, you
 
5653
*** may want to report the problem to your system manager and/or to
 
5654
*** bug-libtool@gnu.org
 
5655
 
 
5656
EOF
 
5657
          fi ;;
 
5658
        esac
 
5659
      fi
 
5660
      break
 
5661
    fi
 
5662
  done
 
5663
  IFS="$lt_save_ifs"
 
5664
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5665
  ;;
 
5666
esac
 
5667
fi
 
5668
 
 
5669
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5670
if test -n "$MAGIC_CMD"; then
 
5671
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5672
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5673
else
 
5674
  echo "$as_me:$LINENO: result: no" >&5
 
5675
echo "${ECHO_T}no" >&6
 
5676
fi
 
5677
 
 
5678
  else
 
5679
    MAGIC_CMD=:
 
5680
  fi
 
5681
fi
 
5682
 
 
5683
  fi
 
5684
  ;;
 
5685
esac
 
5686
 
 
5687
enable_dlopen=no
 
5688
enable_win32_dll=no
 
5689
 
 
5690
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5691
if test "${enable_libtool_lock+set}" = set; then
 
5692
  enableval="$enable_libtool_lock"
 
5693
 
 
5694
fi;
 
5695
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5696
 
 
5697
 
 
5698
# Check whether --with-pic or --without-pic was given.
 
5699
if test "${with_pic+set}" = set; then
 
5700
  withval="$with_pic"
 
5701
  pic_mode="$withval"
 
5702
else
 
5703
  pic_mode=default
 
5704
fi;
 
5705
test -z "$pic_mode" && pic_mode=default
 
5706
 
 
5707
# Use C for the default configuration in the libtool script
 
5708
tagname=
 
5709
lt_save_CC="$CC"
 
5710
ac_ext=c
 
5711
ac_cpp='$CPP $CPPFLAGS'
 
5712
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5713
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5715
 
 
5716
 
 
5717
# Source file extension for C test sources.
 
5718
ac_ext=c
 
5719
 
 
5720
# Object file extension for compiled C test sources.
 
5721
objext=o
 
5722
objext=$objext
 
5723
 
 
5724
# Code to be used in simple compile tests
 
5725
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5726
 
 
5727
# Code to be used in simple link tests
 
5728
lt_simple_link_test_code='int main(){return(0);}\n'
 
5729
 
 
5730
 
 
5731
# If no C compiler was specified, use CC.
 
5732
LTCC=${LTCC-"$CC"}
 
5733
 
 
5734
# Allow CC to be a program name with arguments.
 
5735
compiler=$CC
 
5736
 
 
5737
 
 
5738
#
 
5739
# Check for any special shared library compilation flags.
 
5740
#
 
5741
lt_prog_cc_shlib=
 
5742
if test "$GCC" = no; then
 
5743
  case $host_os in
 
5744
  sco3.2v5*)
 
5745
    lt_prog_cc_shlib='-belf'
 
5746
    ;;
 
5747
  esac
 
5748
fi
 
5749
if test -n "$lt_prog_cc_shlib"; then
 
5750
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5751
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5752
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
5753
  else
 
5754
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5755
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5756
    lt_cv_prog_cc_can_build_shared=no
 
5757
  fi
 
5758
fi
 
5759
 
 
5760
 
 
5761
#
 
5762
# Check to make sure the static flag actually works.
 
5763
#
 
5764
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5765
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5766
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5768
else
 
5769
  lt_prog_compiler_static_works=no
 
5770
   save_LDFLAGS="$LDFLAGS"
 
5771
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5772
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5773
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5774
     # The compiler can only warn and ignore the option if not recognized
 
5775
     # So say no if there are warnings
 
5776
     if test -s conftest.err; then
 
5777
       # Append any errors to the config.log.
 
5778
       cat conftest.err 1>&5
 
5779
     else
 
5780
       lt_prog_compiler_static_works=yes
 
5781
     fi
 
5782
   fi
 
5783
   $rm conftest*
 
5784
   LDFLAGS="$save_LDFLAGS"
 
5785
 
 
5786
fi
 
5787
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5788
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5789
 
 
5790
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5791
    :
 
5792
else
 
5793
    lt_prog_compiler_static=
 
5794
fi
 
5795
 
 
5796
 
 
5797
 
 
5798
 
 
5799
lt_prog_compiler_no_builtin_flag=
 
5800
 
 
5801
if test "$GCC" = yes; then
 
5802
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5803
 
 
5804
 
 
5805
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5806
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5807
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5809
else
 
5810
  lt_cv_prog_compiler_rtti_exceptions=no
 
5811
  ac_outfile=conftest.$ac_objext
 
5812
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5813
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5814
   # Insert the option either (1) after the last *FLAGS variable, or
 
5815
   # (2) before a word containing "conftest.", or (3) at the end.
 
5816
   # Note that $ac_compile itself does not contain backslashes and begins
 
5817
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5818
   # The option is referenced via a variable to avoid confusing sed.
 
5819
   lt_compile=`echo "$ac_compile" | $SED \
 
5820
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5821
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5822
   -e 's:$: $lt_compiler_flag:'`
 
5823
   (eval echo "\"\$as_me:5823: $lt_compile\"" >&5)
 
5824
   (eval "$lt_compile" 2>conftest.err)
 
5825
   ac_status=$?
 
5826
   cat conftest.err >&5
 
5827
   echo "$as_me:5827: \$? = $ac_status" >&5
 
5828
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5829
     # The compiler can only warn and ignore the option if not recognized
 
5830
     # So say no if there are warnings
 
5831
     if test ! -s conftest.err; then
 
5832
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5833
     fi
 
5834
   fi
 
5835
   $rm conftest*
 
5836
 
 
5837
fi
 
5838
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5839
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5840
 
 
5841
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5842
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5843
else
 
5844
    :
 
5845
fi
 
5846
 
 
5847
fi
 
5848
 
 
5849
lt_prog_compiler_wl=
 
5850
lt_prog_compiler_pic=
 
5851
lt_prog_compiler_static=
 
5852
 
 
5853
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5854
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5855
 
 
5856
  if test "$GCC" = yes; then
 
5857
    lt_prog_compiler_wl='-Wl,'
 
5858
    lt_prog_compiler_static='-static'
 
5859
 
 
5860
    case $host_os in
 
5861
      aix*)
 
5862
      # All AIX code is PIC.
 
5863
      if test "$host_cpu" = ia64; then
 
5864
        # AIX 5 now supports IA64 processor
 
5865
        lt_prog_compiler_static='-Bstatic'
 
5866
      fi
 
5867
      ;;
 
5868
 
 
5869
    amigaos*)
 
5870
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5871
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5872
      # like `-m68040'.
 
5873
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5874
      ;;
 
5875
 
 
5876
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5877
      # PIC is the default for these OSes.
 
5878
      ;;
 
5879
 
 
5880
    mingw* | pw32* | os2*)
 
5881
      # This hack is so that the source file can tell whether it is being
 
5882
      # built for inclusion in a dll (and should export symbols for example).
 
5883
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5884
      ;;
 
5885
 
 
5886
    darwin* | rhapsody*)
 
5887
      # PIC is the default on this platform
 
5888
      # Common symbols not allowed in MH_DYLIB files
 
5889
      lt_prog_compiler_pic='-fno-common'
 
5890
      ;;
 
5891
 
 
5892
    msdosdjgpp*)
 
5893
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5894
      # on systems that don't support them.
 
5895
      lt_prog_compiler_can_build_shared=no
 
5896
      enable_shared=no
 
5897
      ;;
 
5898
 
 
5899
    sysv4*MP*)
 
5900
      if test -d /usr/nec; then
 
5901
        lt_prog_compiler_pic=-Kconform_pic
 
5902
      fi
 
5903
      ;;
 
5904
 
 
5905
    hpux*)
 
5906
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5907
      # not for PA HP-UX.
 
5908
      case "$host_cpu" in
 
5909
      hppa*64*|ia64*)
 
5910
        # +Z the default
 
5911
        ;;
 
5912
      *)
 
5913
        lt_prog_compiler_pic='-fPIC'
 
5914
        ;;
 
5915
      esac
 
5916
      ;;
 
5917
 
 
5918
    *)
 
5919
      lt_prog_compiler_pic='-fPIC'
 
5920
      ;;
 
5921
    esac
 
5922
  else
 
5923
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5924
    case $host_os in
 
5925
    aix*)
 
5926
      lt_prog_compiler_wl='-Wl,'
 
5927
      if test "$host_cpu" = ia64; then
 
5928
        # AIX 5 now supports IA64 processor
 
5929
        lt_prog_compiler_static='-Bstatic'
 
5930
      else
 
5931
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
5932
      fi
 
5933
      ;;
 
5934
 
 
5935
    mingw* | pw32* | os2*)
 
5936
      # This hack is so that the source file can tell whether it is being
 
5937
      # built for inclusion in a dll (and should export symbols for example).
 
5938
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5939
      ;;
 
5940
 
 
5941
    hpux9* | hpux10* | hpux11*)
 
5942
      lt_prog_compiler_wl='-Wl,'
 
5943
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5944
      # not for PA HP-UX.
 
5945
      case "$host_cpu" in
 
5946
      hppa*64*|ia64*)
 
5947
        # +Z the default
 
5948
        ;;
 
5949
      *)
 
5950
        lt_prog_compiler_pic='+Z'
 
5951
        ;;
 
5952
      esac
 
5953
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5954
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
5955
      ;;
 
5956
 
 
5957
    irix5* | irix6* | nonstopux*)
 
5958
      lt_prog_compiler_wl='-Wl,'
 
5959
      # PIC (with -KPIC) is the default.
 
5960
      lt_prog_compiler_static='-non_shared'
 
5961
      ;;
 
5962
 
 
5963
    newsos6)
 
5964
      lt_prog_compiler_pic='-KPIC'
 
5965
      lt_prog_compiler_static='-Bstatic'
 
5966
      ;;
 
5967
 
 
5968
    linux*)
 
5969
      case $CC in
 
5970
      icc* | ecc*)
 
5971
        lt_prog_compiler_wl='-Wl,'
 
5972
        lt_prog_compiler_pic='-KPIC'
 
5973
        lt_prog_compiler_static='-static'
 
5974
        ;;
 
5975
      ccc*)
 
5976
        lt_prog_compiler_wl='-Wl,'
 
5977
        # All Alpha code is PIC.
 
5978
        lt_prog_compiler_static='-non_shared'
 
5979
        ;;
 
5980
      esac
 
5981
      ;;
 
5982
 
 
5983
    osf3* | osf4* | osf5*)
 
5984
      lt_prog_compiler_wl='-Wl,'
 
5985
      # All OSF/1 code is PIC.
 
5986
      lt_prog_compiler_static='-non_shared'
 
5987
      ;;
 
5988
 
 
5989
    sco3.2v5*)
 
5990
      lt_prog_compiler_pic='-Kpic'
 
5991
      lt_prog_compiler_static='-dn'
 
5992
      ;;
 
5993
 
 
5994
    solaris*)
 
5995
      lt_prog_compiler_wl='-Wl,'
 
5996
      lt_prog_compiler_pic='-KPIC'
 
5997
      lt_prog_compiler_static='-Bstatic'
 
5998
      ;;
 
5999
 
 
6000
    sunos4*)
 
6001
      lt_prog_compiler_wl='-Qoption ld '
 
6002
      lt_prog_compiler_pic='-PIC'
 
6003
      lt_prog_compiler_static='-Bstatic'
 
6004
      ;;
 
6005
 
 
6006
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6007
      lt_prog_compiler_wl='-Wl,'
 
6008
      lt_prog_compiler_pic='-KPIC'
 
6009
      lt_prog_compiler_static='-Bstatic'
 
6010
      ;;
 
6011
 
 
6012
    sysv4*MP*)
 
6013
      if test -d /usr/nec ;then
 
6014
        lt_prog_compiler_pic='-Kconform_pic'
 
6015
        lt_prog_compiler_static='-Bstatic'
 
6016
      fi
 
6017
      ;;
 
6018
 
 
6019
    uts4*)
 
6020
      lt_prog_compiler_pic='-pic'
 
6021
      lt_prog_compiler_static='-Bstatic'
 
6022
      ;;
 
6023
 
 
6024
    *)
 
6025
      lt_prog_compiler_can_build_shared=no
 
6026
      ;;
 
6027
    esac
 
6028
  fi
 
6029
 
 
6030
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6031
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6032
 
 
6033
#
 
6034
# Check to make sure the PIC flag actually works.
 
6035
#
 
6036
if test -n "$lt_prog_compiler_pic"; then
 
6037
 
 
6038
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6039
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6040
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6042
else
 
6043
  lt_prog_compiler_pic_works=no
 
6044
  ac_outfile=conftest.$ac_objext
 
6045
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6046
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6047
   # Insert the option either (1) after the last *FLAGS variable, or
 
6048
   # (2) before a word containing "conftest.", or (3) at the end.
 
6049
   # Note that $ac_compile itself does not contain backslashes and begins
 
6050
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6051
   # The option is referenced via a variable to avoid confusing sed.
 
6052
   lt_compile=`echo "$ac_compile" | $SED \
 
6053
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6054
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6055
   -e 's:$: $lt_compiler_flag:'`
 
6056
   (eval echo "\"\$as_me:6056: $lt_compile\"" >&5)
 
6057
   (eval "$lt_compile" 2>conftest.err)
 
6058
   ac_status=$?
 
6059
   cat conftest.err >&5
 
6060
   echo "$as_me:6060: \$? = $ac_status" >&5
 
6061
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6062
     # The compiler can only warn and ignore the option if not recognized
 
6063
     # So say no if there are warnings
 
6064
     if test ! -s conftest.err; then
 
6065
       lt_prog_compiler_pic_works=yes
 
6066
     fi
 
6067
   fi
 
6068
   $rm conftest*
 
6069
 
 
6070
fi
 
6071
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6072
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6073
 
 
6074
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6075
    case $lt_prog_compiler_pic in
 
6076
     "" | " "*) ;;
 
6077
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6078
     esac
 
6079
else
 
6080
    lt_prog_compiler_pic=
 
6081
     lt_prog_compiler_can_build_shared=no
 
6082
fi
 
6083
 
 
6084
fi
 
6085
case "$host_os" in
 
6086
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6087
  *djgpp*)
 
6088
    lt_prog_compiler_pic=
 
6089
    ;;
 
6090
  *)
 
6091
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6092
    ;;
 
6093
esac
 
6094
 
 
6095
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6096
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6097
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6099
else
 
6100
  lt_cv_prog_compiler_c_o=no
 
6101
   $rm -r conftest 2>/dev/null
 
6102
   mkdir conftest
 
6103
   cd conftest
 
6104
   mkdir out
 
6105
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6106
 
 
6107
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6108
   # Insert the option either (1) after the last *FLAGS variable, or
 
6109
   # (2) before a word containing "conftest.", or (3) at the end.
 
6110
   # Note that $ac_compile itself does not contain backslashes and begins
 
6111
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6112
   lt_compile=`echo "$ac_compile" | $SED \
 
6113
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6114
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6115
   -e 's:$: $lt_compiler_flag:'`
 
6116
   (eval echo "\"\$as_me:6116: $lt_compile\"" >&5)
 
6117
   (eval "$lt_compile" 2>out/conftest.err)
 
6118
   ac_status=$?
 
6119
   cat out/conftest.err >&5
 
6120
   echo "$as_me:6120: \$? = $ac_status" >&5
 
6121
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6122
   then
 
6123
     # The compiler can only warn and ignore the option if not recognized
 
6124
     # So say no if there are warnings
 
6125
     if test ! -s out/conftest.err; then
 
6126
       lt_cv_prog_compiler_c_o=yes
 
6127
     fi
 
6128
   fi
 
6129
   chmod u+w .
 
6130
   $rm conftest*
 
6131
   # SGI C++ compiler will create directory out/ii_files/ for
 
6132
   # template instantiation
 
6133
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6134
   $rm out/* && rmdir out
 
6135
   cd ..
 
6136
   rmdir conftest
 
6137
   $rm conftest*
 
6138
 
 
6139
fi
 
6140
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6141
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6142
 
 
6143
 
 
6144
hard_links="nottested"
 
6145
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6146
  # do not overwrite the value of need_locks provided by the user
 
6147
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6148
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6149
  hard_links=yes
 
6150
  $rm conftest*
 
6151
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6152
  touch conftest.a
 
6153
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6154
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6155
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6156
echo "${ECHO_T}$hard_links" >&6
 
6157
  if test "$hard_links" = no; then
 
6158
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6159
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6160
    need_locks=warn
 
6161
  fi
 
6162
else
 
6163
  need_locks=no
 
6164
fi
 
6165
 
 
6166
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6167
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6168
 
 
6169
  runpath_var=
 
6170
  allow_undefined_flag=
 
6171
  enable_shared_with_static_runtimes=no
 
6172
  archive_cmds=
 
6173
  archive_expsym_cmds=
 
6174
  old_archive_From_new_cmds=
 
6175
  old_archive_from_expsyms_cmds=
 
6176
  export_dynamic_flag_spec=
 
6177
  whole_archive_flag_spec=
 
6178
  thread_safe_flag_spec=
 
6179
  hardcode_libdir_flag_spec=
 
6180
  hardcode_libdir_flag_spec_ld=
 
6181
  hardcode_libdir_separator=
 
6182
  hardcode_direct=no
 
6183
  hardcode_minus_L=no
 
6184
  hardcode_shlibpath_var=unsupported
 
6185
  link_all_deplibs=unknown
 
6186
  hardcode_automatic=no
 
6187
  module_cmds=
 
6188
  module_expsym_cmds=
 
6189
  always_export_symbols=no
 
6190
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6191
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6192
  # included in the symbol list
 
6193
  include_expsyms=
 
6194
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6195
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6196
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6197
  # as well as any symbol that contains `d'.
 
6198
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6199
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6200
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6201
  # the symbol is explicitly referenced.  Since portable code cannot
 
6202
  # rely on this symbol name, it's probably fine to never include it in
 
6203
  # preloaded symbol tables.
 
6204
  extract_expsyms_cmds=
 
6205
 
 
6206
  case $host_os in
 
6207
  cygwin* | mingw* | pw32*)
 
6208
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6209
    # When not using gcc, we currently assume that we are using
 
6210
    # Microsoft Visual C++.
 
6211
    if test "$GCC" != yes; then
 
6212
      with_gnu_ld=no
 
6213
    fi
 
6214
    ;;
 
6215
  openbsd*)
 
6216
    with_gnu_ld=no
 
6217
    ;;
 
6218
  esac
 
6219
 
 
6220
  ld_shlibs=yes
 
6221
  if test "$with_gnu_ld" = yes; then
 
6222
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6223
    wlarc='${wl}'
 
6224
 
 
6225
    # See if GNU ld supports shared libraries.
 
6226
    case $host_os in
 
6227
    aix3* | aix4* | aix5*)
 
6228
      # On AIX/PPC, the GNU linker is very broken
 
6229
      if test "$host_cpu" != ia64; then
 
6230
        ld_shlibs=no
 
6231
        cat <<EOF 1>&2
 
6232
 
 
6233
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6234
*** to be unable to reliably create shared libraries on AIX.
 
6235
*** Therefore, libtool is disabling shared libraries support.  If you
 
6236
*** really care for shared libraries, you may want to modify your PATH
 
6237
*** so that a non-GNU linker is found, and then restart.
 
6238
 
 
6239
EOF
 
6240
      fi
 
6241
      ;;
 
6242
 
 
6243
    amigaos*)
 
6244
      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)'
 
6245
      hardcode_libdir_flag_spec='-L$libdir'
 
6246
      hardcode_minus_L=yes
 
6247
 
 
6248
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6249
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6250
      # to version 4, is to share data among multiple programs linked
 
6251
      # with the same dynamic library.  Since this doesn't match the
 
6252
      # behavior of shared libraries on other platforms, we can't use
 
6253
      # them.
 
6254
      ld_shlibs=no
 
6255
      ;;
 
6256
 
 
6257
    beos*)
 
6258
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6259
        allow_undefined_flag=unsupported
 
6260
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6261
        # support --undefined.  This deserves some investigation.  FIXME
 
6262
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6263
      else
 
6264
        ld_shlibs=no
 
6265
      fi
 
6266
      ;;
 
6267
 
 
6268
    cygwin* | mingw* | pw32*)
 
6269
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6270
      # as there is no search path for DLLs.
 
6271
      hardcode_libdir_flag_spec='-L$libdir'
 
6272
      allow_undefined_flag=unsupported
 
6273
      always_export_symbols=no
 
6274
      enable_shared_with_static_runtimes=yes
 
6275
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6276
 
 
6277
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6278
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6279
        # If the export-symbols file already is a .def file (1st line
 
6280
        # is EXPORTS), use it as is; otherwise, prepend...
 
6281
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6282
          cp $export_symbols $output_objdir/$soname.def;
 
6283
        else
 
6284
          echo EXPORTS > $output_objdir/$soname.def;
 
6285
          cat $export_symbols >> $output_objdir/$soname.def;
 
6286
        fi~
 
6287
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6288
      else
 
6289
        ld_shlibs=no
 
6290
      fi
 
6291
      ;;
 
6292
 
 
6293
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6294
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6295
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6296
        wlarc=
 
6297
      else
 
6298
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6299
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6300
      fi
 
6301
      ;;
 
6302
 
 
6303
    solaris* | sysv5*)
 
6304
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6305
        ld_shlibs=no
 
6306
        cat <<EOF 1>&2
 
6307
 
 
6308
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6309
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6310
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6311
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6312
*** your PATH or compiler configuration so that the native linker is
 
6313
*** used, and then restart.
 
6314
 
 
6315
EOF
 
6316
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6317
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6318
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6319
      else
 
6320
        ld_shlibs=no
 
6321
      fi
 
6322
      ;;
 
6323
 
 
6324
    sunos4*)
 
6325
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6326
      wlarc=
 
6327
      hardcode_direct=yes
 
6328
      hardcode_shlibpath_var=no
 
6329
      ;;
 
6330
 
 
6331
  linux*)
 
6332
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6333
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6334
        archive_cmds="$tmp_archive_cmds"
 
6335
      supports_anon_versioning=no
 
6336
      case `$LD -v 2>/dev/null` in
 
6337
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6338
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6339
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6340
        *\ 2.11.*) ;; # other 2.11 versions
 
6341
        *) supports_anon_versioning=yes ;;
 
6342
      esac
 
6343
      if test $supports_anon_versioning = yes; then
 
6344
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6345
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6346
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6347
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6348
      else
 
6349
        archive_expsym_cmds="$tmp_archive_cmds"
 
6350
      fi
 
6351
      link_all_deplibs=no
 
6352
    else
 
6353
      ld_shlibs=no
 
6354
    fi
 
6355
    ;;
 
6356
 
 
6357
    *)
 
6358
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6359
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6360
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6361
      else
 
6362
        ld_shlibs=no
 
6363
      fi
 
6364
      ;;
 
6365
    esac
 
6366
 
 
6367
    if test "$ld_shlibs" = yes; then
 
6368
      runpath_var=LD_RUN_PATH
 
6369
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6370
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6371
      # ancient GNU ld didn't support --whole-archive et. al.
 
6372
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6373
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6374
      else
 
6375
        whole_archive_flag_spec=
 
6376
      fi
 
6377
    fi
 
6378
  else
 
6379
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6380
    case $host_os in
 
6381
    aix3*)
 
6382
      allow_undefined_flag=unsupported
 
6383
      always_export_symbols=yes
 
6384
      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'
 
6385
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6386
      # are no directories specified by -L.
 
6387
      hardcode_minus_L=yes
 
6388
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6389
        # Neither direct hardcoding nor static linking is supported with a
 
6390
        # broken collect2.
 
6391
        hardcode_direct=unsupported
 
6392
      fi
 
6393
      ;;
 
6394
 
 
6395
    aix4* | aix5*)
 
6396
      if test "$host_cpu" = ia64; then
 
6397
        # On IA64, the linker does run time linking by default, so we don't
 
6398
        # have to do anything special.
 
6399
        aix_use_runtimelinking=no
 
6400
        exp_sym_flag='-Bexport'
 
6401
        no_entry_flag=""
 
6402
      else
 
6403
        # If we're using GNU nm, then we don't want the "-C" option.
 
6404
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6405
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6406
          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'
 
6407
        else
 
6408
          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'
 
6409
        fi
 
6410
        aix_use_runtimelinking=no
 
6411
 
 
6412
        # Test if we are trying to use run time linking or normal
 
6413
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6414
        # need to do runtime linking.
 
6415
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6416
          for ld_flag in $LDFLAGS; do
 
6417
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6418
            aix_use_runtimelinking=yes
 
6419
            break
 
6420
          fi
 
6421
          done
 
6422
        esac
 
6423
 
 
6424
        exp_sym_flag='-bexport'
 
6425
        no_entry_flag='-bnoentry'
 
6426
      fi
 
6427
 
 
6428
      # When large executables or shared objects are built, AIX ld can
 
6429
      # have problems creating the table of contents.  If linking a library
 
6430
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6431
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6432
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6433
 
 
6434
      archive_cmds=''
 
6435
      hardcode_direct=yes
 
6436
      hardcode_libdir_separator=':'
 
6437
      link_all_deplibs=yes
 
6438
 
 
6439
      if test "$GCC" = yes; then
 
6440
        case $host_os in aix4.012|aix4.012.*)
 
6441
        # We only want to do this on AIX 4.2 and lower, the check
 
6442
        # below for broken collect2 doesn't work under 4.3+
 
6443
          collect2name=`${CC} -print-prog-name=collect2`
 
6444
          if test -f "$collect2name" && \
 
6445
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6446
          then
 
6447
          # We have reworked collect2
 
6448
          hardcode_direct=yes
 
6449
          else
 
6450
          # We have old collect2
 
6451
          hardcode_direct=unsupported
 
6452
          # It fails to find uninstalled libraries when the uninstalled
 
6453
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6454
          # to unsupported forces relinking
 
6455
          hardcode_minus_L=yes
 
6456
          hardcode_libdir_flag_spec='-L$libdir'
 
6457
          hardcode_libdir_separator=
 
6458
          fi
 
6459
        esac
 
6460
        shared_flag='-shared'
 
6461
      else
 
6462
        # not using gcc
 
6463
        if test "$host_cpu" = ia64; then
 
6464
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6465
        # chokes on -Wl,-G. The following line is correct:
 
6466
          shared_flag='-G'
 
6467
        else
 
6468
        if test "$aix_use_runtimelinking" = yes; then
 
6469
            shared_flag='${wl}-G'
 
6470
          else
 
6471
            shared_flag='${wl}-bM:SRE'
 
6472
        fi
 
6473
        fi
 
6474
      fi
 
6475
 
 
6476
      # It seems that -bexpall does not export symbols beginning with
 
6477
      # underscore (_), so it is better to generate a list of symbols to export.
 
6478
      always_export_symbols=yes
 
6479
      if test "$aix_use_runtimelinking" = yes; then
 
6480
        # Warning - without using the other runtime loading flags (-brtl),
 
6481
        # -berok will link without error, but may produce a broken library.
 
6482
        allow_undefined_flag='-berok'
 
6483
       # Determine the default libpath from the value encoded in an empty executable.
 
6484
       cat >conftest.$ac_ext <<_ACEOF
 
6485
/* confdefs.h.  */
 
6486
_ACEOF
 
6487
cat confdefs.h >>conftest.$ac_ext
 
6488
cat >>conftest.$ac_ext <<_ACEOF
 
6489
/* end confdefs.h.  */
 
6490
 
 
6491
int
 
6492
main ()
 
6493
{
 
6494
 
 
6495
  ;
 
6496
  return 0;
 
6497
}
 
6498
_ACEOF
 
6499
rm -f conftest.$ac_objext conftest$ac_exeext
 
6500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6501
  (eval $ac_link) 2>conftest.er1
 
6502
  ac_status=$?
 
6503
  grep -v '^ *+' conftest.er1 >conftest.err
 
6504
  rm -f conftest.er1
 
6505
  cat conftest.err >&5
 
6506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6507
  (exit $ac_status); } &&
 
6508
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6510
  (eval $ac_try) 2>&5
 
6511
  ac_status=$?
 
6512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6513
  (exit $ac_status); }; } &&
 
6514
         { ac_try='test -s conftest$ac_exeext'
 
6515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6516
  (eval $ac_try) 2>&5
 
6517
  ac_status=$?
 
6518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6519
  (exit $ac_status); }; }; then
 
6520
 
 
6521
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6522
}'`
 
6523
# Check for a 64-bit object if we didn't find anything.
 
6524
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; }
 
6525
}'`; fi
 
6526
else
 
6527
  echo "$as_me: failed program was:" >&5
 
6528
sed 's/^/| /' conftest.$ac_ext >&5
 
6529
 
 
6530
fi
 
6531
rm -f conftest.err conftest.$ac_objext \
 
6532
      conftest$ac_exeext conftest.$ac_ext
 
6533
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6534
 
 
6535
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6536
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6537
       else
 
6538
        if test "$host_cpu" = ia64; then
 
6539
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6540
          allow_undefined_flag="-z nodefs"
 
6541
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6542
        else
 
6543
         # Determine the default libpath from the value encoded in an empty executable.
 
6544
         cat >conftest.$ac_ext <<_ACEOF
 
6545
/* confdefs.h.  */
 
6546
_ACEOF
 
6547
cat confdefs.h >>conftest.$ac_ext
 
6548
cat >>conftest.$ac_ext <<_ACEOF
 
6549
/* end confdefs.h.  */
 
6550
 
 
6551
int
 
6552
main ()
 
6553
{
 
6554
 
 
6555
  ;
 
6556
  return 0;
 
6557
}
 
6558
_ACEOF
 
6559
rm -f conftest.$ac_objext conftest$ac_exeext
 
6560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6561
  (eval $ac_link) 2>conftest.er1
 
6562
  ac_status=$?
 
6563
  grep -v '^ *+' conftest.er1 >conftest.err
 
6564
  rm -f conftest.er1
 
6565
  cat conftest.err >&5
 
6566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6567
  (exit $ac_status); } &&
 
6568
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6570
  (eval $ac_try) 2>&5
 
6571
  ac_status=$?
 
6572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6573
  (exit $ac_status); }; } &&
 
6574
         { ac_try='test -s conftest$ac_exeext'
 
6575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6576
  (eval $ac_try) 2>&5
 
6577
  ac_status=$?
 
6578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6579
  (exit $ac_status); }; }; then
 
6580
 
 
6581
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6582
}'`
 
6583
# Check for a 64-bit object if we didn't find anything.
 
6584
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; }
 
6585
}'`; fi
 
6586
else
 
6587
  echo "$as_me: failed program was:" >&5
 
6588
sed 's/^/| /' conftest.$ac_ext >&5
 
6589
 
 
6590
fi
 
6591
rm -f conftest.err conftest.$ac_objext \
 
6592
      conftest$ac_exeext conftest.$ac_ext
 
6593
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6594
 
 
6595
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6596
          # Warning - without using the other run time loading flags,
 
6597
          # -berok will link without error, but may produce a broken library.
 
6598
          no_undefined_flag=' ${wl}-bernotok'
 
6599
          allow_undefined_flag=' ${wl}-berok'
 
6600
          # -bexpall does not export symbols beginning with underscore (_)
 
6601
          always_export_symbols=yes
 
6602
          # Exported symbols can be pulled into shared objects from archives
 
6603
          whole_archive_flag_spec=' '
 
6604
          archive_cmds_need_lc=yes
 
6605
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6606
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6607
        fi
 
6608
      fi
 
6609
      ;;
 
6610
 
 
6611
    amigaos*)
 
6612
      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)'
 
6613
      hardcode_libdir_flag_spec='-L$libdir'
 
6614
      hardcode_minus_L=yes
 
6615
      # see comment about different semantics on the GNU ld section
 
6616
      ld_shlibs=no
 
6617
      ;;
 
6618
 
 
6619
    bsdi4*)
 
6620
      export_dynamic_flag_spec=-rdynamic
 
6621
      ;;
 
6622
 
 
6623
    cygwin* | mingw* | pw32*)
 
6624
      # When not using gcc, we currently assume that we are using
 
6625
      # Microsoft Visual C++.
 
6626
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6627
      # no search path for DLLs.
 
6628
      hardcode_libdir_flag_spec=' '
 
6629
      allow_undefined_flag=unsupported
 
6630
      # Tell ltmain to make .lib files, not .a files.
 
6631
      libext=lib
 
6632
      # Tell ltmain to make .dll files, not .so files.
 
6633
      shrext_cmds=".dll"
 
6634
      # FIXME: Setting linknames here is a bad hack.
 
6635
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6636
      # The linker will automatically build a .lib file if we build a DLL.
 
6637
      old_archive_From_new_cmds='true'
 
6638
      # FIXME: Should let the user specify the lib program.
 
6639
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6640
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6641
      enable_shared_with_static_runtimes=yes
 
6642
      ;;
 
6643
 
 
6644
    darwin* | rhapsody*)
 
6645
    if test "$GXX" = yes ; then
 
6646
      archive_cmds_need_lc=no
 
6647
      case "$host_os" in
 
6648
      rhapsody* | darwin1.[012])
 
6649
        allow_undefined_flag='-undefined suppress'
 
6650
        ;;
 
6651
      *) # Darwin 1.3 on
 
6652
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6653
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
6654
      else
 
6655
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
6656
          10.[012])
 
6657
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
6658
            ;;
 
6659
          10.*)
 
6660
            allow_undefined_flag='-undefined dynamic_lookup'
 
6661
            ;;
 
6662
        esac
 
6663
      fi
 
6664
        ;;
 
6665
      esac
 
6666
        lt_int_apple_cc_single_mod=no
 
6667
        output_verbose_link_cmd='echo'
 
6668
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
6669
          lt_int_apple_cc_single_mod=yes
 
6670
        fi
 
6671
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6672
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6673
        else
 
6674
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
 
6675
      fi
 
6676
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6677
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6678
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6679
          archive_expsym_cmds='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}'
 
6680
        else
 
6681
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
6682
        fi
 
6683
          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}'
 
6684
      hardcode_direct=no
 
6685
      hardcode_automatic=yes
 
6686
      hardcode_shlibpath_var=unsupported
 
6687
      whole_archive_flag_spec='-all_load $convenience'
 
6688
      link_all_deplibs=yes
 
6689
    else
 
6690
      ld_shlibs=no
 
6691
    fi
 
6692
      ;;
 
6693
 
 
6694
    dgux*)
 
6695
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6696
      hardcode_libdir_flag_spec='-L$libdir'
 
6697
      hardcode_shlibpath_var=no
 
6698
      ;;
 
6699
 
 
6700
    freebsd1*)
 
6701
      ld_shlibs=no
 
6702
      ;;
 
6703
 
 
6704
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6705
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6706
    # does not break anything, and helps significantly (at the cost of a little
 
6707
    # extra space).
 
6708
    freebsd2.2*)
 
6709
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6710
      hardcode_libdir_flag_spec='-R$libdir'
 
6711
      hardcode_direct=yes
 
6712
      hardcode_shlibpath_var=no
 
6713
      ;;
 
6714
 
 
6715
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6716
    freebsd2*)
 
6717
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6718
      hardcode_direct=yes
 
6719
      hardcode_minus_L=yes
 
6720
      hardcode_shlibpath_var=no
 
6721
      ;;
 
6722
 
 
6723
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6724
    freebsd* | kfreebsd*-gnu)
 
6725
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6726
      hardcode_libdir_flag_spec='-R$libdir'
 
6727
      hardcode_direct=yes
 
6728
      hardcode_shlibpath_var=no
 
6729
      ;;
 
6730
 
 
6731
    hpux9*)
 
6732
      if test "$GCC" = yes; then
 
6733
        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'
 
6734
      else
 
6735
        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'
 
6736
      fi
 
6737
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6738
      hardcode_libdir_separator=:
 
6739
      hardcode_direct=yes
 
6740
 
 
6741
      # hardcode_minus_L: Not really in the search PATH,
 
6742
      # but as the default location of the library.
 
6743
      hardcode_minus_L=yes
 
6744
      export_dynamic_flag_spec='${wl}-E'
 
6745
      ;;
 
6746
 
 
6747
    hpux10* | hpux11*)
 
6748
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6749
        case "$host_cpu" in
 
6750
        hppa*64*|ia64*)
 
6751
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6752
          ;;
 
6753
        *)
 
6754
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6755
          ;;
 
6756
        esac
 
6757
      else
 
6758
        case "$host_cpu" in
 
6759
        hppa*64*|ia64*)
 
6760
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6761
          ;;
 
6762
        *)
 
6763
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6764
          ;;
 
6765
        esac
 
6766
      fi
 
6767
      if test "$with_gnu_ld" = no; then
 
6768
        case "$host_cpu" in
 
6769
        hppa*64*)
 
6770
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6771
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6772
          hardcode_libdir_separator=:
 
6773
          hardcode_direct=no
 
6774
          hardcode_shlibpath_var=no
 
6775
          ;;
 
6776
        ia64*)
 
6777
          hardcode_libdir_flag_spec='-L$libdir'
 
6778
          hardcode_direct=no
 
6779
          hardcode_shlibpath_var=no
 
6780
 
 
6781
          # hardcode_minus_L: Not really in the search PATH,
 
6782
          # but as the default location of the library.
 
6783
          hardcode_minus_L=yes
 
6784
          ;;
 
6785
        *)
 
6786
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6787
          hardcode_libdir_separator=:
 
6788
          hardcode_direct=yes
 
6789
          export_dynamic_flag_spec='${wl}-E'
 
6790
 
 
6791
          # hardcode_minus_L: Not really in the search PATH,
 
6792
          # but as the default location of the library.
 
6793
          hardcode_minus_L=yes
 
6794
          ;;
 
6795
        esac
 
6796
      fi
 
6797
      ;;
 
6798
 
 
6799
    irix5* | irix6* | nonstopux*)
 
6800
      if test "$GCC" = yes; then
 
6801
        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'
 
6802
      else
 
6803
        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'
 
6804
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6805
      fi
 
6806
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6807
      hardcode_libdir_separator=:
 
6808
      link_all_deplibs=yes
 
6809
      ;;
 
6810
 
 
6811
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6812
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6813
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6814
      else
 
6815
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6816
      fi
 
6817
      hardcode_libdir_flag_spec='-R$libdir'
 
6818
      hardcode_direct=yes
 
6819
      hardcode_shlibpath_var=no
 
6820
      ;;
 
6821
 
 
6822
    newsos6)
 
6823
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6824
      hardcode_direct=yes
 
6825
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6826
      hardcode_libdir_separator=:
 
6827
      hardcode_shlibpath_var=no
 
6828
      ;;
 
6829
 
 
6830
    openbsd*)
 
6831
      hardcode_direct=yes
 
6832
      hardcode_shlibpath_var=no
 
6833
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6834
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6835
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6836
        export_dynamic_flag_spec='${wl}-E'
 
6837
      else
 
6838
       case $host_os in
 
6839
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6840
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6841
           hardcode_libdir_flag_spec='-R$libdir'
 
6842
           ;;
 
6843
         *)
 
6844
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6845
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6846
           ;;
 
6847
       esac
 
6848
      fi
 
6849
      ;;
 
6850
 
 
6851
    os2*)
 
6852
      hardcode_libdir_flag_spec='-L$libdir'
 
6853
      hardcode_minus_L=yes
 
6854
      allow_undefined_flag=unsupported
 
6855
      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'
 
6856
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6857
      ;;
 
6858
 
 
6859
    osf3*)
 
6860
      if test "$GCC" = yes; then
 
6861
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6862
        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'
 
6863
      else
 
6864
        allow_undefined_flag=' -expect_unresolved \*'
 
6865
        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'
 
6866
      fi
 
6867
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6868
      hardcode_libdir_separator=:
 
6869
      ;;
 
6870
 
 
6871
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6872
      if test "$GCC" = yes; then
 
6873
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6874
        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'
 
6875
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6876
      else
 
6877
        allow_undefined_flag=' -expect_unresolved \*'
 
6878
        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'
 
6879
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6880
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6881
 
 
6882
        # Both c and cxx compiler support -rpath directly
 
6883
        hardcode_libdir_flag_spec='-rpath $libdir'
 
6884
      fi
 
6885
      hardcode_libdir_separator=:
 
6886
      ;;
 
6887
 
 
6888
    sco3.2v5*)
 
6889
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6890
      hardcode_shlibpath_var=no
 
6891
      export_dynamic_flag_spec='${wl}-Bexport'
 
6892
      runpath_var=LD_RUN_PATH
 
6893
      hardcode_runpath_var=yes
 
6894
      ;;
 
6895
 
 
6896
    solaris*)
 
6897
      no_undefined_flag=' -z text'
 
6898
      if test "$GCC" = yes; then
 
6899
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6900
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6901
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6902
      else
 
6903
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6904
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6905
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6906
      fi
 
6907
      hardcode_libdir_flag_spec='-R$libdir'
 
6908
      hardcode_shlibpath_var=no
 
6909
      case $host_os in
 
6910
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
6911
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6912
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6913
      esac
 
6914
      link_all_deplibs=yes
 
6915
      ;;
 
6916
 
 
6917
    sunos4*)
 
6918
      if test "x$host_vendor" = xsequent; then
 
6919
        # Use $CC to link under sequent, because it throws in some extra .o
 
6920
        # files that make .init and .fini sections work.
 
6921
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6922
      else
 
6923
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6924
      fi
 
6925
      hardcode_libdir_flag_spec='-L$libdir'
 
6926
      hardcode_direct=yes
 
6927
      hardcode_minus_L=yes
 
6928
      hardcode_shlibpath_var=no
 
6929
      ;;
 
6930
 
 
6931
    sysv4)
 
6932
      case $host_vendor in
 
6933
        sni)
 
6934
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6935
          hardcode_direct=yes # is this really true???
 
6936
        ;;
 
6937
        siemens)
 
6938
          ## LD is ld it makes a PLAMLIB
 
6939
          ## CC just makes a GrossModule.
 
6940
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6941
          reload_cmds='$CC -r -o $output$reload_objs'
 
6942
          hardcode_direct=no
 
6943
        ;;
 
6944
        motorola)
 
6945
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6946
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6947
        ;;
 
6948
      esac
 
6949
      runpath_var='LD_RUN_PATH'
 
6950
      hardcode_shlibpath_var=no
 
6951
      ;;
 
6952
 
 
6953
    sysv4.3*)
 
6954
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6955
      hardcode_shlibpath_var=no
 
6956
      export_dynamic_flag_spec='-Bexport'
 
6957
      ;;
 
6958
 
 
6959
    sysv4*MP*)
 
6960
      if test -d /usr/nec; then
 
6961
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6962
        hardcode_shlibpath_var=no
 
6963
        runpath_var=LD_RUN_PATH
 
6964
        hardcode_runpath_var=yes
 
6965
        ld_shlibs=yes
 
6966
      fi
 
6967
      ;;
 
6968
 
 
6969
    sysv4.2uw2*)
 
6970
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6971
      hardcode_direct=yes
 
6972
      hardcode_minus_L=no
 
6973
      hardcode_shlibpath_var=no
 
6974
      hardcode_runpath_var=yes
 
6975
      runpath_var=LD_RUN_PATH
 
6976
      ;;
 
6977
 
 
6978
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
6979
      no_undefined_flag='${wl}-z ${wl}text'
 
6980
      if test "$GCC" = yes; then
 
6981
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6982
      else
 
6983
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6984
      fi
 
6985
      runpath_var='LD_RUN_PATH'
 
6986
      hardcode_shlibpath_var=no
 
6987
      ;;
 
6988
 
 
6989
    sysv5*)
 
6990
      no_undefined_flag=' -z text'
 
6991
      # $CC -shared without GNU ld will not create a library from C++
 
6992
      # object files and a static libstdc++, better avoid it by now
 
6993
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6994
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6995
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6996
      hardcode_libdir_flag_spec=
 
6997
      hardcode_shlibpath_var=no
 
6998
      runpath_var='LD_RUN_PATH'
 
6999
      ;;
 
7000
 
 
7001
    uts4*)
 
7002
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7003
      hardcode_libdir_flag_spec='-L$libdir'
 
7004
      hardcode_shlibpath_var=no
 
7005
      ;;
 
7006
 
 
7007
    *)
 
7008
      ld_shlibs=no
 
7009
      ;;
 
7010
    esac
 
7011
  fi
 
7012
 
 
7013
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7014
echo "${ECHO_T}$ld_shlibs" >&6
 
7015
test "$ld_shlibs" = no && can_build_shared=no
 
7016
 
 
7017
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7018
if test "$GCC" = yes; then
 
7019
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7020
fi
 
7021
 
 
7022
#
 
7023
# Do we need to explicitly link libc?
 
7024
#
 
7025
case "x$archive_cmds_need_lc" in
 
7026
x|xyes)
 
7027
  # Assume -lc should be added
 
7028
  archive_cmds_need_lc=yes
 
7029
 
 
7030
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7031
    case $archive_cmds in
 
7032
    *'~'*)
 
7033
      # FIXME: we may have to deal with multi-command sequences.
 
7034
      ;;
 
7035
    '$CC '*)
 
7036
      # Test whether the compiler implicitly links with -lc since on some
 
7037
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7038
      # to ld, don't add -lc before -lgcc.
 
7039
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7040
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7041
      $rm conftest*
 
7042
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7043
 
 
7044
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7045
  (eval $ac_compile) 2>&5
 
7046
  ac_status=$?
 
7047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7048
  (exit $ac_status); } 2>conftest.err; then
 
7049
        soname=conftest
 
7050
        lib=conftest
 
7051
        libobjs=conftest.$ac_objext
 
7052
        deplibs=
 
7053
        wl=$lt_prog_compiler_wl
 
7054
        compiler_flags=-v
 
7055
        linker_flags=-v
 
7056
        verstring=
 
7057
        output_objdir=.
 
7058
        libname=conftest
 
7059
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7060
        allow_undefined_flag=
 
7061
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7062
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7063
  ac_status=$?
 
7064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7065
  (exit $ac_status); }
 
7066
        then
 
7067
          archive_cmds_need_lc=no
 
7068
        else
 
7069
          archive_cmds_need_lc=yes
 
7070
        fi
 
7071
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7072
      else
 
7073
        cat conftest.err 1>&5
 
7074
      fi
 
7075
      $rm conftest*
 
7076
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7077
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7078
      ;;
 
7079
    esac
 
7080
  fi
 
7081
  ;;
 
7082
esac
 
7083
 
 
7084
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7085
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7086
library_names_spec=
 
7087
libname_spec='lib$name'
 
7088
soname_spec=
 
7089
shrext_cmds=".so"
 
7090
postinstall_cmds=
 
7091
postuninstall_cmds=
 
7092
finish_cmds=
 
7093
finish_eval=
 
7094
shlibpath_var=
 
7095
shlibpath_overrides_runpath=unknown
 
7096
version_type=none
 
7097
dynamic_linker="$host_os ld.so"
 
7098
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7099
if test "$GCC" = yes; then
 
7100
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7101
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7102
    # if the path contains ";" then we assume it to be the separator
 
7103
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7104
    # assumed that no part of a normal pathname contains ";" but that should
 
7105
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7106
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7107
  else
 
7108
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7109
  fi
 
7110
else
 
7111
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7112
fi
 
7113
need_lib_prefix=unknown
 
7114
hardcode_into_libs=no
 
7115
 
 
7116
# when you set need_version to no, make sure it does not cause -set_version
 
7117
# flags to be left without arguments
 
7118
need_version=unknown
 
7119
 
 
7120
case $host_os in
 
7121
aix3*)
 
7122
  version_type=linux
 
7123
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7124
  shlibpath_var=LIBPATH
 
7125
 
 
7126
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7127
  soname_spec='${libname}${release}${shared_ext}$major'
 
7128
  ;;
 
7129
 
 
7130
aix4* | aix5*)
 
7131
  version_type=linux
 
7132
  need_lib_prefix=no
 
7133
  need_version=no
 
7134
  hardcode_into_libs=yes
 
7135
  if test "$host_cpu" = ia64; then
 
7136
    # AIX 5 supports IA64
 
7137
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7138
    shlibpath_var=LD_LIBRARY_PATH
 
7139
  else
 
7140
    # With GCC up to 2.95.x, collect2 would create an import file
 
7141
    # for dependence libraries.  The import file would start with
 
7142
    # the line `#! .'.  This would cause the generated library to
 
7143
    # depend on `.', always an invalid library.  This was fixed in
 
7144
    # development snapshots of GCC prior to 3.0.
 
7145
    case $host_os in
 
7146
      aix4 | aix4.[01] | aix4.[01].*)
 
7147
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7148
           echo ' yes '
 
7149
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7150
        :
 
7151
      else
 
7152
        can_build_shared=no
 
7153
      fi
 
7154
      ;;
 
7155
    esac
 
7156
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7157
    # soname into executable. Probably we can add versioning support to
 
7158
    # collect2, so additional links can be useful in future.
 
7159
    if test "$aix_use_runtimelinking" = yes; then
 
7160
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7161
      # instead of lib<name>.a to let people know that these are not
 
7162
      # typical AIX shared libraries.
 
7163
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7164
    else
 
7165
      # We preserve .a as extension for shared libraries through AIX4.2
 
7166
      # and later when we are not doing run time linking.
 
7167
      library_names_spec='${libname}${release}.a $libname.a'
 
7168
      soname_spec='${libname}${release}${shared_ext}$major'
 
7169
    fi
 
7170
    shlibpath_var=LIBPATH
 
7171
  fi
 
7172
  ;;
 
7173
 
 
7174
amigaos*)
 
7175
  library_names_spec='$libname.ixlibrary $libname.a'
 
7176
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7177
  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'
 
7178
  ;;
 
7179
 
 
7180
beos*)
 
7181
  library_names_spec='${libname}${shared_ext}'
 
7182
  dynamic_linker="$host_os ld.so"
 
7183
  shlibpath_var=LIBRARY_PATH
 
7184
  ;;
 
7185
 
 
7186
bsdi4*)
 
7187
  version_type=linux
 
7188
  need_version=no
 
7189
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7190
  soname_spec='${libname}${release}${shared_ext}$major'
 
7191
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7192
  shlibpath_var=LD_LIBRARY_PATH
 
7193
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7194
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7195
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7196
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7197
  # libtool to hard-code these into programs
 
7198
  ;;
 
7199
 
 
7200
cygwin* | mingw* | pw32*)
 
7201
  version_type=windows
 
7202
  shrext_cmds=".dll"
 
7203
  need_version=no
 
7204
  need_lib_prefix=no
 
7205
 
 
7206
  case $GCC,$host_os in
 
7207
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7208
    library_names_spec='$libname.dll.a'
 
7209
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7210
    postinstall_cmds='base_file=`basename \${file}`~
 
7211
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7212
      dldir=$destdir/`dirname \$dlpath`~
 
7213
      test -d \$dldir || mkdir -p \$dldir~
 
7214
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7215
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7216
      dlpath=$dir/\$dldll~
 
7217
       $rm \$dlpath'
 
7218
    shlibpath_overrides_runpath=yes
 
7219
 
 
7220
    case $host_os in
 
7221
    cygwin*)
 
7222
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7223
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7224
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7225
      ;;
 
7226
    mingw*)
 
7227
      # MinGW DLLs use traditional 'lib' prefix
 
7228
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7229
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7230
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7231
        # It is most probably a Windows format PATH printed by
 
7232
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7233
        # path with ; separators, and with drive letters. We can handle the
 
7234
        # drive letters (cygwin fileutils understands them), so leave them,
 
7235
        # especially as we might pass files found there to a mingw objdump,
 
7236
        # which wouldn't understand a cygwinified path. Ahh.
 
7237
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7238
      else
 
7239
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7240
      fi
 
7241
      ;;
 
7242
    pw32*)
 
7243
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7244
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7245
      ;;
 
7246
    esac
 
7247
    ;;
 
7248
 
 
7249
  *)
 
7250
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7251
    ;;
 
7252
  esac
 
7253
  dynamic_linker='Win32 ld.exe'
 
7254
  # FIXME: first we should search . and the directory the executable is in
 
7255
  shlibpath_var=PATH
 
7256
  ;;
 
7257
 
 
7258
darwin* | rhapsody*)
 
7259
  dynamic_linker="$host_os dyld"
 
7260
  version_type=darwin
 
7261
  need_lib_prefix=no
 
7262
  need_version=no
 
7263
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7264
  soname_spec='${libname}${release}${major}$shared_ext'
 
7265
  shlibpath_overrides_runpath=yes
 
7266
  shlibpath_var=DYLD_LIBRARY_PATH
 
7267
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7268
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7269
  if test "$GCC" = yes; then
 
7270
    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"`
 
7271
  else
 
7272
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7273
  fi
 
7274
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7275
  ;;
 
7276
 
 
7277
dgux*)
 
7278
  version_type=linux
 
7279
  need_lib_prefix=no
 
7280
  need_version=no
 
7281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7282
  soname_spec='${libname}${release}${shared_ext}$major'
 
7283
  shlibpath_var=LD_LIBRARY_PATH
 
7284
  ;;
 
7285
 
 
7286
freebsd1*)
 
7287
  dynamic_linker=no
 
7288
  ;;
 
7289
 
 
7290
kfreebsd*-gnu)
 
7291
  version_type=linux
 
7292
  need_lib_prefix=no
 
7293
  need_version=no
 
7294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7295
  soname_spec='${libname}${release}${shared_ext}$major'
 
7296
  shlibpath_var=LD_LIBRARY_PATH
 
7297
  shlibpath_overrides_runpath=no
 
7298
  hardcode_into_libs=yes
 
7299
  dynamic_linker='GNU ld.so'
 
7300
  ;;
 
7301
 
 
7302
freebsd*)
 
7303
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7304
  version_type=freebsd-$objformat
 
7305
  case $version_type in
 
7306
    freebsd-elf*)
 
7307
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7308
      need_version=no
 
7309
      need_lib_prefix=no
 
7310
      ;;
 
7311
    freebsd-*)
 
7312
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7313
      need_version=yes
 
7314
      ;;
 
7315
  esac
 
7316
  shlibpath_var=LD_LIBRARY_PATH
 
7317
  case $host_os in
 
7318
  freebsd2*)
 
7319
    shlibpath_overrides_runpath=yes
 
7320
    ;;
 
7321
  freebsd3.01* | freebsdelf3.01*)
 
7322
    shlibpath_overrides_runpath=yes
 
7323
    hardcode_into_libs=yes
 
7324
    ;;
 
7325
  *) # from 3.2 on
 
7326
    shlibpath_overrides_runpath=no
 
7327
    hardcode_into_libs=yes
 
7328
    ;;
 
7329
  esac
 
7330
  ;;
 
7331
 
 
7332
gnu*)
 
7333
  version_type=linux
 
7334
  need_lib_prefix=no
 
7335
  need_version=no
 
7336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7337
  soname_spec='${libname}${release}${shared_ext}$major'
 
7338
  shlibpath_var=LD_LIBRARY_PATH
 
7339
  hardcode_into_libs=yes
 
7340
  ;;
 
7341
 
 
7342
hpux9* | hpux10* | hpux11*)
 
7343
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7344
  # link against other versions.
 
7345
  version_type=sunos
 
7346
  need_lib_prefix=no
 
7347
  need_version=no
 
7348
  case "$host_cpu" in
 
7349
  ia64*)
 
7350
    shrext_cmds='.so'
 
7351
    hardcode_into_libs=yes
 
7352
    dynamic_linker="$host_os dld.so"
 
7353
    shlibpath_var=LD_LIBRARY_PATH
 
7354
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7355
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7356
    soname_spec='${libname}${release}${shared_ext}$major'
 
7357
    if test "X$HPUX_IA64_MODE" = X32; then
 
7358
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7359
    else
 
7360
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7361
    fi
 
7362
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7363
    ;;
 
7364
   hppa*64*)
 
7365
     shrext_cmds='.sl'
 
7366
     hardcode_into_libs=yes
 
7367
     dynamic_linker="$host_os dld.sl"
 
7368
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7369
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7370
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7371
     soname_spec='${libname}${release}${shared_ext}$major'
 
7372
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7373
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7374
     ;;
 
7375
   *)
 
7376
    shrext_cmds='.sl'
 
7377
    dynamic_linker="$host_os dld.sl"
 
7378
    shlibpath_var=SHLIB_PATH
 
7379
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7380
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7381
    soname_spec='${libname}${release}${shared_ext}$major'
 
7382
    ;;
 
7383
  esac
 
7384
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7385
  postinstall_cmds='chmod 555 $lib'
 
7386
  ;;
 
7387
 
 
7388
irix5* | irix6* | nonstopux*)
 
7389
  case $host_os in
 
7390
    nonstopux*) version_type=nonstopux ;;
 
7391
    *)
 
7392
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7393
                version_type=linux
 
7394
        else
 
7395
                version_type=irix
 
7396
        fi ;;
 
7397
  esac
 
7398
  need_lib_prefix=no
 
7399
  need_version=no
 
7400
  soname_spec='${libname}${release}${shared_ext}$major'
 
7401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7402
  case $host_os in
 
7403
  irix5* | nonstopux*)
 
7404
    libsuff= shlibsuff=
 
7405
    ;;
 
7406
  *)
 
7407
    case $LD in # libtool.m4 will add one of these switches to LD
 
7408
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7409
      libsuff= shlibsuff= libmagic=32-bit;;
 
7410
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7411
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7412
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7413
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7414
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7415
    esac
 
7416
    ;;
 
7417
  esac
 
7418
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7419
  shlibpath_overrides_runpath=no
 
7420
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7421
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7422
  hardcode_into_libs=yes
 
7423
  ;;
 
7424
 
 
7425
# No shared lib support for Linux oldld, aout, or coff.
 
7426
linux*oldld* | linux*aout* | linux*coff*)
 
7427
  dynamic_linker=no
 
7428
  ;;
 
7429
 
 
7430
# This must be Linux ELF.
 
7431
linux*)
 
7432
  version_type=linux
 
7433
  need_lib_prefix=no
 
7434
  need_version=no
 
7435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7436
  soname_spec='${libname}${release}${shared_ext}$major'
 
7437
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7438
  shlibpath_var=LD_LIBRARY_PATH
 
7439
  shlibpath_overrides_runpath=no
 
7440
  # This implies no fast_install, which is unacceptable.
 
7441
  # Some rework will be needed to allow for fast_install
 
7442
  # before this can be enabled.
 
7443
  hardcode_into_libs=yes
 
7444
 
 
7445
  # Append ld.so.conf contents to the search path
 
7446
  if test -f /etc/ld.so.conf; then
 
7447
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7448
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7449
  fi
 
7450
 
 
7451
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7452
  # powerpc, because MkLinux only supported shared libraries with the
 
7453
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7454
  # most powerpc-linux boxes support dynamic linking these days and
 
7455
  # people can always --disable-shared, the test was removed, and we
 
7456
  # assume the GNU/Linux dynamic linker is in use.
 
7457
  dynamic_linker='GNU/Linux ld.so'
 
7458
  ;;
 
7459
 
 
7460
netbsdelf*-gnu)
 
7461
  version_type=linux
 
7462
  need_lib_prefix=no
 
7463
  need_version=no
 
7464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7465
  soname_spec='${libname}${release}${shared_ext}$major'
 
7466
  shlibpath_var=LD_LIBRARY_PATH
 
7467
  shlibpath_overrides_runpath=no
 
7468
  hardcode_into_libs=yes
 
7469
  dynamic_linker='NetBSD ld.elf_so'
 
7470
  ;;
 
7471
 
 
7472
knetbsd*-gnu)
 
7473
  version_type=linux
 
7474
  need_lib_prefix=no
 
7475
  need_version=no
 
7476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7477
  soname_spec='${libname}${release}${shared_ext}$major'
 
7478
  shlibpath_var=LD_LIBRARY_PATH
 
7479
  shlibpath_overrides_runpath=no
 
7480
  hardcode_into_libs=yes
 
7481
  dynamic_linker='GNU ld.so'
 
7482
  ;;
 
7483
 
 
7484
netbsd*)
 
7485
  version_type=sunos
 
7486
  need_lib_prefix=no
 
7487
  need_version=no
 
7488
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7489
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7490
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7491
    dynamic_linker='NetBSD (a.out) ld.so'
 
7492
  else
 
7493
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7494
    soname_spec='${libname}${release}${shared_ext}$major'
 
7495
    dynamic_linker='NetBSD ld.elf_so'
 
7496
  fi
 
7497
  shlibpath_var=LD_LIBRARY_PATH
 
7498
  shlibpath_overrides_runpath=yes
 
7499
  hardcode_into_libs=yes
 
7500
  ;;
 
7501
 
 
7502
newsos6)
 
7503
  version_type=linux
 
7504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7505
  shlibpath_var=LD_LIBRARY_PATH
 
7506
  shlibpath_overrides_runpath=yes
 
7507
  ;;
 
7508
 
 
7509
nto-qnx*)
 
7510
  version_type=linux
 
7511
  need_lib_prefix=no
 
7512
  need_version=no
 
7513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7514
  soname_spec='${libname}${release}${shared_ext}$major'
 
7515
  shlibpath_var=LD_LIBRARY_PATH
 
7516
  shlibpath_overrides_runpath=yes
 
7517
  ;;
 
7518
 
 
7519
openbsd*)
 
7520
  version_type=sunos
 
7521
  need_lib_prefix=no
 
7522
  need_version=yes
 
7523
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7524
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7525
  shlibpath_var=LD_LIBRARY_PATH
 
7526
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7527
    case $host_os in
 
7528
      openbsd2.[89] | openbsd2.[89].*)
 
7529
        shlibpath_overrides_runpath=no
 
7530
        ;;
 
7531
      *)
 
7532
        shlibpath_overrides_runpath=yes
 
7533
        ;;
 
7534
      esac
 
7535
  else
 
7536
    shlibpath_overrides_runpath=yes
 
7537
  fi
 
7538
  ;;
 
7539
 
 
7540
os2*)
 
7541
  libname_spec='$name'
 
7542
  shrext_cmds=".dll"
 
7543
  need_lib_prefix=no
 
7544
  library_names_spec='$libname${shared_ext} $libname.a'
 
7545
  dynamic_linker='OS/2 ld.exe'
 
7546
  shlibpath_var=LIBPATH
 
7547
  ;;
 
7548
 
 
7549
osf3* | osf4* | osf5*)
 
7550
  version_type=osf
 
7551
  need_lib_prefix=no
 
7552
  need_version=no
 
7553
  soname_spec='${libname}${release}${shared_ext}$major'
 
7554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7555
  shlibpath_var=LD_LIBRARY_PATH
 
7556
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7557
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7558
  ;;
 
7559
 
 
7560
sco3.2v5*)
 
7561
  version_type=osf
 
7562
  soname_spec='${libname}${release}${shared_ext}$major'
 
7563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7564
  shlibpath_var=LD_LIBRARY_PATH
 
7565
  ;;
 
7566
 
 
7567
solaris*)
 
7568
  version_type=linux
 
7569
  need_lib_prefix=no
 
7570
  need_version=no
 
7571
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7572
  soname_spec='${libname}${release}${shared_ext}$major'
 
7573
  shlibpath_var=LD_LIBRARY_PATH
 
7574
  shlibpath_overrides_runpath=yes
 
7575
  hardcode_into_libs=yes
 
7576
  # ldd complains unless libraries are executable
 
7577
  postinstall_cmds='chmod +x $lib'
 
7578
  ;;
 
7579
 
 
7580
sunos4*)
 
7581
  version_type=sunos
 
7582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7583
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7584
  shlibpath_var=LD_LIBRARY_PATH
 
7585
  shlibpath_overrides_runpath=yes
 
7586
  if test "$with_gnu_ld" = yes; then
 
7587
    need_lib_prefix=no
 
7588
  fi
 
7589
  need_version=yes
 
7590
  ;;
 
7591
 
 
7592
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7593
  version_type=linux
 
7594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7595
  soname_spec='${libname}${release}${shared_ext}$major'
 
7596
  shlibpath_var=LD_LIBRARY_PATH
 
7597
  case $host_vendor in
 
7598
    sni)
 
7599
      shlibpath_overrides_runpath=no
 
7600
      need_lib_prefix=no
 
7601
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7602
      runpath_var=LD_RUN_PATH
 
7603
      ;;
 
7604
    siemens)
 
7605
      need_lib_prefix=no
 
7606
      ;;
 
7607
    motorola)
 
7608
      need_lib_prefix=no
 
7609
      need_version=no
 
7610
      shlibpath_overrides_runpath=no
 
7611
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7612
      ;;
 
7613
  esac
 
7614
  ;;
 
7615
 
 
7616
sysv4*MP*)
 
7617
  if test -d /usr/nec ;then
 
7618
    version_type=linux
 
7619
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7620
    soname_spec='$libname${shared_ext}.$major'
 
7621
    shlibpath_var=LD_LIBRARY_PATH
 
7622
  fi
 
7623
  ;;
 
7624
 
 
7625
uts4*)
 
7626
  version_type=linux
 
7627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7628
  soname_spec='${libname}${release}${shared_ext}$major'
 
7629
  shlibpath_var=LD_LIBRARY_PATH
 
7630
  ;;
 
7631
 
 
7632
*)
 
7633
  dynamic_linker=no
 
7634
  ;;
 
7635
esac
 
7636
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7637
echo "${ECHO_T}$dynamic_linker" >&6
 
7638
test "$dynamic_linker" = no && can_build_shared=no
 
7639
 
 
7640
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
7642
hardcode_action=
 
7643
if test -n "$hardcode_libdir_flag_spec" || \
 
7644
   test -n "$runpath_var " || \
 
7645
   test "X$hardcode_automatic"="Xyes" ; then
 
7646
 
 
7647
  # We can hardcode non-existant directories.
 
7648
  if test "$hardcode_direct" != no &&
 
7649
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
7650
     # have to relink, otherwise we might link with an installed library
 
7651
     # when we should be linking with a yet-to-be-installed one
 
7652
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
7653
     test "$hardcode_minus_L" != no; then
 
7654
    # Linking always hardcodes the temporary library directory.
 
7655
    hardcode_action=relink
 
7656
  else
 
7657
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
7658
    hardcode_action=immediate
 
7659
  fi
 
7660
else
 
7661
  # We cannot hardcode anything, or else we can only hardcode existing
 
7662
  # directories.
 
7663
  hardcode_action=unsupported
 
7664
fi
 
7665
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7666
echo "${ECHO_T}$hardcode_action" >&6
 
7667
 
 
7668
if test "$hardcode_action" = relink; then
 
7669
  # Fast installation is not supported
 
7670
  enable_fast_install=no
 
7671
elif test "$shlibpath_overrides_runpath" = yes ||
 
7672
     test "$enable_shared" = no; then
 
7673
  # Fast installation is not necessary
 
7674
  enable_fast_install=needless
 
7675
fi
 
7676
 
 
7677
striplib=
 
7678
old_striplib=
 
7679
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7680
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7681
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7682
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7683
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7684
  echo "$as_me:$LINENO: result: yes" >&5
 
7685
echo "${ECHO_T}yes" >&6
 
7686
else
 
7687
# FIXME - insert some real tests, host_os isn't really good enough
 
7688
  case $host_os in
 
7689
   darwin*)
 
7690
       if test -n "$STRIP" ; then
 
7691
         striplib="$STRIP -x"
 
7692
         echo "$as_me:$LINENO: result: yes" >&5
 
7693
echo "${ECHO_T}yes" >&6
 
7694
       else
 
7695
  echo "$as_me:$LINENO: result: no" >&5
 
7696
echo "${ECHO_T}no" >&6
 
7697
fi
 
7698
       ;;
 
7699
   *)
 
7700
  echo "$as_me:$LINENO: result: no" >&5
 
7701
echo "${ECHO_T}no" >&6
 
7702
    ;;
 
7703
  esac
 
7704
fi
 
7705
 
 
7706
if test "x$enable_dlopen" != xyes; then
 
7707
  enable_dlopen=unknown
 
7708
  enable_dlopen_self=unknown
 
7709
  enable_dlopen_self_static=unknown
 
7710
else
 
7711
  lt_cv_dlopen=no
 
7712
  lt_cv_dlopen_libs=
 
7713
 
 
7714
  case $host_os in
 
7715
  beos*)
 
7716
    lt_cv_dlopen="load_add_on"
 
7717
    lt_cv_dlopen_libs=
 
7718
    lt_cv_dlopen_self=yes
 
7719
    ;;
 
7720
 
 
7721
  mingw* | pw32*)
 
7722
    lt_cv_dlopen="LoadLibrary"
 
7723
    lt_cv_dlopen_libs=
 
7724
   ;;
 
7725
 
 
7726
  cygwin*)
 
7727
    lt_cv_dlopen="dlopen"
 
7728
    lt_cv_dlopen_libs=
 
7729
   ;;
 
7730
 
 
7731
  darwin*)
 
7732
  # if libdl is installed we need to link against it
 
7733
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7734
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7735
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7737
else
 
7738
  ac_check_lib_save_LIBS=$LIBS
 
7739
LIBS="-ldl  $LIBS"
 
7740
cat >conftest.$ac_ext <<_ACEOF
 
7741
/* confdefs.h.  */
 
7742
_ACEOF
 
7743
cat confdefs.h >>conftest.$ac_ext
 
7744
cat >>conftest.$ac_ext <<_ACEOF
 
7745
/* end confdefs.h.  */
 
7746
 
 
7747
/* Override any gcc2 internal prototype to avoid an error.  */
 
7748
#ifdef __cplusplus
 
7749
extern "C"
 
7750
#endif
 
7751
/* We use char because int might match the return type of a gcc2
 
7752
   builtin and then its argument prototype would still apply.  */
 
7753
char dlopen ();
 
7754
int
 
7755
main ()
 
7756
{
 
7757
dlopen ();
 
7758
  ;
 
7759
  return 0;
 
7760
}
 
7761
_ACEOF
 
7762
rm -f conftest.$ac_objext conftest$ac_exeext
 
7763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7764
  (eval $ac_link) 2>conftest.er1
 
7765
  ac_status=$?
 
7766
  grep -v '^ *+' conftest.er1 >conftest.err
 
7767
  rm -f conftest.er1
 
7768
  cat conftest.err >&5
 
7769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7770
  (exit $ac_status); } &&
 
7771
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7773
  (eval $ac_try) 2>&5
 
7774
  ac_status=$?
 
7775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7776
  (exit $ac_status); }; } &&
 
7777
         { ac_try='test -s conftest$ac_exeext'
 
7778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7779
  (eval $ac_try) 2>&5
 
7780
  ac_status=$?
 
7781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7782
  (exit $ac_status); }; }; then
 
7783
  ac_cv_lib_dl_dlopen=yes
 
7784
else
 
7785
  echo "$as_me: failed program was:" >&5
 
7786
sed 's/^/| /' conftest.$ac_ext >&5
 
7787
 
 
7788
ac_cv_lib_dl_dlopen=no
 
7789
fi
 
7790
rm -f conftest.err conftest.$ac_objext \
 
7791
      conftest$ac_exeext conftest.$ac_ext
 
7792
LIBS=$ac_check_lib_save_LIBS
 
7793
fi
 
7794
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7795
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7796
if test $ac_cv_lib_dl_dlopen = yes; then
 
7797
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7798
else
 
7799
 
 
7800
    lt_cv_dlopen="dyld"
 
7801
    lt_cv_dlopen_libs=
 
7802
    lt_cv_dlopen_self=yes
 
7803
 
 
7804
fi
 
7805
 
 
7806
   ;;
 
7807
 
 
7808
  *)
 
7809
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7810
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7811
if test "${ac_cv_func_shl_load+set}" = set; then
 
7812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7813
else
 
7814
  cat >conftest.$ac_ext <<_ACEOF
 
7815
/* confdefs.h.  */
 
7816
_ACEOF
 
7817
cat confdefs.h >>conftest.$ac_ext
 
7818
cat >>conftest.$ac_ext <<_ACEOF
 
7819
/* end confdefs.h.  */
 
7820
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
7821
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7822
#define shl_load innocuous_shl_load
 
7823
 
 
7824
/* System header to define __stub macros and hopefully few prototypes,
 
7825
    which can conflict with char shl_load (); below.
 
7826
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7827
    <limits.h> exists even on freestanding compilers.  */
 
7828
 
 
7829
#ifdef __STDC__
 
7830
# include <limits.h>
 
7831
#else
 
7832
# include <assert.h>
 
7833
#endif
 
7834
 
 
7835
#undef shl_load
 
7836
 
 
7837
/* Override any gcc2 internal prototype to avoid an error.  */
 
7838
#ifdef __cplusplus
 
7839
extern "C"
 
7840
{
 
7841
#endif
 
7842
/* We use char because int might match the return type of a gcc2
 
7843
   builtin and then its argument prototype would still apply.  */
 
7844
char shl_load ();
 
7845
/* The GNU C library defines this for functions which it implements
 
7846
    to always fail with ENOSYS.  Some functions are actually named
 
7847
    something starting with __ and the normal name is an alias.  */
 
7848
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7849
choke me
 
7850
#else
 
7851
char (*f) () = shl_load;
 
7852
#endif
 
7853
#ifdef __cplusplus
 
7854
}
 
7855
#endif
 
7856
 
 
7857
int
 
7858
main ()
 
7859
{
 
7860
return f != shl_load;
 
7861
  ;
 
7862
  return 0;
 
7863
}
 
7864
_ACEOF
 
7865
rm -f conftest.$ac_objext conftest$ac_exeext
 
7866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7867
  (eval $ac_link) 2>conftest.er1
 
7868
  ac_status=$?
 
7869
  grep -v '^ *+' conftest.er1 >conftest.err
 
7870
  rm -f conftest.er1
 
7871
  cat conftest.err >&5
 
7872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7873
  (exit $ac_status); } &&
 
7874
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7876
  (eval $ac_try) 2>&5
 
7877
  ac_status=$?
 
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7879
  (exit $ac_status); }; } &&
 
7880
         { ac_try='test -s conftest$ac_exeext'
 
7881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7882
  (eval $ac_try) 2>&5
 
7883
  ac_status=$?
 
7884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7885
  (exit $ac_status); }; }; then
 
7886
  ac_cv_func_shl_load=yes
 
7887
else
 
7888
  echo "$as_me: failed program was:" >&5
 
7889
sed 's/^/| /' conftest.$ac_ext >&5
 
7890
 
 
7891
ac_cv_func_shl_load=no
 
7892
fi
 
7893
rm -f conftest.err conftest.$ac_objext \
 
7894
      conftest$ac_exeext conftest.$ac_ext
 
7895
fi
 
7896
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7897
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7898
if test $ac_cv_func_shl_load = yes; then
 
7899
  lt_cv_dlopen="shl_load"
 
7900
else
 
7901
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7902
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7903
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7905
else
 
7906
  ac_check_lib_save_LIBS=$LIBS
 
7907
LIBS="-ldld  $LIBS"
 
7908
cat >conftest.$ac_ext <<_ACEOF
 
7909
/* confdefs.h.  */
 
7910
_ACEOF
 
7911
cat confdefs.h >>conftest.$ac_ext
 
7912
cat >>conftest.$ac_ext <<_ACEOF
 
7913
/* end confdefs.h.  */
 
7914
 
 
7915
/* Override any gcc2 internal prototype to avoid an error.  */
 
7916
#ifdef __cplusplus
 
7917
extern "C"
 
7918
#endif
 
7919
/* We use char because int might match the return type of a gcc2
 
7920
   builtin and then its argument prototype would still apply.  */
 
7921
char shl_load ();
 
7922
int
 
7923
main ()
 
7924
{
 
7925
shl_load ();
 
7926
  ;
 
7927
  return 0;
 
7928
}
 
7929
_ACEOF
 
7930
rm -f conftest.$ac_objext conftest$ac_exeext
 
7931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7932
  (eval $ac_link) 2>conftest.er1
 
7933
  ac_status=$?
 
7934
  grep -v '^ *+' conftest.er1 >conftest.err
 
7935
  rm -f conftest.er1
 
7936
  cat conftest.err >&5
 
7937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7938
  (exit $ac_status); } &&
 
7939
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7941
  (eval $ac_try) 2>&5
 
7942
  ac_status=$?
 
7943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7944
  (exit $ac_status); }; } &&
 
7945
         { ac_try='test -s conftest$ac_exeext'
 
7946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7947
  (eval $ac_try) 2>&5
 
7948
  ac_status=$?
 
7949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7950
  (exit $ac_status); }; }; then
 
7951
  ac_cv_lib_dld_shl_load=yes
 
7952
else
 
7953
  echo "$as_me: failed program was:" >&5
 
7954
sed 's/^/| /' conftest.$ac_ext >&5
 
7955
 
 
7956
ac_cv_lib_dld_shl_load=no
 
7957
fi
 
7958
rm -f conftest.err conftest.$ac_objext \
 
7959
      conftest$ac_exeext conftest.$ac_ext
 
7960
LIBS=$ac_check_lib_save_LIBS
 
7961
fi
 
7962
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7963
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7964
if test $ac_cv_lib_dld_shl_load = yes; then
 
7965
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
7966
else
 
7967
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7968
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7969
if test "${ac_cv_func_dlopen+set}" = set; then
 
7970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7971
else
 
7972
  cat >conftest.$ac_ext <<_ACEOF
 
7973
/* confdefs.h.  */
 
7974
_ACEOF
 
7975
cat confdefs.h >>conftest.$ac_ext
 
7976
cat >>conftest.$ac_ext <<_ACEOF
 
7977
/* end confdefs.h.  */
 
7978
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
7979
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7980
#define dlopen innocuous_dlopen
 
7981
 
 
7982
/* System header to define __stub macros and hopefully few prototypes,
 
7983
    which can conflict with char dlopen (); below.
 
7984
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7985
    <limits.h> exists even on freestanding compilers.  */
 
7986
 
 
7987
#ifdef __STDC__
 
7988
# include <limits.h>
 
7989
#else
 
7990
# include <assert.h>
 
7991
#endif
 
7992
 
 
7993
#undef dlopen
 
7994
 
 
7995
/* Override any gcc2 internal prototype to avoid an error.  */
 
7996
#ifdef __cplusplus
 
7997
extern "C"
 
7998
{
 
7999
#endif
 
8000
/* We use char because int might match the return type of a gcc2
 
8001
   builtin and then its argument prototype would still apply.  */
 
8002
char dlopen ();
 
8003
/* The GNU C library defines this for functions which it implements
 
8004
    to always fail with ENOSYS.  Some functions are actually named
 
8005
    something starting with __ and the normal name is an alias.  */
 
8006
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8007
choke me
 
8008
#else
 
8009
char (*f) () = dlopen;
 
8010
#endif
 
8011
#ifdef __cplusplus
 
8012
}
 
8013
#endif
 
8014
 
 
8015
int
 
8016
main ()
 
8017
{
 
8018
return f != dlopen;
 
8019
  ;
 
8020
  return 0;
 
8021
}
 
8022
_ACEOF
 
8023
rm -f conftest.$ac_objext conftest$ac_exeext
 
8024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8025
  (eval $ac_link) 2>conftest.er1
 
8026
  ac_status=$?
 
8027
  grep -v '^ *+' conftest.er1 >conftest.err
 
8028
  rm -f conftest.er1
 
8029
  cat conftest.err >&5
 
8030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8031
  (exit $ac_status); } &&
 
8032
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8034
  (eval $ac_try) 2>&5
 
8035
  ac_status=$?
 
8036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8037
  (exit $ac_status); }; } &&
 
8038
         { ac_try='test -s conftest$ac_exeext'
 
8039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8040
  (eval $ac_try) 2>&5
 
8041
  ac_status=$?
 
8042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8043
  (exit $ac_status); }; }; then
 
8044
  ac_cv_func_dlopen=yes
 
8045
else
 
8046
  echo "$as_me: failed program was:" >&5
 
8047
sed 's/^/| /' conftest.$ac_ext >&5
 
8048
 
 
8049
ac_cv_func_dlopen=no
 
8050
fi
 
8051
rm -f conftest.err conftest.$ac_objext \
 
8052
      conftest$ac_exeext conftest.$ac_ext
 
8053
fi
 
8054
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8055
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8056
if test $ac_cv_func_dlopen = yes; then
 
8057
  lt_cv_dlopen="dlopen"
 
8058
else
 
8059
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8060
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8061
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8063
else
 
8064
  ac_check_lib_save_LIBS=$LIBS
 
8065
LIBS="-ldl  $LIBS"
 
8066
cat >conftest.$ac_ext <<_ACEOF
 
8067
/* confdefs.h.  */
 
8068
_ACEOF
 
8069
cat confdefs.h >>conftest.$ac_ext
 
8070
cat >>conftest.$ac_ext <<_ACEOF
 
8071
/* end confdefs.h.  */
 
8072
 
 
8073
/* Override any gcc2 internal prototype to avoid an error.  */
 
8074
#ifdef __cplusplus
 
8075
extern "C"
 
8076
#endif
 
8077
/* We use char because int might match the return type of a gcc2
 
8078
   builtin and then its argument prototype would still apply.  */
 
8079
char dlopen ();
 
8080
int
 
8081
main ()
 
8082
{
 
8083
dlopen ();
 
8084
  ;
 
8085
  return 0;
 
8086
}
 
8087
_ACEOF
 
8088
rm -f conftest.$ac_objext conftest$ac_exeext
 
8089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8090
  (eval $ac_link) 2>conftest.er1
 
8091
  ac_status=$?
 
8092
  grep -v '^ *+' conftest.er1 >conftest.err
 
8093
  rm -f conftest.er1
 
8094
  cat conftest.err >&5
 
8095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8096
  (exit $ac_status); } &&
 
8097
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8099
  (eval $ac_try) 2>&5
 
8100
  ac_status=$?
 
8101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8102
  (exit $ac_status); }; } &&
 
8103
         { ac_try='test -s conftest$ac_exeext'
 
8104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8105
  (eval $ac_try) 2>&5
 
8106
  ac_status=$?
 
8107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8108
  (exit $ac_status); }; }; then
 
8109
  ac_cv_lib_dl_dlopen=yes
 
8110
else
 
8111
  echo "$as_me: failed program was:" >&5
 
8112
sed 's/^/| /' conftest.$ac_ext >&5
 
8113
 
 
8114
ac_cv_lib_dl_dlopen=no
 
8115
fi
 
8116
rm -f conftest.err conftest.$ac_objext \
 
8117
      conftest$ac_exeext conftest.$ac_ext
 
8118
LIBS=$ac_check_lib_save_LIBS
 
8119
fi
 
8120
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8121
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8122
if test $ac_cv_lib_dl_dlopen = yes; then
 
8123
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8124
else
 
8125
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8126
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8127
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8129
else
 
8130
  ac_check_lib_save_LIBS=$LIBS
 
8131
LIBS="-lsvld  $LIBS"
 
8132
cat >conftest.$ac_ext <<_ACEOF
 
8133
/* confdefs.h.  */
 
8134
_ACEOF
 
8135
cat confdefs.h >>conftest.$ac_ext
 
8136
cat >>conftest.$ac_ext <<_ACEOF
 
8137
/* end confdefs.h.  */
 
8138
 
 
8139
/* Override any gcc2 internal prototype to avoid an error.  */
 
8140
#ifdef __cplusplus
 
8141
extern "C"
 
8142
#endif
 
8143
/* We use char because int might match the return type of a gcc2
 
8144
   builtin and then its argument prototype would still apply.  */
 
8145
char dlopen ();
 
8146
int
 
8147
main ()
 
8148
{
 
8149
dlopen ();
 
8150
  ;
 
8151
  return 0;
 
8152
}
 
8153
_ACEOF
 
8154
rm -f conftest.$ac_objext conftest$ac_exeext
 
8155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8156
  (eval $ac_link) 2>conftest.er1
 
8157
  ac_status=$?
 
8158
  grep -v '^ *+' conftest.er1 >conftest.err
 
8159
  rm -f conftest.er1
 
8160
  cat conftest.err >&5
 
8161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8162
  (exit $ac_status); } &&
 
8163
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8165
  (eval $ac_try) 2>&5
 
8166
  ac_status=$?
 
8167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8168
  (exit $ac_status); }; } &&
 
8169
         { ac_try='test -s conftest$ac_exeext'
 
8170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8171
  (eval $ac_try) 2>&5
 
8172
  ac_status=$?
 
8173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8174
  (exit $ac_status); }; }; then
 
8175
  ac_cv_lib_svld_dlopen=yes
 
8176
else
 
8177
  echo "$as_me: failed program was:" >&5
 
8178
sed 's/^/| /' conftest.$ac_ext >&5
 
8179
 
 
8180
ac_cv_lib_svld_dlopen=no
 
8181
fi
 
8182
rm -f conftest.err conftest.$ac_objext \
 
8183
      conftest$ac_exeext conftest.$ac_ext
 
8184
LIBS=$ac_check_lib_save_LIBS
 
8185
fi
 
8186
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8187
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8188
if test $ac_cv_lib_svld_dlopen = yes; then
 
8189
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8190
else
 
8191
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8192
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8193
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8195
else
 
8196
  ac_check_lib_save_LIBS=$LIBS
 
8197
LIBS="-ldld  $LIBS"
 
8198
cat >conftest.$ac_ext <<_ACEOF
 
8199
/* confdefs.h.  */
 
8200
_ACEOF
 
8201
cat confdefs.h >>conftest.$ac_ext
 
8202
cat >>conftest.$ac_ext <<_ACEOF
 
8203
/* end confdefs.h.  */
 
8204
 
 
8205
/* Override any gcc2 internal prototype to avoid an error.  */
 
8206
#ifdef __cplusplus
 
8207
extern "C"
 
8208
#endif
 
8209
/* We use char because int might match the return type of a gcc2
 
8210
   builtin and then its argument prototype would still apply.  */
 
8211
char dld_link ();
 
8212
int
 
8213
main ()
 
8214
{
 
8215
dld_link ();
 
8216
  ;
 
8217
  return 0;
 
8218
}
 
8219
_ACEOF
 
8220
rm -f conftest.$ac_objext conftest$ac_exeext
 
8221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8222
  (eval $ac_link) 2>conftest.er1
 
8223
  ac_status=$?
 
8224
  grep -v '^ *+' conftest.er1 >conftest.err
 
8225
  rm -f conftest.er1
 
8226
  cat conftest.err >&5
 
8227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8228
  (exit $ac_status); } &&
 
8229
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8231
  (eval $ac_try) 2>&5
 
8232
  ac_status=$?
 
8233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8234
  (exit $ac_status); }; } &&
 
8235
         { ac_try='test -s conftest$ac_exeext'
 
8236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8237
  (eval $ac_try) 2>&5
 
8238
  ac_status=$?
 
8239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8240
  (exit $ac_status); }; }; then
 
8241
  ac_cv_lib_dld_dld_link=yes
 
8242
else
 
8243
  echo "$as_me: failed program was:" >&5
 
8244
sed 's/^/| /' conftest.$ac_ext >&5
 
8245
 
 
8246
ac_cv_lib_dld_dld_link=no
 
8247
fi
 
8248
rm -f conftest.err conftest.$ac_objext \
 
8249
      conftest$ac_exeext conftest.$ac_ext
 
8250
LIBS=$ac_check_lib_save_LIBS
 
8251
fi
 
8252
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8253
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8254
if test $ac_cv_lib_dld_dld_link = yes; then
 
8255
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8256
fi
 
8257
 
 
8258
 
 
8259
fi
 
8260
 
 
8261
 
 
8262
fi
 
8263
 
 
8264
 
 
8265
fi
 
8266
 
 
8267
 
 
8268
fi
 
8269
 
 
8270
 
 
8271
fi
 
8272
 
 
8273
    ;;
 
8274
  esac
 
8275
 
 
8276
  if test "x$lt_cv_dlopen" != xno; then
 
8277
    enable_dlopen=yes
 
8278
  else
 
8279
    enable_dlopen=no
 
8280
  fi
 
8281
 
 
8282
  case $lt_cv_dlopen in
 
8283
  dlopen)
 
8284
    save_CPPFLAGS="$CPPFLAGS"
 
8285
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8286
 
 
8287
    save_LDFLAGS="$LDFLAGS"
 
8288
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8289
 
 
8290
    save_LIBS="$LIBS"
 
8291
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8292
 
 
8293
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8294
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8295
if test "${lt_cv_dlopen_self+set}" = set; then
 
8296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8297
else
 
8298
          if test "$cross_compiling" = yes; then :
 
8299
  lt_cv_dlopen_self=cross
 
8300
else
 
8301
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8302
  lt_status=$lt_dlunknown
 
8303
  cat > conftest.$ac_ext <<EOF
 
8304
#line 8304 "configure"
 
8305
#include "confdefs.h"
 
8306
 
 
8307
#if HAVE_DLFCN_H
 
8308
#include <dlfcn.h>
 
8309
#endif
 
8310
 
 
8311
#include <stdio.h>
 
8312
 
 
8313
#ifdef RTLD_GLOBAL
 
8314
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8315
#else
 
8316
#  ifdef DL_GLOBAL
 
8317
#    define LT_DLGLOBAL         DL_GLOBAL
 
8318
#  else
 
8319
#    define LT_DLGLOBAL         0
 
8320
#  endif
 
8321
#endif
 
8322
 
 
8323
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8324
   find out it does not work in some platform. */
 
8325
#ifndef LT_DLLAZY_OR_NOW
 
8326
#  ifdef RTLD_LAZY
 
8327
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8328
#  else
 
8329
#    ifdef DL_LAZY
 
8330
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8331
#    else
 
8332
#      ifdef RTLD_NOW
 
8333
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8334
#      else
 
8335
#        ifdef DL_NOW
 
8336
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8337
#        else
 
8338
#          define LT_DLLAZY_OR_NOW      0
 
8339
#        endif
 
8340
#      endif
 
8341
#    endif
 
8342
#  endif
 
8343
#endif
 
8344
 
 
8345
#ifdef __cplusplus
 
8346
extern "C" void exit (int);
 
8347
#endif
 
8348
 
 
8349
void fnord() { int i=42;}
 
8350
int main ()
 
8351
{
 
8352
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8353
  int status = $lt_dlunknown;
 
8354
 
 
8355
  if (self)
 
8356
    {
 
8357
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8358
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8359
      /* dlclose (self); */
 
8360
    }
 
8361
 
 
8362
    exit (status);
 
8363
}
 
8364
EOF
 
8365
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8366
  (eval $ac_link) 2>&5
 
8367
  ac_status=$?
 
8368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8369
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8370
    (./conftest; exit; ) 2>/dev/null
 
8371
    lt_status=$?
 
8372
    case x$lt_status in
 
8373
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8374
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8375
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8376
    esac
 
8377
  else :
 
8378
    # compilation failed
 
8379
    lt_cv_dlopen_self=no
 
8380
  fi
 
8381
fi
 
8382
rm -fr conftest*
 
8383
 
 
8384
 
 
8385
fi
 
8386
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8387
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8388
 
 
8389
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8390
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8391
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8392
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8393
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8395
else
 
8396
          if test "$cross_compiling" = yes; then :
 
8397
  lt_cv_dlopen_self_static=cross
 
8398
else
 
8399
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8400
  lt_status=$lt_dlunknown
 
8401
  cat > conftest.$ac_ext <<EOF
 
8402
#line 8402 "configure"
 
8403
#include "confdefs.h"
 
8404
 
 
8405
#if HAVE_DLFCN_H
 
8406
#include <dlfcn.h>
 
8407
#endif
 
8408
 
 
8409
#include <stdio.h>
 
8410
 
 
8411
#ifdef RTLD_GLOBAL
 
8412
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8413
#else
 
8414
#  ifdef DL_GLOBAL
 
8415
#    define LT_DLGLOBAL         DL_GLOBAL
 
8416
#  else
 
8417
#    define LT_DLGLOBAL         0
 
8418
#  endif
 
8419
#endif
 
8420
 
 
8421
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8422
   find out it does not work in some platform. */
 
8423
#ifndef LT_DLLAZY_OR_NOW
 
8424
#  ifdef RTLD_LAZY
 
8425
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8426
#  else
 
8427
#    ifdef DL_LAZY
 
8428
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8429
#    else
 
8430
#      ifdef RTLD_NOW
 
8431
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8432
#      else
 
8433
#        ifdef DL_NOW
 
8434
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8435
#        else
 
8436
#          define LT_DLLAZY_OR_NOW      0
 
8437
#        endif
 
8438
#      endif
 
8439
#    endif
 
8440
#  endif
 
8441
#endif
 
8442
 
 
8443
#ifdef __cplusplus
 
8444
extern "C" void exit (int);
 
8445
#endif
 
8446
 
 
8447
void fnord() { int i=42;}
 
8448
int main ()
 
8449
{
 
8450
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8451
  int status = $lt_dlunknown;
 
8452
 
 
8453
  if (self)
 
8454
    {
 
8455
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8456
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8457
      /* dlclose (self); */
 
8458
    }
 
8459
 
 
8460
    exit (status);
 
8461
}
 
8462
EOF
 
8463
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8464
  (eval $ac_link) 2>&5
 
8465
  ac_status=$?
 
8466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8467
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8468
    (./conftest; exit; ) 2>/dev/null
 
8469
    lt_status=$?
 
8470
    case x$lt_status in
 
8471
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8472
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8473
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8474
    esac
 
8475
  else :
 
8476
    # compilation failed
 
8477
    lt_cv_dlopen_self_static=no
 
8478
  fi
 
8479
fi
 
8480
rm -fr conftest*
 
8481
 
 
8482
 
 
8483
fi
 
8484
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8485
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8486
    fi
 
8487
 
 
8488
    CPPFLAGS="$save_CPPFLAGS"
 
8489
    LDFLAGS="$save_LDFLAGS"
 
8490
    LIBS="$save_LIBS"
 
8491
    ;;
 
8492
  esac
 
8493
 
 
8494
  case $lt_cv_dlopen_self in
 
8495
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8496
  *) enable_dlopen_self=unknown ;;
 
8497
  esac
 
8498
 
 
8499
  case $lt_cv_dlopen_self_static in
 
8500
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8501
  *) enable_dlopen_self_static=unknown ;;
 
8502
  esac
 
8503
fi
 
8504
 
 
8505
 
 
8506
# Report which librarie types wil actually be built
 
8507
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8508
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8509
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8510
echo "${ECHO_T}$can_build_shared" >&6
 
8511
 
 
8512
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8513
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8514
test "$can_build_shared" = "no" && enable_shared=no
 
8515
 
 
8516
# On AIX, shared libraries and static libraries use the same namespace, and
 
8517
# are all built from PIC.
 
8518
case "$host_os" in
 
8519
aix3*)
 
8520
  test "$enable_shared" = yes && enable_static=no
 
8521
  if test -n "$RANLIB"; then
 
8522
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8523
    postinstall_cmds='$RANLIB $lib'
 
8524
  fi
 
8525
  ;;
 
8526
 
 
8527
aix4* | aix5*)
 
8528
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8529
    test "$enable_shared" = yes && enable_static=no
 
8530
  fi
 
8531
  ;;
 
8532
  darwin* | rhapsody*)
 
8533
  if test "$GCC" = yes; then
 
8534
    archive_cmds_need_lc=no
 
8535
    case "$host_os" in
 
8536
    rhapsody* | darwin1.[012])
 
8537
      allow_undefined_flag='-undefined suppress'
 
8538
      ;;
 
8539
    *) # Darwin 1.3 on
 
8540
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8541
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
8542
      else
 
8543
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8544
          10.[012])
 
8545
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8546
            ;;
 
8547
          10.*)
 
8548
            allow_undefined_flag='-undefined dynamic_lookup'
 
8549
            ;;
 
8550
        esac
 
8551
      fi
 
8552
      ;;
 
8553
    esac
 
8554
    output_verbose_link_cmd='echo'
 
8555
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
8556
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8557
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8558
    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}'
 
8559
    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}'
 
8560
    hardcode_direct=no
 
8561
    hardcode_automatic=yes
 
8562
    hardcode_shlibpath_var=unsupported
 
8563
    whole_archive_flag_spec='-all_load $convenience'
 
8564
    link_all_deplibs=yes
 
8565
  else
 
8566
    ld_shlibs=no
 
8567
  fi
 
8568
    ;;
 
8569
esac
 
8570
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8571
echo "${ECHO_T}$enable_shared" >&6
 
8572
 
 
8573
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8574
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8575
# Make sure either enable_shared or enable_static is yes.
 
8576
test "$enable_shared" = yes || enable_static=yes
 
8577
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8578
echo "${ECHO_T}$enable_static" >&6
 
8579
 
 
8580
# The else clause should only fire when bootstrapping the
 
8581
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
8582
# with your package, and you will get complaints that there are
 
8583
# no rules to generate ltmain.sh.
 
8584
if test -f "$ltmain"; then
 
8585
  # See if we are running on zsh, and set the options which allow our commands through
 
8586
  # without removal of \ escapes.
 
8587
  if test -n "${ZSH_VERSION+set}" ; then
 
8588
    setopt NO_GLOB_SUBST
 
8589
  fi
 
8590
  # Now quote all the things that may contain metacharacters while being
 
8591
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
8592
  # variables and quote the copies for generation of the libtool script.
 
8593
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
8594
    SED SHELL STRIP \
 
8595
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8596
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8597
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8598
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8599
    lt_cv_sys_global_symbol_to_c_name_address \
 
8600
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
8601
    old_postinstall_cmds old_postuninstall_cmds \
 
8602
    compiler \
 
8603
    CC \
 
8604
    LD \
 
8605
    lt_prog_compiler_wl \
 
8606
    lt_prog_compiler_pic \
 
8607
    lt_prog_compiler_static \
 
8608
    lt_prog_compiler_no_builtin_flag \
 
8609
    export_dynamic_flag_spec \
 
8610
    thread_safe_flag_spec \
 
8611
    whole_archive_flag_spec \
 
8612
    enable_shared_with_static_runtimes \
 
8613
    old_archive_cmds \
 
8614
    old_archive_from_new_cmds \
 
8615
    predep_objects \
 
8616
    postdep_objects \
 
8617
    predeps \
 
8618
    postdeps \
 
8619
    compiler_lib_search_path \
 
8620
    archive_cmds \
 
8621
    archive_expsym_cmds \
 
8622
    postinstall_cmds \
 
8623
    postuninstall_cmds \
 
8624
    old_archive_from_expsyms_cmds \
 
8625
    allow_undefined_flag \
 
8626
    no_undefined_flag \
 
8627
    export_symbols_cmds \
 
8628
    hardcode_libdir_flag_spec \
 
8629
    hardcode_libdir_flag_spec_ld \
 
8630
    hardcode_libdir_separator \
 
8631
    hardcode_automatic \
 
8632
    module_cmds \
 
8633
    module_expsym_cmds \
 
8634
    lt_cv_prog_compiler_c_o \
 
8635
    exclude_expsyms \
 
8636
    include_expsyms; do
 
8637
 
 
8638
    case $var in
 
8639
    old_archive_cmds | \
 
8640
    old_archive_from_new_cmds | \
 
8641
    archive_cmds | \
 
8642
    archive_expsym_cmds | \
 
8643
    module_cmds | \
 
8644
    module_expsym_cmds | \
 
8645
    old_archive_from_expsyms_cmds | \
 
8646
    export_symbols_cmds | \
 
8647
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8648
    postinstall_cmds | postuninstall_cmds | \
 
8649
    old_postinstall_cmds | old_postuninstall_cmds | \
 
8650
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8651
      # Double-quote double-evaled strings.
 
8652
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
8653
      ;;
 
8654
    *)
 
8655
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
8656
      ;;
 
8657
    esac
 
8658
  done
 
8659
 
 
8660
  case $lt_echo in
 
8661
  *'\$0 --fallback-echo"')
 
8662
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8663
    ;;
 
8664
  esac
 
8665
 
 
8666
cfgfile="${ofile}T"
 
8667
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8668
  $rm -f "$cfgfile"
 
8669
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8670
echo "$as_me: creating $ofile" >&6;}
 
8671
 
 
8672
  cat <<__EOF__ >> "$cfgfile"
 
8673
#! $SHELL
 
8674
 
 
8675
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8676
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
8677
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
8678
#
 
8679
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8680
# Free Software Foundation, Inc.
 
8681
#
 
8682
# This file is part of GNU Libtool:
 
8683
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
8684
#
 
8685
# This program is free software; you can redistribute it and/or modify
 
8686
# it under the terms of the GNU General Public License as published by
 
8687
# the Free Software Foundation; either version 2 of the License, or
 
8688
# (at your option) any later version.
 
8689
#
 
8690
# This program is distributed in the hope that it will be useful, but
 
8691
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8692
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
8693
# General Public License for more details.
 
8694
#
 
8695
# You should have received a copy of the GNU General Public License
 
8696
# along with this program; if not, write to the Free Software
 
8697
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8698
#
 
8699
# As a special exception to the GNU General Public License, if you
 
8700
# distribute this file as part of a program that contains a
 
8701
# configuration script generated by Autoconf, you may include it under
 
8702
# the same distribution terms that you use for the rest of that program.
 
8703
 
 
8704
# A sed program that does not truncate output.
 
8705
SED=$lt_SED
 
8706
 
 
8707
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
8708
Xsed="$SED -e s/^X//"
 
8709
 
 
8710
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
8711
# if CDPATH is set.
 
8712
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8713
 
 
8714
# The names of the tagged configurations supported by this script.
 
8715
available_tags=
 
8716
 
 
8717
# ### BEGIN LIBTOOL CONFIG
 
8718
 
 
8719
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
8720
 
 
8721
# Shell to use when invoking shell scripts.
 
8722
SHELL=$lt_SHELL
 
8723
 
 
8724
# Whether or not to build shared libraries.
 
8725
build_libtool_libs=$enable_shared
 
8726
 
 
8727
# Whether or not to build static libraries.
 
8728
build_old_libs=$enable_static
 
8729
 
 
8730
# Whether or not to add -lc for building shared libraries.
 
8731
build_libtool_need_lc=$archive_cmds_need_lc
 
8732
 
 
8733
# Whether or not to disallow shared libs when runtime libs are static
 
8734
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
8735
 
 
8736
# Whether or not to optimize for fast installation.
 
8737
fast_install=$enable_fast_install
 
8738
 
 
8739
# The host system.
 
8740
host_alias=$host_alias
 
8741
host=$host
 
8742
 
 
8743
# An echo program that does not interpret backslashes.
 
8744
echo=$lt_echo
 
8745
 
 
8746
# The archiver.
 
8747
AR=$lt_AR
 
8748
AR_FLAGS=$lt_AR_FLAGS
 
8749
 
 
8750
# A C compiler.
 
8751
LTCC=$lt_LTCC
 
8752
 
 
8753
# A language-specific compiler.
 
8754
CC=$lt_compiler
 
8755
 
 
8756
# Is the compiler the GNU C compiler?
 
8757
with_gcc=$GCC
 
8758
 
 
8759
# An ERE matcher.
 
8760
EGREP=$lt_EGREP
 
8761
 
 
8762
# The linker used to build libraries.
 
8763
LD=$lt_LD
 
8764
 
 
8765
# Whether we need hard or soft links.
 
8766
LN_S=$lt_LN_S
 
8767
 
 
8768
# A BSD-compatible nm program.
 
8769
NM=$lt_NM
 
8770
 
 
8771
# A symbol stripping program
 
8772
STRIP=$lt_STRIP
 
8773
 
 
8774
# Used to examine libraries when file_magic_cmd begins "file"
 
8775
MAGIC_CMD=$MAGIC_CMD
 
8776
 
 
8777
# Used on cygwin: DLL creation program.
 
8778
DLLTOOL="$DLLTOOL"
 
8779
 
 
8780
# Used on cygwin: object dumper.
 
8781
OBJDUMP="$OBJDUMP"
 
8782
 
 
8783
# Used on cygwin: assembler.
 
8784
AS="$AS"
 
8785
 
 
8786
# The name of the directory that contains temporary libtool files.
 
8787
objdir=$objdir
 
8788
 
 
8789
# How to create reloadable object files.
 
8790
reload_flag=$lt_reload_flag
 
8791
reload_cmds=$lt_reload_cmds
 
8792
 
 
8793
# How to pass a linker flag through the compiler.
 
8794
wl=$lt_lt_prog_compiler_wl
 
8795
 
 
8796
# Object file suffix (normally "o").
 
8797
objext="$ac_objext"
 
8798
 
 
8799
# Old archive suffix (normally "a").
 
8800
libext="$libext"
 
8801
 
 
8802
# Shared library suffix (normally ".so").
 
8803
shrext_cmds='$shrext_cmds'
 
8804
 
 
8805
# Executable file suffix (normally "").
 
8806
exeext="$exeext"
 
8807
 
 
8808
# Additional compiler flags for building library objects.
 
8809
pic_flag=$lt_lt_prog_compiler_pic
 
8810
pic_mode=$pic_mode
 
8811
 
 
8812
# What is the maximum length of a command?
 
8813
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8814
 
 
8815
# Does compiler simultaneously support -c and -o options?
 
8816
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
8817
 
 
8818
# Must we lock files when doing compilation ?
 
8819
need_locks=$lt_need_locks
 
8820
 
 
8821
# Do we need the lib prefix for modules?
 
8822
need_lib_prefix=$need_lib_prefix
 
8823
 
 
8824
# Do we need a version for libraries?
 
8825
need_version=$need_version
 
8826
 
 
8827
# Whether dlopen is supported.
 
8828
dlopen_support=$enable_dlopen
 
8829
 
 
8830
# Whether dlopen of programs is supported.
 
8831
dlopen_self=$enable_dlopen_self
 
8832
 
 
8833
# Whether dlopen of statically linked programs is supported.
 
8834
dlopen_self_static=$enable_dlopen_self_static
 
8835
 
 
8836
# Compiler flag to prevent dynamic linking.
 
8837
link_static_flag=$lt_lt_prog_compiler_static
 
8838
 
 
8839
# Compiler flag to turn off builtin functions.
 
8840
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
8841
 
 
8842
# Compiler flag to allow reflexive dlopens.
 
8843
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
8844
 
 
8845
# Compiler flag to generate shared objects directly from archives.
 
8846
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
8847
 
 
8848
# Compiler flag to generate thread-safe objects.
 
8849
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
8850
 
 
8851
# Library versioning type.
 
8852
version_type=$version_type
 
8853
 
 
8854
# Format of library name prefix.
 
8855
libname_spec=$lt_libname_spec
 
8856
 
 
8857
# List of archive names.  First name is the real one, the rest are links.
 
8858
# The last name is the one that the linker finds with -lNAME.
 
8859
library_names_spec=$lt_library_names_spec
 
8860
 
 
8861
# The coded name of the library, if different from the real name.
 
8862
soname_spec=$lt_soname_spec
 
8863
 
 
8864
# Commands used to build and install an old-style archive.
 
8865
RANLIB=$lt_RANLIB
 
8866
old_archive_cmds=$lt_old_archive_cmds
 
8867
old_postinstall_cmds=$lt_old_postinstall_cmds
 
8868
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
8869
 
 
8870
# Create an old-style archive from a shared archive.
 
8871
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
8872
 
 
8873
# Create a temporary old-style archive to link instead of a shared archive.
 
8874
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
8875
 
 
8876
# Commands used to build and install a shared archive.
 
8877
archive_cmds=$lt_archive_cmds
 
8878
archive_expsym_cmds=$lt_archive_expsym_cmds
 
8879
postinstall_cmds=$lt_postinstall_cmds
 
8880
postuninstall_cmds=$lt_postuninstall_cmds
 
8881
 
 
8882
# Commands used to build a loadable module (assumed same as above if empty)
 
8883
module_cmds=$lt_module_cmds
 
8884
module_expsym_cmds=$lt_module_expsym_cmds
 
8885
 
 
8886
# Commands to strip libraries.
 
8887
old_striplib=$lt_old_striplib
 
8888
striplib=$lt_striplib
 
8889
 
 
8890
# Dependencies to place before the objects being linked to create a
 
8891
# shared library.
 
8892
predep_objects=$lt_predep_objects
 
8893
 
 
8894
# Dependencies to place after the objects being linked to create a
 
8895
# shared library.
 
8896
postdep_objects=$lt_postdep_objects
 
8897
 
 
8898
# Dependencies to place before the objects being linked to create a
 
8899
# shared library.
 
8900
predeps=$lt_predeps
 
8901
 
 
8902
# Dependencies to place after the objects being linked to create a
 
8903
# shared library.
 
8904
postdeps=$lt_postdeps
 
8905
 
 
8906
# The library search path used internally by the compiler when linking
 
8907
# a shared library.
 
8908
compiler_lib_search_path=$lt_compiler_lib_search_path
 
8909
 
 
8910
# Method to check whether dependent libraries are shared objects.
 
8911
deplibs_check_method=$lt_deplibs_check_method
 
8912
 
 
8913
# Command to use when deplibs_check_method == file_magic.
 
8914
file_magic_cmd=$lt_file_magic_cmd
 
8915
 
 
8916
# Flag that allows shared libraries with undefined symbols to be built.
 
8917
allow_undefined_flag=$lt_allow_undefined_flag
 
8918
 
 
8919
# Flag that forces no undefined symbols.
 
8920
no_undefined_flag=$lt_no_undefined_flag
 
8921
 
 
8922
# Commands used to finish a libtool library installation in a directory.
 
8923
finish_cmds=$lt_finish_cmds
 
8924
 
 
8925
# Same as above, but a single script fragment to be evaled but not shown.
 
8926
finish_eval=$lt_finish_eval
 
8927
 
 
8928
# Take the output of nm and produce a listing of raw symbols and C names.
 
8929
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
8930
 
 
8931
# Transform the output of nm in a proper C declaration
 
8932
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
8933
 
 
8934
# Transform the output of nm in a C name address pair
 
8935
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
8936
 
 
8937
# This is the shared library runtime path variable.
 
8938
runpath_var=$runpath_var
 
8939
 
 
8940
# This is the shared library path variable.
 
8941
shlibpath_var=$shlibpath_var
 
8942
 
 
8943
# Is shlibpath searched before the hard-coded library search path?
 
8944
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
8945
 
 
8946
# How to hardcode a shared library path into an executable.
 
8947
hardcode_action=$hardcode_action
 
8948
 
 
8949
# Whether we should hardcode library paths into libraries.
 
8950
hardcode_into_libs=$hardcode_into_libs
 
8951
 
 
8952
# Flag to hardcode \$libdir into a binary during linking.
 
8953
# This must work even if \$libdir does not exist.
 
8954
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
8955
 
 
8956
# If ld is used when linking, flag to hardcode \$libdir into
 
8957
# a binary during linking. This must work even if \$libdir does
 
8958
# not exist.
 
8959
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
8960
 
 
8961
# Whether we need a single -rpath flag with a separated argument.
 
8962
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
8963
 
 
8964
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
8965
# resulting binary.
 
8966
hardcode_direct=$hardcode_direct
 
8967
 
 
8968
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
8969
# resulting binary.
 
8970
hardcode_minus_L=$hardcode_minus_L
 
8971
 
 
8972
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
8973
# the resulting binary.
 
8974
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
8975
 
 
8976
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
8977
# and all subsequent libraries and executables linked against it.
 
8978
hardcode_automatic=$hardcode_automatic
 
8979
 
 
8980
# Variables whose values should be saved in libtool wrapper scripts and
 
8981
# restored at relink time.
 
8982
variables_saved_for_relink="$variables_saved_for_relink"
 
8983
 
 
8984
# Whether libtool must link a program against all its dependency libraries.
 
8985
link_all_deplibs=$link_all_deplibs
 
8986
 
 
8987
# Compile-time system search path for libraries
 
8988
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
8989
 
 
8990
# Run-time system search path for libraries
 
8991
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
8992
 
 
8993
# Fix the shell variable \$srcfile for the compiler.
 
8994
fix_srcfile_path="$fix_srcfile_path"
 
8995
 
 
8996
# Set to yes if exported symbols are required.
 
8997
always_export_symbols=$always_export_symbols
 
8998
 
 
8999
# The commands to list exported symbols.
 
9000
export_symbols_cmds=$lt_export_symbols_cmds
 
9001
 
 
9002
# The commands to extract the exported symbol list from a shared archive.
 
9003
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9004
 
 
9005
# Symbols that should not be listed in the preloaded symbols.
 
9006
exclude_expsyms=$lt_exclude_expsyms
 
9007
 
 
9008
# Symbols that must always be exported.
 
9009
include_expsyms=$lt_include_expsyms
 
9010
 
 
9011
# ### END LIBTOOL CONFIG
 
9012
 
 
9013
__EOF__
 
9014
 
 
9015
 
 
9016
  case $host_os in
 
9017
  aix3*)
 
9018
    cat <<\EOF >> "$cfgfile"
 
9019
 
 
9020
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9021
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9022
# vanish in a puff of smoke.
 
9023
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9024
  COLLECT_NAMES=
 
9025
  export COLLECT_NAMES
 
9026
fi
 
9027
EOF
 
9028
    ;;
 
9029
  esac
 
9030
 
 
9031
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9032
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9033
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9034
  # is reportedly fixed, but why not run on old versions too?
 
9035
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9036
 
 
9037
  mv -f "$cfgfile" "$ofile" || \
 
9038
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9039
  chmod +x "$ofile"
 
9040
 
 
9041
else
 
9042
  # If there is no Makefile yet, we rely on a make rule to execute
 
9043
  # `config.status --recheck' to rerun these tests and create the
 
9044
  # libtool script then.
 
9045
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9046
  if test -f "$ltmain_in"; then
 
9047
    test -f Makefile && make "$ltmain"
 
9048
  fi
 
9049
fi
 
9050
 
 
9051
 
 
9052
ac_ext=c
 
9053
ac_cpp='$CPP $CPPFLAGS'
 
9054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9057
 
 
9058
CC="$lt_save_CC"
 
9059
 
 
9060
 
 
9061
# Check whether --with-tags or --without-tags was given.
 
9062
if test "${with_tags+set}" = set; then
 
9063
  withval="$with_tags"
 
9064
  tagnames="$withval"
 
9065
fi;
 
9066
 
 
9067
if test -f "$ltmain" && test -n "$tagnames"; then
 
9068
  if test ! -f "${ofile}"; then
 
9069
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9070
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9071
  fi
 
9072
 
 
9073
  if test -z "$LTCC"; then
 
9074
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9075
    if test -z "$LTCC"; then
 
9076
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9077
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9078
    else
 
9079
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9080
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9081
    fi
 
9082
  fi
 
9083
 
 
9084
  # Extract list of available tagged configurations in $ofile.
 
9085
  # Note that this assumes the entire list is on one line.
 
9086
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9087
 
 
9088
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9089
  for tagname in $tagnames; do
 
9090
    IFS="$lt_save_ifs"
 
9091
    # Check whether tagname contains only valid characters
 
9092
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9093
    "") ;;
 
9094
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9095
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9096
   { (exit 1); exit 1; }; }
 
9097
        ;;
 
9098
    esac
 
9099
 
 
9100
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9101
    then
 
9102
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9103
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9104
   { (exit 1); exit 1; }; }
 
9105
    fi
 
9106
 
 
9107
    # Update the list of available tags.
 
9108
    if test -n "$tagname"; then
 
9109
      echo appending configuration tag \"$tagname\" to $ofile
 
9110
 
 
9111
      case $tagname in
 
9112
      CXX)
 
9113
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9114
          ac_ext=cc
 
9115
ac_cpp='$CXXCPP $CPPFLAGS'
 
9116
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9117
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9118
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9119
 
 
9120
 
 
9121
 
 
9122
 
 
9123
archive_cmds_need_lc_CXX=no
 
9124
allow_undefined_flag_CXX=
 
9125
always_export_symbols_CXX=no
 
9126
archive_expsym_cmds_CXX=
 
9127
export_dynamic_flag_spec_CXX=
 
9128
hardcode_direct_CXX=no
 
9129
hardcode_libdir_flag_spec_CXX=
 
9130
hardcode_libdir_flag_spec_ld_CXX=
 
9131
hardcode_libdir_separator_CXX=
 
9132
hardcode_minus_L_CXX=no
 
9133
hardcode_automatic_CXX=no
 
9134
module_cmds_CXX=
 
9135
module_expsym_cmds_CXX=
 
9136
link_all_deplibs_CXX=unknown
 
9137
old_archive_cmds_CXX=$old_archive_cmds
 
9138
no_undefined_flag_CXX=
 
9139
whole_archive_flag_spec_CXX=
 
9140
enable_shared_with_static_runtimes_CXX=no
 
9141
 
 
9142
# Dependencies to place before and after the object being linked:
 
9143
predep_objects_CXX=
 
9144
postdep_objects_CXX=
 
9145
predeps_CXX=
 
9146
postdeps_CXX=
 
9147
compiler_lib_search_path_CXX=
 
9148
 
 
9149
# Source file extension for C++ test sources.
 
9150
ac_ext=cc
 
9151
 
 
9152
# Object file extension for compiled C++ test sources.
 
9153
objext=o
 
9154
objext_CXX=$objext
 
9155
 
 
9156
# Code to be used in simple compile tests
 
9157
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9158
 
 
9159
# Code to be used in simple link tests
 
9160
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9161
 
 
9162
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9163
 
 
9164
# If no C compiler was specified, use CC.
 
9165
LTCC=${LTCC-"$CC"}
 
9166
 
 
9167
# Allow CC to be a program name with arguments.
 
9168
compiler=$CC
 
9169
 
 
9170
 
 
9171
# Allow CC to be a program name with arguments.
 
9172
lt_save_CC=$CC
 
9173
lt_save_LD=$LD
 
9174
lt_save_GCC=$GCC
 
9175
GCC=$GXX
 
9176
lt_save_with_gnu_ld=$with_gnu_ld
 
9177
lt_save_path_LD=$lt_cv_path_LD
 
9178
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9179
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9180
else
 
9181
  unset lt_cv_prog_gnu_ld
 
9182
fi
 
9183
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9184
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9185
else
 
9186
  unset lt_cv_path_LD
 
9187
fi
 
9188
test -z "${LDCXX+set}" || LD=$LDCXX
 
9189
CC=${CXX-"c++"}
 
9190
compiler=$CC
 
9191
compiler_CXX=$CC
 
9192
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9193
 
 
9194
# We don't want -fno-exception wen compiling C++ code, so set the
 
9195
# no_builtin_flag separately
 
9196
if test "$GXX" = yes; then
 
9197
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9198
else
 
9199
  lt_prog_compiler_no_builtin_flag_CXX=
 
9200
fi
 
9201
 
 
9202
if test "$GXX" = yes; then
 
9203
  # Set up default GNU C++ configuration
 
9204
 
 
9205
 
 
9206
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9207
if test "${with_gnu_ld+set}" = set; then
 
9208
  withval="$with_gnu_ld"
 
9209
  test "$withval" = no || with_gnu_ld=yes
 
9210
else
 
9211
  with_gnu_ld=no
 
9212
fi;
 
9213
ac_prog=ld
 
9214
if test "$GCC" = yes; then
 
9215
  # Check if gcc -print-prog-name=ld gives a path.
 
9216
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9217
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9218
  case $host in
 
9219
  *-*-mingw*)
 
9220
    # gcc leaves a trailing carriage return which upsets mingw
 
9221
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9222
  *)
 
9223
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9224
  esac
 
9225
  case $ac_prog in
 
9226
    # Accept absolute paths.
 
9227
    [\\/]* | ?:[\\/]*)
 
9228
      re_direlt='/[^/][^/]*/\.\./'
 
9229
      # Canonicalize the pathname of ld
 
9230
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9231
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9232
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9233
      done
 
9234
      test -z "$LD" && LD="$ac_prog"
 
9235
      ;;
 
9236
  "")
 
9237
    # If it fails, then pretend we aren't using GCC.
 
9238
    ac_prog=ld
 
9239
    ;;
 
9240
  *)
 
9241
    # If it is relative, then search for the first ld in PATH.
 
9242
    with_gnu_ld=unknown
 
9243
    ;;
 
9244
  esac
 
9245
elif test "$with_gnu_ld" = yes; then
 
9246
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9247
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9248
else
 
9249
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9250
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9251
fi
 
9252
if test "${lt_cv_path_LD+set}" = set; then
 
9253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9254
else
 
9255
  if test -z "$LD"; then
 
9256
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9257
  for ac_dir in $PATH; do
 
9258
    IFS="$lt_save_ifs"
 
9259
    test -z "$ac_dir" && ac_dir=.
 
9260
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9261
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9262
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9263
      # but apparently some GNU ld's only accept -v.
 
9264
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9265
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9266
      *GNU* | *'with BFD'*)
 
9267
        test "$with_gnu_ld" != no && break
 
9268
        ;;
 
9269
      *)
 
9270
        test "$with_gnu_ld" != yes && break
 
9271
        ;;
 
9272
      esac
 
9273
    fi
 
9274
  done
 
9275
  IFS="$lt_save_ifs"
 
9276
else
 
9277
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9278
fi
 
9279
fi
 
9280
 
 
9281
LD="$lt_cv_path_LD"
 
9282
if test -n "$LD"; then
 
9283
  echo "$as_me:$LINENO: result: $LD" >&5
 
9284
echo "${ECHO_T}$LD" >&6
 
9285
else
 
9286
  echo "$as_me:$LINENO: result: no" >&5
 
9287
echo "${ECHO_T}no" >&6
 
9288
fi
 
9289
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9290
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9291
   { (exit 1); exit 1; }; }
 
9292
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9293
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9294
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9296
else
 
9297
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9298
case `$LD -v 2>&1 </dev/null` in
 
9299
*GNU* | *'with BFD'*)
 
9300
  lt_cv_prog_gnu_ld=yes
 
9301
  ;;
 
9302
*)
 
9303
  lt_cv_prog_gnu_ld=no
 
9304
  ;;
 
9305
esac
 
9306
fi
 
9307
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9308
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9309
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9310
 
 
9311
 
 
9312
 
 
9313
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9314
  # archiving commands below assume that GNU ld is being used.
 
9315
  if test "$with_gnu_ld" = yes; then
 
9316
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9317
    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'
 
9318
 
 
9319
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9320
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9321
 
 
9322
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9323
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9324
    #     investigate it a little bit more. (MM)
 
9325
    wlarc='${wl}'
 
9326
 
 
9327
    # ancient GNU ld didn't support --whole-archive et. al.
 
9328
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9329
        grep 'no-whole-archive' > /dev/null; then
 
9330
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9331
    else
 
9332
      whole_archive_flag_spec_CXX=
 
9333
    fi
 
9334
  else
 
9335
    with_gnu_ld=no
 
9336
    wlarc=
 
9337
 
 
9338
    # A generic and very simple default shared library creation
 
9339
    # command for GNU C++ for the case where it uses the native
 
9340
    # linker, instead of GNU ld.  If possible, this setting should
 
9341
    # overridden to take advantage of the native linker features on
 
9342
    # the platform it is being used on.
 
9343
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9344
  fi
 
9345
 
 
9346
  # Commands to make compiler produce verbose output that lists
 
9347
  # what "hidden" libraries, object files and flags are used when
 
9348
  # linking a shared library.
 
9349
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9350
 
 
9351
else
 
9352
  GXX=no
 
9353
  with_gnu_ld=no
 
9354
  wlarc=
 
9355
fi
 
9356
 
 
9357
# PORTME: fill in a description of your system's C++ link characteristics
 
9358
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9359
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9360
ld_shlibs_CXX=yes
 
9361
case $host_os in
 
9362
  aix3*)
 
9363
    # FIXME: insert proper C++ library support
 
9364
    ld_shlibs_CXX=no
 
9365
    ;;
 
9366
  aix4* | aix5*)
 
9367
    if test "$host_cpu" = ia64; then
 
9368
      # On IA64, the linker does run time linking by default, so we don't
 
9369
      # have to do anything special.
 
9370
      aix_use_runtimelinking=no
 
9371
      exp_sym_flag='-Bexport'
 
9372
      no_entry_flag=""
 
9373
    else
 
9374
      aix_use_runtimelinking=no
 
9375
 
 
9376
      # Test if we are trying to use run time linking or normal
 
9377
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9378
      # need to do runtime linking.
 
9379
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9380
        for ld_flag in $LDFLAGS; do
 
9381
          case $ld_flag in
 
9382
          *-brtl*)
 
9383
            aix_use_runtimelinking=yes
 
9384
            break
 
9385
            ;;
 
9386
          esac
 
9387
        done
 
9388
      esac
 
9389
 
 
9390
      exp_sym_flag='-bexport'
 
9391
      no_entry_flag='-bnoentry'
 
9392
    fi
 
9393
 
 
9394
    # When large executables or shared objects are built, AIX ld can
 
9395
    # have problems creating the table of contents.  If linking a library
 
9396
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9397
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9398
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9399
 
 
9400
    archive_cmds_CXX=''
 
9401
    hardcode_direct_CXX=yes
 
9402
    hardcode_libdir_separator_CXX=':'
 
9403
    link_all_deplibs_CXX=yes
 
9404
 
 
9405
    if test "$GXX" = yes; then
 
9406
      case $host_os in aix4.012|aix4.012.*)
 
9407
      # We only want to do this on AIX 4.2 and lower, the check
 
9408
      # below for broken collect2 doesn't work under 4.3+
 
9409
        collect2name=`${CC} -print-prog-name=collect2`
 
9410
        if test -f "$collect2name" && \
 
9411
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9412
        then
 
9413
          # We have reworked collect2
 
9414
          hardcode_direct_CXX=yes
 
9415
        else
 
9416
          # We have old collect2
 
9417
          hardcode_direct_CXX=unsupported
 
9418
          # It fails to find uninstalled libraries when the uninstalled
 
9419
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9420
          # to unsupported forces relinking
 
9421
          hardcode_minus_L_CXX=yes
 
9422
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9423
          hardcode_libdir_separator_CXX=
 
9424
        fi
 
9425
      esac
 
9426
      shared_flag='-shared'
 
9427
    else
 
9428
      # not using gcc
 
9429
      if test "$host_cpu" = ia64; then
 
9430
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9431
        # chokes on -Wl,-G. The following line is correct:
 
9432
        shared_flag='-G'
 
9433
      else
 
9434
        if test "$aix_use_runtimelinking" = yes; then
 
9435
          shared_flag='${wl}-G'
 
9436
        else
 
9437
          shared_flag='${wl}-bM:SRE'
 
9438
        fi
 
9439
      fi
 
9440
    fi
 
9441
 
 
9442
    # It seems that -bexpall does not export symbols beginning with
 
9443
    # underscore (_), so it is better to generate a list of symbols to export.
 
9444
    always_export_symbols_CXX=yes
 
9445
    if test "$aix_use_runtimelinking" = yes; then
 
9446
      # Warning - without using the other runtime loading flags (-brtl),
 
9447
      # -berok will link without error, but may produce a broken library.
 
9448
      allow_undefined_flag_CXX='-berok'
 
9449
      # Determine the default libpath from the value encoded in an empty executable.
 
9450
      cat >conftest.$ac_ext <<_ACEOF
 
9451
/* confdefs.h.  */
 
9452
_ACEOF
 
9453
cat confdefs.h >>conftest.$ac_ext
 
9454
cat >>conftest.$ac_ext <<_ACEOF
 
9455
/* end confdefs.h.  */
 
9456
 
 
9457
int
 
9458
main ()
 
9459
{
 
9460
 
 
9461
  ;
 
9462
  return 0;
 
9463
}
 
9464
_ACEOF
 
9465
rm -f conftest.$ac_objext conftest$ac_exeext
 
9466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9467
  (eval $ac_link) 2>conftest.er1
 
9468
  ac_status=$?
 
9469
  grep -v '^ *+' conftest.er1 >conftest.err
 
9470
  rm -f conftest.er1
 
9471
  cat conftest.err >&5
 
9472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9473
  (exit $ac_status); } &&
 
9474
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9476
  (eval $ac_try) 2>&5
 
9477
  ac_status=$?
 
9478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9479
  (exit $ac_status); }; } &&
 
9480
         { ac_try='test -s conftest$ac_exeext'
 
9481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9482
  (eval $ac_try) 2>&5
 
9483
  ac_status=$?
 
9484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9485
  (exit $ac_status); }; }; then
 
9486
 
 
9487
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9488
}'`
 
9489
# Check for a 64-bit object if we didn't find anything.
 
9490
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; }
 
9491
}'`; fi
 
9492
else
 
9493
  echo "$as_me: failed program was:" >&5
 
9494
sed 's/^/| /' conftest.$ac_ext >&5
 
9495
 
 
9496
fi
 
9497
rm -f conftest.err conftest.$ac_objext \
 
9498
      conftest$ac_exeext conftest.$ac_ext
 
9499
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9500
 
 
9501
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9502
 
 
9503
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9504
     else
 
9505
      if test "$host_cpu" = ia64; then
 
9506
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9507
        allow_undefined_flag_CXX="-z nodefs"
 
9508
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
9509
      else
 
9510
        # Determine the default libpath from the value encoded in an empty executable.
 
9511
        cat >conftest.$ac_ext <<_ACEOF
 
9512
/* confdefs.h.  */
 
9513
_ACEOF
 
9514
cat confdefs.h >>conftest.$ac_ext
 
9515
cat >>conftest.$ac_ext <<_ACEOF
 
9516
/* end confdefs.h.  */
 
9517
 
 
9518
int
 
9519
main ()
 
9520
{
 
9521
 
 
9522
  ;
 
9523
  return 0;
 
9524
}
 
9525
_ACEOF
 
9526
rm -f conftest.$ac_objext conftest$ac_exeext
 
9527
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9528
  (eval $ac_link) 2>conftest.er1
 
9529
  ac_status=$?
 
9530
  grep -v '^ *+' conftest.er1 >conftest.err
 
9531
  rm -f conftest.er1
 
9532
  cat conftest.err >&5
 
9533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9534
  (exit $ac_status); } &&
 
9535
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9537
  (eval $ac_try) 2>&5
 
9538
  ac_status=$?
 
9539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9540
  (exit $ac_status); }; } &&
 
9541
         { ac_try='test -s conftest$ac_exeext'
 
9542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9543
  (eval $ac_try) 2>&5
 
9544
  ac_status=$?
 
9545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9546
  (exit $ac_status); }; }; then
 
9547
 
 
9548
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9549
}'`
 
9550
# Check for a 64-bit object if we didn't find anything.
 
9551
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; }
 
9552
}'`; fi
 
9553
else
 
9554
  echo "$as_me: failed program was:" >&5
 
9555
sed 's/^/| /' conftest.$ac_ext >&5
 
9556
 
 
9557
fi
 
9558
rm -f conftest.err conftest.$ac_objext \
 
9559
      conftest$ac_exeext conftest.$ac_ext
 
9560
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9561
 
 
9562
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9563
        # Warning - without using the other run time loading flags,
 
9564
        # -berok will link without error, but may produce a broken library.
 
9565
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9566
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9567
        # -bexpall does not export symbols beginning with underscore (_)
 
9568
        always_export_symbols_CXX=yes
 
9569
        # Exported symbols can be pulled into shared objects from archives
 
9570
        whole_archive_flag_spec_CXX=' '
 
9571
        archive_cmds_need_lc_CXX=yes
 
9572
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9573
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9574
      fi
 
9575
    fi
 
9576
    ;;
 
9577
  chorus*)
 
9578
    case $cc_basename in
 
9579
      *)
 
9580
        # FIXME: insert proper C++ library support
 
9581
        ld_shlibs_CXX=no
 
9582
        ;;
 
9583
    esac
 
9584
    ;;
 
9585
 
 
9586
  cygwin* | mingw* | pw32*)
 
9587
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
9588
    # as there is no search path for DLLs.
 
9589
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9590
    allow_undefined_flag_CXX=unsupported
 
9591
    always_export_symbols_CXX=no
 
9592
    enable_shared_with_static_runtimes_CXX=yes
 
9593
 
 
9594
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9595
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9596
      # If the export-symbols file already is a .def file (1st line
 
9597
      # is EXPORTS), use it as is; otherwise, prepend...
 
9598
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9599
        cp $export_symbols $output_objdir/$soname.def;
 
9600
      else
 
9601
        echo EXPORTS > $output_objdir/$soname.def;
 
9602
        cat $export_symbols >> $output_objdir/$soname.def;
 
9603
      fi~
 
9604
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9605
    else
 
9606
      ld_shlibs_CXX=no
 
9607
    fi
 
9608
  ;;
 
9609
 
 
9610
  darwin* | rhapsody*)
 
9611
  if test "$GXX" = yes; then
 
9612
    archive_cmds_need_lc_CXX=no
 
9613
    case "$host_os" in
 
9614
    rhapsody* | darwin1.[012])
 
9615
      allow_undefined_flag_CXX='-undefined suppress'
 
9616
      ;;
 
9617
    *) # Darwin 1.3 on
 
9618
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9619
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
9620
      else
 
9621
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9622
          10.[012])
 
9623
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
9624
            ;;
 
9625
          10.*)
 
9626
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
9627
            ;;
 
9628
        esac
 
9629
      fi
 
9630
      ;;
 
9631
    esac
 
9632
    lt_int_apple_cc_single_mod=no
 
9633
    output_verbose_link_cmd='echo'
 
9634
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9635
      lt_int_apple_cc_single_mod=yes
 
9636
    fi
 
9637
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9638
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9639
    else
 
9640
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
 
9641
    fi
 
9642
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9643
 
 
9644
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9645
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9646
      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}'
 
9647
    else
 
9648
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
9649
    fi
 
9650
    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}'
 
9651
    hardcode_direct_CXX=no
 
9652
    hardcode_automatic_CXX=yes
 
9653
    hardcode_shlibpath_var_CXX=unsupported
 
9654
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
9655
    link_all_deplibs_CXX=yes
 
9656
  else
 
9657
    ld_shlibs_CXX=no
 
9658
  fi
 
9659
    ;;
 
9660
 
 
9661
  dgux*)
 
9662
    case $cc_basename in
 
9663
      ec++)
 
9664
        # FIXME: insert proper C++ library support
 
9665
        ld_shlibs_CXX=no
 
9666
        ;;
 
9667
      ghcx)
 
9668
        # Green Hills C++ Compiler
 
9669
        # FIXME: insert proper C++ library support
 
9670
        ld_shlibs_CXX=no
 
9671
        ;;
 
9672
      *)
 
9673
        # FIXME: insert proper C++ library support
 
9674
        ld_shlibs_CXX=no
 
9675
        ;;
 
9676
    esac
 
9677
    ;;
 
9678
  freebsd12*)
 
9679
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
9680
    ld_shlibs_CXX=no
 
9681
    ;;
 
9682
  freebsd-elf*)
 
9683
    archive_cmds_need_lc_CXX=no
 
9684
    ;;
 
9685
  freebsd* | kfreebsd*-gnu)
 
9686
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
9687
    # conventions
 
9688
    ld_shlibs_CXX=yes
 
9689
    ;;
 
9690
  gnu*)
 
9691
    ;;
 
9692
  hpux9*)
 
9693
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9694
    hardcode_libdir_separator_CXX=:
 
9695
    export_dynamic_flag_spec_CXX='${wl}-E'
 
9696
    hardcode_direct_CXX=yes
 
9697
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9698
                                # but as the default
 
9699
                                # location of the library.
 
9700
 
 
9701
    case $cc_basename in
 
9702
    CC)
 
9703
      # FIXME: insert proper C++ library support
 
9704
      ld_shlibs_CXX=no
 
9705
      ;;
 
9706
    aCC)
 
9707
      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'
 
9708
      # Commands to make compiler produce verbose output that lists
 
9709
      # what "hidden" libraries, object files and flags are used when
 
9710
      # linking a shared library.
 
9711
      #
 
9712
      # There doesn't appear to be a way to prevent this compiler from
 
9713
      # explicitly linking system object files so we need to strip them
 
9714
      # from the output so that they don't get included in the library
 
9715
      # dependencies.
 
9716
      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'
 
9717
      ;;
 
9718
    *)
 
9719
      if test "$GXX" = yes; then
 
9720
        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'
 
9721
      else
 
9722
        # FIXME: insert proper C++ library support
 
9723
        ld_shlibs_CXX=no
 
9724
      fi
 
9725
      ;;
 
9726
    esac
 
9727
    ;;
 
9728
  hpux10*|hpux11*)
 
9729
    if test $with_gnu_ld = no; then
 
9730
      case "$host_cpu" in
 
9731
      hppa*64*)
 
9732
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9733
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9734
        hardcode_libdir_separator_CXX=:
 
9735
        ;;
 
9736
      ia64*)
 
9737
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9738
        ;;
 
9739
      *)
 
9740
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9741
        hardcode_libdir_separator_CXX=:
 
9742
        export_dynamic_flag_spec_CXX='${wl}-E'
 
9743
        ;;
 
9744
      esac
 
9745
    fi
 
9746
    case "$host_cpu" in
 
9747
    hppa*64*)
 
9748
      hardcode_direct_CXX=no
 
9749
      hardcode_shlibpath_var_CXX=no
 
9750
      ;;
 
9751
    ia64*)
 
9752
      hardcode_direct_CXX=no
 
9753
      hardcode_shlibpath_var_CXX=no
 
9754
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9755
                                              # but as the default
 
9756
                                              # location of the library.
 
9757
      ;;
 
9758
    *)
 
9759
      hardcode_direct_CXX=yes
 
9760
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9761
                                              # but as the default
 
9762
                                              # location of the library.
 
9763
      ;;
 
9764
    esac
 
9765
 
 
9766
    case $cc_basename in
 
9767
      CC)
 
9768
        # FIXME: insert proper C++ library support
 
9769
        ld_shlibs_CXX=no
 
9770
        ;;
 
9771
      aCC)
 
9772
        case "$host_cpu" in
 
9773
        hppa*64*|ia64*)
 
9774
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9775
          ;;
 
9776
        *)
 
9777
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9778
          ;;
 
9779
        esac
 
9780
        # Commands to make compiler produce verbose output that lists
 
9781
        # what "hidden" libraries, object files and flags are used when
 
9782
        # linking a shared library.
 
9783
        #
 
9784
        # There doesn't appear to be a way to prevent this compiler from
 
9785
        # explicitly linking system object files so we need to strip them
 
9786
        # from the output so that they don't get included in the library
 
9787
        # dependencies.
 
9788
        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'
 
9789
        ;;
 
9790
      *)
 
9791
        if test "$GXX" = yes; then
 
9792
          if test $with_gnu_ld = no; then
 
9793
            case "$host_cpu" in
 
9794
            ia64*|hppa*64*)
 
9795
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9796
              ;;
 
9797
            *)
 
9798
              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'
 
9799
              ;;
 
9800
            esac
 
9801
          fi
 
9802
        else
 
9803
          # FIXME: insert proper C++ library support
 
9804
          ld_shlibs_CXX=no
 
9805
        fi
 
9806
        ;;
 
9807
    esac
 
9808
    ;;
 
9809
  irix5* | irix6*)
 
9810
    case $cc_basename in
 
9811
      CC)
 
9812
        # SGI C++
 
9813
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9814
 
 
9815
        # Archives containing C++ object files must be created using
 
9816
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
9817
        # necessary to make sure instantiated templates are included
 
9818
        # in the archive.
 
9819
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
9820
        ;;
 
9821
      *)
 
9822
        if test "$GXX" = yes; then
 
9823
          if test "$with_gnu_ld" = no; then
 
9824
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
9825
          else
 
9826
            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'
 
9827
          fi
 
9828
        fi
 
9829
        link_all_deplibs_CXX=yes
 
9830
        ;;
 
9831
    esac
 
9832
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9833
    hardcode_libdir_separator_CXX=:
 
9834
    ;;
 
9835
  linux*)
 
9836
    case $cc_basename in
 
9837
      KCC)
 
9838
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9839
 
 
9840
        # KCC will only create a shared library if the output file
 
9841
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9842
        # to its proper name (with version) after linking.
 
9843
        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'
 
9844
        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'
 
9845
        # Commands to make compiler produce verbose output that lists
 
9846
        # what "hidden" libraries, object files and flags are used when
 
9847
        # linking a shared library.
 
9848
        #
 
9849
        # There doesn't appear to be a way to prevent this compiler from
 
9850
        # explicitly linking system object files so we need to strip them
 
9851
        # from the output so that they don't get included in the library
 
9852
        # dependencies.
 
9853
        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'
 
9854
 
 
9855
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
9856
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9857
 
 
9858
        # Archives containing C++ object files must be created using
 
9859
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9860
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9861
        ;;
 
9862
      icpc)
 
9863
        # Intel C++
 
9864
        with_gnu_ld=yes
 
9865
        archive_cmds_need_lc_CXX=no
 
9866
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9867
        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'
 
9868
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9869
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9870
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9871
        ;;
 
9872
      cxx)
 
9873
        # Compaq C++
 
9874
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9875
        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'
 
9876
 
 
9877
        runpath_var=LD_RUN_PATH
 
9878
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
9879
        hardcode_libdir_separator_CXX=:
 
9880
 
 
9881
        # Commands to make compiler produce verbose output that lists
 
9882
        # what "hidden" libraries, object files and flags are used when
 
9883
        # linking a shared library.
 
9884
        #
 
9885
        # There doesn't appear to be a way to prevent this compiler from
 
9886
        # explicitly linking system object files so we need to strip them
 
9887
        # from the output so that they don't get included in the library
 
9888
        # dependencies.
 
9889
        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'
 
9890
        ;;
 
9891
    esac
 
9892
    ;;
 
9893
  lynxos*)
 
9894
    # FIXME: insert proper C++ library support
 
9895
    ld_shlibs_CXX=no
 
9896
    ;;
 
9897
  m88k*)
 
9898
    # FIXME: insert proper C++ library support
 
9899
    ld_shlibs_CXX=no
 
9900
    ;;
 
9901
  mvs*)
 
9902
    case $cc_basename in
 
9903
      cxx)
 
9904
        # FIXME: insert proper C++ library support
 
9905
        ld_shlibs_CXX=no
 
9906
        ;;
 
9907
      *)
 
9908
        # FIXME: insert proper C++ library support
 
9909
        ld_shlibs_CXX=no
 
9910
        ;;
 
9911
    esac
 
9912
    ;;
 
9913
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
9914
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9915
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
9916
      wlarc=
 
9917
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
9918
      hardcode_direct_CXX=yes
 
9919
      hardcode_shlibpath_var_CXX=no
 
9920
    fi
 
9921
    # Workaround some broken pre-1.5 toolchains
 
9922
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
9923
    ;;
 
9924
  osf3*)
 
9925
    case $cc_basename in
 
9926
      KCC)
 
9927
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9928
 
 
9929
        # KCC will only create a shared library if the output file
 
9930
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9931
        # to its proper name (with version) after linking.
 
9932
        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'
 
9933
 
 
9934
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9935
        hardcode_libdir_separator_CXX=:
 
9936
 
 
9937
        # Archives containing C++ object files must be created using
 
9938
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9939
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9940
 
 
9941
        ;;
 
9942
      RCC)
 
9943
        # Rational C++ 2.4.1
 
9944
        # FIXME: insert proper C++ library support
 
9945
        ld_shlibs_CXX=no
 
9946
        ;;
 
9947
      cxx)
 
9948
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9949
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9950
 
 
9951
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9952
        hardcode_libdir_separator_CXX=:
 
9953
 
 
9954
        # Commands to make compiler produce verbose output that lists
 
9955
        # what "hidden" libraries, object files and flags are used when
 
9956
        # linking a shared library.
 
9957
        #
 
9958
        # There doesn't appear to be a way to prevent this compiler from
 
9959
        # explicitly linking system object files so we need to strip them
 
9960
        # from the output so that they don't get included in the library
 
9961
        # dependencies.
 
9962
        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'
 
9963
        ;;
 
9964
      *)
 
9965
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9966
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9967
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
9968
 
 
9969
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9970
          hardcode_libdir_separator_CXX=:
 
9971
 
 
9972
          # Commands to make compiler produce verbose output that lists
 
9973
          # what "hidden" libraries, object files and flags are used when
 
9974
          # linking a shared library.
 
9975
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9976
 
 
9977
        else
 
9978
          # FIXME: insert proper C++ library support
 
9979
          ld_shlibs_CXX=no
 
9980
        fi
 
9981
        ;;
 
9982
    esac
 
9983
    ;;
 
9984
  osf4* | osf5*)
 
9985
    case $cc_basename in
 
9986
      KCC)
 
9987
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9988
 
 
9989
        # KCC will only create a shared library if the output file
 
9990
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9991
        # to its proper name (with version) after linking.
 
9992
        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'
 
9993
 
 
9994
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9995
        hardcode_libdir_separator_CXX=:
 
9996
 
 
9997
        # Archives containing C++ object files must be created using
 
9998
        # the KAI C++ compiler.
 
9999
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10000
        ;;
 
10001
      RCC)
 
10002
        # Rational C++ 2.4.1
 
10003
        # FIXME: insert proper C++ library support
 
10004
        ld_shlibs_CXX=no
 
10005
        ;;
 
10006
      cxx)
 
10007
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10008
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10009
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10010
          echo "-hidden">> $lib.exp~
 
10011
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
10012
          $rm $lib.exp'
 
10013
 
 
10014
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10015
        hardcode_libdir_separator_CXX=:
 
10016
 
 
10017
        # Commands to make compiler produce verbose output that lists
 
10018
        # what "hidden" libraries, object files and flags are used when
 
10019
        # linking a shared library.
 
10020
        #
 
10021
        # There doesn't appear to be a way to prevent this compiler from
 
10022
        # explicitly linking system object files so we need to strip them
 
10023
        # from the output so that they don't get included in the library
 
10024
        # dependencies.
 
10025
        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'
 
10026
        ;;
 
10027
      *)
 
10028
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10029
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10030
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10031
 
 
10032
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10033
          hardcode_libdir_separator_CXX=:
 
10034
 
 
10035
          # Commands to make compiler produce verbose output that lists
 
10036
          # what "hidden" libraries, object files and flags are used when
 
10037
          # linking a shared library.
 
10038
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10039
 
 
10040
        else
 
10041
          # FIXME: insert proper C++ library support
 
10042
          ld_shlibs_CXX=no
 
10043
        fi
 
10044
        ;;
 
10045
    esac
 
10046
    ;;
 
10047
  psos*)
 
10048
    # FIXME: insert proper C++ library support
 
10049
    ld_shlibs_CXX=no
 
10050
    ;;
 
10051
  sco*)
 
10052
    archive_cmds_need_lc_CXX=no
 
10053
    case $cc_basename in
 
10054
      CC)
 
10055
        # FIXME: insert proper C++ library support
 
10056
        ld_shlibs_CXX=no
 
10057
        ;;
 
10058
      *)
 
10059
        # FIXME: insert proper C++ library support
 
10060
        ld_shlibs_CXX=no
 
10061
        ;;
 
10062
    esac
 
10063
    ;;
 
10064
  sunos4*)
 
10065
    case $cc_basename in
 
10066
      CC)
 
10067
        # Sun C++ 4.x
 
10068
        # FIXME: insert proper C++ library support
 
10069
        ld_shlibs_CXX=no
 
10070
        ;;
 
10071
      lcc)
 
10072
        # Lucid
 
10073
        # FIXME: insert proper C++ library support
 
10074
        ld_shlibs_CXX=no
 
10075
        ;;
 
10076
      *)
 
10077
        # FIXME: insert proper C++ library support
 
10078
        ld_shlibs_CXX=no
 
10079
        ;;
 
10080
    esac
 
10081
    ;;
 
10082
  solaris*)
 
10083
    case $cc_basename in
 
10084
      CC)
 
10085
        # Sun C++ 4.2, 5.x and Centerline C++
 
10086
        no_undefined_flag_CXX=' -zdefs'
 
10087
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10088
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10089
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10090
 
 
10091
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10092
        hardcode_shlibpath_var_CXX=no
 
10093
        case $host_os in
 
10094
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10095
          *)
 
10096
            # The C++ compiler is used as linker so we must use $wl
 
10097
            # flag to pass the commands to the underlying system
 
10098
            # linker.
 
10099
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10100
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10101
            ;;
 
10102
        esac
 
10103
        link_all_deplibs_CXX=yes
 
10104
 
 
10105
        # Commands to make compiler produce verbose output that lists
 
10106
        # what "hidden" libraries, object files and flags are used when
 
10107
        # linking a shared library.
 
10108
        #
 
10109
        # There doesn't appear to be a way to prevent this compiler from
 
10110
        # explicitly linking system object files so we need to strip them
 
10111
        # from the output so that they don't get included in the library
 
10112
        # dependencies.
 
10113
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10114
 
 
10115
        # Archives containing C++ object files must be created using
 
10116
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10117
        # necessary to make sure instantiated templates are included
 
10118
        # in the archive.
 
10119
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10120
        ;;
 
10121
      gcx)
 
10122
        # Green Hills C++ Compiler
 
10123
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10124
 
 
10125
        # The C++ compiler must be used to create the archive.
 
10126
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10127
        ;;
 
10128
      *)
 
10129
        # GNU C++ compiler with Solaris linker
 
10130
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10131
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10132
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10133
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10134
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10135
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10136
 
 
10137
            # Commands to make compiler produce verbose output that lists
 
10138
            # what "hidden" libraries, object files and flags are used when
 
10139
            # linking a shared library.
 
10140
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10141
          else
 
10142
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10143
            # platform.
 
10144
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10145
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10146
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10147
 
 
10148
            # Commands to make compiler produce verbose output that lists
 
10149
            # what "hidden" libraries, object files and flags are used when
 
10150
            # linking a shared library.
 
10151
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10152
          fi
 
10153
 
 
10154
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10155
        fi
 
10156
        ;;
 
10157
    esac
 
10158
    ;;
 
10159
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10160
    archive_cmds_need_lc_CXX=no
 
10161
    ;;
 
10162
  tandem*)
 
10163
    case $cc_basename in
 
10164
      NCC)
 
10165
        # NonStop-UX NCC 3.20
 
10166
        # FIXME: insert proper C++ library support
 
10167
        ld_shlibs_CXX=no
 
10168
        ;;
 
10169
      *)
 
10170
        # FIXME: insert proper C++ library support
 
10171
        ld_shlibs_CXX=no
 
10172
        ;;
 
10173
    esac
 
10174
    ;;
 
10175
  vxworks*)
 
10176
    # FIXME: insert proper C++ library support
 
10177
    ld_shlibs_CXX=no
 
10178
    ;;
 
10179
  *)
 
10180
    # FIXME: insert proper C++ library support
 
10181
    ld_shlibs_CXX=no
 
10182
    ;;
 
10183
esac
 
10184
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10185
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10186
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10187
 
 
10188
GCC_CXX="$GXX"
 
10189
LD_CXX="$LD"
 
10190
 
 
10191
 
 
10192
cat > conftest.$ac_ext <<EOF
 
10193
class Foo
 
10194
{
 
10195
public:
 
10196
  Foo (void) { a = 0; }
 
10197
private:
 
10198
  int a;
 
10199
};
 
10200
EOF
 
10201
 
 
10202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10203
  (eval $ac_compile) 2>&5
 
10204
  ac_status=$?
 
10205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10206
  (exit $ac_status); }; then
 
10207
  # Parse the compiler output and extract the necessary
 
10208
  # objects, libraries and library flags.
 
10209
 
 
10210
  # Sentinel used to keep track of whether or not we are before
 
10211
  # the conftest object file.
 
10212
  pre_test_object_deps_done=no
 
10213
 
 
10214
  # The `*' in the case matches for architectures that use `case' in
 
10215
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10216
  # eval without this substitution.
 
10217
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10218
 
 
10219
  for p in `eval $output_verbose_link_cmd`; do
 
10220
    case $p in
 
10221
 
 
10222
    -L* | -R* | -l*)
 
10223
       # Some compilers place space between "-{L,R}" and the path.
 
10224
       # Remove the space.
 
10225
       if test $p = "-L" \
 
10226
          || test $p = "-R"; then
 
10227
         prev=$p
 
10228
         continue
 
10229
       else
 
10230
         prev=
 
10231
       fi
 
10232
 
 
10233
       if test "$pre_test_object_deps_done" = no; then
 
10234
         case $p in
 
10235
         -L* | -R*)
 
10236
           # Internal compiler library paths should come after those
 
10237
           # provided the user.  The postdeps already come after the
 
10238
           # user supplied libs so there is no need to process them.
 
10239
           if test -z "$compiler_lib_search_path_CXX"; then
 
10240
             compiler_lib_search_path_CXX="${prev}${p}"
 
10241
           else
 
10242
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10243
           fi
 
10244
           ;;
 
10245
         # The "-l" case would never come before the object being
 
10246
         # linked, so don't bother handling this case.
 
10247
         esac
 
10248
       else
 
10249
         if test -z "$postdeps_CXX"; then
 
10250
           postdeps_CXX="${prev}${p}"
 
10251
         else
 
10252
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10253
         fi
 
10254
       fi
 
10255
       ;;
 
10256
 
 
10257
    *.$objext)
 
10258
       # This assumes that the test object file only shows up
 
10259
       # once in the compiler output.
 
10260
       if test "$p" = "conftest.$objext"; then
 
10261
         pre_test_object_deps_done=yes
 
10262
         continue
 
10263
       fi
 
10264
 
 
10265
       if test "$pre_test_object_deps_done" = no; then
 
10266
         if test -z "$predep_objects_CXX"; then
 
10267
           predep_objects_CXX="$p"
 
10268
         else
 
10269
           predep_objects_CXX="$predep_objects_CXX $p"
 
10270
         fi
 
10271
       else
 
10272
         if test -z "$postdep_objects_CXX"; then
 
10273
           postdep_objects_CXX="$p"
 
10274
         else
 
10275
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10276
         fi
 
10277
       fi
 
10278
       ;;
 
10279
 
 
10280
    *) ;; # Ignore the rest.
 
10281
 
 
10282
    esac
 
10283
  done
 
10284
 
 
10285
  # Clean up.
 
10286
  rm -f a.out a.exe
 
10287
else
 
10288
  echo "libtool.m4: error: problem compiling CXX test program"
 
10289
fi
 
10290
 
 
10291
$rm -f confest.$objext
 
10292
 
 
10293
case " $postdeps_CXX " in
 
10294
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10295
esac
 
10296
 
 
10297
lt_prog_compiler_wl_CXX=
 
10298
lt_prog_compiler_pic_CXX=
 
10299
lt_prog_compiler_static_CXX=
 
10300
 
 
10301
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10302
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10303
 
 
10304
  # C++ specific cases for pic, static, wl, etc.
 
10305
  if test "$GXX" = yes; then
 
10306
    lt_prog_compiler_wl_CXX='-Wl,'
 
10307
    lt_prog_compiler_static_CXX='-static'
 
10308
 
 
10309
    case $host_os in
 
10310
    aix*)
 
10311
      # All AIX code is PIC.
 
10312
      if test "$host_cpu" = ia64; then
 
10313
        # AIX 5 now supports IA64 processor
 
10314
        lt_prog_compiler_static_CXX='-Bstatic'
 
10315
      fi
 
10316
      ;;
 
10317
    amigaos*)
 
10318
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10319
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10320
      # like `-m68040'.
 
10321
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10322
      ;;
 
10323
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10324
      # PIC is the default for these OSes.
 
10325
      ;;
 
10326
    mingw* | os2* | pw32*)
 
10327
      # This hack is so that the source file can tell whether it is being
 
10328
      # built for inclusion in a dll (and should export symbols for example).
 
10329
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10330
      ;;
 
10331
    darwin* | rhapsody*)
 
10332
      # PIC is the default on this platform
 
10333
      # Common symbols not allowed in MH_DYLIB files
 
10334
      lt_prog_compiler_pic_CXX='-fno-common'
 
10335
      ;;
 
10336
    *djgpp*)
 
10337
      # DJGPP does not support shared libraries at all
 
10338
      lt_prog_compiler_pic_CXX=
 
10339
      ;;
 
10340
    sysv4*MP*)
 
10341
      if test -d /usr/nec; then
 
10342
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10343
      fi
 
10344
      ;;
 
10345
    hpux*)
 
10346
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10347
      # not for PA HP-UX.
 
10348
      case "$host_cpu" in
 
10349
      hppa*64*|ia64*)
 
10350
        ;;
 
10351
      *)
 
10352
        lt_prog_compiler_pic_CXX='-fPIC'
 
10353
        ;;
 
10354
      esac
 
10355
      ;;
 
10356
    *)
 
10357
      lt_prog_compiler_pic_CXX='-fPIC'
 
10358
      ;;
 
10359
    esac
 
10360
  else
 
10361
    case $host_os in
 
10362
      aix4* | aix5*)
 
10363
        # All AIX code is PIC.
 
10364
        if test "$host_cpu" = ia64; then
 
10365
          # AIX 5 now supports IA64 processor
 
10366
          lt_prog_compiler_static_CXX='-Bstatic'
 
10367
        else
 
10368
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10369
        fi
 
10370
        ;;
 
10371
      chorus*)
 
10372
        case $cc_basename in
 
10373
        cxch68)
 
10374
          # Green Hills C++ Compiler
 
10375
          # _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"
 
10376
          ;;
 
10377
        esac
 
10378
        ;;
 
10379
      dgux*)
 
10380
        case $cc_basename in
 
10381
          ec++)
 
10382
            lt_prog_compiler_pic_CXX='-KPIC'
 
10383
            ;;
 
10384
          ghcx)
 
10385
            # Green Hills C++ Compiler
 
10386
            lt_prog_compiler_pic_CXX='-pic'
 
10387
            ;;
 
10388
          *)
 
10389
            ;;
 
10390
        esac
 
10391
        ;;
 
10392
      freebsd* | kfreebsd*-gnu)
 
10393
        # FreeBSD uses GNU C++
 
10394
        ;;
 
10395
      hpux9* | hpux10* | hpux11*)
 
10396
        case $cc_basename in
 
10397
          CC)
 
10398
            lt_prog_compiler_wl_CXX='-Wl,'
 
10399
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10400
            if test "$host_cpu" != ia64; then
 
10401
              lt_prog_compiler_pic_CXX='+Z'
 
10402
            fi
 
10403
            ;;
 
10404
          aCC)
 
10405
            lt_prog_compiler_wl_CXX='-Wl,'
 
10406
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10407
            case "$host_cpu" in
 
10408
            hppa*64*|ia64*)
 
10409
              # +Z the default
 
10410
              ;;
 
10411
            *)
 
10412
              lt_prog_compiler_pic_CXX='+Z'
 
10413
              ;;
 
10414
            esac
 
10415
            ;;
 
10416
          *)
 
10417
            ;;
 
10418
        esac
 
10419
        ;;
 
10420
      irix5* | irix6* | nonstopux*)
 
10421
        case $cc_basename in
 
10422
          CC)
 
10423
            lt_prog_compiler_wl_CXX='-Wl,'
 
10424
            lt_prog_compiler_static_CXX='-non_shared'
 
10425
            # CC pic flag -KPIC is the default.
 
10426
            ;;
 
10427
          *)
 
10428
            ;;
 
10429
        esac
 
10430
        ;;
 
10431
      linux*)
 
10432
        case $cc_basename in
 
10433
          KCC)
 
10434
            # KAI C++ Compiler
 
10435
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10436
            lt_prog_compiler_pic_CXX='-fPIC'
 
10437
            ;;
 
10438
          icpc)
 
10439
            # Intel C++
 
10440
            lt_prog_compiler_wl_CXX='-Wl,'
 
10441
            lt_prog_compiler_pic_CXX='-KPIC'
 
10442
            lt_prog_compiler_static_CXX='-static'
 
10443
            ;;
 
10444
          cxx)
 
10445
            # Compaq C++
 
10446
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10447
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10448
            lt_prog_compiler_pic_CXX=
 
10449
            lt_prog_compiler_static_CXX='-non_shared'
 
10450
            ;;
 
10451
          *)
 
10452
            ;;
 
10453
        esac
 
10454
        ;;
 
10455
      lynxos*)
 
10456
        ;;
 
10457
      m88k*)
 
10458
        ;;
 
10459
      mvs*)
 
10460
        case $cc_basename in
 
10461
          cxx)
 
10462
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10463
            ;;
 
10464
          *)
 
10465
            ;;
 
10466
        esac
 
10467
        ;;
 
10468
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10469
        ;;
 
10470
      osf3* | osf4* | osf5*)
 
10471
        case $cc_basename in
 
10472
          KCC)
 
10473
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10474
            ;;
 
10475
          RCC)
 
10476
            # Rational C++ 2.4.1
 
10477
            lt_prog_compiler_pic_CXX='-pic'
 
10478
            ;;
 
10479
          cxx)
 
10480
            # Digital/Compaq C++
 
10481
            lt_prog_compiler_wl_CXX='-Wl,'
 
10482
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10483
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10484
            lt_prog_compiler_pic_CXX=
 
10485
            lt_prog_compiler_static_CXX='-non_shared'
 
10486
            ;;
 
10487
          *)
 
10488
            ;;
 
10489
        esac
 
10490
        ;;
 
10491
      psos*)
 
10492
        ;;
 
10493
      sco*)
 
10494
        case $cc_basename in
 
10495
          CC)
 
10496
            lt_prog_compiler_pic_CXX='-fPIC'
 
10497
            ;;
 
10498
          *)
 
10499
            ;;
 
10500
        esac
 
10501
        ;;
 
10502
      solaris*)
 
10503
        case $cc_basename in
 
10504
          CC)
 
10505
            # Sun C++ 4.2, 5.x and Centerline C++
 
10506
            lt_prog_compiler_pic_CXX='-KPIC'
 
10507
            lt_prog_compiler_static_CXX='-Bstatic'
 
10508
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10509
            ;;
 
10510
          gcx)
 
10511
            # Green Hills C++ Compiler
 
10512
            lt_prog_compiler_pic_CXX='-PIC'
 
10513
            ;;
 
10514
          *)
 
10515
            ;;
 
10516
        esac
 
10517
        ;;
 
10518
      sunos4*)
 
10519
        case $cc_basename in
 
10520
          CC)
 
10521
            # Sun C++ 4.x
 
10522
            lt_prog_compiler_pic_CXX='-pic'
 
10523
            lt_prog_compiler_static_CXX='-Bstatic'
 
10524
            ;;
 
10525
          lcc)
 
10526
            # Lucid
 
10527
            lt_prog_compiler_pic_CXX='-pic'
 
10528
            ;;
 
10529
          *)
 
10530
            ;;
 
10531
        esac
 
10532
        ;;
 
10533
      tandem*)
 
10534
        case $cc_basename in
 
10535
          NCC)
 
10536
            # NonStop-UX NCC 3.20
 
10537
            lt_prog_compiler_pic_CXX='-KPIC'
 
10538
            ;;
 
10539
          *)
 
10540
            ;;
 
10541
        esac
 
10542
        ;;
 
10543
      unixware*)
 
10544
        ;;
 
10545
      vxworks*)
 
10546
        ;;
 
10547
      *)
 
10548
        lt_prog_compiler_can_build_shared_CXX=no
 
10549
        ;;
 
10550
    esac
 
10551
  fi
 
10552
 
 
10553
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10554
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10555
 
 
10556
#
 
10557
# Check to make sure the PIC flag actually works.
 
10558
#
 
10559
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10560
 
 
10561
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10562
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10563
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10565
else
 
10566
  lt_prog_compiler_pic_works_CXX=no
 
10567
  ac_outfile=conftest.$ac_objext
 
10568
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10569
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10570
   # Insert the option either (1) after the last *FLAGS variable, or
 
10571
   # (2) before a word containing "conftest.", or (3) at the end.
 
10572
   # Note that $ac_compile itself does not contain backslashes and begins
 
10573
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10574
   # The option is referenced via a variable to avoid confusing sed.
 
10575
   lt_compile=`echo "$ac_compile" | $SED \
 
10576
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10577
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10578
   -e 's:$: $lt_compiler_flag:'`
 
10579
   (eval echo "\"\$as_me:10579: $lt_compile\"" >&5)
 
10580
   (eval "$lt_compile" 2>conftest.err)
 
10581
   ac_status=$?
 
10582
   cat conftest.err >&5
 
10583
   echo "$as_me:10583: \$? = $ac_status" >&5
 
10584
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10585
     # The compiler can only warn and ignore the option if not recognized
 
10586
     # So say no if there are warnings
 
10587
     if test ! -s conftest.err; then
 
10588
       lt_prog_compiler_pic_works_CXX=yes
 
10589
     fi
 
10590
   fi
 
10591
   $rm conftest*
 
10592
 
 
10593
fi
 
10594
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10595
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
10596
 
 
10597
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
10598
    case $lt_prog_compiler_pic_CXX in
 
10599
     "" | " "*) ;;
 
10600
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
10601
     esac
 
10602
else
 
10603
    lt_prog_compiler_pic_CXX=
 
10604
     lt_prog_compiler_can_build_shared_CXX=no
 
10605
fi
 
10606
 
 
10607
fi
 
10608
case "$host_os" in
 
10609
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10610
  *djgpp*)
 
10611
    lt_prog_compiler_pic_CXX=
 
10612
    ;;
 
10613
  *)
 
10614
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
10615
    ;;
 
10616
esac
 
10617
 
 
10618
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10619
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
10620
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
10621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10622
else
 
10623
  lt_cv_prog_compiler_c_o_CXX=no
 
10624
   $rm -r conftest 2>/dev/null
 
10625
   mkdir conftest
 
10626
   cd conftest
 
10627
   mkdir out
 
10628
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10629
 
 
10630
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10631
   # Insert the option either (1) after the last *FLAGS variable, or
 
10632
   # (2) before a word containing "conftest.", or (3) at the end.
 
10633
   # Note that $ac_compile itself does not contain backslashes and begins
 
10634
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10635
   lt_compile=`echo "$ac_compile" | $SED \
 
10636
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10637
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10638
   -e 's:$: $lt_compiler_flag:'`
 
10639
   (eval echo "\"\$as_me:10639: $lt_compile\"" >&5)
 
10640
   (eval "$lt_compile" 2>out/conftest.err)
 
10641
   ac_status=$?
 
10642
   cat out/conftest.err >&5
 
10643
   echo "$as_me:10643: \$? = $ac_status" >&5
 
10644
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10645
   then
 
10646
     # The compiler can only warn and ignore the option if not recognized
 
10647
     # So say no if there are warnings
 
10648
     if test ! -s out/conftest.err; then
 
10649
       lt_cv_prog_compiler_c_o_CXX=yes
 
10650
     fi
 
10651
   fi
 
10652
   chmod u+w .
 
10653
   $rm conftest*
 
10654
   # SGI C++ compiler will create directory out/ii_files/ for
 
10655
   # template instantiation
 
10656
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
10657
   $rm out/* && rmdir out
 
10658
   cd ..
 
10659
   rmdir conftest
 
10660
   $rm conftest*
 
10661
 
 
10662
fi
 
10663
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10664
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
10665
 
 
10666
 
 
10667
hard_links="nottested"
 
10668
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
10669
  # do not overwrite the value of need_locks provided by the user
 
10670
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10671
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
10672
  hard_links=yes
 
10673
  $rm conftest*
 
10674
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10675
  touch conftest.a
 
10676
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10677
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10678
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10679
echo "${ECHO_T}$hard_links" >&6
 
10680
  if test "$hard_links" = no; then
 
10681
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10682
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10683
    need_locks=warn
 
10684
  fi
 
10685
else
 
10686
  need_locks=no
 
10687
fi
 
10688
 
 
10689
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10690
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10691
 
 
10692
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10693
  case $host_os in
 
10694
  aix4* | aix5*)
 
10695
    # If we're using GNU nm, then we don't want the "-C" option.
 
10696
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10697
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10698
      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'
 
10699
    else
 
10700
      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'
 
10701
    fi
 
10702
    ;;
 
10703
  pw32*)
 
10704
    export_symbols_cmds_CXX="$ltdll_cmds"
 
10705
  ;;
 
10706
  cygwin* | mingw*)
 
10707
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10708
  ;;
 
10709
  linux*)
 
10710
    link_all_deplibs_CXX=no
 
10711
  ;;
 
10712
  *)
 
10713
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10714
  ;;
 
10715
  esac
 
10716
 
 
10717
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10718
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10719
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10720
 
 
10721
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10722
if test "$GCC" = yes; then
 
10723
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10724
fi
 
10725
 
 
10726
#
 
10727
# Do we need to explicitly link libc?
 
10728
#
 
10729
case "x$archive_cmds_need_lc_CXX" in
 
10730
x|xyes)
 
10731
  # Assume -lc should be added
 
10732
  archive_cmds_need_lc_CXX=yes
 
10733
 
 
10734
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10735
    case $archive_cmds_CXX in
 
10736
    *'~'*)
 
10737
      # FIXME: we may have to deal with multi-command sequences.
 
10738
      ;;
 
10739
    '$CC '*)
 
10740
      # Test whether the compiler implicitly links with -lc since on some
 
10741
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10742
      # to ld, don't add -lc before -lgcc.
 
10743
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10744
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10745
      $rm conftest*
 
10746
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10747
 
 
10748
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10749
  (eval $ac_compile) 2>&5
 
10750
  ac_status=$?
 
10751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10752
  (exit $ac_status); } 2>conftest.err; then
 
10753
        soname=conftest
 
10754
        lib=conftest
 
10755
        libobjs=conftest.$ac_objext
 
10756
        deplibs=
 
10757
        wl=$lt_prog_compiler_wl_CXX
 
10758
        compiler_flags=-v
 
10759
        linker_flags=-v
 
10760
        verstring=
 
10761
        output_objdir=.
 
10762
        libname=conftest
 
10763
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
10764
        allow_undefined_flag_CXX=
 
10765
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10766
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10767
  ac_status=$?
 
10768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10769
  (exit $ac_status); }
 
10770
        then
 
10771
          archive_cmds_need_lc_CXX=no
 
10772
        else
 
10773
          archive_cmds_need_lc_CXX=yes
 
10774
        fi
 
10775
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
10776
      else
 
10777
        cat conftest.err 1>&5
 
10778
      fi
 
10779
      $rm conftest*
 
10780
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
10781
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
10782
      ;;
 
10783
    esac
 
10784
  fi
 
10785
  ;;
 
10786
esac
 
10787
 
 
10788
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10789
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10790
library_names_spec=
 
10791
libname_spec='lib$name'
 
10792
soname_spec=
 
10793
shrext_cmds=".so"
 
10794
postinstall_cmds=
 
10795
postuninstall_cmds=
 
10796
finish_cmds=
 
10797
finish_eval=
 
10798
shlibpath_var=
 
10799
shlibpath_overrides_runpath=unknown
 
10800
version_type=none
 
10801
dynamic_linker="$host_os ld.so"
 
10802
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10803
if test "$GCC" = yes; then
 
10804
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10805
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10806
    # if the path contains ";" then we assume it to be the separator
 
10807
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10808
    # assumed that no part of a normal pathname contains ";" but that should
 
10809
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10810
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10811
  else
 
10812
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10813
  fi
 
10814
else
 
10815
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10816
fi
 
10817
need_lib_prefix=unknown
 
10818
hardcode_into_libs=no
 
10819
 
 
10820
# when you set need_version to no, make sure it does not cause -set_version
 
10821
# flags to be left without arguments
 
10822
need_version=unknown
 
10823
 
 
10824
case $host_os in
 
10825
aix3*)
 
10826
  version_type=linux
 
10827
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10828
  shlibpath_var=LIBPATH
 
10829
 
 
10830
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10831
  soname_spec='${libname}${release}${shared_ext}$major'
 
10832
  ;;
 
10833
 
 
10834
aix4* | aix5*)
 
10835
  version_type=linux
 
10836
  need_lib_prefix=no
 
10837
  need_version=no
 
10838
  hardcode_into_libs=yes
 
10839
  if test "$host_cpu" = ia64; then
 
10840
    # AIX 5 supports IA64
 
10841
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10842
    shlibpath_var=LD_LIBRARY_PATH
 
10843
  else
 
10844
    # With GCC up to 2.95.x, collect2 would create an import file
 
10845
    # for dependence libraries.  The import file would start with
 
10846
    # the line `#! .'.  This would cause the generated library to
 
10847
    # depend on `.', always an invalid library.  This was fixed in
 
10848
    # development snapshots of GCC prior to 3.0.
 
10849
    case $host_os in
 
10850
      aix4 | aix4.[01] | aix4.[01].*)
 
10851
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10852
           echo ' yes '
 
10853
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10854
        :
 
10855
      else
 
10856
        can_build_shared=no
 
10857
      fi
 
10858
      ;;
 
10859
    esac
 
10860
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10861
    # soname into executable. Probably we can add versioning support to
 
10862
    # collect2, so additional links can be useful in future.
 
10863
    if test "$aix_use_runtimelinking" = yes; then
 
10864
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10865
      # instead of lib<name>.a to let people know that these are not
 
10866
      # typical AIX shared libraries.
 
10867
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10868
    else
 
10869
      # We preserve .a as extension for shared libraries through AIX4.2
 
10870
      # and later when we are not doing run time linking.
 
10871
      library_names_spec='${libname}${release}.a $libname.a'
 
10872
      soname_spec='${libname}${release}${shared_ext}$major'
 
10873
    fi
 
10874
    shlibpath_var=LIBPATH
 
10875
  fi
 
10876
  ;;
 
10877
 
 
10878
amigaos*)
 
10879
  library_names_spec='$libname.ixlibrary $libname.a'
 
10880
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10881
  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'
 
10882
  ;;
 
10883
 
 
10884
beos*)
 
10885
  library_names_spec='${libname}${shared_ext}'
 
10886
  dynamic_linker="$host_os ld.so"
 
10887
  shlibpath_var=LIBRARY_PATH
 
10888
  ;;
 
10889
 
 
10890
bsdi4*)
 
10891
  version_type=linux
 
10892
  need_version=no
 
10893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10894
  soname_spec='${libname}${release}${shared_ext}$major'
 
10895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10896
  shlibpath_var=LD_LIBRARY_PATH
 
10897
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10898
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10899
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10900
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10901
  # libtool to hard-code these into programs
 
10902
  ;;
 
10903
 
 
10904
cygwin* | mingw* | pw32*)
 
10905
  version_type=windows
 
10906
  shrext_cmds=".dll"
 
10907
  need_version=no
 
10908
  need_lib_prefix=no
 
10909
 
 
10910
  case $GCC,$host_os in
 
10911
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10912
    library_names_spec='$libname.dll.a'
 
10913
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10914
    postinstall_cmds='base_file=`basename \${file}`~
 
10915
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10916
      dldir=$destdir/`dirname \$dlpath`~
 
10917
      test -d \$dldir || mkdir -p \$dldir~
 
10918
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10919
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10920
      dlpath=$dir/\$dldll~
 
10921
       $rm \$dlpath'
 
10922
    shlibpath_overrides_runpath=yes
 
10923
 
 
10924
    case $host_os in
 
10925
    cygwin*)
 
10926
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10927
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10928
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10929
      ;;
 
10930
    mingw*)
 
10931
      # MinGW DLLs use traditional 'lib' prefix
 
10932
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10933
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10934
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10935
        # It is most probably a Windows format PATH printed by
 
10936
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10937
        # path with ; separators, and with drive letters. We can handle the
 
10938
        # drive letters (cygwin fileutils understands them), so leave them,
 
10939
        # especially as we might pass files found there to a mingw objdump,
 
10940
        # which wouldn't understand a cygwinified path. Ahh.
 
10941
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10942
      else
 
10943
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10944
      fi
 
10945
      ;;
 
10946
    pw32*)
 
10947
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10948
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10949
      ;;
 
10950
    esac
 
10951
    ;;
 
10952
 
 
10953
  *)
 
10954
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10955
    ;;
 
10956
  esac
 
10957
  dynamic_linker='Win32 ld.exe'
 
10958
  # FIXME: first we should search . and the directory the executable is in
 
10959
  shlibpath_var=PATH
 
10960
  ;;
 
10961
 
 
10962
darwin* | rhapsody*)
 
10963
  dynamic_linker="$host_os dyld"
 
10964
  version_type=darwin
 
10965
  need_lib_prefix=no
 
10966
  need_version=no
 
10967
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10968
  soname_spec='${libname}${release}${major}$shared_ext'
 
10969
  shlibpath_overrides_runpath=yes
 
10970
  shlibpath_var=DYLD_LIBRARY_PATH
 
10971
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
10972
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10973
  if test "$GCC" = yes; then
 
10974
    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"`
 
10975
  else
 
10976
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10977
  fi
 
10978
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10979
  ;;
 
10980
 
 
10981
dgux*)
 
10982
  version_type=linux
 
10983
  need_lib_prefix=no
 
10984
  need_version=no
 
10985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10986
  soname_spec='${libname}${release}${shared_ext}$major'
 
10987
  shlibpath_var=LD_LIBRARY_PATH
 
10988
  ;;
 
10989
 
 
10990
freebsd1*)
 
10991
  dynamic_linker=no
 
10992
  ;;
 
10993
 
 
10994
kfreebsd*-gnu)
 
10995
  version_type=linux
 
10996
  need_lib_prefix=no
 
10997
  need_version=no
 
10998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10999
  soname_spec='${libname}${release}${shared_ext}$major'
 
11000
  shlibpath_var=LD_LIBRARY_PATH
 
11001
  shlibpath_overrides_runpath=no
 
11002
  hardcode_into_libs=yes
 
11003
  dynamic_linker='GNU ld.so'
 
11004
  ;;
 
11005
 
 
11006
freebsd*)
 
11007
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11008
  version_type=freebsd-$objformat
 
11009
  case $version_type in
 
11010
    freebsd-elf*)
 
11011
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11012
      need_version=no
 
11013
      need_lib_prefix=no
 
11014
      ;;
 
11015
    freebsd-*)
 
11016
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11017
      need_version=yes
 
11018
      ;;
 
11019
  esac
 
11020
  shlibpath_var=LD_LIBRARY_PATH
 
11021
  case $host_os in
 
11022
  freebsd2*)
 
11023
    shlibpath_overrides_runpath=yes
 
11024
    ;;
 
11025
  freebsd3.01* | freebsdelf3.01*)
 
11026
    shlibpath_overrides_runpath=yes
 
11027
    hardcode_into_libs=yes
 
11028
    ;;
 
11029
  *) # from 3.2 on
 
11030
    shlibpath_overrides_runpath=no
 
11031
    hardcode_into_libs=yes
 
11032
    ;;
 
11033
  esac
 
11034
  ;;
 
11035
 
 
11036
gnu*)
 
11037
  version_type=linux
 
11038
  need_lib_prefix=no
 
11039
  need_version=no
 
11040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11041
  soname_spec='${libname}${release}${shared_ext}$major'
 
11042
  shlibpath_var=LD_LIBRARY_PATH
 
11043
  hardcode_into_libs=yes
 
11044
  ;;
 
11045
 
 
11046
hpux9* | hpux10* | hpux11*)
 
11047
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11048
  # link against other versions.
 
11049
  version_type=sunos
 
11050
  need_lib_prefix=no
 
11051
  need_version=no
 
11052
  case "$host_cpu" in
 
11053
  ia64*)
 
11054
    shrext_cmds='.so'
 
11055
    hardcode_into_libs=yes
 
11056
    dynamic_linker="$host_os dld.so"
 
11057
    shlibpath_var=LD_LIBRARY_PATH
 
11058
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11059
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11060
    soname_spec='${libname}${release}${shared_ext}$major'
 
11061
    if test "X$HPUX_IA64_MODE" = X32; then
 
11062
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11063
    else
 
11064
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11065
    fi
 
11066
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11067
    ;;
 
11068
   hppa*64*)
 
11069
     shrext_cmds='.sl'
 
11070
     hardcode_into_libs=yes
 
11071
     dynamic_linker="$host_os dld.sl"
 
11072
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11073
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11074
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11075
     soname_spec='${libname}${release}${shared_ext}$major'
 
11076
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11077
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11078
     ;;
 
11079
   *)
 
11080
    shrext_cmds='.sl'
 
11081
    dynamic_linker="$host_os dld.sl"
 
11082
    shlibpath_var=SHLIB_PATH
 
11083
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11084
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11085
    soname_spec='${libname}${release}${shared_ext}$major'
 
11086
    ;;
 
11087
  esac
 
11088
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11089
  postinstall_cmds='chmod 555 $lib'
 
11090
  ;;
 
11091
 
 
11092
irix5* | irix6* | nonstopux*)
 
11093
  case $host_os in
 
11094
    nonstopux*) version_type=nonstopux ;;
 
11095
    *)
 
11096
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11097
                version_type=linux
 
11098
        else
 
11099
                version_type=irix
 
11100
        fi ;;
 
11101
  esac
 
11102
  need_lib_prefix=no
 
11103
  need_version=no
 
11104
  soname_spec='${libname}${release}${shared_ext}$major'
 
11105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11106
  case $host_os in
 
11107
  irix5* | nonstopux*)
 
11108
    libsuff= shlibsuff=
 
11109
    ;;
 
11110
  *)
 
11111
    case $LD in # libtool.m4 will add one of these switches to LD
 
11112
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11113
      libsuff= shlibsuff= libmagic=32-bit;;
 
11114
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11115
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11116
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11117
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11118
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11119
    esac
 
11120
    ;;
 
11121
  esac
 
11122
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11123
  shlibpath_overrides_runpath=no
 
11124
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11125
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11126
  hardcode_into_libs=yes
 
11127
  ;;
 
11128
 
 
11129
# No shared lib support for Linux oldld, aout, or coff.
 
11130
linux*oldld* | linux*aout* | linux*coff*)
 
11131
  dynamic_linker=no
 
11132
  ;;
 
11133
 
 
11134
# This must be Linux ELF.
 
11135
linux*)
 
11136
  version_type=linux
 
11137
  need_lib_prefix=no
 
11138
  need_version=no
 
11139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11140
  soname_spec='${libname}${release}${shared_ext}$major'
 
11141
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11142
  shlibpath_var=LD_LIBRARY_PATH
 
11143
  shlibpath_overrides_runpath=no
 
11144
  # This implies no fast_install, which is unacceptable.
 
11145
  # Some rework will be needed to allow for fast_install
 
11146
  # before this can be enabled.
 
11147
  hardcode_into_libs=yes
 
11148
 
 
11149
  # Append ld.so.conf contents to the search path
 
11150
  if test -f /etc/ld.so.conf; then
 
11151
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11152
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11153
  fi
 
11154
 
 
11155
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11156
  # powerpc, because MkLinux only supported shared libraries with the
 
11157
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11158
  # most powerpc-linux boxes support dynamic linking these days and
 
11159
  # people can always --disable-shared, the test was removed, and we
 
11160
  # assume the GNU/Linux dynamic linker is in use.
 
11161
  dynamic_linker='GNU/Linux ld.so'
 
11162
  ;;
 
11163
 
 
11164
netbsdelf*-gnu)
 
11165
  version_type=linux
 
11166
  need_lib_prefix=no
 
11167
  need_version=no
 
11168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11169
  soname_spec='${libname}${release}${shared_ext}$major'
 
11170
  shlibpath_var=LD_LIBRARY_PATH
 
11171
  shlibpath_overrides_runpath=no
 
11172
  hardcode_into_libs=yes
 
11173
  dynamic_linker='NetBSD ld.elf_so'
 
11174
  ;;
 
11175
 
 
11176
knetbsd*-gnu)
 
11177
  version_type=linux
 
11178
  need_lib_prefix=no
 
11179
  need_version=no
 
11180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11181
  soname_spec='${libname}${release}${shared_ext}$major'
 
11182
  shlibpath_var=LD_LIBRARY_PATH
 
11183
  shlibpath_overrides_runpath=no
 
11184
  hardcode_into_libs=yes
 
11185
  dynamic_linker='GNU ld.so'
 
11186
  ;;
 
11187
 
 
11188
netbsd*)
 
11189
  version_type=sunos
 
11190
  need_lib_prefix=no
 
11191
  need_version=no
 
11192
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11193
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11194
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11195
    dynamic_linker='NetBSD (a.out) ld.so'
 
11196
  else
 
11197
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11198
    soname_spec='${libname}${release}${shared_ext}$major'
 
11199
    dynamic_linker='NetBSD ld.elf_so'
 
11200
  fi
 
11201
  shlibpath_var=LD_LIBRARY_PATH
 
11202
  shlibpath_overrides_runpath=yes
 
11203
  hardcode_into_libs=yes
 
11204
  ;;
 
11205
 
 
11206
newsos6)
 
11207
  version_type=linux
 
11208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11209
  shlibpath_var=LD_LIBRARY_PATH
 
11210
  shlibpath_overrides_runpath=yes
 
11211
  ;;
 
11212
 
 
11213
nto-qnx*)
 
11214
  version_type=linux
 
11215
  need_lib_prefix=no
 
11216
  need_version=no
 
11217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11218
  soname_spec='${libname}${release}${shared_ext}$major'
 
11219
  shlibpath_var=LD_LIBRARY_PATH
 
11220
  shlibpath_overrides_runpath=yes
 
11221
  ;;
 
11222
 
 
11223
openbsd*)
 
11224
  version_type=sunos
 
11225
  need_lib_prefix=no
 
11226
  need_version=yes
 
11227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11228
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11229
  shlibpath_var=LD_LIBRARY_PATH
 
11230
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11231
    case $host_os in
 
11232
      openbsd2.[89] | openbsd2.[89].*)
 
11233
        shlibpath_overrides_runpath=no
 
11234
        ;;
 
11235
      *)
 
11236
        shlibpath_overrides_runpath=yes
 
11237
        ;;
 
11238
      esac
 
11239
  else
 
11240
    shlibpath_overrides_runpath=yes
 
11241
  fi
 
11242
  ;;
 
11243
 
 
11244
os2*)
 
11245
  libname_spec='$name'
 
11246
  shrext_cmds=".dll"
 
11247
  need_lib_prefix=no
 
11248
  library_names_spec='$libname${shared_ext} $libname.a'
 
11249
  dynamic_linker='OS/2 ld.exe'
 
11250
  shlibpath_var=LIBPATH
 
11251
  ;;
 
11252
 
 
11253
osf3* | osf4* | osf5*)
 
11254
  version_type=osf
 
11255
  need_lib_prefix=no
 
11256
  need_version=no
 
11257
  soname_spec='${libname}${release}${shared_ext}$major'
 
11258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11259
  shlibpath_var=LD_LIBRARY_PATH
 
11260
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11261
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11262
  ;;
 
11263
 
 
11264
sco3.2v5*)
 
11265
  version_type=osf
 
11266
  soname_spec='${libname}${release}${shared_ext}$major'
 
11267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11268
  shlibpath_var=LD_LIBRARY_PATH
 
11269
  ;;
 
11270
 
 
11271
solaris*)
 
11272
  version_type=linux
 
11273
  need_lib_prefix=no
 
11274
  need_version=no
 
11275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11276
  soname_spec='${libname}${release}${shared_ext}$major'
 
11277
  shlibpath_var=LD_LIBRARY_PATH
 
11278
  shlibpath_overrides_runpath=yes
 
11279
  hardcode_into_libs=yes
 
11280
  # ldd complains unless libraries are executable
 
11281
  postinstall_cmds='chmod +x $lib'
 
11282
  ;;
 
11283
 
 
11284
sunos4*)
 
11285
  version_type=sunos
 
11286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11287
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11288
  shlibpath_var=LD_LIBRARY_PATH
 
11289
  shlibpath_overrides_runpath=yes
 
11290
  if test "$with_gnu_ld" = yes; then
 
11291
    need_lib_prefix=no
 
11292
  fi
 
11293
  need_version=yes
 
11294
  ;;
 
11295
 
 
11296
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11297
  version_type=linux
 
11298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11299
  soname_spec='${libname}${release}${shared_ext}$major'
 
11300
  shlibpath_var=LD_LIBRARY_PATH
 
11301
  case $host_vendor in
 
11302
    sni)
 
11303
      shlibpath_overrides_runpath=no
 
11304
      need_lib_prefix=no
 
11305
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11306
      runpath_var=LD_RUN_PATH
 
11307
      ;;
 
11308
    siemens)
 
11309
      need_lib_prefix=no
 
11310
      ;;
 
11311
    motorola)
 
11312
      need_lib_prefix=no
 
11313
      need_version=no
 
11314
      shlibpath_overrides_runpath=no
 
11315
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11316
      ;;
 
11317
  esac
 
11318
  ;;
 
11319
 
 
11320
sysv4*MP*)
 
11321
  if test -d /usr/nec ;then
 
11322
    version_type=linux
 
11323
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11324
    soname_spec='$libname${shared_ext}.$major'
 
11325
    shlibpath_var=LD_LIBRARY_PATH
 
11326
  fi
 
11327
  ;;
 
11328
 
 
11329
uts4*)
 
11330
  version_type=linux
 
11331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11332
  soname_spec='${libname}${release}${shared_ext}$major'
 
11333
  shlibpath_var=LD_LIBRARY_PATH
 
11334
  ;;
 
11335
 
 
11336
*)
 
11337
  dynamic_linker=no
 
11338
  ;;
 
11339
esac
 
11340
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11341
echo "${ECHO_T}$dynamic_linker" >&6
 
11342
test "$dynamic_linker" = no && can_build_shared=no
 
11343
 
 
11344
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11345
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11346
hardcode_action_CXX=
 
11347
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11348
   test -n "$runpath_var CXX" || \
 
11349
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11350
 
 
11351
  # We can hardcode non-existant directories.
 
11352
  if test "$hardcode_direct_CXX" != no &&
 
11353
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11354
     # have to relink, otherwise we might link with an installed library
 
11355
     # when we should be linking with a yet-to-be-installed one
 
11356
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11357
     test "$hardcode_minus_L_CXX" != no; then
 
11358
    # Linking always hardcodes the temporary library directory.
 
11359
    hardcode_action_CXX=relink
 
11360
  else
 
11361
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11362
    hardcode_action_CXX=immediate
 
11363
  fi
 
11364
else
 
11365
  # We cannot hardcode anything, or else we can only hardcode existing
 
11366
  # directories.
 
11367
  hardcode_action_CXX=unsupported
 
11368
fi
 
11369
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11370
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11371
 
 
11372
if test "$hardcode_action_CXX" = relink; then
 
11373
  # Fast installation is not supported
 
11374
  enable_fast_install=no
 
11375
elif test "$shlibpath_overrides_runpath" = yes ||
 
11376
     test "$enable_shared" = no; then
 
11377
  # Fast installation is not necessary
 
11378
  enable_fast_install=needless
 
11379
fi
 
11380
 
 
11381
striplib=
 
11382
old_striplib=
 
11383
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11384
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11385
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11386
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11387
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11388
  echo "$as_me:$LINENO: result: yes" >&5
 
11389
echo "${ECHO_T}yes" >&6
 
11390
else
 
11391
# FIXME - insert some real tests, host_os isn't really good enough
 
11392
  case $host_os in
 
11393
   darwin*)
 
11394
       if test -n "$STRIP" ; then
 
11395
         striplib="$STRIP -x"
 
11396
         echo "$as_me:$LINENO: result: yes" >&5
 
11397
echo "${ECHO_T}yes" >&6
 
11398
       else
 
11399
  echo "$as_me:$LINENO: result: no" >&5
 
11400
echo "${ECHO_T}no" >&6
 
11401
fi
 
11402
       ;;
 
11403
   *)
 
11404
  echo "$as_me:$LINENO: result: no" >&5
 
11405
echo "${ECHO_T}no" >&6
 
11406
    ;;
 
11407
  esac
 
11408
fi
 
11409
 
 
11410
if test "x$enable_dlopen" != xyes; then
 
11411
  enable_dlopen=unknown
 
11412
  enable_dlopen_self=unknown
 
11413
  enable_dlopen_self_static=unknown
 
11414
else
 
11415
  lt_cv_dlopen=no
 
11416
  lt_cv_dlopen_libs=
 
11417
 
 
11418
  case $host_os in
 
11419
  beos*)
 
11420
    lt_cv_dlopen="load_add_on"
 
11421
    lt_cv_dlopen_libs=
 
11422
    lt_cv_dlopen_self=yes
 
11423
    ;;
 
11424
 
 
11425
  mingw* | pw32*)
 
11426
    lt_cv_dlopen="LoadLibrary"
 
11427
    lt_cv_dlopen_libs=
 
11428
   ;;
 
11429
 
 
11430
  cygwin*)
 
11431
    lt_cv_dlopen="dlopen"
 
11432
    lt_cv_dlopen_libs=
 
11433
   ;;
 
11434
 
 
11435
  darwin*)
 
11436
  # if libdl is installed we need to link against it
 
11437
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11438
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11439
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11441
else
 
11442
  ac_check_lib_save_LIBS=$LIBS
 
11443
LIBS="-ldl  $LIBS"
 
11444
cat >conftest.$ac_ext <<_ACEOF
 
11445
/* confdefs.h.  */
 
11446
_ACEOF
 
11447
cat confdefs.h >>conftest.$ac_ext
 
11448
cat >>conftest.$ac_ext <<_ACEOF
 
11449
/* end confdefs.h.  */
 
11450
 
 
11451
/* Override any gcc2 internal prototype to avoid an error.  */
 
11452
#ifdef __cplusplus
 
11453
extern "C"
 
11454
#endif
 
11455
/* We use char because int might match the return type of a gcc2
 
11456
   builtin and then its argument prototype would still apply.  */
 
11457
char dlopen ();
 
11458
int
 
11459
main ()
 
11460
{
 
11461
dlopen ();
 
11462
  ;
 
11463
  return 0;
 
11464
}
 
11465
_ACEOF
 
11466
rm -f conftest.$ac_objext conftest$ac_exeext
 
11467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11468
  (eval $ac_link) 2>conftest.er1
 
11469
  ac_status=$?
 
11470
  grep -v '^ *+' conftest.er1 >conftest.err
 
11471
  rm -f conftest.er1
 
11472
  cat conftest.err >&5
 
11473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11474
  (exit $ac_status); } &&
 
11475
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11477
  (eval $ac_try) 2>&5
 
11478
  ac_status=$?
 
11479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11480
  (exit $ac_status); }; } &&
 
11481
         { ac_try='test -s conftest$ac_exeext'
 
11482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11483
  (eval $ac_try) 2>&5
 
11484
  ac_status=$?
 
11485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11486
  (exit $ac_status); }; }; then
 
11487
  ac_cv_lib_dl_dlopen=yes
 
11488
else
 
11489
  echo "$as_me: failed program was:" >&5
 
11490
sed 's/^/| /' conftest.$ac_ext >&5
 
11491
 
 
11492
ac_cv_lib_dl_dlopen=no
 
11493
fi
 
11494
rm -f conftest.err conftest.$ac_objext \
 
11495
      conftest$ac_exeext conftest.$ac_ext
 
11496
LIBS=$ac_check_lib_save_LIBS
 
11497
fi
 
11498
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11499
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11500
if test $ac_cv_lib_dl_dlopen = yes; then
 
11501
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11502
else
 
11503
 
 
11504
    lt_cv_dlopen="dyld"
 
11505
    lt_cv_dlopen_libs=
 
11506
    lt_cv_dlopen_self=yes
 
11507
 
 
11508
fi
 
11509
 
 
11510
   ;;
 
11511
 
 
11512
  *)
 
11513
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11514
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11515
if test "${ac_cv_func_shl_load+set}" = set; then
 
11516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11517
else
 
11518
  cat >conftest.$ac_ext <<_ACEOF
 
11519
/* confdefs.h.  */
 
11520
_ACEOF
 
11521
cat confdefs.h >>conftest.$ac_ext
 
11522
cat >>conftest.$ac_ext <<_ACEOF
 
11523
/* end confdefs.h.  */
 
11524
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11525
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11526
#define shl_load innocuous_shl_load
 
11527
 
 
11528
/* System header to define __stub macros and hopefully few prototypes,
 
11529
    which can conflict with char shl_load (); below.
 
11530
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11531
    <limits.h> exists even on freestanding compilers.  */
 
11532
 
 
11533
#ifdef __STDC__
 
11534
# include <limits.h>
 
11535
#else
 
11536
# include <assert.h>
 
11537
#endif
 
11538
 
 
11539
#undef shl_load
 
11540
 
 
11541
/* Override any gcc2 internal prototype to avoid an error.  */
 
11542
#ifdef __cplusplus
 
11543
extern "C"
 
11544
{
 
11545
#endif
 
11546
/* We use char because int might match the return type of a gcc2
 
11547
   builtin and then its argument prototype would still apply.  */
 
11548
char shl_load ();
 
11549
/* The GNU C library defines this for functions which it implements
 
11550
    to always fail with ENOSYS.  Some functions are actually named
 
11551
    something starting with __ and the normal name is an alias.  */
 
11552
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11553
choke me
 
11554
#else
 
11555
char (*f) () = shl_load;
 
11556
#endif
 
11557
#ifdef __cplusplus
 
11558
}
 
11559
#endif
 
11560
 
 
11561
int
 
11562
main ()
 
11563
{
 
11564
return f != shl_load;
 
11565
  ;
 
11566
  return 0;
 
11567
}
 
11568
_ACEOF
 
11569
rm -f conftest.$ac_objext conftest$ac_exeext
 
11570
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11571
  (eval $ac_link) 2>conftest.er1
 
11572
  ac_status=$?
 
11573
  grep -v '^ *+' conftest.er1 >conftest.err
 
11574
  rm -f conftest.er1
 
11575
  cat conftest.err >&5
 
11576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11577
  (exit $ac_status); } &&
 
11578
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11580
  (eval $ac_try) 2>&5
 
11581
  ac_status=$?
 
11582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11583
  (exit $ac_status); }; } &&
 
11584
         { ac_try='test -s conftest$ac_exeext'
 
11585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11586
  (eval $ac_try) 2>&5
 
11587
  ac_status=$?
 
11588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11589
  (exit $ac_status); }; }; then
 
11590
  ac_cv_func_shl_load=yes
 
11591
else
 
11592
  echo "$as_me: failed program was:" >&5
 
11593
sed 's/^/| /' conftest.$ac_ext >&5
 
11594
 
 
11595
ac_cv_func_shl_load=no
 
11596
fi
 
11597
rm -f conftest.err conftest.$ac_objext \
 
11598
      conftest$ac_exeext conftest.$ac_ext
 
11599
fi
 
11600
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11601
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11602
if test $ac_cv_func_shl_load = yes; then
 
11603
  lt_cv_dlopen="shl_load"
 
11604
else
 
11605
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11606
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11607
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11609
else
 
11610
  ac_check_lib_save_LIBS=$LIBS
 
11611
LIBS="-ldld  $LIBS"
 
11612
cat >conftest.$ac_ext <<_ACEOF
 
11613
/* confdefs.h.  */
 
11614
_ACEOF
 
11615
cat confdefs.h >>conftest.$ac_ext
 
11616
cat >>conftest.$ac_ext <<_ACEOF
 
11617
/* end confdefs.h.  */
 
11618
 
 
11619
/* Override any gcc2 internal prototype to avoid an error.  */
 
11620
#ifdef __cplusplus
 
11621
extern "C"
 
11622
#endif
 
11623
/* We use char because int might match the return type of a gcc2
 
11624
   builtin and then its argument prototype would still apply.  */
 
11625
char shl_load ();
 
11626
int
 
11627
main ()
 
11628
{
 
11629
shl_load ();
 
11630
  ;
 
11631
  return 0;
 
11632
}
 
11633
_ACEOF
 
11634
rm -f conftest.$ac_objext conftest$ac_exeext
 
11635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11636
  (eval $ac_link) 2>conftest.er1
 
11637
  ac_status=$?
 
11638
  grep -v '^ *+' conftest.er1 >conftest.err
 
11639
  rm -f conftest.er1
 
11640
  cat conftest.err >&5
 
11641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11642
  (exit $ac_status); } &&
 
11643
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11645
  (eval $ac_try) 2>&5
 
11646
  ac_status=$?
 
11647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11648
  (exit $ac_status); }; } &&
 
11649
         { ac_try='test -s conftest$ac_exeext'
 
11650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11651
  (eval $ac_try) 2>&5
 
11652
  ac_status=$?
 
11653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11654
  (exit $ac_status); }; }; then
 
11655
  ac_cv_lib_dld_shl_load=yes
 
11656
else
 
11657
  echo "$as_me: failed program was:" >&5
 
11658
sed 's/^/| /' conftest.$ac_ext >&5
 
11659
 
 
11660
ac_cv_lib_dld_shl_load=no
 
11661
fi
 
11662
rm -f conftest.err conftest.$ac_objext \
 
11663
      conftest$ac_exeext conftest.$ac_ext
 
11664
LIBS=$ac_check_lib_save_LIBS
 
11665
fi
 
11666
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11667
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11668
if test $ac_cv_lib_dld_shl_load = yes; then
 
11669
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11670
else
 
11671
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11672
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11673
if test "${ac_cv_func_dlopen+set}" = set; then
 
11674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11675
else
 
11676
  cat >conftest.$ac_ext <<_ACEOF
 
11677
/* confdefs.h.  */
 
11678
_ACEOF
 
11679
cat confdefs.h >>conftest.$ac_ext
 
11680
cat >>conftest.$ac_ext <<_ACEOF
 
11681
/* end confdefs.h.  */
 
11682
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11683
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11684
#define dlopen innocuous_dlopen
 
11685
 
 
11686
/* System header to define __stub macros and hopefully few prototypes,
 
11687
    which can conflict with char dlopen (); below.
 
11688
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11689
    <limits.h> exists even on freestanding compilers.  */
 
11690
 
 
11691
#ifdef __STDC__
 
11692
# include <limits.h>
 
11693
#else
 
11694
# include <assert.h>
 
11695
#endif
 
11696
 
 
11697
#undef dlopen
 
11698
 
 
11699
/* Override any gcc2 internal prototype to avoid an error.  */
 
11700
#ifdef __cplusplus
 
11701
extern "C"
 
11702
{
 
11703
#endif
 
11704
/* We use char because int might match the return type of a gcc2
 
11705
   builtin and then its argument prototype would still apply.  */
 
11706
char dlopen ();
 
11707
/* The GNU C library defines this for functions which it implements
 
11708
    to always fail with ENOSYS.  Some functions are actually named
 
11709
    something starting with __ and the normal name is an alias.  */
 
11710
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11711
choke me
 
11712
#else
 
11713
char (*f) () = dlopen;
 
11714
#endif
 
11715
#ifdef __cplusplus
 
11716
}
 
11717
#endif
 
11718
 
 
11719
int
 
11720
main ()
 
11721
{
 
11722
return f != dlopen;
 
11723
  ;
 
11724
  return 0;
 
11725
}
 
11726
_ACEOF
 
11727
rm -f conftest.$ac_objext conftest$ac_exeext
 
11728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11729
  (eval $ac_link) 2>conftest.er1
 
11730
  ac_status=$?
 
11731
  grep -v '^ *+' conftest.er1 >conftest.err
 
11732
  rm -f conftest.er1
 
11733
  cat conftest.err >&5
 
11734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11735
  (exit $ac_status); } &&
 
11736
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11738
  (eval $ac_try) 2>&5
 
11739
  ac_status=$?
 
11740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11741
  (exit $ac_status); }; } &&
 
11742
         { ac_try='test -s conftest$ac_exeext'
 
11743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11744
  (eval $ac_try) 2>&5
 
11745
  ac_status=$?
 
11746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11747
  (exit $ac_status); }; }; then
 
11748
  ac_cv_func_dlopen=yes
 
11749
else
 
11750
  echo "$as_me: failed program was:" >&5
 
11751
sed 's/^/| /' conftest.$ac_ext >&5
 
11752
 
 
11753
ac_cv_func_dlopen=no
 
11754
fi
 
11755
rm -f conftest.err conftest.$ac_objext \
 
11756
      conftest$ac_exeext conftest.$ac_ext
 
11757
fi
 
11758
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11759
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11760
if test $ac_cv_func_dlopen = yes; then
 
11761
  lt_cv_dlopen="dlopen"
 
11762
else
 
11763
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11764
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11765
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11767
else
 
11768
  ac_check_lib_save_LIBS=$LIBS
 
11769
LIBS="-ldl  $LIBS"
 
11770
cat >conftest.$ac_ext <<_ACEOF
 
11771
/* confdefs.h.  */
 
11772
_ACEOF
 
11773
cat confdefs.h >>conftest.$ac_ext
 
11774
cat >>conftest.$ac_ext <<_ACEOF
 
11775
/* end confdefs.h.  */
 
11776
 
 
11777
/* Override any gcc2 internal prototype to avoid an error.  */
 
11778
#ifdef __cplusplus
 
11779
extern "C"
 
11780
#endif
 
11781
/* We use char because int might match the return type of a gcc2
 
11782
   builtin and then its argument prototype would still apply.  */
 
11783
char dlopen ();
 
11784
int
 
11785
main ()
 
11786
{
 
11787
dlopen ();
 
11788
  ;
 
11789
  return 0;
 
11790
}
 
11791
_ACEOF
 
11792
rm -f conftest.$ac_objext conftest$ac_exeext
 
11793
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11794
  (eval $ac_link) 2>conftest.er1
 
11795
  ac_status=$?
 
11796
  grep -v '^ *+' conftest.er1 >conftest.err
 
11797
  rm -f conftest.er1
 
11798
  cat conftest.err >&5
 
11799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11800
  (exit $ac_status); } &&
 
11801
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11803
  (eval $ac_try) 2>&5
 
11804
  ac_status=$?
 
11805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11806
  (exit $ac_status); }; } &&
 
11807
         { ac_try='test -s conftest$ac_exeext'
 
11808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11809
  (eval $ac_try) 2>&5
 
11810
  ac_status=$?
 
11811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11812
  (exit $ac_status); }; }; then
 
11813
  ac_cv_lib_dl_dlopen=yes
 
11814
else
 
11815
  echo "$as_me: failed program was:" >&5
 
11816
sed 's/^/| /' conftest.$ac_ext >&5
 
11817
 
 
11818
ac_cv_lib_dl_dlopen=no
 
11819
fi
 
11820
rm -f conftest.err conftest.$ac_objext \
 
11821
      conftest$ac_exeext conftest.$ac_ext
 
11822
LIBS=$ac_check_lib_save_LIBS
 
11823
fi
 
11824
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11825
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11826
if test $ac_cv_lib_dl_dlopen = yes; then
 
11827
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11828
else
 
11829
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11830
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11831
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11833
else
 
11834
  ac_check_lib_save_LIBS=$LIBS
 
11835
LIBS="-lsvld  $LIBS"
 
11836
cat >conftest.$ac_ext <<_ACEOF
 
11837
/* confdefs.h.  */
 
11838
_ACEOF
 
11839
cat confdefs.h >>conftest.$ac_ext
 
11840
cat >>conftest.$ac_ext <<_ACEOF
 
11841
/* end confdefs.h.  */
 
11842
 
 
11843
/* Override any gcc2 internal prototype to avoid an error.  */
 
11844
#ifdef __cplusplus
 
11845
extern "C"
 
11846
#endif
 
11847
/* We use char because int might match the return type of a gcc2
 
11848
   builtin and then its argument prototype would still apply.  */
 
11849
char dlopen ();
 
11850
int
 
11851
main ()
 
11852
{
 
11853
dlopen ();
 
11854
  ;
 
11855
  return 0;
 
11856
}
 
11857
_ACEOF
 
11858
rm -f conftest.$ac_objext conftest$ac_exeext
 
11859
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11860
  (eval $ac_link) 2>conftest.er1
 
11861
  ac_status=$?
 
11862
  grep -v '^ *+' conftest.er1 >conftest.err
 
11863
  rm -f conftest.er1
 
11864
  cat conftest.err >&5
 
11865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11866
  (exit $ac_status); } &&
 
11867
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11869
  (eval $ac_try) 2>&5
 
11870
  ac_status=$?
 
11871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11872
  (exit $ac_status); }; } &&
 
11873
         { ac_try='test -s conftest$ac_exeext'
 
11874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11875
  (eval $ac_try) 2>&5
 
11876
  ac_status=$?
 
11877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11878
  (exit $ac_status); }; }; then
 
11879
  ac_cv_lib_svld_dlopen=yes
 
11880
else
 
11881
  echo "$as_me: failed program was:" >&5
 
11882
sed 's/^/| /' conftest.$ac_ext >&5
 
11883
 
 
11884
ac_cv_lib_svld_dlopen=no
 
11885
fi
 
11886
rm -f conftest.err conftest.$ac_objext \
 
11887
      conftest$ac_exeext conftest.$ac_ext
 
11888
LIBS=$ac_check_lib_save_LIBS
 
11889
fi
 
11890
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11891
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11892
if test $ac_cv_lib_svld_dlopen = yes; then
 
11893
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11894
else
 
11895
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11896
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11897
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11899
else
 
11900
  ac_check_lib_save_LIBS=$LIBS
 
11901
LIBS="-ldld  $LIBS"
 
11902
cat >conftest.$ac_ext <<_ACEOF
 
11903
/* confdefs.h.  */
 
11904
_ACEOF
 
11905
cat confdefs.h >>conftest.$ac_ext
 
11906
cat >>conftest.$ac_ext <<_ACEOF
 
11907
/* end confdefs.h.  */
 
11908
 
 
11909
/* Override any gcc2 internal prototype to avoid an error.  */
 
11910
#ifdef __cplusplus
 
11911
extern "C"
 
11912
#endif
 
11913
/* We use char because int might match the return type of a gcc2
 
11914
   builtin and then its argument prototype would still apply.  */
 
11915
char dld_link ();
 
11916
int
 
11917
main ()
 
11918
{
 
11919
dld_link ();
 
11920
  ;
 
11921
  return 0;
 
11922
}
 
11923
_ACEOF
 
11924
rm -f conftest.$ac_objext conftest$ac_exeext
 
11925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11926
  (eval $ac_link) 2>conftest.er1
 
11927
  ac_status=$?
 
11928
  grep -v '^ *+' conftest.er1 >conftest.err
 
11929
  rm -f conftest.er1
 
11930
  cat conftest.err >&5
 
11931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11932
  (exit $ac_status); } &&
 
11933
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11935
  (eval $ac_try) 2>&5
 
11936
  ac_status=$?
 
11937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11938
  (exit $ac_status); }; } &&
 
11939
         { ac_try='test -s conftest$ac_exeext'
 
11940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11941
  (eval $ac_try) 2>&5
 
11942
  ac_status=$?
 
11943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11944
  (exit $ac_status); }; }; then
 
11945
  ac_cv_lib_dld_dld_link=yes
 
11946
else
 
11947
  echo "$as_me: failed program was:" >&5
 
11948
sed 's/^/| /' conftest.$ac_ext >&5
 
11949
 
 
11950
ac_cv_lib_dld_dld_link=no
 
11951
fi
 
11952
rm -f conftest.err conftest.$ac_objext \
 
11953
      conftest$ac_exeext conftest.$ac_ext
 
11954
LIBS=$ac_check_lib_save_LIBS
 
11955
fi
 
11956
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11957
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11958
if test $ac_cv_lib_dld_dld_link = yes; then
 
11959
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11960
fi
 
11961
 
 
11962
 
 
11963
fi
 
11964
 
 
11965
 
 
11966
fi
 
11967
 
 
11968
 
 
11969
fi
 
11970
 
 
11971
 
 
11972
fi
 
11973
 
 
11974
 
 
11975
fi
 
11976
 
 
11977
    ;;
 
11978
  esac
 
11979
 
 
11980
  if test "x$lt_cv_dlopen" != xno; then
 
11981
    enable_dlopen=yes
 
11982
  else
 
11983
    enable_dlopen=no
 
11984
  fi
 
11985
 
 
11986
  case $lt_cv_dlopen in
 
11987
  dlopen)
 
11988
    save_CPPFLAGS="$CPPFLAGS"
 
11989
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11990
 
 
11991
    save_LDFLAGS="$LDFLAGS"
 
11992
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11993
 
 
11994
    save_LIBS="$LIBS"
 
11995
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11996
 
 
11997
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11998
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11999
if test "${lt_cv_dlopen_self+set}" = set; then
 
12000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12001
else
 
12002
          if test "$cross_compiling" = yes; then :
 
12003
  lt_cv_dlopen_self=cross
 
12004
else
 
12005
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12006
  lt_status=$lt_dlunknown
 
12007
  cat > conftest.$ac_ext <<EOF
 
12008
#line 12008 "configure"
 
12009
#include "confdefs.h"
 
12010
 
 
12011
#if HAVE_DLFCN_H
 
12012
#include <dlfcn.h>
 
12013
#endif
 
12014
 
 
12015
#include <stdio.h>
 
12016
 
 
12017
#ifdef RTLD_GLOBAL
 
12018
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12019
#else
 
12020
#  ifdef DL_GLOBAL
 
12021
#    define LT_DLGLOBAL         DL_GLOBAL
 
12022
#  else
 
12023
#    define LT_DLGLOBAL         0
 
12024
#  endif
 
12025
#endif
 
12026
 
 
12027
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12028
   find out it does not work in some platform. */
 
12029
#ifndef LT_DLLAZY_OR_NOW
 
12030
#  ifdef RTLD_LAZY
 
12031
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12032
#  else
 
12033
#    ifdef DL_LAZY
 
12034
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12035
#    else
 
12036
#      ifdef RTLD_NOW
 
12037
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12038
#      else
 
12039
#        ifdef DL_NOW
 
12040
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12041
#        else
 
12042
#          define LT_DLLAZY_OR_NOW      0
 
12043
#        endif
 
12044
#      endif
 
12045
#    endif
 
12046
#  endif
 
12047
#endif
 
12048
 
 
12049
#ifdef __cplusplus
 
12050
extern "C" void exit (int);
 
12051
#endif
 
12052
 
 
12053
void fnord() { int i=42;}
 
12054
int main ()
 
12055
{
 
12056
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12057
  int status = $lt_dlunknown;
 
12058
 
 
12059
  if (self)
 
12060
    {
 
12061
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12062
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12063
      /* dlclose (self); */
 
12064
    }
 
12065
 
 
12066
    exit (status);
 
12067
}
 
12068
EOF
 
12069
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12070
  (eval $ac_link) 2>&5
 
12071
  ac_status=$?
 
12072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12073
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12074
    (./conftest; exit; ) 2>/dev/null
 
12075
    lt_status=$?
 
12076
    case x$lt_status in
 
12077
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12078
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12079
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12080
    esac
 
12081
  else :
 
12082
    # compilation failed
 
12083
    lt_cv_dlopen_self=no
 
12084
  fi
 
12085
fi
 
12086
rm -fr conftest*
 
12087
 
 
12088
 
 
12089
fi
 
12090
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12091
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12092
 
 
12093
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12094
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12095
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12096
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12097
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12099
else
 
12100
          if test "$cross_compiling" = yes; then :
 
12101
  lt_cv_dlopen_self_static=cross
 
12102
else
 
12103
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12104
  lt_status=$lt_dlunknown
 
12105
  cat > conftest.$ac_ext <<EOF
 
12106
#line 12106 "configure"
 
12107
#include "confdefs.h"
 
12108
 
 
12109
#if HAVE_DLFCN_H
 
12110
#include <dlfcn.h>
 
12111
#endif
 
12112
 
 
12113
#include <stdio.h>
 
12114
 
 
12115
#ifdef RTLD_GLOBAL
 
12116
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12117
#else
 
12118
#  ifdef DL_GLOBAL
 
12119
#    define LT_DLGLOBAL         DL_GLOBAL
 
12120
#  else
 
12121
#    define LT_DLGLOBAL         0
 
12122
#  endif
 
12123
#endif
 
12124
 
 
12125
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12126
   find out it does not work in some platform. */
 
12127
#ifndef LT_DLLAZY_OR_NOW
 
12128
#  ifdef RTLD_LAZY
 
12129
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12130
#  else
 
12131
#    ifdef DL_LAZY
 
12132
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12133
#    else
 
12134
#      ifdef RTLD_NOW
 
12135
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12136
#      else
 
12137
#        ifdef DL_NOW
 
12138
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12139
#        else
 
12140
#          define LT_DLLAZY_OR_NOW      0
 
12141
#        endif
 
12142
#      endif
 
12143
#    endif
 
12144
#  endif
 
12145
#endif
 
12146
 
 
12147
#ifdef __cplusplus
 
12148
extern "C" void exit (int);
 
12149
#endif
 
12150
 
 
12151
void fnord() { int i=42;}
 
12152
int main ()
 
12153
{
 
12154
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12155
  int status = $lt_dlunknown;
 
12156
 
 
12157
  if (self)
 
12158
    {
 
12159
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12160
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12161
      /* dlclose (self); */
 
12162
    }
 
12163
 
 
12164
    exit (status);
 
12165
}
 
12166
EOF
 
12167
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12168
  (eval $ac_link) 2>&5
 
12169
  ac_status=$?
 
12170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12171
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12172
    (./conftest; exit; ) 2>/dev/null
 
12173
    lt_status=$?
 
12174
    case x$lt_status in
 
12175
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12176
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12177
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12178
    esac
 
12179
  else :
 
12180
    # compilation failed
 
12181
    lt_cv_dlopen_self_static=no
 
12182
  fi
 
12183
fi
 
12184
rm -fr conftest*
 
12185
 
 
12186
 
 
12187
fi
 
12188
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12189
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12190
    fi
 
12191
 
 
12192
    CPPFLAGS="$save_CPPFLAGS"
 
12193
    LDFLAGS="$save_LDFLAGS"
 
12194
    LIBS="$save_LIBS"
 
12195
    ;;
 
12196
  esac
 
12197
 
 
12198
  case $lt_cv_dlopen_self in
 
12199
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12200
  *) enable_dlopen_self=unknown ;;
 
12201
  esac
 
12202
 
 
12203
  case $lt_cv_dlopen_self_static in
 
12204
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12205
  *) enable_dlopen_self_static=unknown ;;
 
12206
  esac
 
12207
fi
 
12208
 
 
12209
 
 
12210
# The else clause should only fire when bootstrapping the
 
12211
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12212
# with your package, and you will get complaints that there are
 
12213
# no rules to generate ltmain.sh.
 
12214
if test -f "$ltmain"; then
 
12215
  # See if we are running on zsh, and set the options which allow our commands through
 
12216
  # without removal of \ escapes.
 
12217
  if test -n "${ZSH_VERSION+set}" ; then
 
12218
    setopt NO_GLOB_SUBST
 
12219
  fi
 
12220
  # Now quote all the things that may contain metacharacters while being
 
12221
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12222
  # variables and quote the copies for generation of the libtool script.
 
12223
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12224
    SED SHELL STRIP \
 
12225
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12226
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12227
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12228
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12229
    lt_cv_sys_global_symbol_to_c_name_address \
 
12230
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12231
    old_postinstall_cmds old_postuninstall_cmds \
 
12232
    compiler_CXX \
 
12233
    CC_CXX \
 
12234
    LD_CXX \
 
12235
    lt_prog_compiler_wl_CXX \
 
12236
    lt_prog_compiler_pic_CXX \
 
12237
    lt_prog_compiler_static_CXX \
 
12238
    lt_prog_compiler_no_builtin_flag_CXX \
 
12239
    export_dynamic_flag_spec_CXX \
 
12240
    thread_safe_flag_spec_CXX \
 
12241
    whole_archive_flag_spec_CXX \
 
12242
    enable_shared_with_static_runtimes_CXX \
 
12243
    old_archive_cmds_CXX \
 
12244
    old_archive_from_new_cmds_CXX \
 
12245
    predep_objects_CXX \
 
12246
    postdep_objects_CXX \
 
12247
    predeps_CXX \
 
12248
    postdeps_CXX \
 
12249
    compiler_lib_search_path_CXX \
 
12250
    archive_cmds_CXX \
 
12251
    archive_expsym_cmds_CXX \
 
12252
    postinstall_cmds_CXX \
 
12253
    postuninstall_cmds_CXX \
 
12254
    old_archive_from_expsyms_cmds_CXX \
 
12255
    allow_undefined_flag_CXX \
 
12256
    no_undefined_flag_CXX \
 
12257
    export_symbols_cmds_CXX \
 
12258
    hardcode_libdir_flag_spec_CXX \
 
12259
    hardcode_libdir_flag_spec_ld_CXX \
 
12260
    hardcode_libdir_separator_CXX \
 
12261
    hardcode_automatic_CXX \
 
12262
    module_cmds_CXX \
 
12263
    module_expsym_cmds_CXX \
 
12264
    lt_cv_prog_compiler_c_o_CXX \
 
12265
    exclude_expsyms_CXX \
 
12266
    include_expsyms_CXX; do
 
12267
 
 
12268
    case $var in
 
12269
    old_archive_cmds_CXX | \
 
12270
    old_archive_from_new_cmds_CXX | \
 
12271
    archive_cmds_CXX | \
 
12272
    archive_expsym_cmds_CXX | \
 
12273
    module_cmds_CXX | \
 
12274
    module_expsym_cmds_CXX | \
 
12275
    old_archive_from_expsyms_cmds_CXX | \
 
12276
    export_symbols_cmds_CXX | \
 
12277
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12278
    postinstall_cmds | postuninstall_cmds | \
 
12279
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12280
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12281
      # Double-quote double-evaled strings.
 
12282
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12283
      ;;
 
12284
    *)
 
12285
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12286
      ;;
 
12287
    esac
 
12288
  done
 
12289
 
 
12290
  case $lt_echo in
 
12291
  *'\$0 --fallback-echo"')
 
12292
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12293
    ;;
 
12294
  esac
 
12295
 
 
12296
cfgfile="$ofile"
 
12297
 
 
12298
  cat <<__EOF__ >> "$cfgfile"
 
12299
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12300
 
 
12301
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12302
 
 
12303
# Shell to use when invoking shell scripts.
 
12304
SHELL=$lt_SHELL
 
12305
 
 
12306
# Whether or not to build shared libraries.
 
12307
build_libtool_libs=$enable_shared
 
12308
 
 
12309
# Whether or not to build static libraries.
 
12310
build_old_libs=$enable_static
 
12311
 
 
12312
# Whether or not to add -lc for building shared libraries.
 
12313
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12314
 
 
12315
# Whether or not to disallow shared libs when runtime libs are static
 
12316
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12317
 
 
12318
# Whether or not to optimize for fast installation.
 
12319
fast_install=$enable_fast_install
 
12320
 
 
12321
# The host system.
 
12322
host_alias=$host_alias
 
12323
host=$host
 
12324
 
 
12325
# An echo program that does not interpret backslashes.
 
12326
echo=$lt_echo
 
12327
 
 
12328
# The archiver.
 
12329
AR=$lt_AR
 
12330
AR_FLAGS=$lt_AR_FLAGS
 
12331
 
 
12332
# A C compiler.
 
12333
LTCC=$lt_LTCC
 
12334
 
 
12335
# A language-specific compiler.
 
12336
CC=$lt_compiler_CXX
 
12337
 
 
12338
# Is the compiler the GNU C compiler?
 
12339
with_gcc=$GCC_CXX
 
12340
 
 
12341
# An ERE matcher.
 
12342
EGREP=$lt_EGREP
 
12343
 
 
12344
# The linker used to build libraries.
 
12345
LD=$lt_LD_CXX
 
12346
 
 
12347
# Whether we need hard or soft links.
 
12348
LN_S=$lt_LN_S
 
12349
 
 
12350
# A BSD-compatible nm program.
 
12351
NM=$lt_NM
 
12352
 
 
12353
# A symbol stripping program
 
12354
STRIP=$lt_STRIP
 
12355
 
 
12356
# Used to examine libraries when file_magic_cmd begins "file"
 
12357
MAGIC_CMD=$MAGIC_CMD
 
12358
 
 
12359
# Used on cygwin: DLL creation program.
 
12360
DLLTOOL="$DLLTOOL"
 
12361
 
 
12362
# Used on cygwin: object dumper.
 
12363
OBJDUMP="$OBJDUMP"
 
12364
 
 
12365
# Used on cygwin: assembler.
 
12366
AS="$AS"
 
12367
 
 
12368
# The name of the directory that contains temporary libtool files.
 
12369
objdir=$objdir
 
12370
 
 
12371
# How to create reloadable object files.
 
12372
reload_flag=$lt_reload_flag
 
12373
reload_cmds=$lt_reload_cmds
 
12374
 
 
12375
# How to pass a linker flag through the compiler.
 
12376
wl=$lt_lt_prog_compiler_wl_CXX
 
12377
 
 
12378
# Object file suffix (normally "o").
 
12379
objext="$ac_objext"
 
12380
 
 
12381
# Old archive suffix (normally "a").
 
12382
libext="$libext"
 
12383
 
 
12384
# Shared library suffix (normally ".so").
 
12385
shrext_cmds='$shrext_cmds'
 
12386
 
 
12387
# Executable file suffix (normally "").
 
12388
exeext="$exeext"
 
12389
 
 
12390
# Additional compiler flags for building library objects.
 
12391
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12392
pic_mode=$pic_mode
 
12393
 
 
12394
# What is the maximum length of a command?
 
12395
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12396
 
 
12397
# Does compiler simultaneously support -c and -o options?
 
12398
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12399
 
 
12400
# Must we lock files when doing compilation ?
 
12401
need_locks=$lt_need_locks
 
12402
 
 
12403
# Do we need the lib prefix for modules?
 
12404
need_lib_prefix=$need_lib_prefix
 
12405
 
 
12406
# Do we need a version for libraries?
 
12407
need_version=$need_version
 
12408
 
 
12409
# Whether dlopen is supported.
 
12410
dlopen_support=$enable_dlopen
 
12411
 
 
12412
# Whether dlopen of programs is supported.
 
12413
dlopen_self=$enable_dlopen_self
 
12414
 
 
12415
# Whether dlopen of statically linked programs is supported.
 
12416
dlopen_self_static=$enable_dlopen_self_static
 
12417
 
 
12418
# Compiler flag to prevent dynamic linking.
 
12419
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12420
 
 
12421
# Compiler flag to turn off builtin functions.
 
12422
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12423
 
 
12424
# Compiler flag to allow reflexive dlopens.
 
12425
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12426
 
 
12427
# Compiler flag to generate shared objects directly from archives.
 
12428
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12429
 
 
12430
# Compiler flag to generate thread-safe objects.
 
12431
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12432
 
 
12433
# Library versioning type.
 
12434
version_type=$version_type
 
12435
 
 
12436
# Format of library name prefix.
 
12437
libname_spec=$lt_libname_spec
 
12438
 
 
12439
# List of archive names.  First name is the real one, the rest are links.
 
12440
# The last name is the one that the linker finds with -lNAME.
 
12441
library_names_spec=$lt_library_names_spec
 
12442
 
 
12443
# The coded name of the library, if different from the real name.
 
12444
soname_spec=$lt_soname_spec
 
12445
 
 
12446
# Commands used to build and install an old-style archive.
 
12447
RANLIB=$lt_RANLIB
 
12448
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12449
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12450
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12451
 
 
12452
# Create an old-style archive from a shared archive.
 
12453
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12454
 
 
12455
# Create a temporary old-style archive to link instead of a shared archive.
 
12456
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12457
 
 
12458
# Commands used to build and install a shared archive.
 
12459
archive_cmds=$lt_archive_cmds_CXX
 
12460
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12461
postinstall_cmds=$lt_postinstall_cmds
 
12462
postuninstall_cmds=$lt_postuninstall_cmds
 
12463
 
 
12464
# Commands used to build a loadable module (assumed same as above if empty)
 
12465
module_cmds=$lt_module_cmds_CXX
 
12466
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12467
 
 
12468
# Commands to strip libraries.
 
12469
old_striplib=$lt_old_striplib
 
12470
striplib=$lt_striplib
 
12471
 
 
12472
# Dependencies to place before the objects being linked to create a
 
12473
# shared library.
 
12474
predep_objects=$lt_predep_objects_CXX
 
12475
 
 
12476
# Dependencies to place after the objects being linked to create a
 
12477
# shared library.
 
12478
postdep_objects=$lt_postdep_objects_CXX
 
12479
 
 
12480
# Dependencies to place before the objects being linked to create a
 
12481
# shared library.
 
12482
predeps=$lt_predeps_CXX
 
12483
 
 
12484
# Dependencies to place after the objects being linked to create a
 
12485
# shared library.
 
12486
postdeps=$lt_postdeps_CXX
 
12487
 
 
12488
# The library search path used internally by the compiler when linking
 
12489
# a shared library.
 
12490
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12491
 
 
12492
# Method to check whether dependent libraries are shared objects.
 
12493
deplibs_check_method=$lt_deplibs_check_method
 
12494
 
 
12495
# Command to use when deplibs_check_method == file_magic.
 
12496
file_magic_cmd=$lt_file_magic_cmd
 
12497
 
 
12498
# Flag that allows shared libraries with undefined symbols to be built.
 
12499
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12500
 
 
12501
# Flag that forces no undefined symbols.
 
12502
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12503
 
 
12504
# Commands used to finish a libtool library installation in a directory.
 
12505
finish_cmds=$lt_finish_cmds
 
12506
 
 
12507
# Same as above, but a single script fragment to be evaled but not shown.
 
12508
finish_eval=$lt_finish_eval
 
12509
 
 
12510
# Take the output of nm and produce a listing of raw symbols and C names.
 
12511
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12512
 
 
12513
# Transform the output of nm in a proper C declaration
 
12514
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12515
 
 
12516
# Transform the output of nm in a C name address pair
 
12517
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12518
 
 
12519
# This is the shared library runtime path variable.
 
12520
runpath_var=$runpath_var
 
12521
 
 
12522
# This is the shared library path variable.
 
12523
shlibpath_var=$shlibpath_var
 
12524
 
 
12525
# Is shlibpath searched before the hard-coded library search path?
 
12526
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12527
 
 
12528
# How to hardcode a shared library path into an executable.
 
12529
hardcode_action=$hardcode_action_CXX
 
12530
 
 
12531
# Whether we should hardcode library paths into libraries.
 
12532
hardcode_into_libs=$hardcode_into_libs
 
12533
 
 
12534
# Flag to hardcode \$libdir into a binary during linking.
 
12535
# This must work even if \$libdir does not exist.
 
12536
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12537
 
 
12538
# If ld is used when linking, flag to hardcode \$libdir into
 
12539
# a binary during linking. This must work even if \$libdir does
 
12540
# not exist.
 
12541
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12542
 
 
12543
# Whether we need a single -rpath flag with a separated argument.
 
12544
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12545
 
 
12546
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12547
# resulting binary.
 
12548
hardcode_direct=$hardcode_direct_CXX
 
12549
 
 
12550
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12551
# resulting binary.
 
12552
hardcode_minus_L=$hardcode_minus_L_CXX
 
12553
 
 
12554
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12555
# the resulting binary.
 
12556
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12557
 
 
12558
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12559
# and all subsequent libraries and executables linked against it.
 
12560
hardcode_automatic=$hardcode_automatic_CXX
 
12561
 
 
12562
# Variables whose values should be saved in libtool wrapper scripts and
 
12563
# restored at relink time.
 
12564
variables_saved_for_relink="$variables_saved_for_relink"
 
12565
 
 
12566
# Whether libtool must link a program against all its dependency libraries.
 
12567
link_all_deplibs=$link_all_deplibs_CXX
 
12568
 
 
12569
# Compile-time system search path for libraries
 
12570
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12571
 
 
12572
# Run-time system search path for libraries
 
12573
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12574
 
 
12575
# Fix the shell variable \$srcfile for the compiler.
 
12576
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12577
 
 
12578
# Set to yes if exported symbols are required.
 
12579
always_export_symbols=$always_export_symbols_CXX
 
12580
 
 
12581
# The commands to list exported symbols.
 
12582
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12583
 
 
12584
# The commands to extract the exported symbol list from a shared archive.
 
12585
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12586
 
 
12587
# Symbols that should not be listed in the preloaded symbols.
 
12588
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12589
 
 
12590
# Symbols that must always be exported.
 
12591
include_expsyms=$lt_include_expsyms_CXX
 
12592
 
 
12593
# ### END LIBTOOL TAG CONFIG: $tagname
 
12594
 
 
12595
__EOF__
 
12596
 
 
12597
 
 
12598
else
 
12599
  # If there is no Makefile yet, we rely on a make rule to execute
 
12600
  # `config.status --recheck' to rerun these tests and create the
 
12601
  # libtool script then.
 
12602
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12603
  if test -f "$ltmain_in"; then
 
12604
    test -f Makefile && make "$ltmain"
 
12605
  fi
 
12606
fi
 
12607
 
 
12608
 
 
12609
ac_ext=c
 
12610
ac_cpp='$CPP $CPPFLAGS'
 
12611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12614
 
 
12615
CC=$lt_save_CC
 
12616
LDCXX=$LD
 
12617
LD=$lt_save_LD
 
12618
GCC=$lt_save_GCC
 
12619
with_gnu_ldcxx=$with_gnu_ld
 
12620
with_gnu_ld=$lt_save_with_gnu_ld
 
12621
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12622
lt_cv_path_LD=$lt_save_path_LD
 
12623
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12624
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12625
 
 
12626
        else
 
12627
          tagname=""
 
12628
        fi
 
12629
        ;;
 
12630
 
 
12631
      F77)
 
12632
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12633
 
 
12634
ac_ext=f
 
12635
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12636
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12637
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12638
 
 
12639
 
 
12640
archive_cmds_need_lc_F77=no
 
12641
allow_undefined_flag_F77=
 
12642
always_export_symbols_F77=no
 
12643
archive_expsym_cmds_F77=
 
12644
export_dynamic_flag_spec_F77=
 
12645
hardcode_direct_F77=no
 
12646
hardcode_libdir_flag_spec_F77=
 
12647
hardcode_libdir_flag_spec_ld_F77=
 
12648
hardcode_libdir_separator_F77=
 
12649
hardcode_minus_L_F77=no
 
12650
hardcode_automatic_F77=no
 
12651
module_cmds_F77=
 
12652
module_expsym_cmds_F77=
 
12653
link_all_deplibs_F77=unknown
 
12654
old_archive_cmds_F77=$old_archive_cmds
 
12655
no_undefined_flag_F77=
 
12656
whole_archive_flag_spec_F77=
 
12657
enable_shared_with_static_runtimes_F77=no
 
12658
 
 
12659
# Source file extension for f77 test sources.
 
12660
ac_ext=f
 
12661
 
 
12662
# Object file extension for compiled f77 test sources.
 
12663
objext=o
 
12664
objext_F77=$objext
 
12665
 
 
12666
# Code to be used in simple compile tests
 
12667
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12668
 
 
12669
# Code to be used in simple link tests
 
12670
lt_simple_link_test_code="      program t\n      end\n"
 
12671
 
 
12672
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12673
 
 
12674
# If no C compiler was specified, use CC.
 
12675
LTCC=${LTCC-"$CC"}
 
12676
 
 
12677
# Allow CC to be a program name with arguments.
 
12678
compiler=$CC
 
12679
 
 
12680
 
 
12681
# Allow CC to be a program name with arguments.
 
12682
lt_save_CC="$CC"
 
12683
CC=${F77-"f77"}
 
12684
compiler=$CC
 
12685
compiler_F77=$CC
 
12686
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12687
 
 
12688
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12689
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12690
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12691
echo "${ECHO_T}$can_build_shared" >&6
 
12692
 
 
12693
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12694
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12695
test "$can_build_shared" = "no" && enable_shared=no
 
12696
 
 
12697
# On AIX, shared libraries and static libraries use the same namespace, and
 
12698
# are all built from PIC.
 
12699
case "$host_os" in
 
12700
aix3*)
 
12701
  test "$enable_shared" = yes && enable_static=no
 
12702
  if test -n "$RANLIB"; then
 
12703
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12704
    postinstall_cmds='$RANLIB $lib'
 
12705
  fi
 
12706
  ;;
 
12707
aix4* | aix5*)
 
12708
  test "$enable_shared" = yes && enable_static=no
 
12709
  ;;
 
12710
esac
 
12711
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12712
echo "${ECHO_T}$enable_shared" >&6
 
12713
 
 
12714
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12715
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12716
# Make sure either enable_shared or enable_static is yes.
 
12717
test "$enable_shared" = yes || enable_static=yes
 
12718
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12719
echo "${ECHO_T}$enable_static" >&6
 
12720
 
 
12721
test "$ld_shlibs_F77" = no && can_build_shared=no
 
12722
 
 
12723
GCC_F77="$G77"
 
12724
LD_F77="$LD"
 
12725
 
 
12726
lt_prog_compiler_wl_F77=
 
12727
lt_prog_compiler_pic_F77=
 
12728
lt_prog_compiler_static_F77=
 
12729
 
 
12730
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12731
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12732
 
 
12733
  if test "$GCC" = yes; then
 
12734
    lt_prog_compiler_wl_F77='-Wl,'
 
12735
    lt_prog_compiler_static_F77='-static'
 
12736
 
 
12737
    case $host_os in
 
12738
      aix*)
 
12739
      # All AIX code is PIC.
 
12740
      if test "$host_cpu" = ia64; then
 
12741
        # AIX 5 now supports IA64 processor
 
12742
        lt_prog_compiler_static_F77='-Bstatic'
 
12743
      fi
 
12744
      ;;
 
12745
 
 
12746
    amigaos*)
 
12747
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12748
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12749
      # like `-m68040'.
 
12750
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
12751
      ;;
 
12752
 
 
12753
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12754
      # PIC is the default for these OSes.
 
12755
      ;;
 
12756
 
 
12757
    mingw* | pw32* | os2*)
 
12758
      # This hack is so that the source file can tell whether it is being
 
12759
      # built for inclusion in a dll (and should export symbols for example).
 
12760
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12761
      ;;
 
12762
 
 
12763
    darwin* | rhapsody*)
 
12764
      # PIC is the default on this platform
 
12765
      # Common symbols not allowed in MH_DYLIB files
 
12766
      lt_prog_compiler_pic_F77='-fno-common'
 
12767
      ;;
 
12768
 
 
12769
    msdosdjgpp*)
 
12770
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
12771
      # on systems that don't support them.
 
12772
      lt_prog_compiler_can_build_shared_F77=no
 
12773
      enable_shared=no
 
12774
      ;;
 
12775
 
 
12776
    sysv4*MP*)
 
12777
      if test -d /usr/nec; then
 
12778
        lt_prog_compiler_pic_F77=-Kconform_pic
 
12779
      fi
 
12780
      ;;
 
12781
 
 
12782
    hpux*)
 
12783
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12784
      # not for PA HP-UX.
 
12785
      case "$host_cpu" in
 
12786
      hppa*64*|ia64*)
 
12787
        # +Z the default
 
12788
        ;;
 
12789
      *)
 
12790
        lt_prog_compiler_pic_F77='-fPIC'
 
12791
        ;;
 
12792
      esac
 
12793
      ;;
 
12794
 
 
12795
    *)
 
12796
      lt_prog_compiler_pic_F77='-fPIC'
 
12797
      ;;
 
12798
    esac
 
12799
  else
 
12800
    # PORTME Check for flag to pass linker flags through the system compiler.
 
12801
    case $host_os in
 
12802
    aix*)
 
12803
      lt_prog_compiler_wl_F77='-Wl,'
 
12804
      if test "$host_cpu" = ia64; then
 
12805
        # AIX 5 now supports IA64 processor
 
12806
        lt_prog_compiler_static_F77='-Bstatic'
 
12807
      else
 
12808
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
12809
      fi
 
12810
      ;;
 
12811
 
 
12812
    mingw* | pw32* | os2*)
 
12813
      # This hack is so that the source file can tell whether it is being
 
12814
      # built for inclusion in a dll (and should export symbols for example).
 
12815
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12816
      ;;
 
12817
 
 
12818
    hpux9* | hpux10* | hpux11*)
 
12819
      lt_prog_compiler_wl_F77='-Wl,'
 
12820
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12821
      # not for PA HP-UX.
 
12822
      case "$host_cpu" in
 
12823
      hppa*64*|ia64*)
 
12824
        # +Z the default
 
12825
        ;;
 
12826
      *)
 
12827
        lt_prog_compiler_pic_F77='+Z'
 
12828
        ;;
 
12829
      esac
 
12830
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
12831
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
12832
      ;;
 
12833
 
 
12834
    irix5* | irix6* | nonstopux*)
 
12835
      lt_prog_compiler_wl_F77='-Wl,'
 
12836
      # PIC (with -KPIC) is the default.
 
12837
      lt_prog_compiler_static_F77='-non_shared'
 
12838
      ;;
 
12839
 
 
12840
    newsos6)
 
12841
      lt_prog_compiler_pic_F77='-KPIC'
 
12842
      lt_prog_compiler_static_F77='-Bstatic'
 
12843
      ;;
 
12844
 
 
12845
    linux*)
 
12846
      case $CC in
 
12847
      icc* | ecc*)
 
12848
        lt_prog_compiler_wl_F77='-Wl,'
 
12849
        lt_prog_compiler_pic_F77='-KPIC'
 
12850
        lt_prog_compiler_static_F77='-static'
 
12851
        ;;
 
12852
      ccc*)
 
12853
        lt_prog_compiler_wl_F77='-Wl,'
 
12854
        # All Alpha code is PIC.
 
12855
        lt_prog_compiler_static_F77='-non_shared'
 
12856
        ;;
 
12857
      esac
 
12858
      ;;
 
12859
 
 
12860
    osf3* | osf4* | osf5*)
 
12861
      lt_prog_compiler_wl_F77='-Wl,'
 
12862
      # All OSF/1 code is PIC.
 
12863
      lt_prog_compiler_static_F77='-non_shared'
 
12864
      ;;
 
12865
 
 
12866
    sco3.2v5*)
 
12867
      lt_prog_compiler_pic_F77='-Kpic'
 
12868
      lt_prog_compiler_static_F77='-dn'
 
12869
      ;;
 
12870
 
 
12871
    solaris*)
 
12872
      lt_prog_compiler_wl_F77='-Wl,'
 
12873
      lt_prog_compiler_pic_F77='-KPIC'
 
12874
      lt_prog_compiler_static_F77='-Bstatic'
 
12875
      ;;
 
12876
 
 
12877
    sunos4*)
 
12878
      lt_prog_compiler_wl_F77='-Qoption ld '
 
12879
      lt_prog_compiler_pic_F77='-PIC'
 
12880
      lt_prog_compiler_static_F77='-Bstatic'
 
12881
      ;;
 
12882
 
 
12883
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12884
      lt_prog_compiler_wl_F77='-Wl,'
 
12885
      lt_prog_compiler_pic_F77='-KPIC'
 
12886
      lt_prog_compiler_static_F77='-Bstatic'
 
12887
      ;;
 
12888
 
 
12889
    sysv4*MP*)
 
12890
      if test -d /usr/nec ;then
 
12891
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
12892
        lt_prog_compiler_static_F77='-Bstatic'
 
12893
      fi
 
12894
      ;;
 
12895
 
 
12896
    uts4*)
 
12897
      lt_prog_compiler_pic_F77='-pic'
 
12898
      lt_prog_compiler_static_F77='-Bstatic'
 
12899
      ;;
 
12900
 
 
12901
    *)
 
12902
      lt_prog_compiler_can_build_shared_F77=no
 
12903
      ;;
 
12904
    esac
 
12905
  fi
 
12906
 
 
12907
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
12908
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
12909
 
 
12910
#
 
12911
# Check to make sure the PIC flag actually works.
 
12912
#
 
12913
if test -n "$lt_prog_compiler_pic_F77"; then
 
12914
 
 
12915
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
12916
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
12917
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
12918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12919
else
 
12920
  lt_prog_compiler_pic_works_F77=no
 
12921
  ac_outfile=conftest.$ac_objext
 
12922
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12923
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
12924
   # Insert the option either (1) after the last *FLAGS variable, or
 
12925
   # (2) before a word containing "conftest.", or (3) at the end.
 
12926
   # Note that $ac_compile itself does not contain backslashes and begins
 
12927
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12928
   # The option is referenced via a variable to avoid confusing sed.
 
12929
   lt_compile=`echo "$ac_compile" | $SED \
 
12930
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12931
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12932
   -e 's:$: $lt_compiler_flag:'`
 
12933
   (eval echo "\"\$as_me:12933: $lt_compile\"" >&5)
 
12934
   (eval "$lt_compile" 2>conftest.err)
 
12935
   ac_status=$?
 
12936
   cat conftest.err >&5
 
12937
   echo "$as_me:12937: \$? = $ac_status" >&5
 
12938
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12939
     # The compiler can only warn and ignore the option if not recognized
 
12940
     # So say no if there are warnings
 
12941
     if test ! -s conftest.err; then
 
12942
       lt_prog_compiler_pic_works_F77=yes
 
12943
     fi
 
12944
   fi
 
12945
   $rm conftest*
 
12946
 
 
12947
fi
 
12948
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
12949
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
12950
 
 
12951
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
12952
    case $lt_prog_compiler_pic_F77 in
 
12953
     "" | " "*) ;;
 
12954
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
12955
     esac
 
12956
else
 
12957
    lt_prog_compiler_pic_F77=
 
12958
     lt_prog_compiler_can_build_shared_F77=no
 
12959
fi
 
12960
 
 
12961
fi
 
12962
case "$host_os" in
 
12963
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12964
  *djgpp*)
 
12965
    lt_prog_compiler_pic_F77=
 
12966
    ;;
 
12967
  *)
 
12968
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
12969
    ;;
 
12970
esac
 
12971
 
 
12972
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12973
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12974
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
12975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12976
else
 
12977
  lt_cv_prog_compiler_c_o_F77=no
 
12978
   $rm -r conftest 2>/dev/null
 
12979
   mkdir conftest
 
12980
   cd conftest
 
12981
   mkdir out
 
12982
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12983
 
 
12984
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12985
   # Insert the option either (1) after the last *FLAGS variable, or
 
12986
   # (2) before a word containing "conftest.", or (3) at the end.
 
12987
   # Note that $ac_compile itself does not contain backslashes and begins
 
12988
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12989
   lt_compile=`echo "$ac_compile" | $SED \
 
12990
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12991
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12992
   -e 's:$: $lt_compiler_flag:'`
 
12993
   (eval echo "\"\$as_me:12993: $lt_compile\"" >&5)
 
12994
   (eval "$lt_compile" 2>out/conftest.err)
 
12995
   ac_status=$?
 
12996
   cat out/conftest.err >&5
 
12997
   echo "$as_me:12997: \$? = $ac_status" >&5
 
12998
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12999
   then
 
13000
     # The compiler can only warn and ignore the option if not recognized
 
13001
     # So say no if there are warnings
 
13002
     if test ! -s out/conftest.err; then
 
13003
       lt_cv_prog_compiler_c_o_F77=yes
 
13004
     fi
 
13005
   fi
 
13006
   chmod u+w .
 
13007
   $rm conftest*
 
13008
   # SGI C++ compiler will create directory out/ii_files/ for
 
13009
   # template instantiation
 
13010
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13011
   $rm out/* && rmdir out
 
13012
   cd ..
 
13013
   rmdir conftest
 
13014
   $rm conftest*
 
13015
 
 
13016
fi
 
13017
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13018
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13019
 
 
13020
 
 
13021
hard_links="nottested"
 
13022
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13023
  # do not overwrite the value of need_locks provided by the user
 
13024
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13025
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13026
  hard_links=yes
 
13027
  $rm conftest*
 
13028
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13029
  touch conftest.a
 
13030
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13031
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13032
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13033
echo "${ECHO_T}$hard_links" >&6
 
13034
  if test "$hard_links" = no; then
 
13035
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13036
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13037
    need_locks=warn
 
13038
  fi
 
13039
else
 
13040
  need_locks=no
 
13041
fi
 
13042
 
 
13043
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13044
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13045
 
 
13046
  runpath_var=
 
13047
  allow_undefined_flag_F77=
 
13048
  enable_shared_with_static_runtimes_F77=no
 
13049
  archive_cmds_F77=
 
13050
  archive_expsym_cmds_F77=
 
13051
  old_archive_From_new_cmds_F77=
 
13052
  old_archive_from_expsyms_cmds_F77=
 
13053
  export_dynamic_flag_spec_F77=
 
13054
  whole_archive_flag_spec_F77=
 
13055
  thread_safe_flag_spec_F77=
 
13056
  hardcode_libdir_flag_spec_F77=
 
13057
  hardcode_libdir_flag_spec_ld_F77=
 
13058
  hardcode_libdir_separator_F77=
 
13059
  hardcode_direct_F77=no
 
13060
  hardcode_minus_L_F77=no
 
13061
  hardcode_shlibpath_var_F77=unsupported
 
13062
  link_all_deplibs_F77=unknown
 
13063
  hardcode_automatic_F77=no
 
13064
  module_cmds_F77=
 
13065
  module_expsym_cmds_F77=
 
13066
  always_export_symbols_F77=no
 
13067
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13068
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13069
  # included in the symbol list
 
13070
  include_expsyms_F77=
 
13071
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13072
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13073
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13074
  # as well as any symbol that contains `d'.
 
13075
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13076
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13077
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13078
  # the symbol is explicitly referenced.  Since portable code cannot
 
13079
  # rely on this symbol name, it's probably fine to never include it in
 
13080
  # preloaded symbol tables.
 
13081
  extract_expsyms_cmds=
 
13082
 
 
13083
  case $host_os in
 
13084
  cygwin* | mingw* | pw32*)
 
13085
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13086
    # When not using gcc, we currently assume that we are using
 
13087
    # Microsoft Visual C++.
 
13088
    if test "$GCC" != yes; then
 
13089
      with_gnu_ld=no
 
13090
    fi
 
13091
    ;;
 
13092
  openbsd*)
 
13093
    with_gnu_ld=no
 
13094
    ;;
 
13095
  esac
 
13096
 
 
13097
  ld_shlibs_F77=yes
 
13098
  if test "$with_gnu_ld" = yes; then
 
13099
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13100
    wlarc='${wl}'
 
13101
 
 
13102
    # See if GNU ld supports shared libraries.
 
13103
    case $host_os in
 
13104
    aix3* | aix4* | aix5*)
 
13105
      # On AIX/PPC, the GNU linker is very broken
 
13106
      if test "$host_cpu" != ia64; then
 
13107
        ld_shlibs_F77=no
 
13108
        cat <<EOF 1>&2
 
13109
 
 
13110
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13111
*** to be unable to reliably create shared libraries on AIX.
 
13112
*** Therefore, libtool is disabling shared libraries support.  If you
 
13113
*** really care for shared libraries, you may want to modify your PATH
 
13114
*** so that a non-GNU linker is found, and then restart.
 
13115
 
 
13116
EOF
 
13117
      fi
 
13118
      ;;
 
13119
 
 
13120
    amigaos*)
 
13121
      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)'
 
13122
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13123
      hardcode_minus_L_F77=yes
 
13124
 
 
13125
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13126
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13127
      # to version 4, is to share data among multiple programs linked
 
13128
      # with the same dynamic library.  Since this doesn't match the
 
13129
      # behavior of shared libraries on other platforms, we can't use
 
13130
      # them.
 
13131
      ld_shlibs_F77=no
 
13132
      ;;
 
13133
 
 
13134
    beos*)
 
13135
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13136
        allow_undefined_flag_F77=unsupported
 
13137
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13138
        # support --undefined.  This deserves some investigation.  FIXME
 
13139
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13140
      else
 
13141
        ld_shlibs_F77=no
 
13142
      fi
 
13143
      ;;
 
13144
 
 
13145
    cygwin* | mingw* | pw32*)
 
13146
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13147
      # as there is no search path for DLLs.
 
13148
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13149
      allow_undefined_flag_F77=unsupported
 
13150
      always_export_symbols_F77=no
 
13151
      enable_shared_with_static_runtimes_F77=yes
 
13152
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13153
 
 
13154
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13155
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13156
        # If the export-symbols file already is a .def file (1st line
 
13157
        # is EXPORTS), use it as is; otherwise, prepend...
 
13158
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13159
          cp $export_symbols $output_objdir/$soname.def;
 
13160
        else
 
13161
          echo EXPORTS > $output_objdir/$soname.def;
 
13162
          cat $export_symbols >> $output_objdir/$soname.def;
 
13163
        fi~
 
13164
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13165
      else
 
13166
        ld_shlibs=no
 
13167
      fi
 
13168
      ;;
 
13169
 
 
13170
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13171
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13172
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13173
        wlarc=
 
13174
      else
 
13175
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13176
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13177
      fi
 
13178
      ;;
 
13179
 
 
13180
    solaris* | sysv5*)
 
13181
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13182
        ld_shlibs_F77=no
 
13183
        cat <<EOF 1>&2
 
13184
 
 
13185
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13186
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13187
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13188
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13189
*** your PATH or compiler configuration so that the native linker is
 
13190
*** used, and then restart.
 
13191
 
 
13192
EOF
 
13193
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13194
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13195
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13196
      else
 
13197
        ld_shlibs_F77=no
 
13198
      fi
 
13199
      ;;
 
13200
 
 
13201
    sunos4*)
 
13202
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13203
      wlarc=
 
13204
      hardcode_direct_F77=yes
 
13205
      hardcode_shlibpath_var_F77=no
 
13206
      ;;
 
13207
 
 
13208
  linux*)
 
13209
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13210
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13211
        archive_cmds_F77="$tmp_archive_cmds"
 
13212
      supports_anon_versioning=no
 
13213
      case `$LD -v 2>/dev/null` in
 
13214
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13215
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13216
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13217
        *\ 2.11.*) ;; # other 2.11 versions
 
13218
        *) supports_anon_versioning=yes ;;
 
13219
      esac
 
13220
      if test $supports_anon_versioning = yes; then
 
13221
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13222
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13223
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13224
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13225
      else
 
13226
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
13227
      fi
 
13228
      link_all_deplibs_F77=no
 
13229
    else
 
13230
      ld_shlibs_F77=no
 
13231
    fi
 
13232
    ;;
 
13233
 
 
13234
    *)
 
13235
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13236
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13237
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13238
      else
 
13239
        ld_shlibs_F77=no
 
13240
      fi
 
13241
      ;;
 
13242
    esac
 
13243
 
 
13244
    if test "$ld_shlibs_F77" = yes; then
 
13245
      runpath_var=LD_RUN_PATH
 
13246
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13247
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13248
      # ancient GNU ld didn't support --whole-archive et. al.
 
13249
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13250
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13251
      else
 
13252
        whole_archive_flag_spec_F77=
 
13253
      fi
 
13254
    fi
 
13255
  else
 
13256
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13257
    case $host_os in
 
13258
    aix3*)
 
13259
      allow_undefined_flag_F77=unsupported
 
13260
      always_export_symbols_F77=yes
 
13261
      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'
 
13262
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13263
      # are no directories specified by -L.
 
13264
      hardcode_minus_L_F77=yes
 
13265
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13266
        # Neither direct hardcoding nor static linking is supported with a
 
13267
        # broken collect2.
 
13268
        hardcode_direct_F77=unsupported
 
13269
      fi
 
13270
      ;;
 
13271
 
 
13272
    aix4* | aix5*)
 
13273
      if test "$host_cpu" = ia64; then
 
13274
        # On IA64, the linker does run time linking by default, so we don't
 
13275
        # have to do anything special.
 
13276
        aix_use_runtimelinking=no
 
13277
        exp_sym_flag='-Bexport'
 
13278
        no_entry_flag=""
 
13279
      else
 
13280
        # If we're using GNU nm, then we don't want the "-C" option.
 
13281
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13282
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13283
          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'
 
13284
        else
 
13285
          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'
 
13286
        fi
 
13287
        aix_use_runtimelinking=no
 
13288
 
 
13289
        # Test if we are trying to use run time linking or normal
 
13290
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13291
        # need to do runtime linking.
 
13292
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13293
          for ld_flag in $LDFLAGS; do
 
13294
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13295
            aix_use_runtimelinking=yes
 
13296
            break
 
13297
          fi
 
13298
          done
 
13299
        esac
 
13300
 
 
13301
        exp_sym_flag='-bexport'
 
13302
        no_entry_flag='-bnoentry'
 
13303
      fi
 
13304
 
 
13305
      # When large executables or shared objects are built, AIX ld can
 
13306
      # have problems creating the table of contents.  If linking a library
 
13307
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13308
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13309
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13310
 
 
13311
      archive_cmds_F77=''
 
13312
      hardcode_direct_F77=yes
 
13313
      hardcode_libdir_separator_F77=':'
 
13314
      link_all_deplibs_F77=yes
 
13315
 
 
13316
      if test "$GCC" = yes; then
 
13317
        case $host_os in aix4.012|aix4.012.*)
 
13318
        # We only want to do this on AIX 4.2 and lower, the check
 
13319
        # below for broken collect2 doesn't work under 4.3+
 
13320
          collect2name=`${CC} -print-prog-name=collect2`
 
13321
          if test -f "$collect2name" && \
 
13322
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13323
          then
 
13324
          # We have reworked collect2
 
13325
          hardcode_direct_F77=yes
 
13326
          else
 
13327
          # We have old collect2
 
13328
          hardcode_direct_F77=unsupported
 
13329
          # It fails to find uninstalled libraries when the uninstalled
 
13330
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13331
          # to unsupported forces relinking
 
13332
          hardcode_minus_L_F77=yes
 
13333
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13334
          hardcode_libdir_separator_F77=
 
13335
          fi
 
13336
        esac
 
13337
        shared_flag='-shared'
 
13338
      else
 
13339
        # not using gcc
 
13340
        if test "$host_cpu" = ia64; then
 
13341
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13342
        # chokes on -Wl,-G. The following line is correct:
 
13343
          shared_flag='-G'
 
13344
        else
 
13345
        if test "$aix_use_runtimelinking" = yes; then
 
13346
            shared_flag='${wl}-G'
 
13347
          else
 
13348
            shared_flag='${wl}-bM:SRE'
 
13349
        fi
 
13350
        fi
 
13351
      fi
 
13352
 
 
13353
      # It seems that -bexpall does not export symbols beginning with
 
13354
      # underscore (_), so it is better to generate a list of symbols to export.
 
13355
      always_export_symbols_F77=yes
 
13356
      if test "$aix_use_runtimelinking" = yes; then
 
13357
        # Warning - without using the other runtime loading flags (-brtl),
 
13358
        # -berok will link without error, but may produce a broken library.
 
13359
        allow_undefined_flag_F77='-berok'
 
13360
       # Determine the default libpath from the value encoded in an empty executable.
 
13361
       cat >conftest.$ac_ext <<_ACEOF
 
13362
      program main
 
13363
 
 
13364
      end
 
13365
_ACEOF
 
13366
rm -f conftest.$ac_objext conftest$ac_exeext
 
13367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13368
  (eval $ac_link) 2>conftest.er1
 
13369
  ac_status=$?
 
13370
  grep -v '^ *+' conftest.er1 >conftest.err
 
13371
  rm -f conftest.er1
 
13372
  cat conftest.err >&5
 
13373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13374
  (exit $ac_status); } &&
 
13375
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13377
  (eval $ac_try) 2>&5
 
13378
  ac_status=$?
 
13379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13380
  (exit $ac_status); }; } &&
 
13381
         { ac_try='test -s conftest$ac_exeext'
 
13382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13383
  (eval $ac_try) 2>&5
 
13384
  ac_status=$?
 
13385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13386
  (exit $ac_status); }; }; then
 
13387
 
 
13388
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13389
}'`
 
13390
# Check for a 64-bit object if we didn't find anything.
 
13391
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; }
 
13392
}'`; fi
 
13393
else
 
13394
  echo "$as_me: failed program was:" >&5
 
13395
sed 's/^/| /' conftest.$ac_ext >&5
 
13396
 
 
13397
fi
 
13398
rm -f conftest.err conftest.$ac_objext \
 
13399
      conftest$ac_exeext conftest.$ac_ext
 
13400
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13401
 
 
13402
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13403
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13404
       else
 
13405
        if test "$host_cpu" = ia64; then
 
13406
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13407
          allow_undefined_flag_F77="-z nodefs"
 
13408
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
13409
        else
 
13410
         # Determine the default libpath from the value encoded in an empty executable.
 
13411
         cat >conftest.$ac_ext <<_ACEOF
 
13412
      program main
 
13413
 
 
13414
      end
 
13415
_ACEOF
 
13416
rm -f conftest.$ac_objext conftest$ac_exeext
 
13417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13418
  (eval $ac_link) 2>conftest.er1
 
13419
  ac_status=$?
 
13420
  grep -v '^ *+' conftest.er1 >conftest.err
 
13421
  rm -f conftest.er1
 
13422
  cat conftest.err >&5
 
13423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13424
  (exit $ac_status); } &&
 
13425
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13427
  (eval $ac_try) 2>&5
 
13428
  ac_status=$?
 
13429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13430
  (exit $ac_status); }; } &&
 
13431
         { ac_try='test -s conftest$ac_exeext'
 
13432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13433
  (eval $ac_try) 2>&5
 
13434
  ac_status=$?
 
13435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13436
  (exit $ac_status); }; }; then
 
13437
 
 
13438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13439
}'`
 
13440
# Check for a 64-bit object if we didn't find anything.
 
13441
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; }
 
13442
}'`; fi
 
13443
else
 
13444
  echo "$as_me: failed program was:" >&5
 
13445
sed 's/^/| /' conftest.$ac_ext >&5
 
13446
 
 
13447
fi
 
13448
rm -f conftest.err conftest.$ac_objext \
 
13449
      conftest$ac_exeext conftest.$ac_ext
 
13450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13451
 
 
13452
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13453
          # Warning - without using the other run time loading flags,
 
13454
          # -berok will link without error, but may produce a broken library.
 
13455
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13456
          allow_undefined_flag_F77=' ${wl}-berok'
 
13457
          # -bexpall does not export symbols beginning with underscore (_)
 
13458
          always_export_symbols_F77=yes
 
13459
          # Exported symbols can be pulled into shared objects from archives
 
13460
          whole_archive_flag_spec_F77=' '
 
13461
          archive_cmds_need_lc_F77=yes
 
13462
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13463
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13464
        fi
 
13465
      fi
 
13466
      ;;
 
13467
 
 
13468
    amigaos*)
 
13469
      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)'
 
13470
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13471
      hardcode_minus_L_F77=yes
 
13472
      # see comment about different semantics on the GNU ld section
 
13473
      ld_shlibs_F77=no
 
13474
      ;;
 
13475
 
 
13476
    bsdi4*)
 
13477
      export_dynamic_flag_spec_F77=-rdynamic
 
13478
      ;;
 
13479
 
 
13480
    cygwin* | mingw* | pw32*)
 
13481
      # When not using gcc, we currently assume that we are using
 
13482
      # Microsoft Visual C++.
 
13483
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13484
      # no search path for DLLs.
 
13485
      hardcode_libdir_flag_spec_F77=' '
 
13486
      allow_undefined_flag_F77=unsupported
 
13487
      # Tell ltmain to make .lib files, not .a files.
 
13488
      libext=lib
 
13489
      # Tell ltmain to make .dll files, not .so files.
 
13490
      shrext_cmds=".dll"
 
13491
      # FIXME: Setting linknames here is a bad hack.
 
13492
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13493
      # The linker will automatically build a .lib file if we build a DLL.
 
13494
      old_archive_From_new_cmds_F77='true'
 
13495
      # FIXME: Should let the user specify the lib program.
 
13496
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13497
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13498
      enable_shared_with_static_runtimes_F77=yes
 
13499
      ;;
 
13500
 
 
13501
    darwin* | rhapsody*)
 
13502
    if test "$GXX" = yes ; then
 
13503
      archive_cmds_need_lc_F77=no
 
13504
      case "$host_os" in
 
13505
      rhapsody* | darwin1.[012])
 
13506
        allow_undefined_flag_F77='-undefined suppress'
 
13507
        ;;
 
13508
      *) # Darwin 1.3 on
 
13509
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13510
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13511
      else
 
13512
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13513
          10.[012])
 
13514
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13515
            ;;
 
13516
          10.*)
 
13517
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
13518
            ;;
 
13519
        esac
 
13520
      fi
 
13521
        ;;
 
13522
      esac
 
13523
        lt_int_apple_cc_single_mod=no
 
13524
        output_verbose_link_cmd='echo'
 
13525
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
13526
          lt_int_apple_cc_single_mod=yes
 
13527
        fi
 
13528
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13529
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13530
        else
 
13531
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
 
13532
      fi
 
13533
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13534
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13535
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13536
          archive_expsym_cmds_F77='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}'
 
13537
        else
 
13538
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
13539
        fi
 
13540
          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}'
 
13541
      hardcode_direct_F77=no
 
13542
      hardcode_automatic_F77=yes
 
13543
      hardcode_shlibpath_var_F77=unsupported
 
13544
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13545
      link_all_deplibs_F77=yes
 
13546
    else
 
13547
      ld_shlibs_F77=no
 
13548
    fi
 
13549
      ;;
 
13550
 
 
13551
    dgux*)
 
13552
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13553
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13554
      hardcode_shlibpath_var_F77=no
 
13555
      ;;
 
13556
 
 
13557
    freebsd1*)
 
13558
      ld_shlibs_F77=no
 
13559
      ;;
 
13560
 
 
13561
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13562
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13563
    # does not break anything, and helps significantly (at the cost of a little
 
13564
    # extra space).
 
13565
    freebsd2.2*)
 
13566
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13567
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13568
      hardcode_direct_F77=yes
 
13569
      hardcode_shlibpath_var_F77=no
 
13570
      ;;
 
13571
 
 
13572
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13573
    freebsd2*)
 
13574
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13575
      hardcode_direct_F77=yes
 
13576
      hardcode_minus_L_F77=yes
 
13577
      hardcode_shlibpath_var_F77=no
 
13578
      ;;
 
13579
 
 
13580
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13581
    freebsd* | kfreebsd*-gnu)
 
13582
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13583
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13584
      hardcode_direct_F77=yes
 
13585
      hardcode_shlibpath_var_F77=no
 
13586
      ;;
 
13587
 
 
13588
    hpux9*)
 
13589
      if test "$GCC" = yes; then
 
13590
        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'
 
13591
      else
 
13592
        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'
 
13593
      fi
 
13594
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13595
      hardcode_libdir_separator_F77=:
 
13596
      hardcode_direct_F77=yes
 
13597
 
 
13598
      # hardcode_minus_L: Not really in the search PATH,
 
13599
      # but as the default location of the library.
 
13600
      hardcode_minus_L_F77=yes
 
13601
      export_dynamic_flag_spec_F77='${wl}-E'
 
13602
      ;;
 
13603
 
 
13604
    hpux10* | hpux11*)
 
13605
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13606
        case "$host_cpu" in
 
13607
        hppa*64*|ia64*)
 
13608
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13609
          ;;
 
13610
        *)
 
13611
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13612
          ;;
 
13613
        esac
 
13614
      else
 
13615
        case "$host_cpu" in
 
13616
        hppa*64*|ia64*)
 
13617
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13618
          ;;
 
13619
        *)
 
13620
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
13621
          ;;
 
13622
        esac
 
13623
      fi
 
13624
      if test "$with_gnu_ld" = no; then
 
13625
        case "$host_cpu" in
 
13626
        hppa*64*)
 
13627
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13628
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
13629
          hardcode_libdir_separator_F77=:
 
13630
          hardcode_direct_F77=no
 
13631
          hardcode_shlibpath_var_F77=no
 
13632
          ;;
 
13633
        ia64*)
 
13634
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13635
          hardcode_direct_F77=no
 
13636
          hardcode_shlibpath_var_F77=no
 
13637
 
 
13638
          # hardcode_minus_L: Not really in the search PATH,
 
13639
          # but as the default location of the library.
 
13640
          hardcode_minus_L_F77=yes
 
13641
          ;;
 
13642
        *)
 
13643
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13644
          hardcode_libdir_separator_F77=:
 
13645
          hardcode_direct_F77=yes
 
13646
          export_dynamic_flag_spec_F77='${wl}-E'
 
13647
 
 
13648
          # hardcode_minus_L: Not really in the search PATH,
 
13649
          # but as the default location of the library.
 
13650
          hardcode_minus_L_F77=yes
 
13651
          ;;
 
13652
        esac
 
13653
      fi
 
13654
      ;;
 
13655
 
 
13656
    irix5* | irix6* | nonstopux*)
 
13657
      if test "$GCC" = yes; then
 
13658
        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'
 
13659
      else
 
13660
        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'
 
13661
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
13662
      fi
 
13663
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13664
      hardcode_libdir_separator_F77=:
 
13665
      link_all_deplibs_F77=yes
 
13666
      ;;
 
13667
 
 
13668
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13669
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13670
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
13671
      else
 
13672
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
13673
      fi
 
13674
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13675
      hardcode_direct_F77=yes
 
13676
      hardcode_shlibpath_var_F77=no
 
13677
      ;;
 
13678
 
 
13679
    newsos6)
 
13680
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13681
      hardcode_direct_F77=yes
 
13682
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13683
      hardcode_libdir_separator_F77=:
 
13684
      hardcode_shlibpath_var_F77=no
 
13685
      ;;
 
13686
 
 
13687
    openbsd*)
 
13688
      hardcode_direct_F77=yes
 
13689
      hardcode_shlibpath_var_F77=no
 
13690
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13691
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13692
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13693
        export_dynamic_flag_spec_F77='${wl}-E'
 
13694
      else
 
13695
       case $host_os in
 
13696
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
13697
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13698
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
13699
           ;;
 
13700
         *)
 
13701
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13702
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13703
           ;;
 
13704
       esac
 
13705
      fi
 
13706
      ;;
 
13707
 
 
13708
    os2*)
 
13709
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13710
      hardcode_minus_L_F77=yes
 
13711
      allow_undefined_flag_F77=unsupported
 
13712
      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'
 
13713
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
13714
      ;;
 
13715
 
 
13716
    osf3*)
 
13717
      if test "$GCC" = yes; then
 
13718
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13719
        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'
 
13720
      else
 
13721
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13722
        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'
 
13723
      fi
 
13724
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13725
      hardcode_libdir_separator_F77=:
 
13726
      ;;
 
13727
 
 
13728
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
13729
      if test "$GCC" = yes; then
 
13730
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13731
        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'
 
13732
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13733
      else
 
13734
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13735
        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'
 
13736
        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~
 
13737
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
13738
 
 
13739
        # Both c and cxx compiler support -rpath directly
 
13740
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
13741
      fi
 
13742
      hardcode_libdir_separator_F77=:
 
13743
      ;;
 
13744
 
 
13745
    sco3.2v5*)
 
13746
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13747
      hardcode_shlibpath_var_F77=no
 
13748
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
13749
      runpath_var=LD_RUN_PATH
 
13750
      hardcode_runpath_var=yes
 
13751
      ;;
 
13752
 
 
13753
    solaris*)
 
13754
      no_undefined_flag_F77=' -z text'
 
13755
      if test "$GCC" = yes; then
 
13756
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13757
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13758
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
13759
      else
 
13760
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13761
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13762
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13763
      fi
 
13764
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13765
      hardcode_shlibpath_var_F77=no
 
13766
      case $host_os in
 
13767
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13768
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13769
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
13770
      esac
 
13771
      link_all_deplibs_F77=yes
 
13772
      ;;
 
13773
 
 
13774
    sunos4*)
 
13775
      if test "x$host_vendor" = xsequent; then
 
13776
        # Use $CC to link under sequent, because it throws in some extra .o
 
13777
        # files that make .init and .fini sections work.
 
13778
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
13779
      else
 
13780
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
13781
      fi
 
13782
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13783
      hardcode_direct_F77=yes
 
13784
      hardcode_minus_L_F77=yes
 
13785
      hardcode_shlibpath_var_F77=no
 
13786
      ;;
 
13787
 
 
13788
    sysv4)
 
13789
      case $host_vendor in
 
13790
        sni)
 
13791
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13792
          hardcode_direct_F77=yes # is this really true???
 
13793
        ;;
 
13794
        siemens)
 
13795
          ## LD is ld it makes a PLAMLIB
 
13796
          ## CC just makes a GrossModule.
 
13797
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13798
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
13799
          hardcode_direct_F77=no
 
13800
        ;;
 
13801
        motorola)
 
13802
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13803
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
13804
        ;;
 
13805
      esac
 
13806
      runpath_var='LD_RUN_PATH'
 
13807
      hardcode_shlibpath_var_F77=no
 
13808
      ;;
 
13809
 
 
13810
    sysv4.3*)
 
13811
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13812
      hardcode_shlibpath_var_F77=no
 
13813
      export_dynamic_flag_spec_F77='-Bexport'
 
13814
      ;;
 
13815
 
 
13816
    sysv4*MP*)
 
13817
      if test -d /usr/nec; then
 
13818
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13819
        hardcode_shlibpath_var_F77=no
 
13820
        runpath_var=LD_RUN_PATH
 
13821
        hardcode_runpath_var=yes
 
13822
        ld_shlibs_F77=yes
 
13823
      fi
 
13824
      ;;
 
13825
 
 
13826
    sysv4.2uw2*)
 
13827
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13828
      hardcode_direct_F77=yes
 
13829
      hardcode_minus_L_F77=no
 
13830
      hardcode_shlibpath_var_F77=no
 
13831
      hardcode_runpath_var=yes
 
13832
      runpath_var=LD_RUN_PATH
 
13833
      ;;
 
13834
 
 
13835
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
13836
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
13837
      if test "$GCC" = yes; then
 
13838
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13839
      else
 
13840
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13841
      fi
 
13842
      runpath_var='LD_RUN_PATH'
 
13843
      hardcode_shlibpath_var_F77=no
 
13844
      ;;
 
13845
 
 
13846
    sysv5*)
 
13847
      no_undefined_flag_F77=' -z text'
 
13848
      # $CC -shared without GNU ld will not create a library from C++
 
13849
      # object files and a static libstdc++, better avoid it by now
 
13850
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13851
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13852
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13853
      hardcode_libdir_flag_spec_F77=
 
13854
      hardcode_shlibpath_var_F77=no
 
13855
      runpath_var='LD_RUN_PATH'
 
13856
      ;;
 
13857
 
 
13858
    uts4*)
 
13859
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13860
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13861
      hardcode_shlibpath_var_F77=no
 
13862
      ;;
 
13863
 
 
13864
    *)
 
13865
      ld_shlibs_F77=no
 
13866
      ;;
 
13867
    esac
 
13868
  fi
 
13869
 
 
13870
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
13871
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
13872
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13873
 
 
13874
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13875
if test "$GCC" = yes; then
 
13876
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13877
fi
 
13878
 
 
13879
#
 
13880
# Do we need to explicitly link libc?
 
13881
#
 
13882
case "x$archive_cmds_need_lc_F77" in
 
13883
x|xyes)
 
13884
  # Assume -lc should be added
 
13885
  archive_cmds_need_lc_F77=yes
 
13886
 
 
13887
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13888
    case $archive_cmds_F77 in
 
13889
    *'~'*)
 
13890
      # FIXME: we may have to deal with multi-command sequences.
 
13891
      ;;
 
13892
    '$CC '*)
 
13893
      # Test whether the compiler implicitly links with -lc since on some
 
13894
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13895
      # to ld, don't add -lc before -lgcc.
 
13896
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13897
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13898
      $rm conftest*
 
13899
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13900
 
 
13901
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13902
  (eval $ac_compile) 2>&5
 
13903
  ac_status=$?
 
13904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13905
  (exit $ac_status); } 2>conftest.err; then
 
13906
        soname=conftest
 
13907
        lib=conftest
 
13908
        libobjs=conftest.$ac_objext
 
13909
        deplibs=
 
13910
        wl=$lt_prog_compiler_wl_F77
 
13911
        compiler_flags=-v
 
13912
        linker_flags=-v
 
13913
        verstring=
 
13914
        output_objdir=.
 
13915
        libname=conftest
 
13916
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
13917
        allow_undefined_flag_F77=
 
13918
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13919
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13920
  ac_status=$?
 
13921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13922
  (exit $ac_status); }
 
13923
        then
 
13924
          archive_cmds_need_lc_F77=no
 
13925
        else
 
13926
          archive_cmds_need_lc_F77=yes
 
13927
        fi
 
13928
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
13929
      else
 
13930
        cat conftest.err 1>&5
 
13931
      fi
 
13932
      $rm conftest*
 
13933
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
13934
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
13935
      ;;
 
13936
    esac
 
13937
  fi
 
13938
  ;;
 
13939
esac
 
13940
 
 
13941
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13942
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13943
library_names_spec=
 
13944
libname_spec='lib$name'
 
13945
soname_spec=
 
13946
shrext_cmds=".so"
 
13947
postinstall_cmds=
 
13948
postuninstall_cmds=
 
13949
finish_cmds=
 
13950
finish_eval=
 
13951
shlibpath_var=
 
13952
shlibpath_overrides_runpath=unknown
 
13953
version_type=none
 
13954
dynamic_linker="$host_os ld.so"
 
13955
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13956
if test "$GCC" = yes; then
 
13957
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13958
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13959
    # if the path contains ";" then we assume it to be the separator
 
13960
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13961
    # assumed that no part of a normal pathname contains ";" but that should
 
13962
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13963
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13964
  else
 
13965
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13966
  fi
 
13967
else
 
13968
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13969
fi
 
13970
need_lib_prefix=unknown
 
13971
hardcode_into_libs=no
 
13972
 
 
13973
# when you set need_version to no, make sure it does not cause -set_version
 
13974
# flags to be left without arguments
 
13975
need_version=unknown
 
13976
 
 
13977
case $host_os in
 
13978
aix3*)
 
13979
  version_type=linux
 
13980
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13981
  shlibpath_var=LIBPATH
 
13982
 
 
13983
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13984
  soname_spec='${libname}${release}${shared_ext}$major'
 
13985
  ;;
 
13986
 
 
13987
aix4* | aix5*)
 
13988
  version_type=linux
 
13989
  need_lib_prefix=no
 
13990
  need_version=no
 
13991
  hardcode_into_libs=yes
 
13992
  if test "$host_cpu" = ia64; then
 
13993
    # AIX 5 supports IA64
 
13994
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13995
    shlibpath_var=LD_LIBRARY_PATH
 
13996
  else
 
13997
    # With GCC up to 2.95.x, collect2 would create an import file
 
13998
    # for dependence libraries.  The import file would start with
 
13999
    # the line `#! .'.  This would cause the generated library to
 
14000
    # depend on `.', always an invalid library.  This was fixed in
 
14001
    # development snapshots of GCC prior to 3.0.
 
14002
    case $host_os in
 
14003
      aix4 | aix4.[01] | aix4.[01].*)
 
14004
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14005
           echo ' yes '
 
14006
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14007
        :
 
14008
      else
 
14009
        can_build_shared=no
 
14010
      fi
 
14011
      ;;
 
14012
    esac
 
14013
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14014
    # soname into executable. Probably we can add versioning support to
 
14015
    # collect2, so additional links can be useful in future.
 
14016
    if test "$aix_use_runtimelinking" = yes; then
 
14017
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14018
      # instead of lib<name>.a to let people know that these are not
 
14019
      # typical AIX shared libraries.
 
14020
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14021
    else
 
14022
      # We preserve .a as extension for shared libraries through AIX4.2
 
14023
      # and later when we are not doing run time linking.
 
14024
      library_names_spec='${libname}${release}.a $libname.a'
 
14025
      soname_spec='${libname}${release}${shared_ext}$major'
 
14026
    fi
 
14027
    shlibpath_var=LIBPATH
 
14028
  fi
 
14029
  ;;
 
14030
 
 
14031
amigaos*)
 
14032
  library_names_spec='$libname.ixlibrary $libname.a'
 
14033
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14034
  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'
 
14035
  ;;
 
14036
 
 
14037
beos*)
 
14038
  library_names_spec='${libname}${shared_ext}'
 
14039
  dynamic_linker="$host_os ld.so"
 
14040
  shlibpath_var=LIBRARY_PATH
 
14041
  ;;
 
14042
 
 
14043
bsdi4*)
 
14044
  version_type=linux
 
14045
  need_version=no
 
14046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14047
  soname_spec='${libname}${release}${shared_ext}$major'
 
14048
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14049
  shlibpath_var=LD_LIBRARY_PATH
 
14050
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14051
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14052
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14053
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14054
  # libtool to hard-code these into programs
 
14055
  ;;
 
14056
 
 
14057
cygwin* | mingw* | pw32*)
 
14058
  version_type=windows
 
14059
  shrext_cmds=".dll"
 
14060
  need_version=no
 
14061
  need_lib_prefix=no
 
14062
 
 
14063
  case $GCC,$host_os in
 
14064
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14065
    library_names_spec='$libname.dll.a'
 
14066
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14067
    postinstall_cmds='base_file=`basename \${file}`~
 
14068
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14069
      dldir=$destdir/`dirname \$dlpath`~
 
14070
      test -d \$dldir || mkdir -p \$dldir~
 
14071
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14072
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14073
      dlpath=$dir/\$dldll~
 
14074
       $rm \$dlpath'
 
14075
    shlibpath_overrides_runpath=yes
 
14076
 
 
14077
    case $host_os in
 
14078
    cygwin*)
 
14079
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14080
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14081
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14082
      ;;
 
14083
    mingw*)
 
14084
      # MinGW DLLs use traditional 'lib' prefix
 
14085
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14086
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14087
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14088
        # It is most probably a Windows format PATH printed by
 
14089
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14090
        # path with ; separators, and with drive letters. We can handle the
 
14091
        # drive letters (cygwin fileutils understands them), so leave them,
 
14092
        # especially as we might pass files found there to a mingw objdump,
 
14093
        # which wouldn't understand a cygwinified path. Ahh.
 
14094
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14095
      else
 
14096
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14097
      fi
 
14098
      ;;
 
14099
    pw32*)
 
14100
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14101
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14102
      ;;
 
14103
    esac
 
14104
    ;;
 
14105
 
 
14106
  *)
 
14107
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14108
    ;;
 
14109
  esac
 
14110
  dynamic_linker='Win32 ld.exe'
 
14111
  # FIXME: first we should search . and the directory the executable is in
 
14112
  shlibpath_var=PATH
 
14113
  ;;
 
14114
 
 
14115
darwin* | rhapsody*)
 
14116
  dynamic_linker="$host_os dyld"
 
14117
  version_type=darwin
 
14118
  need_lib_prefix=no
 
14119
  need_version=no
 
14120
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14121
  soname_spec='${libname}${release}${major}$shared_ext'
 
14122
  shlibpath_overrides_runpath=yes
 
14123
  shlibpath_var=DYLD_LIBRARY_PATH
 
14124
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14125
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14126
  if test "$GCC" = yes; then
 
14127
    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"`
 
14128
  else
 
14129
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14130
  fi
 
14131
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14132
  ;;
 
14133
 
 
14134
dgux*)
 
14135
  version_type=linux
 
14136
  need_lib_prefix=no
 
14137
  need_version=no
 
14138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14139
  soname_spec='${libname}${release}${shared_ext}$major'
 
14140
  shlibpath_var=LD_LIBRARY_PATH
 
14141
  ;;
 
14142
 
 
14143
freebsd1*)
 
14144
  dynamic_linker=no
 
14145
  ;;
 
14146
 
 
14147
kfreebsd*-gnu)
 
14148
  version_type=linux
 
14149
  need_lib_prefix=no
 
14150
  need_version=no
 
14151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14152
  soname_spec='${libname}${release}${shared_ext}$major'
 
14153
  shlibpath_var=LD_LIBRARY_PATH
 
14154
  shlibpath_overrides_runpath=no
 
14155
  hardcode_into_libs=yes
 
14156
  dynamic_linker='GNU ld.so'
 
14157
  ;;
 
14158
 
 
14159
freebsd*)
 
14160
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14161
  version_type=freebsd-$objformat
 
14162
  case $version_type in
 
14163
    freebsd-elf*)
 
14164
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14165
      need_version=no
 
14166
      need_lib_prefix=no
 
14167
      ;;
 
14168
    freebsd-*)
 
14169
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14170
      need_version=yes
 
14171
      ;;
 
14172
  esac
 
14173
  shlibpath_var=LD_LIBRARY_PATH
 
14174
  case $host_os in
 
14175
  freebsd2*)
 
14176
    shlibpath_overrides_runpath=yes
 
14177
    ;;
 
14178
  freebsd3.01* | freebsdelf3.01*)
 
14179
    shlibpath_overrides_runpath=yes
 
14180
    hardcode_into_libs=yes
 
14181
    ;;
 
14182
  *) # from 3.2 on
 
14183
    shlibpath_overrides_runpath=no
 
14184
    hardcode_into_libs=yes
 
14185
    ;;
 
14186
  esac
 
14187
  ;;
 
14188
 
 
14189
gnu*)
 
14190
  version_type=linux
 
14191
  need_lib_prefix=no
 
14192
  need_version=no
 
14193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14194
  soname_spec='${libname}${release}${shared_ext}$major'
 
14195
  shlibpath_var=LD_LIBRARY_PATH
 
14196
  hardcode_into_libs=yes
 
14197
  ;;
 
14198
 
 
14199
hpux9* | hpux10* | hpux11*)
 
14200
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14201
  # link against other versions.
 
14202
  version_type=sunos
 
14203
  need_lib_prefix=no
 
14204
  need_version=no
 
14205
  case "$host_cpu" in
 
14206
  ia64*)
 
14207
    shrext_cmds='.so'
 
14208
    hardcode_into_libs=yes
 
14209
    dynamic_linker="$host_os dld.so"
 
14210
    shlibpath_var=LD_LIBRARY_PATH
 
14211
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14212
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14213
    soname_spec='${libname}${release}${shared_ext}$major'
 
14214
    if test "X$HPUX_IA64_MODE" = X32; then
 
14215
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14216
    else
 
14217
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14218
    fi
 
14219
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14220
    ;;
 
14221
   hppa*64*)
 
14222
     shrext_cmds='.sl'
 
14223
     hardcode_into_libs=yes
 
14224
     dynamic_linker="$host_os dld.sl"
 
14225
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14226
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14227
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14228
     soname_spec='${libname}${release}${shared_ext}$major'
 
14229
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14230
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14231
     ;;
 
14232
   *)
 
14233
    shrext_cmds='.sl'
 
14234
    dynamic_linker="$host_os dld.sl"
 
14235
    shlibpath_var=SHLIB_PATH
 
14236
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14237
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14238
    soname_spec='${libname}${release}${shared_ext}$major'
 
14239
    ;;
 
14240
  esac
 
14241
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14242
  postinstall_cmds='chmod 555 $lib'
 
14243
  ;;
 
14244
 
 
14245
irix5* | irix6* | nonstopux*)
 
14246
  case $host_os in
 
14247
    nonstopux*) version_type=nonstopux ;;
 
14248
    *)
 
14249
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14250
                version_type=linux
 
14251
        else
 
14252
                version_type=irix
 
14253
        fi ;;
 
14254
  esac
 
14255
  need_lib_prefix=no
 
14256
  need_version=no
 
14257
  soname_spec='${libname}${release}${shared_ext}$major'
 
14258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14259
  case $host_os in
 
14260
  irix5* | nonstopux*)
 
14261
    libsuff= shlibsuff=
 
14262
    ;;
 
14263
  *)
 
14264
    case $LD in # libtool.m4 will add one of these switches to LD
 
14265
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14266
      libsuff= shlibsuff= libmagic=32-bit;;
 
14267
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14268
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14269
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14270
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14271
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14272
    esac
 
14273
    ;;
 
14274
  esac
 
14275
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14276
  shlibpath_overrides_runpath=no
 
14277
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14278
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14279
  hardcode_into_libs=yes
 
14280
  ;;
 
14281
 
 
14282
# No shared lib support for Linux oldld, aout, or coff.
 
14283
linux*oldld* | linux*aout* | linux*coff*)
 
14284
  dynamic_linker=no
 
14285
  ;;
 
14286
 
 
14287
# This must be Linux ELF.
 
14288
linux*)
 
14289
  version_type=linux
 
14290
  need_lib_prefix=no
 
14291
  need_version=no
 
14292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14293
  soname_spec='${libname}${release}${shared_ext}$major'
 
14294
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14295
  shlibpath_var=LD_LIBRARY_PATH
 
14296
  shlibpath_overrides_runpath=no
 
14297
  # This implies no fast_install, which is unacceptable.
 
14298
  # Some rework will be needed to allow for fast_install
 
14299
  # before this can be enabled.
 
14300
  hardcode_into_libs=yes
 
14301
 
 
14302
  # Append ld.so.conf contents to the search path
 
14303
  if test -f /etc/ld.so.conf; then
 
14304
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14305
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14306
  fi
 
14307
 
 
14308
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14309
  # powerpc, because MkLinux only supported shared libraries with the
 
14310
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14311
  # most powerpc-linux boxes support dynamic linking these days and
 
14312
  # people can always --disable-shared, the test was removed, and we
 
14313
  # assume the GNU/Linux dynamic linker is in use.
 
14314
  dynamic_linker='GNU/Linux ld.so'
 
14315
  ;;
 
14316
 
 
14317
netbsdelf*-gnu)
 
14318
  version_type=linux
 
14319
  need_lib_prefix=no
 
14320
  need_version=no
 
14321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14322
  soname_spec='${libname}${release}${shared_ext}$major'
 
14323
  shlibpath_var=LD_LIBRARY_PATH
 
14324
  shlibpath_overrides_runpath=no
 
14325
  hardcode_into_libs=yes
 
14326
  dynamic_linker='NetBSD ld.elf_so'
 
14327
  ;;
 
14328
 
 
14329
knetbsd*-gnu)
 
14330
  version_type=linux
 
14331
  need_lib_prefix=no
 
14332
  need_version=no
 
14333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14334
  soname_spec='${libname}${release}${shared_ext}$major'
 
14335
  shlibpath_var=LD_LIBRARY_PATH
 
14336
  shlibpath_overrides_runpath=no
 
14337
  hardcode_into_libs=yes
 
14338
  dynamic_linker='GNU ld.so'
 
14339
  ;;
 
14340
 
 
14341
netbsd*)
 
14342
  version_type=sunos
 
14343
  need_lib_prefix=no
 
14344
  need_version=no
 
14345
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14346
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14347
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14348
    dynamic_linker='NetBSD (a.out) ld.so'
 
14349
  else
 
14350
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14351
    soname_spec='${libname}${release}${shared_ext}$major'
 
14352
    dynamic_linker='NetBSD ld.elf_so'
 
14353
  fi
 
14354
  shlibpath_var=LD_LIBRARY_PATH
 
14355
  shlibpath_overrides_runpath=yes
 
14356
  hardcode_into_libs=yes
 
14357
  ;;
 
14358
 
 
14359
newsos6)
 
14360
  version_type=linux
 
14361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14362
  shlibpath_var=LD_LIBRARY_PATH
 
14363
  shlibpath_overrides_runpath=yes
 
14364
  ;;
 
14365
 
 
14366
nto-qnx*)
 
14367
  version_type=linux
 
14368
  need_lib_prefix=no
 
14369
  need_version=no
 
14370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14371
  soname_spec='${libname}${release}${shared_ext}$major'
 
14372
  shlibpath_var=LD_LIBRARY_PATH
 
14373
  shlibpath_overrides_runpath=yes
 
14374
  ;;
 
14375
 
 
14376
openbsd*)
 
14377
  version_type=sunos
 
14378
  need_lib_prefix=no
 
14379
  need_version=yes
 
14380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14381
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14382
  shlibpath_var=LD_LIBRARY_PATH
 
14383
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14384
    case $host_os in
 
14385
      openbsd2.[89] | openbsd2.[89].*)
 
14386
        shlibpath_overrides_runpath=no
 
14387
        ;;
 
14388
      *)
 
14389
        shlibpath_overrides_runpath=yes
 
14390
        ;;
 
14391
      esac
 
14392
  else
 
14393
    shlibpath_overrides_runpath=yes
 
14394
  fi
 
14395
  ;;
 
14396
 
 
14397
os2*)
 
14398
  libname_spec='$name'
 
14399
  shrext_cmds=".dll"
 
14400
  need_lib_prefix=no
 
14401
  library_names_spec='$libname${shared_ext} $libname.a'
 
14402
  dynamic_linker='OS/2 ld.exe'
 
14403
  shlibpath_var=LIBPATH
 
14404
  ;;
 
14405
 
 
14406
osf3* | osf4* | osf5*)
 
14407
  version_type=osf
 
14408
  need_lib_prefix=no
 
14409
  need_version=no
 
14410
  soname_spec='${libname}${release}${shared_ext}$major'
 
14411
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14412
  shlibpath_var=LD_LIBRARY_PATH
 
14413
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14414
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14415
  ;;
 
14416
 
 
14417
sco3.2v5*)
 
14418
  version_type=osf
 
14419
  soname_spec='${libname}${release}${shared_ext}$major'
 
14420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14421
  shlibpath_var=LD_LIBRARY_PATH
 
14422
  ;;
 
14423
 
 
14424
solaris*)
 
14425
  version_type=linux
 
14426
  need_lib_prefix=no
 
14427
  need_version=no
 
14428
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14429
  soname_spec='${libname}${release}${shared_ext}$major'
 
14430
  shlibpath_var=LD_LIBRARY_PATH
 
14431
  shlibpath_overrides_runpath=yes
 
14432
  hardcode_into_libs=yes
 
14433
  # ldd complains unless libraries are executable
 
14434
  postinstall_cmds='chmod +x $lib'
 
14435
  ;;
 
14436
 
 
14437
sunos4*)
 
14438
  version_type=sunos
 
14439
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14440
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14441
  shlibpath_var=LD_LIBRARY_PATH
 
14442
  shlibpath_overrides_runpath=yes
 
14443
  if test "$with_gnu_ld" = yes; then
 
14444
    need_lib_prefix=no
 
14445
  fi
 
14446
  need_version=yes
 
14447
  ;;
 
14448
 
 
14449
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14450
  version_type=linux
 
14451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14452
  soname_spec='${libname}${release}${shared_ext}$major'
 
14453
  shlibpath_var=LD_LIBRARY_PATH
 
14454
  case $host_vendor in
 
14455
    sni)
 
14456
      shlibpath_overrides_runpath=no
 
14457
      need_lib_prefix=no
 
14458
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14459
      runpath_var=LD_RUN_PATH
 
14460
      ;;
 
14461
    siemens)
 
14462
      need_lib_prefix=no
 
14463
      ;;
 
14464
    motorola)
 
14465
      need_lib_prefix=no
 
14466
      need_version=no
 
14467
      shlibpath_overrides_runpath=no
 
14468
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14469
      ;;
 
14470
  esac
 
14471
  ;;
 
14472
 
 
14473
sysv4*MP*)
 
14474
  if test -d /usr/nec ;then
 
14475
    version_type=linux
 
14476
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14477
    soname_spec='$libname${shared_ext}.$major'
 
14478
    shlibpath_var=LD_LIBRARY_PATH
 
14479
  fi
 
14480
  ;;
 
14481
 
 
14482
uts4*)
 
14483
  version_type=linux
 
14484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14485
  soname_spec='${libname}${release}${shared_ext}$major'
 
14486
  shlibpath_var=LD_LIBRARY_PATH
 
14487
  ;;
 
14488
 
 
14489
*)
 
14490
  dynamic_linker=no
 
14491
  ;;
 
14492
esac
 
14493
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14494
echo "${ECHO_T}$dynamic_linker" >&6
 
14495
test "$dynamic_linker" = no && can_build_shared=no
 
14496
 
 
14497
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14498
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14499
hardcode_action_F77=
 
14500
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14501
   test -n "$runpath_var F77" || \
 
14502
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14503
 
 
14504
  # We can hardcode non-existant directories.
 
14505
  if test "$hardcode_direct_F77" != no &&
 
14506
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14507
     # have to relink, otherwise we might link with an installed library
 
14508
     # when we should be linking with a yet-to-be-installed one
 
14509
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14510
     test "$hardcode_minus_L_F77" != no; then
 
14511
    # Linking always hardcodes the temporary library directory.
 
14512
    hardcode_action_F77=relink
 
14513
  else
 
14514
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14515
    hardcode_action_F77=immediate
 
14516
  fi
 
14517
else
 
14518
  # We cannot hardcode anything, or else we can only hardcode existing
 
14519
  # directories.
 
14520
  hardcode_action_F77=unsupported
 
14521
fi
 
14522
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14523
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14524
 
 
14525
if test "$hardcode_action_F77" = relink; then
 
14526
  # Fast installation is not supported
 
14527
  enable_fast_install=no
 
14528
elif test "$shlibpath_overrides_runpath" = yes ||
 
14529
     test "$enable_shared" = no; then
 
14530
  # Fast installation is not necessary
 
14531
  enable_fast_install=needless
 
14532
fi
 
14533
 
 
14534
striplib=
 
14535
old_striplib=
 
14536
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14537
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14538
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14539
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14540
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14541
  echo "$as_me:$LINENO: result: yes" >&5
 
14542
echo "${ECHO_T}yes" >&6
 
14543
else
 
14544
# FIXME - insert some real tests, host_os isn't really good enough
 
14545
  case $host_os in
 
14546
   darwin*)
 
14547
       if test -n "$STRIP" ; then
 
14548
         striplib="$STRIP -x"
 
14549
         echo "$as_me:$LINENO: result: yes" >&5
 
14550
echo "${ECHO_T}yes" >&6
 
14551
       else
 
14552
  echo "$as_me:$LINENO: result: no" >&5
 
14553
echo "${ECHO_T}no" >&6
 
14554
fi
 
14555
       ;;
 
14556
   *)
 
14557
  echo "$as_me:$LINENO: result: no" >&5
 
14558
echo "${ECHO_T}no" >&6
 
14559
    ;;
 
14560
  esac
 
14561
fi
 
14562
 
 
14563
 
 
14564
 
 
14565
# The else clause should only fire when bootstrapping the
 
14566
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14567
# with your package, and you will get complaints that there are
 
14568
# no rules to generate ltmain.sh.
 
14569
if test -f "$ltmain"; then
 
14570
  # See if we are running on zsh, and set the options which allow our commands through
 
14571
  # without removal of \ escapes.
 
14572
  if test -n "${ZSH_VERSION+set}" ; then
 
14573
    setopt NO_GLOB_SUBST
 
14574
  fi
 
14575
  # Now quote all the things that may contain metacharacters while being
 
14576
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14577
  # variables and quote the copies for generation of the libtool script.
 
14578
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14579
    SED SHELL STRIP \
 
14580
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14581
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14582
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14583
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14584
    lt_cv_sys_global_symbol_to_c_name_address \
 
14585
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14586
    old_postinstall_cmds old_postuninstall_cmds \
 
14587
    compiler_F77 \
 
14588
    CC_F77 \
 
14589
    LD_F77 \
 
14590
    lt_prog_compiler_wl_F77 \
 
14591
    lt_prog_compiler_pic_F77 \
 
14592
    lt_prog_compiler_static_F77 \
 
14593
    lt_prog_compiler_no_builtin_flag_F77 \
 
14594
    export_dynamic_flag_spec_F77 \
 
14595
    thread_safe_flag_spec_F77 \
 
14596
    whole_archive_flag_spec_F77 \
 
14597
    enable_shared_with_static_runtimes_F77 \
 
14598
    old_archive_cmds_F77 \
 
14599
    old_archive_from_new_cmds_F77 \
 
14600
    predep_objects_F77 \
 
14601
    postdep_objects_F77 \
 
14602
    predeps_F77 \
 
14603
    postdeps_F77 \
 
14604
    compiler_lib_search_path_F77 \
 
14605
    archive_cmds_F77 \
 
14606
    archive_expsym_cmds_F77 \
 
14607
    postinstall_cmds_F77 \
 
14608
    postuninstall_cmds_F77 \
 
14609
    old_archive_from_expsyms_cmds_F77 \
 
14610
    allow_undefined_flag_F77 \
 
14611
    no_undefined_flag_F77 \
 
14612
    export_symbols_cmds_F77 \
 
14613
    hardcode_libdir_flag_spec_F77 \
 
14614
    hardcode_libdir_flag_spec_ld_F77 \
 
14615
    hardcode_libdir_separator_F77 \
 
14616
    hardcode_automatic_F77 \
 
14617
    module_cmds_F77 \
 
14618
    module_expsym_cmds_F77 \
 
14619
    lt_cv_prog_compiler_c_o_F77 \
 
14620
    exclude_expsyms_F77 \
 
14621
    include_expsyms_F77; do
 
14622
 
 
14623
    case $var in
 
14624
    old_archive_cmds_F77 | \
 
14625
    old_archive_from_new_cmds_F77 | \
 
14626
    archive_cmds_F77 | \
 
14627
    archive_expsym_cmds_F77 | \
 
14628
    module_cmds_F77 | \
 
14629
    module_expsym_cmds_F77 | \
 
14630
    old_archive_from_expsyms_cmds_F77 | \
 
14631
    export_symbols_cmds_F77 | \
 
14632
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14633
    postinstall_cmds | postuninstall_cmds | \
 
14634
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14635
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14636
      # Double-quote double-evaled strings.
 
14637
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14638
      ;;
 
14639
    *)
 
14640
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14641
      ;;
 
14642
    esac
 
14643
  done
 
14644
 
 
14645
  case $lt_echo in
 
14646
  *'\$0 --fallback-echo"')
 
14647
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14648
    ;;
 
14649
  esac
 
14650
 
 
14651
cfgfile="$ofile"
 
14652
 
 
14653
  cat <<__EOF__ >> "$cfgfile"
 
14654
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14655
 
 
14656
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14657
 
 
14658
# Shell to use when invoking shell scripts.
 
14659
SHELL=$lt_SHELL
 
14660
 
 
14661
# Whether or not to build shared libraries.
 
14662
build_libtool_libs=$enable_shared
 
14663
 
 
14664
# Whether or not to build static libraries.
 
14665
build_old_libs=$enable_static
 
14666
 
 
14667
# Whether or not to add -lc for building shared libraries.
 
14668
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
14669
 
 
14670
# Whether or not to disallow shared libs when runtime libs are static
 
14671
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
14672
 
 
14673
# Whether or not to optimize for fast installation.
 
14674
fast_install=$enable_fast_install
 
14675
 
 
14676
# The host system.
 
14677
host_alias=$host_alias
 
14678
host=$host
 
14679
 
 
14680
# An echo program that does not interpret backslashes.
 
14681
echo=$lt_echo
 
14682
 
 
14683
# The archiver.
 
14684
AR=$lt_AR
 
14685
AR_FLAGS=$lt_AR_FLAGS
 
14686
 
 
14687
# A C compiler.
 
14688
LTCC=$lt_LTCC
 
14689
 
 
14690
# A language-specific compiler.
 
14691
CC=$lt_compiler_F77
 
14692
 
 
14693
# Is the compiler the GNU C compiler?
 
14694
with_gcc=$GCC_F77
 
14695
 
 
14696
# An ERE matcher.
 
14697
EGREP=$lt_EGREP
 
14698
 
 
14699
# The linker used to build libraries.
 
14700
LD=$lt_LD_F77
 
14701
 
 
14702
# Whether we need hard or soft links.
 
14703
LN_S=$lt_LN_S
 
14704
 
 
14705
# A BSD-compatible nm program.
 
14706
NM=$lt_NM
 
14707
 
 
14708
# A symbol stripping program
 
14709
STRIP=$lt_STRIP
 
14710
 
 
14711
# Used to examine libraries when file_magic_cmd begins "file"
 
14712
MAGIC_CMD=$MAGIC_CMD
 
14713
 
 
14714
# Used on cygwin: DLL creation program.
 
14715
DLLTOOL="$DLLTOOL"
 
14716
 
 
14717
# Used on cygwin: object dumper.
 
14718
OBJDUMP="$OBJDUMP"
 
14719
 
 
14720
# Used on cygwin: assembler.
 
14721
AS="$AS"
 
14722
 
 
14723
# The name of the directory that contains temporary libtool files.
 
14724
objdir=$objdir
 
14725
 
 
14726
# How to create reloadable object files.
 
14727
reload_flag=$lt_reload_flag
 
14728
reload_cmds=$lt_reload_cmds
 
14729
 
 
14730
# How to pass a linker flag through the compiler.
 
14731
wl=$lt_lt_prog_compiler_wl_F77
 
14732
 
 
14733
# Object file suffix (normally "o").
 
14734
objext="$ac_objext"
 
14735
 
 
14736
# Old archive suffix (normally "a").
 
14737
libext="$libext"
 
14738
 
 
14739
# Shared library suffix (normally ".so").
 
14740
shrext_cmds='$shrext_cmds'
 
14741
 
 
14742
# Executable file suffix (normally "").
 
14743
exeext="$exeext"
 
14744
 
 
14745
# Additional compiler flags for building library objects.
 
14746
pic_flag=$lt_lt_prog_compiler_pic_F77
 
14747
pic_mode=$pic_mode
 
14748
 
 
14749
# What is the maximum length of a command?
 
14750
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14751
 
 
14752
# Does compiler simultaneously support -c and -o options?
 
14753
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
14754
 
 
14755
# Must we lock files when doing compilation ?
 
14756
need_locks=$lt_need_locks
 
14757
 
 
14758
# Do we need the lib prefix for modules?
 
14759
need_lib_prefix=$need_lib_prefix
 
14760
 
 
14761
# Do we need a version for libraries?
 
14762
need_version=$need_version
 
14763
 
 
14764
# Whether dlopen is supported.
 
14765
dlopen_support=$enable_dlopen
 
14766
 
 
14767
# Whether dlopen of programs is supported.
 
14768
dlopen_self=$enable_dlopen_self
 
14769
 
 
14770
# Whether dlopen of statically linked programs is supported.
 
14771
dlopen_self_static=$enable_dlopen_self_static
 
14772
 
 
14773
# Compiler flag to prevent dynamic linking.
 
14774
link_static_flag=$lt_lt_prog_compiler_static_F77
 
14775
 
 
14776
# Compiler flag to turn off builtin functions.
 
14777
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
14778
 
 
14779
# Compiler flag to allow reflexive dlopens.
 
14780
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
14781
 
 
14782
# Compiler flag to generate shared objects directly from archives.
 
14783
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
14784
 
 
14785
# Compiler flag to generate thread-safe objects.
 
14786
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
14787
 
 
14788
# Library versioning type.
 
14789
version_type=$version_type
 
14790
 
 
14791
# Format of library name prefix.
 
14792
libname_spec=$lt_libname_spec
 
14793
 
 
14794
# List of archive names.  First name is the real one, the rest are links.
 
14795
# The last name is the one that the linker finds with -lNAME.
 
14796
library_names_spec=$lt_library_names_spec
 
14797
 
 
14798
# The coded name of the library, if different from the real name.
 
14799
soname_spec=$lt_soname_spec
 
14800
 
 
14801
# Commands used to build and install an old-style archive.
 
14802
RANLIB=$lt_RANLIB
 
14803
old_archive_cmds=$lt_old_archive_cmds_F77
 
14804
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14805
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14806
 
 
14807
# Create an old-style archive from a shared archive.
 
14808
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
14809
 
 
14810
# Create a temporary old-style archive to link instead of a shared archive.
 
14811
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
14812
 
 
14813
# Commands used to build and install a shared archive.
 
14814
archive_cmds=$lt_archive_cmds_F77
 
14815
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
14816
postinstall_cmds=$lt_postinstall_cmds
 
14817
postuninstall_cmds=$lt_postuninstall_cmds
 
14818
 
 
14819
# Commands used to build a loadable module (assumed same as above if empty)
 
14820
module_cmds=$lt_module_cmds_F77
 
14821
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
14822
 
 
14823
# Commands to strip libraries.
 
14824
old_striplib=$lt_old_striplib
 
14825
striplib=$lt_striplib
 
14826
 
 
14827
# Dependencies to place before the objects being linked to create a
 
14828
# shared library.
 
14829
predep_objects=$lt_predep_objects_F77
 
14830
 
 
14831
# Dependencies to place after the objects being linked to create a
 
14832
# shared library.
 
14833
postdep_objects=$lt_postdep_objects_F77
 
14834
 
 
14835
# Dependencies to place before the objects being linked to create a
 
14836
# shared library.
 
14837
predeps=$lt_predeps_F77
 
14838
 
 
14839
# Dependencies to place after the objects being linked to create a
 
14840
# shared library.
 
14841
postdeps=$lt_postdeps_F77
 
14842
 
 
14843
# The library search path used internally by the compiler when linking
 
14844
# a shared library.
 
14845
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
14846
 
 
14847
# Method to check whether dependent libraries are shared objects.
 
14848
deplibs_check_method=$lt_deplibs_check_method
 
14849
 
 
14850
# Command to use when deplibs_check_method == file_magic.
 
14851
file_magic_cmd=$lt_file_magic_cmd
 
14852
 
 
14853
# Flag that allows shared libraries with undefined symbols to be built.
 
14854
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
14855
 
 
14856
# Flag that forces no undefined symbols.
 
14857
no_undefined_flag=$lt_no_undefined_flag_F77
 
14858
 
 
14859
# Commands used to finish a libtool library installation in a directory.
 
14860
finish_cmds=$lt_finish_cmds
 
14861
 
 
14862
# Same as above, but a single script fragment to be evaled but not shown.
 
14863
finish_eval=$lt_finish_eval
 
14864
 
 
14865
# Take the output of nm and produce a listing of raw symbols and C names.
 
14866
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14867
 
 
14868
# Transform the output of nm in a proper C declaration
 
14869
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14870
 
 
14871
# Transform the output of nm in a C name address pair
 
14872
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14873
 
 
14874
# This is the shared library runtime path variable.
 
14875
runpath_var=$runpath_var
 
14876
 
 
14877
# This is the shared library path variable.
 
14878
shlibpath_var=$shlibpath_var
 
14879
 
 
14880
# Is shlibpath searched before the hard-coded library search path?
 
14881
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14882
 
 
14883
# How to hardcode a shared library path into an executable.
 
14884
hardcode_action=$hardcode_action_F77
 
14885
 
 
14886
# Whether we should hardcode library paths into libraries.
 
14887
hardcode_into_libs=$hardcode_into_libs
 
14888
 
 
14889
# Flag to hardcode \$libdir into a binary during linking.
 
14890
# This must work even if \$libdir does not exist.
 
14891
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
14892
 
 
14893
# If ld is used when linking, flag to hardcode \$libdir into
 
14894
# a binary during linking. This must work even if \$libdir does
 
14895
# not exist.
 
14896
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
14897
 
 
14898
# Whether we need a single -rpath flag with a separated argument.
 
14899
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
14900
 
 
14901
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14902
# resulting binary.
 
14903
hardcode_direct=$hardcode_direct_F77
 
14904
 
 
14905
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14906
# resulting binary.
 
14907
hardcode_minus_L=$hardcode_minus_L_F77
 
14908
 
 
14909
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14910
# the resulting binary.
 
14911
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
14912
 
 
14913
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14914
# and all subsequent libraries and executables linked against it.
 
14915
hardcode_automatic=$hardcode_automatic_F77
 
14916
 
 
14917
# Variables whose values should be saved in libtool wrapper scripts and
 
14918
# restored at relink time.
 
14919
variables_saved_for_relink="$variables_saved_for_relink"
 
14920
 
 
14921
# Whether libtool must link a program against all its dependency libraries.
 
14922
link_all_deplibs=$link_all_deplibs_F77
 
14923
 
 
14924
# Compile-time system search path for libraries
 
14925
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14926
 
 
14927
# Run-time system search path for libraries
 
14928
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14929
 
 
14930
# Fix the shell variable \$srcfile for the compiler.
 
14931
fix_srcfile_path="$fix_srcfile_path_F77"
 
14932
 
 
14933
# Set to yes if exported symbols are required.
 
14934
always_export_symbols=$always_export_symbols_F77
 
14935
 
 
14936
# The commands to list exported symbols.
 
14937
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
14938
 
 
14939
# The commands to extract the exported symbol list from a shared archive.
 
14940
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14941
 
 
14942
# Symbols that should not be listed in the preloaded symbols.
 
14943
exclude_expsyms=$lt_exclude_expsyms_F77
 
14944
 
 
14945
# Symbols that must always be exported.
 
14946
include_expsyms=$lt_include_expsyms_F77
 
14947
 
 
14948
# ### END LIBTOOL TAG CONFIG: $tagname
 
14949
 
 
14950
__EOF__
 
14951
 
 
14952
 
 
14953
else
 
14954
  # If there is no Makefile yet, we rely on a make rule to execute
 
14955
  # `config.status --recheck' to rerun these tests and create the
 
14956
  # libtool script then.
 
14957
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14958
  if test -f "$ltmain_in"; then
 
14959
    test -f Makefile && make "$ltmain"
 
14960
  fi
 
14961
fi
 
14962
 
 
14963
 
 
14964
ac_ext=c
 
14965
ac_cpp='$CPP $CPPFLAGS'
 
14966
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14967
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14969
 
 
14970
CC="$lt_save_CC"
 
14971
 
 
14972
        else
 
14973
          tagname=""
 
14974
        fi
 
14975
        ;;
 
14976
 
 
14977
      GCJ)
 
14978
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
14979
 
 
14980
 
 
14981
 
 
14982
# Source file extension for Java test sources.
 
14983
ac_ext=java
 
14984
 
 
14985
# Object file extension for compiled Java test sources.
 
14986
objext=o
 
14987
objext_GCJ=$objext
 
14988
 
 
14989
# Code to be used in simple compile tests
 
14990
lt_simple_compile_test_code="class foo {}\n"
 
14991
 
 
14992
# Code to be used in simple link tests
 
14993
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
14994
 
 
14995
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14996
 
 
14997
# If no C compiler was specified, use CC.
 
14998
LTCC=${LTCC-"$CC"}
 
14999
 
 
15000
# Allow CC to be a program name with arguments.
 
15001
compiler=$CC
 
15002
 
 
15003
 
 
15004
# Allow CC to be a program name with arguments.
 
15005
lt_save_CC="$CC"
 
15006
CC=${GCJ-"gcj"}
 
15007
compiler=$CC
 
15008
compiler_GCJ=$CC
 
15009
 
 
15010
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15011
archive_cmds_need_lc_GCJ=no
 
15012
 
 
15013
 
 
15014
lt_prog_compiler_no_builtin_flag_GCJ=
 
15015
 
 
15016
if test "$GCC" = yes; then
 
15017
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15018
 
 
15019
 
 
15020
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15021
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15022
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15024
else
 
15025
  lt_cv_prog_compiler_rtti_exceptions=no
 
15026
  ac_outfile=conftest.$ac_objext
 
15027
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15028
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15029
   # Insert the option either (1) after the last *FLAGS variable, or
 
15030
   # (2) before a word containing "conftest.", or (3) at the end.
 
15031
   # Note that $ac_compile itself does not contain backslashes and begins
 
15032
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15033
   # The option is referenced via a variable to avoid confusing sed.
 
15034
   lt_compile=`echo "$ac_compile" | $SED \
 
15035
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15036
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15037
   -e 's:$: $lt_compiler_flag:'`
 
15038
   (eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
 
15039
   (eval "$lt_compile" 2>conftest.err)
 
15040
   ac_status=$?
 
15041
   cat conftest.err >&5
 
15042
   echo "$as_me:15042: \$? = $ac_status" >&5
 
15043
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15044
     # The compiler can only warn and ignore the option if not recognized
 
15045
     # So say no if there are warnings
 
15046
     if test ! -s conftest.err; then
 
15047
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15048
     fi
 
15049
   fi
 
15050
   $rm conftest*
 
15051
 
 
15052
fi
 
15053
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15054
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15055
 
 
15056
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15057
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15058
else
 
15059
    :
 
15060
fi
 
15061
 
 
15062
fi
 
15063
 
 
15064
lt_prog_compiler_wl_GCJ=
 
15065
lt_prog_compiler_pic_GCJ=
 
15066
lt_prog_compiler_static_GCJ=
 
15067
 
 
15068
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15069
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15070
 
 
15071
  if test "$GCC" = yes; then
 
15072
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15073
    lt_prog_compiler_static_GCJ='-static'
 
15074
 
 
15075
    case $host_os in
 
15076
      aix*)
 
15077
      # All AIX code is PIC.
 
15078
      if test "$host_cpu" = ia64; then
 
15079
        # AIX 5 now supports IA64 processor
 
15080
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15081
      fi
 
15082
      ;;
 
15083
 
 
15084
    amigaos*)
 
15085
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15086
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15087
      # like `-m68040'.
 
15088
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15089
      ;;
 
15090
 
 
15091
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15092
      # PIC is the default for these OSes.
 
15093
      ;;
 
15094
 
 
15095
    mingw* | pw32* | os2*)
 
15096
      # This hack is so that the source file can tell whether it is being
 
15097
      # built for inclusion in a dll (and should export symbols for example).
 
15098
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15099
      ;;
 
15100
 
 
15101
    darwin* | rhapsody*)
 
15102
      # PIC is the default on this platform
 
15103
      # Common symbols not allowed in MH_DYLIB files
 
15104
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15105
      ;;
 
15106
 
 
15107
    msdosdjgpp*)
 
15108
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15109
      # on systems that don't support them.
 
15110
      lt_prog_compiler_can_build_shared_GCJ=no
 
15111
      enable_shared=no
 
15112
      ;;
 
15113
 
 
15114
    sysv4*MP*)
 
15115
      if test -d /usr/nec; then
 
15116
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15117
      fi
 
15118
      ;;
 
15119
 
 
15120
    hpux*)
 
15121
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15122
      # not for PA HP-UX.
 
15123
      case "$host_cpu" in
 
15124
      hppa*64*|ia64*)
 
15125
        # +Z the default
 
15126
        ;;
 
15127
      *)
 
15128
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15129
        ;;
 
15130
      esac
 
15131
      ;;
 
15132
 
 
15133
    *)
 
15134
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15135
      ;;
 
15136
    esac
 
15137
  else
 
15138
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15139
    case $host_os in
 
15140
    aix*)
 
15141
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15142
      if test "$host_cpu" = ia64; then
 
15143
        # AIX 5 now supports IA64 processor
 
15144
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15145
      else
 
15146
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15147
      fi
 
15148
      ;;
 
15149
 
 
15150
    mingw* | pw32* | os2*)
 
15151
      # This hack is so that the source file can tell whether it is being
 
15152
      # built for inclusion in a dll (and should export symbols for example).
 
15153
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15154
      ;;
 
15155
 
 
15156
    hpux9* | hpux10* | hpux11*)
 
15157
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15158
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15159
      # not for PA HP-UX.
 
15160
      case "$host_cpu" in
 
15161
      hppa*64*|ia64*)
 
15162
        # +Z the default
 
15163
        ;;
 
15164
      *)
 
15165
        lt_prog_compiler_pic_GCJ='+Z'
 
15166
        ;;
 
15167
      esac
 
15168
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15169
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15170
      ;;
 
15171
 
 
15172
    irix5* | irix6* | nonstopux*)
 
15173
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15174
      # PIC (with -KPIC) is the default.
 
15175
      lt_prog_compiler_static_GCJ='-non_shared'
 
15176
      ;;
 
15177
 
 
15178
    newsos6)
 
15179
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15180
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15181
      ;;
 
15182
 
 
15183
    linux*)
 
15184
      case $CC in
 
15185
      icc* | ecc*)
 
15186
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15187
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15188
        lt_prog_compiler_static_GCJ='-static'
 
15189
        ;;
 
15190
      ccc*)
 
15191
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15192
        # All Alpha code is PIC.
 
15193
        lt_prog_compiler_static_GCJ='-non_shared'
 
15194
        ;;
 
15195
      esac
 
15196
      ;;
 
15197
 
 
15198
    osf3* | osf4* | osf5*)
 
15199
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15200
      # All OSF/1 code is PIC.
 
15201
      lt_prog_compiler_static_GCJ='-non_shared'
 
15202
      ;;
 
15203
 
 
15204
    sco3.2v5*)
 
15205
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15206
      lt_prog_compiler_static_GCJ='-dn'
 
15207
      ;;
 
15208
 
 
15209
    solaris*)
 
15210
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15211
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15212
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15213
      ;;
 
15214
 
 
15215
    sunos4*)
 
15216
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15217
      lt_prog_compiler_pic_GCJ='-PIC'
 
15218
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15219
      ;;
 
15220
 
 
15221
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15222
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15223
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15224
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15225
      ;;
 
15226
 
 
15227
    sysv4*MP*)
 
15228
      if test -d /usr/nec ;then
 
15229
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15230
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15231
      fi
 
15232
      ;;
 
15233
 
 
15234
    uts4*)
 
15235
      lt_prog_compiler_pic_GCJ='-pic'
 
15236
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15237
      ;;
 
15238
 
 
15239
    *)
 
15240
      lt_prog_compiler_can_build_shared_GCJ=no
 
15241
      ;;
 
15242
    esac
 
15243
  fi
 
15244
 
 
15245
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15246
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15247
 
 
15248
#
 
15249
# Check to make sure the PIC flag actually works.
 
15250
#
 
15251
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15252
 
 
15253
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15254
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15255
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15257
else
 
15258
  lt_prog_compiler_pic_works_GCJ=no
 
15259
  ac_outfile=conftest.$ac_objext
 
15260
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15261
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15262
   # Insert the option either (1) after the last *FLAGS variable, or
 
15263
   # (2) before a word containing "conftest.", or (3) at the end.
 
15264
   # Note that $ac_compile itself does not contain backslashes and begins
 
15265
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15266
   # The option is referenced via a variable to avoid confusing sed.
 
15267
   lt_compile=`echo "$ac_compile" | $SED \
 
15268
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15269
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15270
   -e 's:$: $lt_compiler_flag:'`
 
15271
   (eval echo "\"\$as_me:15271: $lt_compile\"" >&5)
 
15272
   (eval "$lt_compile" 2>conftest.err)
 
15273
   ac_status=$?
 
15274
   cat conftest.err >&5
 
15275
   echo "$as_me:15275: \$? = $ac_status" >&5
 
15276
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15277
     # The compiler can only warn and ignore the option if not recognized
 
15278
     # So say no if there are warnings
 
15279
     if test ! -s conftest.err; then
 
15280
       lt_prog_compiler_pic_works_GCJ=yes
 
15281
     fi
 
15282
   fi
 
15283
   $rm conftest*
 
15284
 
 
15285
fi
 
15286
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15287
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15288
 
 
15289
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15290
    case $lt_prog_compiler_pic_GCJ in
 
15291
     "" | " "*) ;;
 
15292
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15293
     esac
 
15294
else
 
15295
    lt_prog_compiler_pic_GCJ=
 
15296
     lt_prog_compiler_can_build_shared_GCJ=no
 
15297
fi
 
15298
 
 
15299
fi
 
15300
case "$host_os" in
 
15301
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15302
  *djgpp*)
 
15303
    lt_prog_compiler_pic_GCJ=
 
15304
    ;;
 
15305
  *)
 
15306
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15307
    ;;
 
15308
esac
 
15309
 
 
15310
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15311
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15312
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15314
else
 
15315
  lt_cv_prog_compiler_c_o_GCJ=no
 
15316
   $rm -r conftest 2>/dev/null
 
15317
   mkdir conftest
 
15318
   cd conftest
 
15319
   mkdir out
 
15320
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15321
 
 
15322
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15323
   # Insert the option either (1) after the last *FLAGS variable, or
 
15324
   # (2) before a word containing "conftest.", or (3) at the end.
 
15325
   # Note that $ac_compile itself does not contain backslashes and begins
 
15326
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15327
   lt_compile=`echo "$ac_compile" | $SED \
 
15328
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15329
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15330
   -e 's:$: $lt_compiler_flag:'`
 
15331
   (eval echo "\"\$as_me:15331: $lt_compile\"" >&5)
 
15332
   (eval "$lt_compile" 2>out/conftest.err)
 
15333
   ac_status=$?
 
15334
   cat out/conftest.err >&5
 
15335
   echo "$as_me:15335: \$? = $ac_status" >&5
 
15336
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15337
   then
 
15338
     # The compiler can only warn and ignore the option if not recognized
 
15339
     # So say no if there are warnings
 
15340
     if test ! -s out/conftest.err; then
 
15341
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15342
     fi
 
15343
   fi
 
15344
   chmod u+w .
 
15345
   $rm conftest*
 
15346
   # SGI C++ compiler will create directory out/ii_files/ for
 
15347
   # template instantiation
 
15348
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15349
   $rm out/* && rmdir out
 
15350
   cd ..
 
15351
   rmdir conftest
 
15352
   $rm conftest*
 
15353
 
 
15354
fi
 
15355
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15356
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15357
 
 
15358
 
 
15359
hard_links="nottested"
 
15360
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15361
  # do not overwrite the value of need_locks provided by the user
 
15362
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15363
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15364
  hard_links=yes
 
15365
  $rm conftest*
 
15366
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15367
  touch conftest.a
 
15368
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15369
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15370
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15371
echo "${ECHO_T}$hard_links" >&6
 
15372
  if test "$hard_links" = no; then
 
15373
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15374
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15375
    need_locks=warn
 
15376
  fi
 
15377
else
 
15378
  need_locks=no
 
15379
fi
 
15380
 
 
15381
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15382
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15383
 
 
15384
  runpath_var=
 
15385
  allow_undefined_flag_GCJ=
 
15386
  enable_shared_with_static_runtimes_GCJ=no
 
15387
  archive_cmds_GCJ=
 
15388
  archive_expsym_cmds_GCJ=
 
15389
  old_archive_From_new_cmds_GCJ=
 
15390
  old_archive_from_expsyms_cmds_GCJ=
 
15391
  export_dynamic_flag_spec_GCJ=
 
15392
  whole_archive_flag_spec_GCJ=
 
15393
  thread_safe_flag_spec_GCJ=
 
15394
  hardcode_libdir_flag_spec_GCJ=
 
15395
  hardcode_libdir_flag_spec_ld_GCJ=
 
15396
  hardcode_libdir_separator_GCJ=
 
15397
  hardcode_direct_GCJ=no
 
15398
  hardcode_minus_L_GCJ=no
 
15399
  hardcode_shlibpath_var_GCJ=unsupported
 
15400
  link_all_deplibs_GCJ=unknown
 
15401
  hardcode_automatic_GCJ=no
 
15402
  module_cmds_GCJ=
 
15403
  module_expsym_cmds_GCJ=
 
15404
  always_export_symbols_GCJ=no
 
15405
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15406
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15407
  # included in the symbol list
 
15408
  include_expsyms_GCJ=
 
15409
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15410
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15411
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15412
  # as well as any symbol that contains `d'.
 
15413
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15414
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15415
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15416
  # the symbol is explicitly referenced.  Since portable code cannot
 
15417
  # rely on this symbol name, it's probably fine to never include it in
 
15418
  # preloaded symbol tables.
 
15419
  extract_expsyms_cmds=
 
15420
 
 
15421
  case $host_os in
 
15422
  cygwin* | mingw* | pw32*)
 
15423
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15424
    # When not using gcc, we currently assume that we are using
 
15425
    # Microsoft Visual C++.
 
15426
    if test "$GCC" != yes; then
 
15427
      with_gnu_ld=no
 
15428
    fi
 
15429
    ;;
 
15430
  openbsd*)
 
15431
    with_gnu_ld=no
 
15432
    ;;
 
15433
  esac
 
15434
 
 
15435
  ld_shlibs_GCJ=yes
 
15436
  if test "$with_gnu_ld" = yes; then
 
15437
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15438
    wlarc='${wl}'
 
15439
 
 
15440
    # See if GNU ld supports shared libraries.
 
15441
    case $host_os in
 
15442
    aix3* | aix4* | aix5*)
 
15443
      # On AIX/PPC, the GNU linker is very broken
 
15444
      if test "$host_cpu" != ia64; then
 
15445
        ld_shlibs_GCJ=no
 
15446
        cat <<EOF 1>&2
 
15447
 
 
15448
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15449
*** to be unable to reliably create shared libraries on AIX.
 
15450
*** Therefore, libtool is disabling shared libraries support.  If you
 
15451
*** really care for shared libraries, you may want to modify your PATH
 
15452
*** so that a non-GNU linker is found, and then restart.
 
15453
 
 
15454
EOF
 
15455
      fi
 
15456
      ;;
 
15457
 
 
15458
    amigaos*)
 
15459
      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)'
 
15460
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15461
      hardcode_minus_L_GCJ=yes
 
15462
 
 
15463
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15464
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15465
      # to version 4, is to share data among multiple programs linked
 
15466
      # with the same dynamic library.  Since this doesn't match the
 
15467
      # behavior of shared libraries on other platforms, we can't use
 
15468
      # them.
 
15469
      ld_shlibs_GCJ=no
 
15470
      ;;
 
15471
 
 
15472
    beos*)
 
15473
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15474
        allow_undefined_flag_GCJ=unsupported
 
15475
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15476
        # support --undefined.  This deserves some investigation.  FIXME
 
15477
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15478
      else
 
15479
        ld_shlibs_GCJ=no
 
15480
      fi
 
15481
      ;;
 
15482
 
 
15483
    cygwin* | mingw* | pw32*)
 
15484
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15485
      # as there is no search path for DLLs.
 
15486
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15487
      allow_undefined_flag_GCJ=unsupported
 
15488
      always_export_symbols_GCJ=no
 
15489
      enable_shared_with_static_runtimes_GCJ=yes
 
15490
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15491
 
 
15492
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15493
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15494
        # If the export-symbols file already is a .def file (1st line
 
15495
        # is EXPORTS), use it as is; otherwise, prepend...
 
15496
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15497
          cp $export_symbols $output_objdir/$soname.def;
 
15498
        else
 
15499
          echo EXPORTS > $output_objdir/$soname.def;
 
15500
          cat $export_symbols >> $output_objdir/$soname.def;
 
15501
        fi~
 
15502
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15503
      else
 
15504
        ld_shlibs=no
 
15505
      fi
 
15506
      ;;
 
15507
 
 
15508
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15509
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15510
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15511
        wlarc=
 
15512
      else
 
15513
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15514
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15515
      fi
 
15516
      ;;
 
15517
 
 
15518
    solaris* | sysv5*)
 
15519
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15520
        ld_shlibs_GCJ=no
 
15521
        cat <<EOF 1>&2
 
15522
 
 
15523
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15524
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15525
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15526
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15527
*** your PATH or compiler configuration so that the native linker is
 
15528
*** used, and then restart.
 
15529
 
 
15530
EOF
 
15531
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15532
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15533
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15534
      else
 
15535
        ld_shlibs_GCJ=no
 
15536
      fi
 
15537
      ;;
 
15538
 
 
15539
    sunos4*)
 
15540
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15541
      wlarc=
 
15542
      hardcode_direct_GCJ=yes
 
15543
      hardcode_shlibpath_var_GCJ=no
 
15544
      ;;
 
15545
 
 
15546
  linux*)
 
15547
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15548
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15549
        archive_cmds_GCJ="$tmp_archive_cmds"
 
15550
      supports_anon_versioning=no
 
15551
      case `$LD -v 2>/dev/null` in
 
15552
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15553
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15554
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15555
        *\ 2.11.*) ;; # other 2.11 versions
 
15556
        *) supports_anon_versioning=yes ;;
 
15557
      esac
 
15558
      if test $supports_anon_versioning = yes; then
 
15559
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
15560
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15561
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15562
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15563
      else
 
15564
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
15565
      fi
 
15566
      link_all_deplibs_GCJ=no
 
15567
    else
 
15568
      ld_shlibs_GCJ=no
 
15569
    fi
 
15570
    ;;
 
15571
 
 
15572
    *)
 
15573
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15574
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15575
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15576
      else
 
15577
        ld_shlibs_GCJ=no
 
15578
      fi
 
15579
      ;;
 
15580
    esac
 
15581
 
 
15582
    if test "$ld_shlibs_GCJ" = yes; then
 
15583
      runpath_var=LD_RUN_PATH
 
15584
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
15585
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
15586
      # ancient GNU ld didn't support --whole-archive et. al.
 
15587
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15588
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15589
      else
 
15590
        whole_archive_flag_spec_GCJ=
 
15591
      fi
 
15592
    fi
 
15593
  else
 
15594
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15595
    case $host_os in
 
15596
    aix3*)
 
15597
      allow_undefined_flag_GCJ=unsupported
 
15598
      always_export_symbols_GCJ=yes
 
15599
      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'
 
15600
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15601
      # are no directories specified by -L.
 
15602
      hardcode_minus_L_GCJ=yes
 
15603
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15604
        # Neither direct hardcoding nor static linking is supported with a
 
15605
        # broken collect2.
 
15606
        hardcode_direct_GCJ=unsupported
 
15607
      fi
 
15608
      ;;
 
15609
 
 
15610
    aix4* | aix5*)
 
15611
      if test "$host_cpu" = ia64; then
 
15612
        # On IA64, the linker does run time linking by default, so we don't
 
15613
        # have to do anything special.
 
15614
        aix_use_runtimelinking=no
 
15615
        exp_sym_flag='-Bexport'
 
15616
        no_entry_flag=""
 
15617
      else
 
15618
        # If we're using GNU nm, then we don't want the "-C" option.
 
15619
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15620
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15621
          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'
 
15622
        else
 
15623
          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'
 
15624
        fi
 
15625
        aix_use_runtimelinking=no
 
15626
 
 
15627
        # Test if we are trying to use run time linking or normal
 
15628
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15629
        # need to do runtime linking.
 
15630
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15631
          for ld_flag in $LDFLAGS; do
 
15632
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15633
            aix_use_runtimelinking=yes
 
15634
            break
 
15635
          fi
 
15636
          done
 
15637
        esac
 
15638
 
 
15639
        exp_sym_flag='-bexport'
 
15640
        no_entry_flag='-bnoentry'
 
15641
      fi
 
15642
 
 
15643
      # When large executables or shared objects are built, AIX ld can
 
15644
      # have problems creating the table of contents.  If linking a library
 
15645
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15646
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15647
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15648
 
 
15649
      archive_cmds_GCJ=''
 
15650
      hardcode_direct_GCJ=yes
 
15651
      hardcode_libdir_separator_GCJ=':'
 
15652
      link_all_deplibs_GCJ=yes
 
15653
 
 
15654
      if test "$GCC" = yes; then
 
15655
        case $host_os in aix4.012|aix4.012.*)
 
15656
        # We only want to do this on AIX 4.2 and lower, the check
 
15657
        # below for broken collect2 doesn't work under 4.3+
 
15658
          collect2name=`${CC} -print-prog-name=collect2`
 
15659
          if test -f "$collect2name" && \
 
15660
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15661
          then
 
15662
          # We have reworked collect2
 
15663
          hardcode_direct_GCJ=yes
 
15664
          else
 
15665
          # We have old collect2
 
15666
          hardcode_direct_GCJ=unsupported
 
15667
          # It fails to find uninstalled libraries when the uninstalled
 
15668
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15669
          # to unsupported forces relinking
 
15670
          hardcode_minus_L_GCJ=yes
 
15671
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15672
          hardcode_libdir_separator_GCJ=
 
15673
          fi
 
15674
        esac
 
15675
        shared_flag='-shared'
 
15676
      else
 
15677
        # not using gcc
 
15678
        if test "$host_cpu" = ia64; then
 
15679
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15680
        # chokes on -Wl,-G. The following line is correct:
 
15681
          shared_flag='-G'
 
15682
        else
 
15683
        if test "$aix_use_runtimelinking" = yes; then
 
15684
            shared_flag='${wl}-G'
 
15685
          else
 
15686
            shared_flag='${wl}-bM:SRE'
 
15687
        fi
 
15688
        fi
 
15689
      fi
 
15690
 
 
15691
      # It seems that -bexpall does not export symbols beginning with
 
15692
      # underscore (_), so it is better to generate a list of symbols to export.
 
15693
      always_export_symbols_GCJ=yes
 
15694
      if test "$aix_use_runtimelinking" = yes; then
 
15695
        # Warning - without using the other runtime loading flags (-brtl),
 
15696
        # -berok will link without error, but may produce a broken library.
 
15697
        allow_undefined_flag_GCJ='-berok'
 
15698
       # Determine the default libpath from the value encoded in an empty executable.
 
15699
       cat >conftest.$ac_ext <<_ACEOF
 
15700
/* confdefs.h.  */
 
15701
_ACEOF
 
15702
cat confdefs.h >>conftest.$ac_ext
 
15703
cat >>conftest.$ac_ext <<_ACEOF
 
15704
/* end confdefs.h.  */
 
15705
 
 
15706
int
 
15707
main ()
 
15708
{
 
15709
 
 
15710
  ;
 
15711
  return 0;
 
15712
}
 
15713
_ACEOF
 
15714
rm -f conftest.$ac_objext conftest$ac_exeext
 
15715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15716
  (eval $ac_link) 2>conftest.er1
 
15717
  ac_status=$?
 
15718
  grep -v '^ *+' conftest.er1 >conftest.err
 
15719
  rm -f conftest.er1
 
15720
  cat conftest.err >&5
 
15721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15722
  (exit $ac_status); } &&
 
15723
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15725
  (eval $ac_try) 2>&5
 
15726
  ac_status=$?
 
15727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15728
  (exit $ac_status); }; } &&
 
15729
         { ac_try='test -s conftest$ac_exeext'
 
15730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15731
  (eval $ac_try) 2>&5
 
15732
  ac_status=$?
 
15733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15734
  (exit $ac_status); }; }; then
 
15735
 
 
15736
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15737
}'`
 
15738
# Check for a 64-bit object if we didn't find anything.
 
15739
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; }
 
15740
}'`; fi
 
15741
else
 
15742
  echo "$as_me: failed program was:" >&5
 
15743
sed 's/^/| /' conftest.$ac_ext >&5
 
15744
 
 
15745
fi
 
15746
rm -f conftest.err conftest.$ac_objext \
 
15747
      conftest$ac_exeext conftest.$ac_ext
 
15748
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15749
 
 
15750
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15751
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15752
       else
 
15753
        if test "$host_cpu" = ia64; then
 
15754
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
15755
          allow_undefined_flag_GCJ="-z nodefs"
 
15756
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
15757
        else
 
15758
         # Determine the default libpath from the value encoded in an empty executable.
 
15759
         cat >conftest.$ac_ext <<_ACEOF
 
15760
/* confdefs.h.  */
 
15761
_ACEOF
 
15762
cat confdefs.h >>conftest.$ac_ext
 
15763
cat >>conftest.$ac_ext <<_ACEOF
 
15764
/* end confdefs.h.  */
 
15765
 
 
15766
int
 
15767
main ()
 
15768
{
 
15769
 
 
15770
  ;
 
15771
  return 0;
 
15772
}
 
15773
_ACEOF
 
15774
rm -f conftest.$ac_objext conftest$ac_exeext
 
15775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15776
  (eval $ac_link) 2>conftest.er1
 
15777
  ac_status=$?
 
15778
  grep -v '^ *+' conftest.er1 >conftest.err
 
15779
  rm -f conftest.er1
 
15780
  cat conftest.err >&5
 
15781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15782
  (exit $ac_status); } &&
 
15783
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15785
  (eval $ac_try) 2>&5
 
15786
  ac_status=$?
 
15787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15788
  (exit $ac_status); }; } &&
 
15789
         { ac_try='test -s conftest$ac_exeext'
 
15790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15791
  (eval $ac_try) 2>&5
 
15792
  ac_status=$?
 
15793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15794
  (exit $ac_status); }; }; then
 
15795
 
 
15796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15797
}'`
 
15798
# Check for a 64-bit object if we didn't find anything.
 
15799
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; }
 
15800
}'`; fi
 
15801
else
 
15802
  echo "$as_me: failed program was:" >&5
 
15803
sed 's/^/| /' conftest.$ac_ext >&5
 
15804
 
 
15805
fi
 
15806
rm -f conftest.err conftest.$ac_objext \
 
15807
      conftest$ac_exeext conftest.$ac_ext
 
15808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15809
 
 
15810
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15811
          # Warning - without using the other run time loading flags,
 
15812
          # -berok will link without error, but may produce a broken library.
 
15813
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
15814
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
15815
          # -bexpall does not export symbols beginning with underscore (_)
 
15816
          always_export_symbols_GCJ=yes
 
15817
          # Exported symbols can be pulled into shared objects from archives
 
15818
          whole_archive_flag_spec_GCJ=' '
 
15819
          archive_cmds_need_lc_GCJ=yes
 
15820
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15821
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15822
        fi
 
15823
      fi
 
15824
      ;;
 
15825
 
 
15826
    amigaos*)
 
15827
      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)'
 
15828
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15829
      hardcode_minus_L_GCJ=yes
 
15830
      # see comment about different semantics on the GNU ld section
 
15831
      ld_shlibs_GCJ=no
 
15832
      ;;
 
15833
 
 
15834
    bsdi4*)
 
15835
      export_dynamic_flag_spec_GCJ=-rdynamic
 
15836
      ;;
 
15837
 
 
15838
    cygwin* | mingw* | pw32*)
 
15839
      # When not using gcc, we currently assume that we are using
 
15840
      # Microsoft Visual C++.
 
15841
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15842
      # no search path for DLLs.
 
15843
      hardcode_libdir_flag_spec_GCJ=' '
 
15844
      allow_undefined_flag_GCJ=unsupported
 
15845
      # Tell ltmain to make .lib files, not .a files.
 
15846
      libext=lib
 
15847
      # Tell ltmain to make .dll files, not .so files.
 
15848
      shrext_cmds=".dll"
 
15849
      # FIXME: Setting linknames here is a bad hack.
 
15850
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15851
      # The linker will automatically build a .lib file if we build a DLL.
 
15852
      old_archive_From_new_cmds_GCJ='true'
 
15853
      # FIXME: Should let the user specify the lib program.
 
15854
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15855
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15856
      enable_shared_with_static_runtimes_GCJ=yes
 
15857
      ;;
 
15858
 
 
15859
    darwin* | rhapsody*)
 
15860
    if test "$GXX" = yes ; then
 
15861
      archive_cmds_need_lc_GCJ=no
 
15862
      case "$host_os" in
 
15863
      rhapsody* | darwin1.[012])
 
15864
        allow_undefined_flag_GCJ='-undefined suppress'
 
15865
        ;;
 
15866
      *) # Darwin 1.3 on
 
15867
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15868
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
15869
      else
 
15870
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
15871
          10.[012])
 
15872
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
15873
            ;;
 
15874
          10.*)
 
15875
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
15876
            ;;
 
15877
        esac
 
15878
      fi
 
15879
        ;;
 
15880
      esac
 
15881
        lt_int_apple_cc_single_mod=no
 
15882
        output_verbose_link_cmd='echo'
 
15883
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15884
          lt_int_apple_cc_single_mod=yes
 
15885
        fi
 
15886
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15887
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15888
        else
 
15889
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
 
15890
      fi
 
15891
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15892
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15893
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15894
          archive_expsym_cmds_GCJ='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}'
 
15895
        else
 
15896
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
15897
        fi
 
15898
          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}'
 
15899
      hardcode_direct_GCJ=no
 
15900
      hardcode_automatic_GCJ=yes
 
15901
      hardcode_shlibpath_var_GCJ=unsupported
 
15902
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
15903
      link_all_deplibs_GCJ=yes
 
15904
    else
 
15905
      ld_shlibs_GCJ=no
 
15906
    fi
 
15907
      ;;
 
15908
 
 
15909
    dgux*)
 
15910
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15911
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15912
      hardcode_shlibpath_var_GCJ=no
 
15913
      ;;
 
15914
 
 
15915
    freebsd1*)
 
15916
      ld_shlibs_GCJ=no
 
15917
      ;;
 
15918
 
 
15919
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15920
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15921
    # does not break anything, and helps significantly (at the cost of a little
 
15922
    # extra space).
 
15923
    freebsd2.2*)
 
15924
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15925
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15926
      hardcode_direct_GCJ=yes
 
15927
      hardcode_shlibpath_var_GCJ=no
 
15928
      ;;
 
15929
 
 
15930
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15931
    freebsd2*)
 
15932
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15933
      hardcode_direct_GCJ=yes
 
15934
      hardcode_minus_L_GCJ=yes
 
15935
      hardcode_shlibpath_var_GCJ=no
 
15936
      ;;
 
15937
 
 
15938
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15939
    freebsd* | kfreebsd*-gnu)
 
15940
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15941
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15942
      hardcode_direct_GCJ=yes
 
15943
      hardcode_shlibpath_var_GCJ=no
 
15944
      ;;
 
15945
 
 
15946
    hpux9*)
 
15947
      if test "$GCC" = yes; then
 
15948
        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'
 
15949
      else
 
15950
        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'
 
15951
      fi
 
15952
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15953
      hardcode_libdir_separator_GCJ=:
 
15954
      hardcode_direct_GCJ=yes
 
15955
 
 
15956
      # hardcode_minus_L: Not really in the search PATH,
 
15957
      # but as the default location of the library.
 
15958
      hardcode_minus_L_GCJ=yes
 
15959
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
15960
      ;;
 
15961
 
 
15962
    hpux10* | hpux11*)
 
15963
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15964
        case "$host_cpu" in
 
15965
        hppa*64*|ia64*)
 
15966
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15967
          ;;
 
15968
        *)
 
15969
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15970
          ;;
 
15971
        esac
 
15972
      else
 
15973
        case "$host_cpu" in
 
15974
        hppa*64*|ia64*)
 
15975
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15976
          ;;
 
15977
        *)
 
15978
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15979
          ;;
 
15980
        esac
 
15981
      fi
 
15982
      if test "$with_gnu_ld" = no; then
 
15983
        case "$host_cpu" in
 
15984
        hppa*64*)
 
15985
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15986
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
15987
          hardcode_libdir_separator_GCJ=:
 
15988
          hardcode_direct_GCJ=no
 
15989
          hardcode_shlibpath_var_GCJ=no
 
15990
          ;;
 
15991
        ia64*)
 
15992
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15993
          hardcode_direct_GCJ=no
 
15994
          hardcode_shlibpath_var_GCJ=no
 
15995
 
 
15996
          # hardcode_minus_L: Not really in the search PATH,
 
15997
          # but as the default location of the library.
 
15998
          hardcode_minus_L_GCJ=yes
 
15999
          ;;
 
16000
        *)
 
16001
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16002
          hardcode_libdir_separator_GCJ=:
 
16003
          hardcode_direct_GCJ=yes
 
16004
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16005
 
 
16006
          # hardcode_minus_L: Not really in the search PATH,
 
16007
          # but as the default location of the library.
 
16008
          hardcode_minus_L_GCJ=yes
 
16009
          ;;
 
16010
        esac
 
16011
      fi
 
16012
      ;;
 
16013
 
 
16014
    irix5* | irix6* | nonstopux*)
 
16015
      if test "$GCC" = yes; then
 
16016
        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'
 
16017
      else
 
16018
        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'
 
16019
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16020
      fi
 
16021
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16022
      hardcode_libdir_separator_GCJ=:
 
16023
      link_all_deplibs_GCJ=yes
 
16024
      ;;
 
16025
 
 
16026
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16027
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16028
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16029
      else
 
16030
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16031
      fi
 
16032
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16033
      hardcode_direct_GCJ=yes
 
16034
      hardcode_shlibpath_var_GCJ=no
 
16035
      ;;
 
16036
 
 
16037
    newsos6)
 
16038
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16039
      hardcode_direct_GCJ=yes
 
16040
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16041
      hardcode_libdir_separator_GCJ=:
 
16042
      hardcode_shlibpath_var_GCJ=no
 
16043
      ;;
 
16044
 
 
16045
    openbsd*)
 
16046
      hardcode_direct_GCJ=yes
 
16047
      hardcode_shlibpath_var_GCJ=no
 
16048
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16049
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16050
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16051
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16052
      else
 
16053
       case $host_os in
 
16054
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16055
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16056
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16057
           ;;
 
16058
         *)
 
16059
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16060
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16061
           ;;
 
16062
       esac
 
16063
      fi
 
16064
      ;;
 
16065
 
 
16066
    os2*)
 
16067
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16068
      hardcode_minus_L_GCJ=yes
 
16069
      allow_undefined_flag_GCJ=unsupported
 
16070
      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'
 
16071
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16072
      ;;
 
16073
 
 
16074
    osf3*)
 
16075
      if test "$GCC" = yes; then
 
16076
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16077
        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'
 
16078
      else
 
16079
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16080
        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'
 
16081
      fi
 
16082
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16083
      hardcode_libdir_separator_GCJ=:
 
16084
      ;;
 
16085
 
 
16086
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16087
      if test "$GCC" = yes; then
 
16088
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16089
        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'
 
16090
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16091
      else
 
16092
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16093
        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'
 
16094
        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~
 
16095
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16096
 
 
16097
        # Both c and cxx compiler support -rpath directly
 
16098
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16099
      fi
 
16100
      hardcode_libdir_separator_GCJ=:
 
16101
      ;;
 
16102
 
 
16103
    sco3.2v5*)
 
16104
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16105
      hardcode_shlibpath_var_GCJ=no
 
16106
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16107
      runpath_var=LD_RUN_PATH
 
16108
      hardcode_runpath_var=yes
 
16109
      ;;
 
16110
 
 
16111
    solaris*)
 
16112
      no_undefined_flag_GCJ=' -z text'
 
16113
      if test "$GCC" = yes; then
 
16114
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16115
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16116
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16117
      else
 
16118
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16119
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16120
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16121
      fi
 
16122
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16123
      hardcode_shlibpath_var_GCJ=no
 
16124
      case $host_os in
 
16125
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16126
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16127
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16128
      esac
 
16129
      link_all_deplibs_GCJ=yes
 
16130
      ;;
 
16131
 
 
16132
    sunos4*)
 
16133
      if test "x$host_vendor" = xsequent; then
 
16134
        # Use $CC to link under sequent, because it throws in some extra .o
 
16135
        # files that make .init and .fini sections work.
 
16136
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16137
      else
 
16138
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16139
      fi
 
16140
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16141
      hardcode_direct_GCJ=yes
 
16142
      hardcode_minus_L_GCJ=yes
 
16143
      hardcode_shlibpath_var_GCJ=no
 
16144
      ;;
 
16145
 
 
16146
    sysv4)
 
16147
      case $host_vendor in
 
16148
        sni)
 
16149
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16150
          hardcode_direct_GCJ=yes # is this really true???
 
16151
        ;;
 
16152
        siemens)
 
16153
          ## LD is ld it makes a PLAMLIB
 
16154
          ## CC just makes a GrossModule.
 
16155
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16156
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16157
          hardcode_direct_GCJ=no
 
16158
        ;;
 
16159
        motorola)
 
16160
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16161
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16162
        ;;
 
16163
      esac
 
16164
      runpath_var='LD_RUN_PATH'
 
16165
      hardcode_shlibpath_var_GCJ=no
 
16166
      ;;
 
16167
 
 
16168
    sysv4.3*)
 
16169
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16170
      hardcode_shlibpath_var_GCJ=no
 
16171
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16172
      ;;
 
16173
 
 
16174
    sysv4*MP*)
 
16175
      if test -d /usr/nec; then
 
16176
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16177
        hardcode_shlibpath_var_GCJ=no
 
16178
        runpath_var=LD_RUN_PATH
 
16179
        hardcode_runpath_var=yes
 
16180
        ld_shlibs_GCJ=yes
 
16181
      fi
 
16182
      ;;
 
16183
 
 
16184
    sysv4.2uw2*)
 
16185
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16186
      hardcode_direct_GCJ=yes
 
16187
      hardcode_minus_L_GCJ=no
 
16188
      hardcode_shlibpath_var_GCJ=no
 
16189
      hardcode_runpath_var=yes
 
16190
      runpath_var=LD_RUN_PATH
 
16191
      ;;
 
16192
 
 
16193
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16194
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16195
      if test "$GCC" = yes; then
 
16196
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16197
      else
 
16198
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16199
      fi
 
16200
      runpath_var='LD_RUN_PATH'
 
16201
      hardcode_shlibpath_var_GCJ=no
 
16202
      ;;
 
16203
 
 
16204
    sysv5*)
 
16205
      no_undefined_flag_GCJ=' -z text'
 
16206
      # $CC -shared without GNU ld will not create a library from C++
 
16207
      # object files and a static libstdc++, better avoid it by now
 
16208
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16209
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16210
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16211
      hardcode_libdir_flag_spec_GCJ=
 
16212
      hardcode_shlibpath_var_GCJ=no
 
16213
      runpath_var='LD_RUN_PATH'
 
16214
      ;;
 
16215
 
 
16216
    uts4*)
 
16217
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16218
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16219
      hardcode_shlibpath_var_GCJ=no
 
16220
      ;;
 
16221
 
 
16222
    *)
 
16223
      ld_shlibs_GCJ=no
 
16224
      ;;
 
16225
    esac
 
16226
  fi
 
16227
 
 
16228
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16229
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16230
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16231
 
 
16232
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16233
if test "$GCC" = yes; then
 
16234
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16235
fi
 
16236
 
 
16237
#
 
16238
# Do we need to explicitly link libc?
 
16239
#
 
16240
case "x$archive_cmds_need_lc_GCJ" in
 
16241
x|xyes)
 
16242
  # Assume -lc should be added
 
16243
  archive_cmds_need_lc_GCJ=yes
 
16244
 
 
16245
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16246
    case $archive_cmds_GCJ in
 
16247
    *'~'*)
 
16248
      # FIXME: we may have to deal with multi-command sequences.
 
16249
      ;;
 
16250
    '$CC '*)
 
16251
      # Test whether the compiler implicitly links with -lc since on some
 
16252
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16253
      # to ld, don't add -lc before -lgcc.
 
16254
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16255
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16256
      $rm conftest*
 
16257
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16258
 
 
16259
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16260
  (eval $ac_compile) 2>&5
 
16261
  ac_status=$?
 
16262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16263
  (exit $ac_status); } 2>conftest.err; then
 
16264
        soname=conftest
 
16265
        lib=conftest
 
16266
        libobjs=conftest.$ac_objext
 
16267
        deplibs=
 
16268
        wl=$lt_prog_compiler_wl_GCJ
 
16269
        compiler_flags=-v
 
16270
        linker_flags=-v
 
16271
        verstring=
 
16272
        output_objdir=.
 
16273
        libname=conftest
 
16274
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16275
        allow_undefined_flag_GCJ=
 
16276
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16277
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16278
  ac_status=$?
 
16279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16280
  (exit $ac_status); }
 
16281
        then
 
16282
          archive_cmds_need_lc_GCJ=no
 
16283
        else
 
16284
          archive_cmds_need_lc_GCJ=yes
 
16285
        fi
 
16286
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16287
      else
 
16288
        cat conftest.err 1>&5
 
16289
      fi
 
16290
      $rm conftest*
 
16291
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16292
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16293
      ;;
 
16294
    esac
 
16295
  fi
 
16296
  ;;
 
16297
esac
 
16298
 
 
16299
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16300
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16301
library_names_spec=
 
16302
libname_spec='lib$name'
 
16303
soname_spec=
 
16304
shrext_cmds=".so"
 
16305
postinstall_cmds=
 
16306
postuninstall_cmds=
 
16307
finish_cmds=
 
16308
finish_eval=
 
16309
shlibpath_var=
 
16310
shlibpath_overrides_runpath=unknown
 
16311
version_type=none
 
16312
dynamic_linker="$host_os ld.so"
 
16313
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16314
if test "$GCC" = yes; then
 
16315
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16316
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16317
    # if the path contains ";" then we assume it to be the separator
 
16318
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16319
    # assumed that no part of a normal pathname contains ";" but that should
 
16320
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16321
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16322
  else
 
16323
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16324
  fi
 
16325
else
 
16326
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16327
fi
 
16328
need_lib_prefix=unknown
 
16329
hardcode_into_libs=no
 
16330
 
 
16331
# when you set need_version to no, make sure it does not cause -set_version
 
16332
# flags to be left without arguments
 
16333
need_version=unknown
 
16334
 
 
16335
case $host_os in
 
16336
aix3*)
 
16337
  version_type=linux
 
16338
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16339
  shlibpath_var=LIBPATH
 
16340
 
 
16341
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16342
  soname_spec='${libname}${release}${shared_ext}$major'
 
16343
  ;;
 
16344
 
 
16345
aix4* | aix5*)
 
16346
  version_type=linux
 
16347
  need_lib_prefix=no
 
16348
  need_version=no
 
16349
  hardcode_into_libs=yes
 
16350
  if test "$host_cpu" = ia64; then
 
16351
    # AIX 5 supports IA64
 
16352
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16353
    shlibpath_var=LD_LIBRARY_PATH
 
16354
  else
 
16355
    # With GCC up to 2.95.x, collect2 would create an import file
 
16356
    # for dependence libraries.  The import file would start with
 
16357
    # the line `#! .'.  This would cause the generated library to
 
16358
    # depend on `.', always an invalid library.  This was fixed in
 
16359
    # development snapshots of GCC prior to 3.0.
 
16360
    case $host_os in
 
16361
      aix4 | aix4.[01] | aix4.[01].*)
 
16362
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16363
           echo ' yes '
 
16364
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16365
        :
 
16366
      else
 
16367
        can_build_shared=no
 
16368
      fi
 
16369
      ;;
 
16370
    esac
 
16371
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16372
    # soname into executable. Probably we can add versioning support to
 
16373
    # collect2, so additional links can be useful in future.
 
16374
    if test "$aix_use_runtimelinking" = yes; then
 
16375
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16376
      # instead of lib<name>.a to let people know that these are not
 
16377
      # typical AIX shared libraries.
 
16378
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16379
    else
 
16380
      # We preserve .a as extension for shared libraries through AIX4.2
 
16381
      # and later when we are not doing run time linking.
 
16382
      library_names_spec='${libname}${release}.a $libname.a'
 
16383
      soname_spec='${libname}${release}${shared_ext}$major'
 
16384
    fi
 
16385
    shlibpath_var=LIBPATH
 
16386
  fi
 
16387
  ;;
 
16388
 
 
16389
amigaos*)
 
16390
  library_names_spec='$libname.ixlibrary $libname.a'
 
16391
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16392
  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'
 
16393
  ;;
 
16394
 
 
16395
beos*)
 
16396
  library_names_spec='${libname}${shared_ext}'
 
16397
  dynamic_linker="$host_os ld.so"
 
16398
  shlibpath_var=LIBRARY_PATH
 
16399
  ;;
 
16400
 
 
16401
bsdi4*)
 
16402
  version_type=linux
 
16403
  need_version=no
 
16404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16405
  soname_spec='${libname}${release}${shared_ext}$major'
 
16406
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16407
  shlibpath_var=LD_LIBRARY_PATH
 
16408
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16409
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16410
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16411
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16412
  # libtool to hard-code these into programs
 
16413
  ;;
 
16414
 
 
16415
cygwin* | mingw* | pw32*)
 
16416
  version_type=windows
 
16417
  shrext_cmds=".dll"
 
16418
  need_version=no
 
16419
  need_lib_prefix=no
 
16420
 
 
16421
  case $GCC,$host_os in
 
16422
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16423
    library_names_spec='$libname.dll.a'
 
16424
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16425
    postinstall_cmds='base_file=`basename \${file}`~
 
16426
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16427
      dldir=$destdir/`dirname \$dlpath`~
 
16428
      test -d \$dldir || mkdir -p \$dldir~
 
16429
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16430
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16431
      dlpath=$dir/\$dldll~
 
16432
       $rm \$dlpath'
 
16433
    shlibpath_overrides_runpath=yes
 
16434
 
 
16435
    case $host_os in
 
16436
    cygwin*)
 
16437
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16438
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16439
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16440
      ;;
 
16441
    mingw*)
 
16442
      # MinGW DLLs use traditional 'lib' prefix
 
16443
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16444
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16445
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16446
        # It is most probably a Windows format PATH printed by
 
16447
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16448
        # path with ; separators, and with drive letters. We can handle the
 
16449
        # drive letters (cygwin fileutils understands them), so leave them,
 
16450
        # especially as we might pass files found there to a mingw objdump,
 
16451
        # which wouldn't understand a cygwinified path. Ahh.
 
16452
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16453
      else
 
16454
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16455
      fi
 
16456
      ;;
 
16457
    pw32*)
 
16458
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16459
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16460
      ;;
 
16461
    esac
 
16462
    ;;
 
16463
 
 
16464
  *)
 
16465
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16466
    ;;
 
16467
  esac
 
16468
  dynamic_linker='Win32 ld.exe'
 
16469
  # FIXME: first we should search . and the directory the executable is in
 
16470
  shlibpath_var=PATH
 
16471
  ;;
 
16472
 
 
16473
darwin* | rhapsody*)
 
16474
  dynamic_linker="$host_os dyld"
 
16475
  version_type=darwin
 
16476
  need_lib_prefix=no
 
16477
  need_version=no
 
16478
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16479
  soname_spec='${libname}${release}${major}$shared_ext'
 
16480
  shlibpath_overrides_runpath=yes
 
16481
  shlibpath_var=DYLD_LIBRARY_PATH
 
16482
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16483
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16484
  if test "$GCC" = yes; then
 
16485
    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"`
 
16486
  else
 
16487
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16488
  fi
 
16489
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16490
  ;;
 
16491
 
 
16492
dgux*)
 
16493
  version_type=linux
 
16494
  need_lib_prefix=no
 
16495
  need_version=no
 
16496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16497
  soname_spec='${libname}${release}${shared_ext}$major'
 
16498
  shlibpath_var=LD_LIBRARY_PATH
 
16499
  ;;
 
16500
 
 
16501
freebsd1*)
 
16502
  dynamic_linker=no
 
16503
  ;;
 
16504
 
 
16505
kfreebsd*-gnu)
 
16506
  version_type=linux
 
16507
  need_lib_prefix=no
 
16508
  need_version=no
 
16509
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16510
  soname_spec='${libname}${release}${shared_ext}$major'
 
16511
  shlibpath_var=LD_LIBRARY_PATH
 
16512
  shlibpath_overrides_runpath=no
 
16513
  hardcode_into_libs=yes
 
16514
  dynamic_linker='GNU ld.so'
 
16515
  ;;
 
16516
 
 
16517
freebsd*)
 
16518
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16519
  version_type=freebsd-$objformat
 
16520
  case $version_type in
 
16521
    freebsd-elf*)
 
16522
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16523
      need_version=no
 
16524
      need_lib_prefix=no
 
16525
      ;;
 
16526
    freebsd-*)
 
16527
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16528
      need_version=yes
 
16529
      ;;
 
16530
  esac
 
16531
  shlibpath_var=LD_LIBRARY_PATH
 
16532
  case $host_os in
 
16533
  freebsd2*)
 
16534
    shlibpath_overrides_runpath=yes
 
16535
    ;;
 
16536
  freebsd3.01* | freebsdelf3.01*)
 
16537
    shlibpath_overrides_runpath=yes
 
16538
    hardcode_into_libs=yes
 
16539
    ;;
 
16540
  *) # from 3.2 on
 
16541
    shlibpath_overrides_runpath=no
 
16542
    hardcode_into_libs=yes
 
16543
    ;;
 
16544
  esac
 
16545
  ;;
 
16546
 
 
16547
gnu*)
 
16548
  version_type=linux
 
16549
  need_lib_prefix=no
 
16550
  need_version=no
 
16551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16552
  soname_spec='${libname}${release}${shared_ext}$major'
 
16553
  shlibpath_var=LD_LIBRARY_PATH
 
16554
  hardcode_into_libs=yes
 
16555
  ;;
 
16556
 
 
16557
hpux9* | hpux10* | hpux11*)
 
16558
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16559
  # link against other versions.
 
16560
  version_type=sunos
 
16561
  need_lib_prefix=no
 
16562
  need_version=no
 
16563
  case "$host_cpu" in
 
16564
  ia64*)
 
16565
    shrext_cmds='.so'
 
16566
    hardcode_into_libs=yes
 
16567
    dynamic_linker="$host_os dld.so"
 
16568
    shlibpath_var=LD_LIBRARY_PATH
 
16569
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16570
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16571
    soname_spec='${libname}${release}${shared_ext}$major'
 
16572
    if test "X$HPUX_IA64_MODE" = X32; then
 
16573
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16574
    else
 
16575
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16576
    fi
 
16577
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16578
    ;;
 
16579
   hppa*64*)
 
16580
     shrext_cmds='.sl'
 
16581
     hardcode_into_libs=yes
 
16582
     dynamic_linker="$host_os dld.sl"
 
16583
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16584
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16585
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16586
     soname_spec='${libname}${release}${shared_ext}$major'
 
16587
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16588
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16589
     ;;
 
16590
   *)
 
16591
    shrext_cmds='.sl'
 
16592
    dynamic_linker="$host_os dld.sl"
 
16593
    shlibpath_var=SHLIB_PATH
 
16594
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16595
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16596
    soname_spec='${libname}${release}${shared_ext}$major'
 
16597
    ;;
 
16598
  esac
 
16599
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16600
  postinstall_cmds='chmod 555 $lib'
 
16601
  ;;
 
16602
 
 
16603
irix5* | irix6* | nonstopux*)
 
16604
  case $host_os in
 
16605
    nonstopux*) version_type=nonstopux ;;
 
16606
    *)
 
16607
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16608
                version_type=linux
 
16609
        else
 
16610
                version_type=irix
 
16611
        fi ;;
 
16612
  esac
 
16613
  need_lib_prefix=no
 
16614
  need_version=no
 
16615
  soname_spec='${libname}${release}${shared_ext}$major'
 
16616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16617
  case $host_os in
 
16618
  irix5* | nonstopux*)
 
16619
    libsuff= shlibsuff=
 
16620
    ;;
 
16621
  *)
 
16622
    case $LD in # libtool.m4 will add one of these switches to LD
 
16623
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16624
      libsuff= shlibsuff= libmagic=32-bit;;
 
16625
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16626
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16627
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16628
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16629
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16630
    esac
 
16631
    ;;
 
16632
  esac
 
16633
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16634
  shlibpath_overrides_runpath=no
 
16635
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16636
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16637
  hardcode_into_libs=yes
 
16638
  ;;
 
16639
 
 
16640
# No shared lib support for Linux oldld, aout, or coff.
 
16641
linux*oldld* | linux*aout* | linux*coff*)
 
16642
  dynamic_linker=no
 
16643
  ;;
 
16644
 
 
16645
# This must be Linux ELF.
 
16646
linux*)
 
16647
  version_type=linux
 
16648
  need_lib_prefix=no
 
16649
  need_version=no
 
16650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16651
  soname_spec='${libname}${release}${shared_ext}$major'
 
16652
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16653
  shlibpath_var=LD_LIBRARY_PATH
 
16654
  shlibpath_overrides_runpath=no
 
16655
  # This implies no fast_install, which is unacceptable.
 
16656
  # Some rework will be needed to allow for fast_install
 
16657
  # before this can be enabled.
 
16658
  hardcode_into_libs=yes
 
16659
 
 
16660
  # Append ld.so.conf contents to the search path
 
16661
  if test -f /etc/ld.so.conf; then
 
16662
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16663
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16664
  fi
 
16665
 
 
16666
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16667
  # powerpc, because MkLinux only supported shared libraries with the
 
16668
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16669
  # most powerpc-linux boxes support dynamic linking these days and
 
16670
  # people can always --disable-shared, the test was removed, and we
 
16671
  # assume the GNU/Linux dynamic linker is in use.
 
16672
  dynamic_linker='GNU/Linux ld.so'
 
16673
  ;;
 
16674
 
 
16675
netbsdelf*-gnu)
 
16676
  version_type=linux
 
16677
  need_lib_prefix=no
 
16678
  need_version=no
 
16679
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16680
  soname_spec='${libname}${release}${shared_ext}$major'
 
16681
  shlibpath_var=LD_LIBRARY_PATH
 
16682
  shlibpath_overrides_runpath=no
 
16683
  hardcode_into_libs=yes
 
16684
  dynamic_linker='NetBSD ld.elf_so'
 
16685
  ;;
 
16686
 
 
16687
knetbsd*-gnu)
 
16688
  version_type=linux
 
16689
  need_lib_prefix=no
 
16690
  need_version=no
 
16691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16692
  soname_spec='${libname}${release}${shared_ext}$major'
 
16693
  shlibpath_var=LD_LIBRARY_PATH
 
16694
  shlibpath_overrides_runpath=no
 
16695
  hardcode_into_libs=yes
 
16696
  dynamic_linker='GNU ld.so'
 
16697
  ;;
 
16698
 
 
16699
netbsd*)
 
16700
  version_type=sunos
 
16701
  need_lib_prefix=no
 
16702
  need_version=no
 
16703
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16704
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16705
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16706
    dynamic_linker='NetBSD (a.out) ld.so'
 
16707
  else
 
16708
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16709
    soname_spec='${libname}${release}${shared_ext}$major'
 
16710
    dynamic_linker='NetBSD ld.elf_so'
 
16711
  fi
 
16712
  shlibpath_var=LD_LIBRARY_PATH
 
16713
  shlibpath_overrides_runpath=yes
 
16714
  hardcode_into_libs=yes
 
16715
  ;;
 
16716
 
 
16717
newsos6)
 
16718
  version_type=linux
 
16719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16720
  shlibpath_var=LD_LIBRARY_PATH
 
16721
  shlibpath_overrides_runpath=yes
 
16722
  ;;
 
16723
 
 
16724
nto-qnx*)
 
16725
  version_type=linux
 
16726
  need_lib_prefix=no
 
16727
  need_version=no
 
16728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16729
  soname_spec='${libname}${release}${shared_ext}$major'
 
16730
  shlibpath_var=LD_LIBRARY_PATH
 
16731
  shlibpath_overrides_runpath=yes
 
16732
  ;;
 
16733
 
 
16734
openbsd*)
 
16735
  version_type=sunos
 
16736
  need_lib_prefix=no
 
16737
  need_version=yes
 
16738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16739
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16740
  shlibpath_var=LD_LIBRARY_PATH
 
16741
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16742
    case $host_os in
 
16743
      openbsd2.[89] | openbsd2.[89].*)
 
16744
        shlibpath_overrides_runpath=no
 
16745
        ;;
 
16746
      *)
 
16747
        shlibpath_overrides_runpath=yes
 
16748
        ;;
 
16749
      esac
 
16750
  else
 
16751
    shlibpath_overrides_runpath=yes
 
16752
  fi
 
16753
  ;;
 
16754
 
 
16755
os2*)
 
16756
  libname_spec='$name'
 
16757
  shrext_cmds=".dll"
 
16758
  need_lib_prefix=no
 
16759
  library_names_spec='$libname${shared_ext} $libname.a'
 
16760
  dynamic_linker='OS/2 ld.exe'
 
16761
  shlibpath_var=LIBPATH
 
16762
  ;;
 
16763
 
 
16764
osf3* | osf4* | osf5*)
 
16765
  version_type=osf
 
16766
  need_lib_prefix=no
 
16767
  need_version=no
 
16768
  soname_spec='${libname}${release}${shared_ext}$major'
 
16769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16770
  shlibpath_var=LD_LIBRARY_PATH
 
16771
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16772
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16773
  ;;
 
16774
 
 
16775
sco3.2v5*)
 
16776
  version_type=osf
 
16777
  soname_spec='${libname}${release}${shared_ext}$major'
 
16778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16779
  shlibpath_var=LD_LIBRARY_PATH
 
16780
  ;;
 
16781
 
 
16782
solaris*)
 
16783
  version_type=linux
 
16784
  need_lib_prefix=no
 
16785
  need_version=no
 
16786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16787
  soname_spec='${libname}${release}${shared_ext}$major'
 
16788
  shlibpath_var=LD_LIBRARY_PATH
 
16789
  shlibpath_overrides_runpath=yes
 
16790
  hardcode_into_libs=yes
 
16791
  # ldd complains unless libraries are executable
 
16792
  postinstall_cmds='chmod +x $lib'
 
16793
  ;;
 
16794
 
 
16795
sunos4*)
 
16796
  version_type=sunos
 
16797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16798
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16799
  shlibpath_var=LD_LIBRARY_PATH
 
16800
  shlibpath_overrides_runpath=yes
 
16801
  if test "$with_gnu_ld" = yes; then
 
16802
    need_lib_prefix=no
 
16803
  fi
 
16804
  need_version=yes
 
16805
  ;;
 
16806
 
 
16807
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16808
  version_type=linux
 
16809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16810
  soname_spec='${libname}${release}${shared_ext}$major'
 
16811
  shlibpath_var=LD_LIBRARY_PATH
 
16812
  case $host_vendor in
 
16813
    sni)
 
16814
      shlibpath_overrides_runpath=no
 
16815
      need_lib_prefix=no
 
16816
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16817
      runpath_var=LD_RUN_PATH
 
16818
      ;;
 
16819
    siemens)
 
16820
      need_lib_prefix=no
 
16821
      ;;
 
16822
    motorola)
 
16823
      need_lib_prefix=no
 
16824
      need_version=no
 
16825
      shlibpath_overrides_runpath=no
 
16826
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16827
      ;;
 
16828
  esac
 
16829
  ;;
 
16830
 
 
16831
sysv4*MP*)
 
16832
  if test -d /usr/nec ;then
 
16833
    version_type=linux
 
16834
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16835
    soname_spec='$libname${shared_ext}.$major'
 
16836
    shlibpath_var=LD_LIBRARY_PATH
 
16837
  fi
 
16838
  ;;
 
16839
 
 
16840
uts4*)
 
16841
  version_type=linux
 
16842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16843
  soname_spec='${libname}${release}${shared_ext}$major'
 
16844
  shlibpath_var=LD_LIBRARY_PATH
 
16845
  ;;
 
16846
 
 
16847
*)
 
16848
  dynamic_linker=no
 
16849
  ;;
 
16850
esac
 
16851
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16852
echo "${ECHO_T}$dynamic_linker" >&6
 
16853
test "$dynamic_linker" = no && can_build_shared=no
 
16854
 
 
16855
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16856
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16857
hardcode_action_GCJ=
 
16858
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
16859
   test -n "$runpath_var GCJ" || \
 
16860
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
16861
 
 
16862
  # We can hardcode non-existant directories.
 
16863
  if test "$hardcode_direct_GCJ" != no &&
 
16864
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16865
     # have to relink, otherwise we might link with an installed library
 
16866
     # when we should be linking with a yet-to-be-installed one
 
16867
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
16868
     test "$hardcode_minus_L_GCJ" != no; then
 
16869
    # Linking always hardcodes the temporary library directory.
 
16870
    hardcode_action_GCJ=relink
 
16871
  else
 
16872
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16873
    hardcode_action_GCJ=immediate
 
16874
  fi
 
16875
else
 
16876
  # We cannot hardcode anything, or else we can only hardcode existing
 
16877
  # directories.
 
16878
  hardcode_action_GCJ=unsupported
 
16879
fi
 
16880
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
16881
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
16882
 
 
16883
if test "$hardcode_action_GCJ" = relink; then
 
16884
  # Fast installation is not supported
 
16885
  enable_fast_install=no
 
16886
elif test "$shlibpath_overrides_runpath" = yes ||
 
16887
     test "$enable_shared" = no; then
 
16888
  # Fast installation is not necessary
 
16889
  enable_fast_install=needless
 
16890
fi
 
16891
 
 
16892
striplib=
 
16893
old_striplib=
 
16894
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16895
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16896
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16897
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16898
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16899
  echo "$as_me:$LINENO: result: yes" >&5
 
16900
echo "${ECHO_T}yes" >&6
 
16901
else
 
16902
# FIXME - insert some real tests, host_os isn't really good enough
 
16903
  case $host_os in
 
16904
   darwin*)
 
16905
       if test -n "$STRIP" ; then
 
16906
         striplib="$STRIP -x"
 
16907
         echo "$as_me:$LINENO: result: yes" >&5
 
16908
echo "${ECHO_T}yes" >&6
 
16909
       else
 
16910
  echo "$as_me:$LINENO: result: no" >&5
 
16911
echo "${ECHO_T}no" >&6
 
16912
fi
 
16913
       ;;
 
16914
   *)
 
16915
  echo "$as_me:$LINENO: result: no" >&5
 
16916
echo "${ECHO_T}no" >&6
 
16917
    ;;
 
16918
  esac
 
16919
fi
 
16920
 
 
16921
if test "x$enable_dlopen" != xyes; then
 
16922
  enable_dlopen=unknown
 
16923
  enable_dlopen_self=unknown
 
16924
  enable_dlopen_self_static=unknown
 
16925
else
 
16926
  lt_cv_dlopen=no
 
16927
  lt_cv_dlopen_libs=
 
16928
 
 
16929
  case $host_os in
 
16930
  beos*)
 
16931
    lt_cv_dlopen="load_add_on"
 
16932
    lt_cv_dlopen_libs=
 
16933
    lt_cv_dlopen_self=yes
 
16934
    ;;
 
16935
 
 
16936
  mingw* | pw32*)
 
16937
    lt_cv_dlopen="LoadLibrary"
 
16938
    lt_cv_dlopen_libs=
 
16939
   ;;
 
16940
 
 
16941
  cygwin*)
 
16942
    lt_cv_dlopen="dlopen"
 
16943
    lt_cv_dlopen_libs=
 
16944
   ;;
 
16945
 
 
16946
  darwin*)
 
16947
  # if libdl is installed we need to link against it
 
16948
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16949
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16950
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16952
else
 
16953
  ac_check_lib_save_LIBS=$LIBS
 
16954
LIBS="-ldl  $LIBS"
 
16955
cat >conftest.$ac_ext <<_ACEOF
 
16956
/* confdefs.h.  */
 
16957
_ACEOF
 
16958
cat confdefs.h >>conftest.$ac_ext
 
16959
cat >>conftest.$ac_ext <<_ACEOF
 
16960
/* end confdefs.h.  */
 
16961
 
 
16962
/* Override any gcc2 internal prototype to avoid an error.  */
 
16963
#ifdef __cplusplus
 
16964
extern "C"
 
16965
#endif
 
16966
/* We use char because int might match the return type of a gcc2
 
16967
   builtin and then its argument prototype would still apply.  */
 
16968
char dlopen ();
 
16969
int
 
16970
main ()
 
16971
{
 
16972
dlopen ();
 
16973
  ;
 
16974
  return 0;
 
16975
}
 
16976
_ACEOF
 
16977
rm -f conftest.$ac_objext conftest$ac_exeext
 
16978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16979
  (eval $ac_link) 2>conftest.er1
 
16980
  ac_status=$?
 
16981
  grep -v '^ *+' conftest.er1 >conftest.err
 
16982
  rm -f conftest.er1
 
16983
  cat conftest.err >&5
 
16984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16985
  (exit $ac_status); } &&
 
16986
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16988
  (eval $ac_try) 2>&5
 
16989
  ac_status=$?
 
16990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16991
  (exit $ac_status); }; } &&
 
16992
         { ac_try='test -s conftest$ac_exeext'
 
16993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16994
  (eval $ac_try) 2>&5
 
16995
  ac_status=$?
 
16996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16997
  (exit $ac_status); }; }; then
 
16998
  ac_cv_lib_dl_dlopen=yes
 
16999
else
 
17000
  echo "$as_me: failed program was:" >&5
 
17001
sed 's/^/| /' conftest.$ac_ext >&5
 
17002
 
 
17003
ac_cv_lib_dl_dlopen=no
 
17004
fi
 
17005
rm -f conftest.err conftest.$ac_objext \
 
17006
      conftest$ac_exeext conftest.$ac_ext
 
17007
LIBS=$ac_check_lib_save_LIBS
 
17008
fi
 
17009
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17010
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17011
if test $ac_cv_lib_dl_dlopen = yes; then
 
17012
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17013
else
 
17014
 
 
17015
    lt_cv_dlopen="dyld"
 
17016
    lt_cv_dlopen_libs=
 
17017
    lt_cv_dlopen_self=yes
 
17018
 
 
17019
fi
 
17020
 
 
17021
   ;;
 
17022
 
 
17023
  *)
 
17024
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17025
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17026
if test "${ac_cv_func_shl_load+set}" = set; then
 
17027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17028
else
 
17029
  cat >conftest.$ac_ext <<_ACEOF
 
17030
/* confdefs.h.  */
 
17031
_ACEOF
 
17032
cat confdefs.h >>conftest.$ac_ext
 
17033
cat >>conftest.$ac_ext <<_ACEOF
 
17034
/* end confdefs.h.  */
 
17035
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17036
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17037
#define shl_load innocuous_shl_load
 
17038
 
 
17039
/* System header to define __stub macros and hopefully few prototypes,
 
17040
    which can conflict with char shl_load (); below.
 
17041
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17042
    <limits.h> exists even on freestanding compilers.  */
 
17043
 
 
17044
#ifdef __STDC__
 
17045
# include <limits.h>
 
17046
#else
 
17047
# include <assert.h>
 
17048
#endif
 
17049
 
 
17050
#undef shl_load
 
17051
 
 
17052
/* Override any gcc2 internal prototype to avoid an error.  */
 
17053
#ifdef __cplusplus
 
17054
extern "C"
 
17055
{
 
17056
#endif
 
17057
/* We use char because int might match the return type of a gcc2
 
17058
   builtin and then its argument prototype would still apply.  */
 
17059
char shl_load ();
 
17060
/* The GNU C library defines this for functions which it implements
 
17061
    to always fail with ENOSYS.  Some functions are actually named
 
17062
    something starting with __ and the normal name is an alias.  */
 
17063
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17064
choke me
 
17065
#else
 
17066
char (*f) () = shl_load;
 
17067
#endif
 
17068
#ifdef __cplusplus
 
17069
}
 
17070
#endif
 
17071
 
 
17072
int
 
17073
main ()
 
17074
{
 
17075
return f != shl_load;
 
17076
  ;
 
17077
  return 0;
 
17078
}
 
17079
_ACEOF
 
17080
rm -f conftest.$ac_objext conftest$ac_exeext
 
17081
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17082
  (eval $ac_link) 2>conftest.er1
 
17083
  ac_status=$?
 
17084
  grep -v '^ *+' conftest.er1 >conftest.err
 
17085
  rm -f conftest.er1
 
17086
  cat conftest.err >&5
 
17087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17088
  (exit $ac_status); } &&
 
17089
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17091
  (eval $ac_try) 2>&5
 
17092
  ac_status=$?
 
17093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17094
  (exit $ac_status); }; } &&
 
17095
         { ac_try='test -s conftest$ac_exeext'
 
17096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17097
  (eval $ac_try) 2>&5
 
17098
  ac_status=$?
 
17099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17100
  (exit $ac_status); }; }; then
 
17101
  ac_cv_func_shl_load=yes
 
17102
else
 
17103
  echo "$as_me: failed program was:" >&5
 
17104
sed 's/^/| /' conftest.$ac_ext >&5
 
17105
 
 
17106
ac_cv_func_shl_load=no
 
17107
fi
 
17108
rm -f conftest.err conftest.$ac_objext \
 
17109
      conftest$ac_exeext conftest.$ac_ext
 
17110
fi
 
17111
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17112
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17113
if test $ac_cv_func_shl_load = yes; then
 
17114
  lt_cv_dlopen="shl_load"
 
17115
else
 
17116
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17117
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17118
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17120
else
 
17121
  ac_check_lib_save_LIBS=$LIBS
 
17122
LIBS="-ldld  $LIBS"
 
17123
cat >conftest.$ac_ext <<_ACEOF
 
17124
/* confdefs.h.  */
 
17125
_ACEOF
 
17126
cat confdefs.h >>conftest.$ac_ext
 
17127
cat >>conftest.$ac_ext <<_ACEOF
 
17128
/* end confdefs.h.  */
 
17129
 
 
17130
/* Override any gcc2 internal prototype to avoid an error.  */
 
17131
#ifdef __cplusplus
 
17132
extern "C"
 
17133
#endif
 
17134
/* We use char because int might match the return type of a gcc2
 
17135
   builtin and then its argument prototype would still apply.  */
 
17136
char shl_load ();
 
17137
int
 
17138
main ()
 
17139
{
 
17140
shl_load ();
 
17141
  ;
 
17142
  return 0;
 
17143
}
 
17144
_ACEOF
 
17145
rm -f conftest.$ac_objext conftest$ac_exeext
 
17146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17147
  (eval $ac_link) 2>conftest.er1
 
17148
  ac_status=$?
 
17149
  grep -v '^ *+' conftest.er1 >conftest.err
 
17150
  rm -f conftest.er1
 
17151
  cat conftest.err >&5
 
17152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17153
  (exit $ac_status); } &&
 
17154
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17156
  (eval $ac_try) 2>&5
 
17157
  ac_status=$?
 
17158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17159
  (exit $ac_status); }; } &&
 
17160
         { ac_try='test -s conftest$ac_exeext'
 
17161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17162
  (eval $ac_try) 2>&5
 
17163
  ac_status=$?
 
17164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17165
  (exit $ac_status); }; }; then
 
17166
  ac_cv_lib_dld_shl_load=yes
 
17167
else
 
17168
  echo "$as_me: failed program was:" >&5
 
17169
sed 's/^/| /' conftest.$ac_ext >&5
 
17170
 
 
17171
ac_cv_lib_dld_shl_load=no
 
17172
fi
 
17173
rm -f conftest.err conftest.$ac_objext \
 
17174
      conftest$ac_exeext conftest.$ac_ext
 
17175
LIBS=$ac_check_lib_save_LIBS
 
17176
fi
 
17177
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17178
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17179
if test $ac_cv_lib_dld_shl_load = yes; then
 
17180
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17181
else
 
17182
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17183
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17184
if test "${ac_cv_func_dlopen+set}" = set; then
 
17185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17186
else
 
17187
  cat >conftest.$ac_ext <<_ACEOF
 
17188
/* confdefs.h.  */
 
17189
_ACEOF
 
17190
cat confdefs.h >>conftest.$ac_ext
 
17191
cat >>conftest.$ac_ext <<_ACEOF
 
17192
/* end confdefs.h.  */
 
17193
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17194
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17195
#define dlopen innocuous_dlopen
 
17196
 
 
17197
/* System header to define __stub macros and hopefully few prototypes,
 
17198
    which can conflict with char dlopen (); below.
 
17199
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17200
    <limits.h> exists even on freestanding compilers.  */
 
17201
 
 
17202
#ifdef __STDC__
 
17203
# include <limits.h>
 
17204
#else
 
17205
# include <assert.h>
 
17206
#endif
 
17207
 
 
17208
#undef dlopen
 
17209
 
 
17210
/* Override any gcc2 internal prototype to avoid an error.  */
 
17211
#ifdef __cplusplus
 
17212
extern "C"
 
17213
{
 
17214
#endif
 
17215
/* We use char because int might match the return type of a gcc2
 
17216
   builtin and then its argument prototype would still apply.  */
 
17217
char dlopen ();
 
17218
/* The GNU C library defines this for functions which it implements
 
17219
    to always fail with ENOSYS.  Some functions are actually named
 
17220
    something starting with __ and the normal name is an alias.  */
 
17221
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17222
choke me
 
17223
#else
 
17224
char (*f) () = dlopen;
 
17225
#endif
 
17226
#ifdef __cplusplus
 
17227
}
 
17228
#endif
 
17229
 
 
17230
int
 
17231
main ()
 
17232
{
 
17233
return f != dlopen;
 
17234
  ;
 
17235
  return 0;
 
17236
}
 
17237
_ACEOF
 
17238
rm -f conftest.$ac_objext conftest$ac_exeext
 
17239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17240
  (eval $ac_link) 2>conftest.er1
 
17241
  ac_status=$?
 
17242
  grep -v '^ *+' conftest.er1 >conftest.err
 
17243
  rm -f conftest.er1
 
17244
  cat conftest.err >&5
 
17245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17246
  (exit $ac_status); } &&
 
17247
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17249
  (eval $ac_try) 2>&5
 
17250
  ac_status=$?
 
17251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17252
  (exit $ac_status); }; } &&
 
17253
         { ac_try='test -s conftest$ac_exeext'
 
17254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17255
  (eval $ac_try) 2>&5
 
17256
  ac_status=$?
 
17257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17258
  (exit $ac_status); }; }; then
 
17259
  ac_cv_func_dlopen=yes
 
17260
else
 
17261
  echo "$as_me: failed program was:" >&5
 
17262
sed 's/^/| /' conftest.$ac_ext >&5
 
17263
 
 
17264
ac_cv_func_dlopen=no
 
17265
fi
 
17266
rm -f conftest.err conftest.$ac_objext \
 
17267
      conftest$ac_exeext conftest.$ac_ext
 
17268
fi
 
17269
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17270
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17271
if test $ac_cv_func_dlopen = yes; then
 
17272
  lt_cv_dlopen="dlopen"
 
17273
else
 
17274
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17275
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17276
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17278
else
 
17279
  ac_check_lib_save_LIBS=$LIBS
 
17280
LIBS="-ldl  $LIBS"
 
17281
cat >conftest.$ac_ext <<_ACEOF
 
17282
/* confdefs.h.  */
 
17283
_ACEOF
 
17284
cat confdefs.h >>conftest.$ac_ext
 
17285
cat >>conftest.$ac_ext <<_ACEOF
 
17286
/* end confdefs.h.  */
 
17287
 
 
17288
/* Override any gcc2 internal prototype to avoid an error.  */
 
17289
#ifdef __cplusplus
 
17290
extern "C"
 
17291
#endif
 
17292
/* We use char because int might match the return type of a gcc2
 
17293
   builtin and then its argument prototype would still apply.  */
 
17294
char dlopen ();
 
17295
int
 
17296
main ()
 
17297
{
 
17298
dlopen ();
 
17299
  ;
 
17300
  return 0;
 
17301
}
 
17302
_ACEOF
 
17303
rm -f conftest.$ac_objext conftest$ac_exeext
 
17304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17305
  (eval $ac_link) 2>conftest.er1
 
17306
  ac_status=$?
 
17307
  grep -v '^ *+' conftest.er1 >conftest.err
 
17308
  rm -f conftest.er1
 
17309
  cat conftest.err >&5
 
17310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17311
  (exit $ac_status); } &&
 
17312
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17314
  (eval $ac_try) 2>&5
 
17315
  ac_status=$?
 
17316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17317
  (exit $ac_status); }; } &&
 
17318
         { ac_try='test -s conftest$ac_exeext'
 
17319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17320
  (eval $ac_try) 2>&5
 
17321
  ac_status=$?
 
17322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17323
  (exit $ac_status); }; }; then
 
17324
  ac_cv_lib_dl_dlopen=yes
 
17325
else
 
17326
  echo "$as_me: failed program was:" >&5
 
17327
sed 's/^/| /' conftest.$ac_ext >&5
 
17328
 
 
17329
ac_cv_lib_dl_dlopen=no
 
17330
fi
 
17331
rm -f conftest.err conftest.$ac_objext \
 
17332
      conftest$ac_exeext conftest.$ac_ext
 
17333
LIBS=$ac_check_lib_save_LIBS
 
17334
fi
 
17335
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17336
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17337
if test $ac_cv_lib_dl_dlopen = yes; then
 
17338
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17339
else
 
17340
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17341
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17342
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17344
else
 
17345
  ac_check_lib_save_LIBS=$LIBS
 
17346
LIBS="-lsvld  $LIBS"
 
17347
cat >conftest.$ac_ext <<_ACEOF
 
17348
/* confdefs.h.  */
 
17349
_ACEOF
 
17350
cat confdefs.h >>conftest.$ac_ext
 
17351
cat >>conftest.$ac_ext <<_ACEOF
 
17352
/* end confdefs.h.  */
 
17353
 
 
17354
/* Override any gcc2 internal prototype to avoid an error.  */
 
17355
#ifdef __cplusplus
 
17356
extern "C"
 
17357
#endif
 
17358
/* We use char because int might match the return type of a gcc2
 
17359
   builtin and then its argument prototype would still apply.  */
 
17360
char dlopen ();
 
17361
int
 
17362
main ()
 
17363
{
 
17364
dlopen ();
 
17365
  ;
 
17366
  return 0;
 
17367
}
 
17368
_ACEOF
 
17369
rm -f conftest.$ac_objext conftest$ac_exeext
 
17370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17371
  (eval $ac_link) 2>conftest.er1
 
17372
  ac_status=$?
 
17373
  grep -v '^ *+' conftest.er1 >conftest.err
 
17374
  rm -f conftest.er1
 
17375
  cat conftest.err >&5
 
17376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17377
  (exit $ac_status); } &&
 
17378
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17380
  (eval $ac_try) 2>&5
 
17381
  ac_status=$?
 
17382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17383
  (exit $ac_status); }; } &&
 
17384
         { ac_try='test -s conftest$ac_exeext'
 
17385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17386
  (eval $ac_try) 2>&5
 
17387
  ac_status=$?
 
17388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17389
  (exit $ac_status); }; }; then
 
17390
  ac_cv_lib_svld_dlopen=yes
 
17391
else
 
17392
  echo "$as_me: failed program was:" >&5
 
17393
sed 's/^/| /' conftest.$ac_ext >&5
 
17394
 
 
17395
ac_cv_lib_svld_dlopen=no
 
17396
fi
 
17397
rm -f conftest.err conftest.$ac_objext \
 
17398
      conftest$ac_exeext conftest.$ac_ext
 
17399
LIBS=$ac_check_lib_save_LIBS
 
17400
fi
 
17401
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17402
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17403
if test $ac_cv_lib_svld_dlopen = yes; then
 
17404
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17405
else
 
17406
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17407
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17408
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17410
else
 
17411
  ac_check_lib_save_LIBS=$LIBS
 
17412
LIBS="-ldld  $LIBS"
 
17413
cat >conftest.$ac_ext <<_ACEOF
 
17414
/* confdefs.h.  */
 
17415
_ACEOF
 
17416
cat confdefs.h >>conftest.$ac_ext
 
17417
cat >>conftest.$ac_ext <<_ACEOF
 
17418
/* end confdefs.h.  */
 
17419
 
 
17420
/* Override any gcc2 internal prototype to avoid an error.  */
 
17421
#ifdef __cplusplus
 
17422
extern "C"
 
17423
#endif
 
17424
/* We use char because int might match the return type of a gcc2
 
17425
   builtin and then its argument prototype would still apply.  */
 
17426
char dld_link ();
 
17427
int
 
17428
main ()
 
17429
{
 
17430
dld_link ();
 
17431
  ;
 
17432
  return 0;
 
17433
}
 
17434
_ACEOF
 
17435
rm -f conftest.$ac_objext conftest$ac_exeext
 
17436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17437
  (eval $ac_link) 2>conftest.er1
 
17438
  ac_status=$?
 
17439
  grep -v '^ *+' conftest.er1 >conftest.err
 
17440
  rm -f conftest.er1
 
17441
  cat conftest.err >&5
 
17442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17443
  (exit $ac_status); } &&
 
17444
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17446
  (eval $ac_try) 2>&5
 
17447
  ac_status=$?
 
17448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17449
  (exit $ac_status); }; } &&
 
17450
         { ac_try='test -s conftest$ac_exeext'
 
17451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17452
  (eval $ac_try) 2>&5
 
17453
  ac_status=$?
 
17454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17455
  (exit $ac_status); }; }; then
 
17456
  ac_cv_lib_dld_dld_link=yes
 
17457
else
 
17458
  echo "$as_me: failed program was:" >&5
 
17459
sed 's/^/| /' conftest.$ac_ext >&5
 
17460
 
 
17461
ac_cv_lib_dld_dld_link=no
 
17462
fi
 
17463
rm -f conftest.err conftest.$ac_objext \
 
17464
      conftest$ac_exeext conftest.$ac_ext
 
17465
LIBS=$ac_check_lib_save_LIBS
 
17466
fi
 
17467
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17468
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17469
if test $ac_cv_lib_dld_dld_link = yes; then
 
17470
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17471
fi
 
17472
 
 
17473
 
 
17474
fi
 
17475
 
 
17476
 
 
17477
fi
 
17478
 
 
17479
 
 
17480
fi
 
17481
 
 
17482
 
 
17483
fi
 
17484
 
 
17485
 
 
17486
fi
 
17487
 
 
17488
    ;;
 
17489
  esac
 
17490
 
 
17491
  if test "x$lt_cv_dlopen" != xno; then
 
17492
    enable_dlopen=yes
 
17493
  else
 
17494
    enable_dlopen=no
 
17495
  fi
 
17496
 
 
17497
  case $lt_cv_dlopen in
 
17498
  dlopen)
 
17499
    save_CPPFLAGS="$CPPFLAGS"
 
17500
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17501
 
 
17502
    save_LDFLAGS="$LDFLAGS"
 
17503
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17504
 
 
17505
    save_LIBS="$LIBS"
 
17506
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17507
 
 
17508
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17509
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17510
if test "${lt_cv_dlopen_self+set}" = set; then
 
17511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17512
else
 
17513
          if test "$cross_compiling" = yes; then :
 
17514
  lt_cv_dlopen_self=cross
 
17515
else
 
17516
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17517
  lt_status=$lt_dlunknown
 
17518
  cat > conftest.$ac_ext <<EOF
 
17519
#line 17519 "configure"
 
17520
#include "confdefs.h"
 
17521
 
 
17522
#if HAVE_DLFCN_H
 
17523
#include <dlfcn.h>
 
17524
#endif
 
17525
 
 
17526
#include <stdio.h>
 
17527
 
 
17528
#ifdef RTLD_GLOBAL
 
17529
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17530
#else
 
17531
#  ifdef DL_GLOBAL
 
17532
#    define LT_DLGLOBAL         DL_GLOBAL
 
17533
#  else
 
17534
#    define LT_DLGLOBAL         0
 
17535
#  endif
 
17536
#endif
 
17537
 
 
17538
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17539
   find out it does not work in some platform. */
 
17540
#ifndef LT_DLLAZY_OR_NOW
 
17541
#  ifdef RTLD_LAZY
 
17542
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17543
#  else
 
17544
#    ifdef DL_LAZY
 
17545
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17546
#    else
 
17547
#      ifdef RTLD_NOW
 
17548
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17549
#      else
 
17550
#        ifdef DL_NOW
 
17551
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17552
#        else
 
17553
#          define LT_DLLAZY_OR_NOW      0
 
17554
#        endif
 
17555
#      endif
 
17556
#    endif
 
17557
#  endif
 
17558
#endif
 
17559
 
 
17560
#ifdef __cplusplus
 
17561
extern "C" void exit (int);
 
17562
#endif
 
17563
 
 
17564
void fnord() { int i=42;}
 
17565
int main ()
 
17566
{
 
17567
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17568
  int status = $lt_dlunknown;
 
17569
 
 
17570
  if (self)
 
17571
    {
 
17572
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17573
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17574
      /* dlclose (self); */
 
17575
    }
 
17576
 
 
17577
    exit (status);
 
17578
}
 
17579
EOF
 
17580
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17581
  (eval $ac_link) 2>&5
 
17582
  ac_status=$?
 
17583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17584
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17585
    (./conftest; exit; ) 2>/dev/null
 
17586
    lt_status=$?
 
17587
    case x$lt_status in
 
17588
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17589
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17590
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17591
    esac
 
17592
  else :
 
17593
    # compilation failed
 
17594
    lt_cv_dlopen_self=no
 
17595
  fi
 
17596
fi
 
17597
rm -fr conftest*
 
17598
 
 
17599
 
 
17600
fi
 
17601
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17602
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17603
 
 
17604
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17605
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17606
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17607
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17608
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17610
else
 
17611
          if test "$cross_compiling" = yes; then :
 
17612
  lt_cv_dlopen_self_static=cross
 
17613
else
 
17614
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17615
  lt_status=$lt_dlunknown
 
17616
  cat > conftest.$ac_ext <<EOF
 
17617
#line 17617 "configure"
 
17618
#include "confdefs.h"
 
17619
 
 
17620
#if HAVE_DLFCN_H
 
17621
#include <dlfcn.h>
 
17622
#endif
 
17623
 
 
17624
#include <stdio.h>
 
17625
 
 
17626
#ifdef RTLD_GLOBAL
 
17627
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17628
#else
 
17629
#  ifdef DL_GLOBAL
 
17630
#    define LT_DLGLOBAL         DL_GLOBAL
 
17631
#  else
 
17632
#    define LT_DLGLOBAL         0
 
17633
#  endif
 
17634
#endif
 
17635
 
 
17636
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17637
   find out it does not work in some platform. */
 
17638
#ifndef LT_DLLAZY_OR_NOW
 
17639
#  ifdef RTLD_LAZY
 
17640
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17641
#  else
 
17642
#    ifdef DL_LAZY
 
17643
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17644
#    else
 
17645
#      ifdef RTLD_NOW
 
17646
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17647
#      else
 
17648
#        ifdef DL_NOW
 
17649
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17650
#        else
 
17651
#          define LT_DLLAZY_OR_NOW      0
 
17652
#        endif
 
17653
#      endif
 
17654
#    endif
 
17655
#  endif
 
17656
#endif
 
17657
 
 
17658
#ifdef __cplusplus
 
17659
extern "C" void exit (int);
 
17660
#endif
 
17661
 
 
17662
void fnord() { int i=42;}
 
17663
int main ()
 
17664
{
 
17665
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17666
  int status = $lt_dlunknown;
 
17667
 
 
17668
  if (self)
 
17669
    {
 
17670
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17671
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17672
      /* dlclose (self); */
 
17673
    }
 
17674
 
 
17675
    exit (status);
 
17676
}
 
17677
EOF
 
17678
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17679
  (eval $ac_link) 2>&5
 
17680
  ac_status=$?
 
17681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17682
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17683
    (./conftest; exit; ) 2>/dev/null
 
17684
    lt_status=$?
 
17685
    case x$lt_status in
 
17686
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17687
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17688
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
17689
    esac
 
17690
  else :
 
17691
    # compilation failed
 
17692
    lt_cv_dlopen_self_static=no
 
17693
  fi
 
17694
fi
 
17695
rm -fr conftest*
 
17696
 
 
17697
 
 
17698
fi
 
17699
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17700
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
17701
    fi
 
17702
 
 
17703
    CPPFLAGS="$save_CPPFLAGS"
 
17704
    LDFLAGS="$save_LDFLAGS"
 
17705
    LIBS="$save_LIBS"
 
17706
    ;;
 
17707
  esac
 
17708
 
 
17709
  case $lt_cv_dlopen_self in
 
17710
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17711
  *) enable_dlopen_self=unknown ;;
 
17712
  esac
 
17713
 
 
17714
  case $lt_cv_dlopen_self_static in
 
17715
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17716
  *) enable_dlopen_self_static=unknown ;;
 
17717
  esac
 
17718
fi
 
17719
 
 
17720
 
 
17721
# The else clause should only fire when bootstrapping the
 
17722
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17723
# with your package, and you will get complaints that there are
 
17724
# no rules to generate ltmain.sh.
 
17725
if test -f "$ltmain"; then
 
17726
  # See if we are running on zsh, and set the options which allow our commands through
 
17727
  # without removal of \ escapes.
 
17728
  if test -n "${ZSH_VERSION+set}" ; then
 
17729
    setopt NO_GLOB_SUBST
 
17730
  fi
 
17731
  # Now quote all the things that may contain metacharacters while being
 
17732
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17733
  # variables and quote the copies for generation of the libtool script.
 
17734
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17735
    SED SHELL STRIP \
 
17736
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17737
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17738
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17739
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17740
    lt_cv_sys_global_symbol_to_c_name_address \
 
17741
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17742
    old_postinstall_cmds old_postuninstall_cmds \
 
17743
    compiler_GCJ \
 
17744
    CC_GCJ \
 
17745
    LD_GCJ \
 
17746
    lt_prog_compiler_wl_GCJ \
 
17747
    lt_prog_compiler_pic_GCJ \
 
17748
    lt_prog_compiler_static_GCJ \
 
17749
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17750
    export_dynamic_flag_spec_GCJ \
 
17751
    thread_safe_flag_spec_GCJ \
 
17752
    whole_archive_flag_spec_GCJ \
 
17753
    enable_shared_with_static_runtimes_GCJ \
 
17754
    old_archive_cmds_GCJ \
 
17755
    old_archive_from_new_cmds_GCJ \
 
17756
    predep_objects_GCJ \
 
17757
    postdep_objects_GCJ \
 
17758
    predeps_GCJ \
 
17759
    postdeps_GCJ \
 
17760
    compiler_lib_search_path_GCJ \
 
17761
    archive_cmds_GCJ \
 
17762
    archive_expsym_cmds_GCJ \
 
17763
    postinstall_cmds_GCJ \
 
17764
    postuninstall_cmds_GCJ \
 
17765
    old_archive_from_expsyms_cmds_GCJ \
 
17766
    allow_undefined_flag_GCJ \
 
17767
    no_undefined_flag_GCJ \
 
17768
    export_symbols_cmds_GCJ \
 
17769
    hardcode_libdir_flag_spec_GCJ \
 
17770
    hardcode_libdir_flag_spec_ld_GCJ \
 
17771
    hardcode_libdir_separator_GCJ \
 
17772
    hardcode_automatic_GCJ \
 
17773
    module_cmds_GCJ \
 
17774
    module_expsym_cmds_GCJ \
 
17775
    lt_cv_prog_compiler_c_o_GCJ \
 
17776
    exclude_expsyms_GCJ \
 
17777
    include_expsyms_GCJ; do
 
17778
 
 
17779
    case $var in
 
17780
    old_archive_cmds_GCJ | \
 
17781
    old_archive_from_new_cmds_GCJ | \
 
17782
    archive_cmds_GCJ | \
 
17783
    archive_expsym_cmds_GCJ | \
 
17784
    module_cmds_GCJ | \
 
17785
    module_expsym_cmds_GCJ | \
 
17786
    old_archive_from_expsyms_cmds_GCJ | \
 
17787
    export_symbols_cmds_GCJ | \
 
17788
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17789
    postinstall_cmds | postuninstall_cmds | \
 
17790
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17791
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17792
      # Double-quote double-evaled strings.
 
17793
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17794
      ;;
 
17795
    *)
 
17796
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17797
      ;;
 
17798
    esac
 
17799
  done
 
17800
 
 
17801
  case $lt_echo in
 
17802
  *'\$0 --fallback-echo"')
 
17803
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17804
    ;;
 
17805
  esac
 
17806
 
 
17807
cfgfile="$ofile"
 
17808
 
 
17809
  cat <<__EOF__ >> "$cfgfile"
 
17810
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17811
 
 
17812
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17813
 
 
17814
# Shell to use when invoking shell scripts.
 
17815
SHELL=$lt_SHELL
 
17816
 
 
17817
# Whether or not to build shared libraries.
 
17818
build_libtool_libs=$enable_shared
 
17819
 
 
17820
# Whether or not to build static libraries.
 
17821
build_old_libs=$enable_static
 
17822
 
 
17823
# Whether or not to add -lc for building shared libraries.
 
17824
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17825
 
 
17826
# Whether or not to disallow shared libs when runtime libs are static
 
17827
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
17828
 
 
17829
# Whether or not to optimize for fast installation.
 
17830
fast_install=$enable_fast_install
 
17831
 
 
17832
# The host system.
 
17833
host_alias=$host_alias
 
17834
host=$host
 
17835
 
 
17836
# An echo program that does not interpret backslashes.
 
17837
echo=$lt_echo
 
17838
 
 
17839
# The archiver.
 
17840
AR=$lt_AR
 
17841
AR_FLAGS=$lt_AR_FLAGS
 
17842
 
 
17843
# A C compiler.
 
17844
LTCC=$lt_LTCC
 
17845
 
 
17846
# A language-specific compiler.
 
17847
CC=$lt_compiler_GCJ
 
17848
 
 
17849
# Is the compiler the GNU C compiler?
 
17850
with_gcc=$GCC_GCJ
 
17851
 
 
17852
# An ERE matcher.
 
17853
EGREP=$lt_EGREP
 
17854
 
 
17855
# The linker used to build libraries.
 
17856
LD=$lt_LD_GCJ
 
17857
 
 
17858
# Whether we need hard or soft links.
 
17859
LN_S=$lt_LN_S
 
17860
 
 
17861
# A BSD-compatible nm program.
 
17862
NM=$lt_NM
 
17863
 
 
17864
# A symbol stripping program
 
17865
STRIP=$lt_STRIP
 
17866
 
 
17867
# Used to examine libraries when file_magic_cmd begins "file"
 
17868
MAGIC_CMD=$MAGIC_CMD
 
17869
 
 
17870
# Used on cygwin: DLL creation program.
 
17871
DLLTOOL="$DLLTOOL"
 
17872
 
 
17873
# Used on cygwin: object dumper.
 
17874
OBJDUMP="$OBJDUMP"
 
17875
 
 
17876
# Used on cygwin: assembler.
 
17877
AS="$AS"
 
17878
 
 
17879
# The name of the directory that contains temporary libtool files.
 
17880
objdir=$objdir
 
17881
 
 
17882
# How to create reloadable object files.
 
17883
reload_flag=$lt_reload_flag
 
17884
reload_cmds=$lt_reload_cmds
 
17885
 
 
17886
# How to pass a linker flag through the compiler.
 
17887
wl=$lt_lt_prog_compiler_wl_GCJ
 
17888
 
 
17889
# Object file suffix (normally "o").
 
17890
objext="$ac_objext"
 
17891
 
 
17892
# Old archive suffix (normally "a").
 
17893
libext="$libext"
 
17894
 
 
17895
# Shared library suffix (normally ".so").
 
17896
shrext_cmds='$shrext_cmds'
 
17897
 
 
17898
# Executable file suffix (normally "").
 
17899
exeext="$exeext"
 
17900
 
 
17901
# Additional compiler flags for building library objects.
 
17902
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
17903
pic_mode=$pic_mode
 
17904
 
 
17905
# What is the maximum length of a command?
 
17906
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17907
 
 
17908
# Does compiler simultaneously support -c and -o options?
 
17909
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
17910
 
 
17911
# Must we lock files when doing compilation ?
 
17912
need_locks=$lt_need_locks
 
17913
 
 
17914
# Do we need the lib prefix for modules?
 
17915
need_lib_prefix=$need_lib_prefix
 
17916
 
 
17917
# Do we need a version for libraries?
 
17918
need_version=$need_version
 
17919
 
 
17920
# Whether dlopen is supported.
 
17921
dlopen_support=$enable_dlopen
 
17922
 
 
17923
# Whether dlopen of programs is supported.
 
17924
dlopen_self=$enable_dlopen_self
 
17925
 
 
17926
# Whether dlopen of statically linked programs is supported.
 
17927
dlopen_self_static=$enable_dlopen_self_static
 
17928
 
 
17929
# Compiler flag to prevent dynamic linking.
 
17930
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
17931
 
 
17932
# Compiler flag to turn off builtin functions.
 
17933
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
17934
 
 
17935
# Compiler flag to allow reflexive dlopens.
 
17936
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
17937
 
 
17938
# Compiler flag to generate shared objects directly from archives.
 
17939
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
17940
 
 
17941
# Compiler flag to generate thread-safe objects.
 
17942
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
17943
 
 
17944
# Library versioning type.
 
17945
version_type=$version_type
 
17946
 
 
17947
# Format of library name prefix.
 
17948
libname_spec=$lt_libname_spec
 
17949
 
 
17950
# List of archive names.  First name is the real one, the rest are links.
 
17951
# The last name is the one that the linker finds with -lNAME.
 
17952
library_names_spec=$lt_library_names_spec
 
17953
 
 
17954
# The coded name of the library, if different from the real name.
 
17955
soname_spec=$lt_soname_spec
 
17956
 
 
17957
# Commands used to build and install an old-style archive.
 
17958
RANLIB=$lt_RANLIB
 
17959
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
17960
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17961
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17962
 
 
17963
# Create an old-style archive from a shared archive.
 
17964
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
17965
 
 
17966
# Create a temporary old-style archive to link instead of a shared archive.
 
17967
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
17968
 
 
17969
# Commands used to build and install a shared archive.
 
17970
archive_cmds=$lt_archive_cmds_GCJ
 
17971
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
17972
postinstall_cmds=$lt_postinstall_cmds
 
17973
postuninstall_cmds=$lt_postuninstall_cmds
 
17974
 
 
17975
# Commands used to build a loadable module (assumed same as above if empty)
 
17976
module_cmds=$lt_module_cmds_GCJ
 
17977
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
17978
 
 
17979
# Commands to strip libraries.
 
17980
old_striplib=$lt_old_striplib
 
17981
striplib=$lt_striplib
 
17982
 
 
17983
# Dependencies to place before the objects being linked to create a
 
17984
# shared library.
 
17985
predep_objects=$lt_predep_objects_GCJ
 
17986
 
 
17987
# Dependencies to place after the objects being linked to create a
 
17988
# shared library.
 
17989
postdep_objects=$lt_postdep_objects_GCJ
 
17990
 
 
17991
# Dependencies to place before the objects being linked to create a
 
17992
# shared library.
 
17993
predeps=$lt_predeps_GCJ
 
17994
 
 
17995
# Dependencies to place after the objects being linked to create a
 
17996
# shared library.
 
17997
postdeps=$lt_postdeps_GCJ
 
17998
 
 
17999
# The library search path used internally by the compiler when linking
 
18000
# a shared library.
 
18001
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18002
 
 
18003
# Method to check whether dependent libraries are shared objects.
 
18004
deplibs_check_method=$lt_deplibs_check_method
 
18005
 
 
18006
# Command to use when deplibs_check_method == file_magic.
 
18007
file_magic_cmd=$lt_file_magic_cmd
 
18008
 
 
18009
# Flag that allows shared libraries with undefined symbols to be built.
 
18010
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18011
 
 
18012
# Flag that forces no undefined symbols.
 
18013
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18014
 
 
18015
# Commands used to finish a libtool library installation in a directory.
 
18016
finish_cmds=$lt_finish_cmds
 
18017
 
 
18018
# Same as above, but a single script fragment to be evaled but not shown.
 
18019
finish_eval=$lt_finish_eval
 
18020
 
 
18021
# Take the output of nm and produce a listing of raw symbols and C names.
 
18022
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18023
 
 
18024
# Transform the output of nm in a proper C declaration
 
18025
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18026
 
 
18027
# Transform the output of nm in a C name address pair
 
18028
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18029
 
 
18030
# This is the shared library runtime path variable.
 
18031
runpath_var=$runpath_var
 
18032
 
 
18033
# This is the shared library path variable.
 
18034
shlibpath_var=$shlibpath_var
 
18035
 
 
18036
# Is shlibpath searched before the hard-coded library search path?
 
18037
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18038
 
 
18039
# How to hardcode a shared library path into an executable.
 
18040
hardcode_action=$hardcode_action_GCJ
 
18041
 
 
18042
# Whether we should hardcode library paths into libraries.
 
18043
hardcode_into_libs=$hardcode_into_libs
 
18044
 
 
18045
# Flag to hardcode \$libdir into a binary during linking.
 
18046
# This must work even if \$libdir does not exist.
 
18047
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18048
 
 
18049
# If ld is used when linking, flag to hardcode \$libdir into
 
18050
# a binary during linking. This must work even if \$libdir does
 
18051
# not exist.
 
18052
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18053
 
 
18054
# Whether we need a single -rpath flag with a separated argument.
 
18055
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18056
 
 
18057
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18058
# resulting binary.
 
18059
hardcode_direct=$hardcode_direct_GCJ
 
18060
 
 
18061
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18062
# resulting binary.
 
18063
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18064
 
 
18065
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18066
# the resulting binary.
 
18067
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18068
 
 
18069
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18070
# and all subsequent libraries and executables linked against it.
 
18071
hardcode_automatic=$hardcode_automatic_GCJ
 
18072
 
 
18073
# Variables whose values should be saved in libtool wrapper scripts and
 
18074
# restored at relink time.
 
18075
variables_saved_for_relink="$variables_saved_for_relink"
 
18076
 
 
18077
# Whether libtool must link a program against all its dependency libraries.
 
18078
link_all_deplibs=$link_all_deplibs_GCJ
 
18079
 
 
18080
# Compile-time system search path for libraries
 
18081
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18082
 
 
18083
# Run-time system search path for libraries
 
18084
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18085
 
 
18086
# Fix the shell variable \$srcfile for the compiler.
 
18087
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18088
 
 
18089
# Set to yes if exported symbols are required.
 
18090
always_export_symbols=$always_export_symbols_GCJ
 
18091
 
 
18092
# The commands to list exported symbols.
 
18093
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18094
 
 
18095
# The commands to extract the exported symbol list from a shared archive.
 
18096
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18097
 
 
18098
# Symbols that should not be listed in the preloaded symbols.
 
18099
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18100
 
 
18101
# Symbols that must always be exported.
 
18102
include_expsyms=$lt_include_expsyms_GCJ
 
18103
 
 
18104
# ### END LIBTOOL TAG CONFIG: $tagname
 
18105
 
 
18106
__EOF__
 
18107
 
 
18108
 
 
18109
else
 
18110
  # If there is no Makefile yet, we rely on a make rule to execute
 
18111
  # `config.status --recheck' to rerun these tests and create the
 
18112
  # libtool script then.
 
18113
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18114
  if test -f "$ltmain_in"; then
 
18115
    test -f Makefile && make "$ltmain"
 
18116
  fi
 
18117
fi
 
18118
 
 
18119
 
 
18120
ac_ext=c
 
18121
ac_cpp='$CPP $CPPFLAGS'
 
18122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18125
 
 
18126
CC="$lt_save_CC"
 
18127
 
 
18128
        else
 
18129
          tagname=""
 
18130
        fi
 
18131
        ;;
 
18132
 
 
18133
      RC)
 
18134
 
 
18135
 
 
18136
 
 
18137
# Source file extension for RC test sources.
 
18138
ac_ext=rc
 
18139
 
 
18140
# Object file extension for compiled RC test sources.
 
18141
objext=o
 
18142
objext_RC=$objext
 
18143
 
 
18144
# Code to be used in simple compile tests
 
18145
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18146
 
 
18147
# Code to be used in simple link tests
 
18148
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18149
 
 
18150
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18151
 
 
18152
# If no C compiler was specified, use CC.
 
18153
LTCC=${LTCC-"$CC"}
 
18154
 
 
18155
# Allow CC to be a program name with arguments.
 
18156
compiler=$CC
 
18157
 
 
18158
 
 
18159
# Allow CC to be a program name with arguments.
 
18160
lt_save_CC="$CC"
 
18161
CC=${RC-"windres"}
 
18162
compiler=$CC
 
18163
compiler_RC=$CC
 
18164
lt_cv_prog_compiler_c_o_RC=yes
 
18165
 
 
18166
# The else clause should only fire when bootstrapping the
 
18167
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18168
# with your package, and you will get complaints that there are
 
18169
# no rules to generate ltmain.sh.
 
18170
if test -f "$ltmain"; then
 
18171
  # See if we are running on zsh, and set the options which allow our commands through
 
18172
  # without removal of \ escapes.
 
18173
  if test -n "${ZSH_VERSION+set}" ; then
 
18174
    setopt NO_GLOB_SUBST
 
18175
  fi
 
18176
  # Now quote all the things that may contain metacharacters while being
 
18177
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18178
  # variables and quote the copies for generation of the libtool script.
 
18179
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18180
    SED SHELL STRIP \
 
18181
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18182
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18183
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18184
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18185
    lt_cv_sys_global_symbol_to_c_name_address \
 
18186
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18187
    old_postinstall_cmds old_postuninstall_cmds \
 
18188
    compiler_RC \
 
18189
    CC_RC \
 
18190
    LD_RC \
 
18191
    lt_prog_compiler_wl_RC \
 
18192
    lt_prog_compiler_pic_RC \
 
18193
    lt_prog_compiler_static_RC \
 
18194
    lt_prog_compiler_no_builtin_flag_RC \
 
18195
    export_dynamic_flag_spec_RC \
 
18196
    thread_safe_flag_spec_RC \
 
18197
    whole_archive_flag_spec_RC \
 
18198
    enable_shared_with_static_runtimes_RC \
 
18199
    old_archive_cmds_RC \
 
18200
    old_archive_from_new_cmds_RC \
 
18201
    predep_objects_RC \
 
18202
    postdep_objects_RC \
 
18203
    predeps_RC \
 
18204
    postdeps_RC \
 
18205
    compiler_lib_search_path_RC \
 
18206
    archive_cmds_RC \
 
18207
    archive_expsym_cmds_RC \
 
18208
    postinstall_cmds_RC \
 
18209
    postuninstall_cmds_RC \
 
18210
    old_archive_from_expsyms_cmds_RC \
 
18211
    allow_undefined_flag_RC \
 
18212
    no_undefined_flag_RC \
 
18213
    export_symbols_cmds_RC \
 
18214
    hardcode_libdir_flag_spec_RC \
 
18215
    hardcode_libdir_flag_spec_ld_RC \
 
18216
    hardcode_libdir_separator_RC \
 
18217
    hardcode_automatic_RC \
 
18218
    module_cmds_RC \
 
18219
    module_expsym_cmds_RC \
 
18220
    lt_cv_prog_compiler_c_o_RC \
 
18221
    exclude_expsyms_RC \
 
18222
    include_expsyms_RC; do
 
18223
 
 
18224
    case $var in
 
18225
    old_archive_cmds_RC | \
 
18226
    old_archive_from_new_cmds_RC | \
 
18227
    archive_cmds_RC | \
 
18228
    archive_expsym_cmds_RC | \
 
18229
    module_cmds_RC | \
 
18230
    module_expsym_cmds_RC | \
 
18231
    old_archive_from_expsyms_cmds_RC | \
 
18232
    export_symbols_cmds_RC | \
 
18233
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18234
    postinstall_cmds | postuninstall_cmds | \
 
18235
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18236
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18237
      # Double-quote double-evaled strings.
 
18238
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18239
      ;;
 
18240
    *)
 
18241
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18242
      ;;
 
18243
    esac
 
18244
  done
 
18245
 
 
18246
  case $lt_echo in
 
18247
  *'\$0 --fallback-echo"')
 
18248
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18249
    ;;
 
18250
  esac
 
18251
 
 
18252
cfgfile="$ofile"
 
18253
 
 
18254
  cat <<__EOF__ >> "$cfgfile"
 
18255
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18256
 
 
18257
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18258
 
 
18259
# Shell to use when invoking shell scripts.
 
18260
SHELL=$lt_SHELL
 
18261
 
 
18262
# Whether or not to build shared libraries.
 
18263
build_libtool_libs=$enable_shared
 
18264
 
 
18265
# Whether or not to build static libraries.
 
18266
build_old_libs=$enable_static
 
18267
 
 
18268
# Whether or not to add -lc for building shared libraries.
 
18269
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18270
 
 
18271
# Whether or not to disallow shared libs when runtime libs are static
 
18272
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18273
 
 
18274
# Whether or not to optimize for fast installation.
 
18275
fast_install=$enable_fast_install
 
18276
 
 
18277
# The host system.
 
18278
host_alias=$host_alias
 
18279
host=$host
 
18280
 
 
18281
# An echo program that does not interpret backslashes.
 
18282
echo=$lt_echo
 
18283
 
 
18284
# The archiver.
 
18285
AR=$lt_AR
 
18286
AR_FLAGS=$lt_AR_FLAGS
 
18287
 
 
18288
# A C compiler.
 
18289
LTCC=$lt_LTCC
 
18290
 
 
18291
# A language-specific compiler.
 
18292
CC=$lt_compiler_RC
 
18293
 
 
18294
# Is the compiler the GNU C compiler?
 
18295
with_gcc=$GCC_RC
 
18296
 
 
18297
# An ERE matcher.
 
18298
EGREP=$lt_EGREP
 
18299
 
 
18300
# The linker used to build libraries.
 
18301
LD=$lt_LD_RC
 
18302
 
 
18303
# Whether we need hard or soft links.
 
18304
LN_S=$lt_LN_S
 
18305
 
 
18306
# A BSD-compatible nm program.
 
18307
NM=$lt_NM
 
18308
 
 
18309
# A symbol stripping program
 
18310
STRIP=$lt_STRIP
 
18311
 
 
18312
# Used to examine libraries when file_magic_cmd begins "file"
 
18313
MAGIC_CMD=$MAGIC_CMD
 
18314
 
 
18315
# Used on cygwin: DLL creation program.
 
18316
DLLTOOL="$DLLTOOL"
 
18317
 
 
18318
# Used on cygwin: object dumper.
 
18319
OBJDUMP="$OBJDUMP"
 
18320
 
 
18321
# Used on cygwin: assembler.
 
18322
AS="$AS"
 
18323
 
 
18324
# The name of the directory that contains temporary libtool files.
 
18325
objdir=$objdir
 
18326
 
 
18327
# How to create reloadable object files.
 
18328
reload_flag=$lt_reload_flag
 
18329
reload_cmds=$lt_reload_cmds
 
18330
 
 
18331
# How to pass a linker flag through the compiler.
 
18332
wl=$lt_lt_prog_compiler_wl_RC
 
18333
 
 
18334
# Object file suffix (normally "o").
 
18335
objext="$ac_objext"
 
18336
 
 
18337
# Old archive suffix (normally "a").
 
18338
libext="$libext"
 
18339
 
 
18340
# Shared library suffix (normally ".so").
 
18341
shrext_cmds='$shrext_cmds'
 
18342
 
 
18343
# Executable file suffix (normally "").
 
18344
exeext="$exeext"
 
18345
 
 
18346
# Additional compiler flags for building library objects.
 
18347
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18348
pic_mode=$pic_mode
 
18349
 
 
18350
# What is the maximum length of a command?
 
18351
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18352
 
 
18353
# Does compiler simultaneously support -c and -o options?
 
18354
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18355
 
 
18356
# Must we lock files when doing compilation ?
 
18357
need_locks=$lt_need_locks
 
18358
 
 
18359
# Do we need the lib prefix for modules?
 
18360
need_lib_prefix=$need_lib_prefix
 
18361
 
 
18362
# Do we need a version for libraries?
 
18363
need_version=$need_version
 
18364
 
 
18365
# Whether dlopen is supported.
 
18366
dlopen_support=$enable_dlopen
 
18367
 
 
18368
# Whether dlopen of programs is supported.
 
18369
dlopen_self=$enable_dlopen_self
 
18370
 
 
18371
# Whether dlopen of statically linked programs is supported.
 
18372
dlopen_self_static=$enable_dlopen_self_static
 
18373
 
 
18374
# Compiler flag to prevent dynamic linking.
 
18375
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18376
 
 
18377
# Compiler flag to turn off builtin functions.
 
18378
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18379
 
 
18380
# Compiler flag to allow reflexive dlopens.
 
18381
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18382
 
 
18383
# Compiler flag to generate shared objects directly from archives.
 
18384
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18385
 
 
18386
# Compiler flag to generate thread-safe objects.
 
18387
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18388
 
 
18389
# Library versioning type.
 
18390
version_type=$version_type
 
18391
 
 
18392
# Format of library name prefix.
 
18393
libname_spec=$lt_libname_spec
 
18394
 
 
18395
# List of archive names.  First name is the real one, the rest are links.
 
18396
# The last name is the one that the linker finds with -lNAME.
 
18397
library_names_spec=$lt_library_names_spec
 
18398
 
 
18399
# The coded name of the library, if different from the real name.
 
18400
soname_spec=$lt_soname_spec
 
18401
 
 
18402
# Commands used to build and install an old-style archive.
 
18403
RANLIB=$lt_RANLIB
 
18404
old_archive_cmds=$lt_old_archive_cmds_RC
 
18405
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18406
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18407
 
 
18408
# Create an old-style archive from a shared archive.
 
18409
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18410
 
 
18411
# Create a temporary old-style archive to link instead of a shared archive.
 
18412
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18413
 
 
18414
# Commands used to build and install a shared archive.
 
18415
archive_cmds=$lt_archive_cmds_RC
 
18416
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18417
postinstall_cmds=$lt_postinstall_cmds
 
18418
postuninstall_cmds=$lt_postuninstall_cmds
 
18419
 
 
18420
# Commands used to build a loadable module (assumed same as above if empty)
 
18421
module_cmds=$lt_module_cmds_RC
 
18422
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18423
 
 
18424
# Commands to strip libraries.
 
18425
old_striplib=$lt_old_striplib
 
18426
striplib=$lt_striplib
 
18427
 
 
18428
# Dependencies to place before the objects being linked to create a
 
18429
# shared library.
 
18430
predep_objects=$lt_predep_objects_RC
 
18431
 
 
18432
# Dependencies to place after the objects being linked to create a
 
18433
# shared library.
 
18434
postdep_objects=$lt_postdep_objects_RC
 
18435
 
 
18436
# Dependencies to place before the objects being linked to create a
 
18437
# shared library.
 
18438
predeps=$lt_predeps_RC
 
18439
 
 
18440
# Dependencies to place after the objects being linked to create a
 
18441
# shared library.
 
18442
postdeps=$lt_postdeps_RC
 
18443
 
 
18444
# The library search path used internally by the compiler when linking
 
18445
# a shared library.
 
18446
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18447
 
 
18448
# Method to check whether dependent libraries are shared objects.
 
18449
deplibs_check_method=$lt_deplibs_check_method
 
18450
 
 
18451
# Command to use when deplibs_check_method == file_magic.
 
18452
file_magic_cmd=$lt_file_magic_cmd
 
18453
 
 
18454
# Flag that allows shared libraries with undefined symbols to be built.
 
18455
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18456
 
 
18457
# Flag that forces no undefined symbols.
 
18458
no_undefined_flag=$lt_no_undefined_flag_RC
 
18459
 
 
18460
# Commands used to finish a libtool library installation in a directory.
 
18461
finish_cmds=$lt_finish_cmds
 
18462
 
 
18463
# Same as above, but a single script fragment to be evaled but not shown.
 
18464
finish_eval=$lt_finish_eval
 
18465
 
 
18466
# Take the output of nm and produce a listing of raw symbols and C names.
 
18467
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18468
 
 
18469
# Transform the output of nm in a proper C declaration
 
18470
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18471
 
 
18472
# Transform the output of nm in a C name address pair
 
18473
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18474
 
 
18475
# This is the shared library runtime path variable.
 
18476
runpath_var=$runpath_var
 
18477
 
 
18478
# This is the shared library path variable.
 
18479
shlibpath_var=$shlibpath_var
 
18480
 
 
18481
# Is shlibpath searched before the hard-coded library search path?
 
18482
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18483
 
 
18484
# How to hardcode a shared library path into an executable.
 
18485
hardcode_action=$hardcode_action_RC
 
18486
 
 
18487
# Whether we should hardcode library paths into libraries.
 
18488
hardcode_into_libs=$hardcode_into_libs
 
18489
 
 
18490
# Flag to hardcode \$libdir into a binary during linking.
 
18491
# This must work even if \$libdir does not exist.
 
18492
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18493
 
 
18494
# If ld is used when linking, flag to hardcode \$libdir into
 
18495
# a binary during linking. This must work even if \$libdir does
 
18496
# not exist.
 
18497
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18498
 
 
18499
# Whether we need a single -rpath flag with a separated argument.
 
18500
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18501
 
 
18502
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18503
# resulting binary.
 
18504
hardcode_direct=$hardcode_direct_RC
 
18505
 
 
18506
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18507
# resulting binary.
 
18508
hardcode_minus_L=$hardcode_minus_L_RC
 
18509
 
 
18510
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18511
# the resulting binary.
 
18512
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18513
 
 
18514
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18515
# and all subsequent libraries and executables linked against it.
 
18516
hardcode_automatic=$hardcode_automatic_RC
 
18517
 
 
18518
# Variables whose values should be saved in libtool wrapper scripts and
 
18519
# restored at relink time.
 
18520
variables_saved_for_relink="$variables_saved_for_relink"
 
18521
 
 
18522
# Whether libtool must link a program against all its dependency libraries.
 
18523
link_all_deplibs=$link_all_deplibs_RC
 
18524
 
 
18525
# Compile-time system search path for libraries
 
18526
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18527
 
 
18528
# Run-time system search path for libraries
 
18529
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18530
 
 
18531
# Fix the shell variable \$srcfile for the compiler.
 
18532
fix_srcfile_path="$fix_srcfile_path_RC"
 
18533
 
 
18534
# Set to yes if exported symbols are required.
 
18535
always_export_symbols=$always_export_symbols_RC
 
18536
 
 
18537
# The commands to list exported symbols.
 
18538
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18539
 
 
18540
# The commands to extract the exported symbol list from a shared archive.
 
18541
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18542
 
 
18543
# Symbols that should not be listed in the preloaded symbols.
 
18544
exclude_expsyms=$lt_exclude_expsyms_RC
 
18545
 
 
18546
# Symbols that must always be exported.
 
18547
include_expsyms=$lt_include_expsyms_RC
 
18548
 
 
18549
# ### END LIBTOOL TAG CONFIG: $tagname
 
18550
 
 
18551
__EOF__
 
18552
 
 
18553
 
 
18554
else
 
18555
  # If there is no Makefile yet, we rely on a make rule to execute
 
18556
  # `config.status --recheck' to rerun these tests and create the
 
18557
  # libtool script then.
 
18558
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18559
  if test -f "$ltmain_in"; then
 
18560
    test -f Makefile && make "$ltmain"
 
18561
  fi
 
18562
fi
 
18563
 
 
18564
 
 
18565
ac_ext=c
 
18566
ac_cpp='$CPP $CPPFLAGS'
 
18567
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18568
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18569
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18570
 
 
18571
CC="$lt_save_CC"
 
18572
 
 
18573
        ;;
 
18574
 
 
18575
      *)
 
18576
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18577
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18578
   { (exit 1); exit 1; }; }
 
18579
        ;;
 
18580
      esac
 
18581
 
 
18582
      # Append the new tag name to the list of available tags.
 
18583
      if test -n "$tagname" ; then
 
18584
      available_tags="$available_tags $tagname"
 
18585
    fi
 
18586
    fi
 
18587
  done
 
18588
  IFS="$lt_save_ifs"
 
18589
 
 
18590
  # Now substitute the updated list of available tags.
 
18591
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18592
    mv "${ofile}T" "$ofile"
 
18593
    chmod +x "$ofile"
 
18594
  else
 
18595
    rm -f "${ofile}T"
 
18596
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18597
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18598
   { (exit 1); exit 1; }; }
 
18599
  fi
 
18600
fi
 
18601
 
 
18602
 
 
18603
 
 
18604
# This can be used to rebuild libtool when needed
 
18605
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
18606
 
 
18607
# Always use our own libtool.
 
18608
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
18609
 
 
18610
# Prevent multiple expansion
 
18611
 
 
18612
 
 
18613
 
 
18614
 
 
18615
 
 
18616
 
 
18617
 
 
18618
 
 
18619
 
 
18620
 
 
18621
 
 
18622
 
 
18623
 
 
18624
 
 
18625
 
 
18626
 
 
18627
 
 
18628
 
 
18629
 
 
18630
 
 
18631
 
 
18632
 
 
18633
 
 
18634
 
 
18635
          ac_config_headers="$ac_config_headers src/config.h"
 
18636
 
 
18637
          ac_config_commands="$ac_config_commands default-1"
 
18638
 
 
18639
 
 
18640
 
 
18641
 
 
18642
 
 
18643
 
 
18644
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
18645
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
18646
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
18647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18648
else
 
18649
  ac_check_lib_save_LIBS=$LIBS
 
18650
LIBS="-lcposix  $LIBS"
 
18651
cat >conftest.$ac_ext <<_ACEOF
 
18652
/* confdefs.h.  */
 
18653
_ACEOF
 
18654
cat confdefs.h >>conftest.$ac_ext
 
18655
cat >>conftest.$ac_ext <<_ACEOF
 
18656
/* end confdefs.h.  */
 
18657
 
 
18658
/* Override any gcc2 internal prototype to avoid an error.  */
 
18659
#ifdef __cplusplus
 
18660
extern "C"
 
18661
#endif
 
18662
/* We use char because int might match the return type of a gcc2
 
18663
   builtin and then its argument prototype would still apply.  */
 
18664
char strerror ();
 
18665
int
 
18666
main ()
 
18667
{
 
18668
strerror ();
 
18669
  ;
 
18670
  return 0;
 
18671
}
 
18672
_ACEOF
 
18673
rm -f conftest.$ac_objext conftest$ac_exeext
 
18674
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18675
  (eval $ac_link) 2>conftest.er1
 
18676
  ac_status=$?
 
18677
  grep -v '^ *+' conftest.er1 >conftest.err
 
18678
  rm -f conftest.er1
 
18679
  cat conftest.err >&5
 
18680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18681
  (exit $ac_status); } &&
 
18682
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18684
  (eval $ac_try) 2>&5
 
18685
  ac_status=$?
 
18686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18687
  (exit $ac_status); }; } &&
 
18688
         { ac_try='test -s conftest$ac_exeext'
 
18689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18690
  (eval $ac_try) 2>&5
 
18691
  ac_status=$?
 
18692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18693
  (exit $ac_status); }; }; then
 
18694
  ac_cv_lib_cposix_strerror=yes
 
18695
else
 
18696
  echo "$as_me: failed program was:" >&5
 
18697
sed 's/^/| /' conftest.$ac_ext >&5
 
18698
 
 
18699
ac_cv_lib_cposix_strerror=no
 
18700
fi
 
18701
rm -f conftest.err conftest.$ac_objext \
 
18702
      conftest$ac_exeext conftest.$ac_ext
 
18703
LIBS=$ac_check_lib_save_LIBS
 
18704
fi
 
18705
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
18706
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
18707
if test $ac_cv_lib_cposix_strerror = yes; then
 
18708
  LIBS="$LIBS -lcposix"
 
18709
fi
 
18710
 
 
18711
 
 
18712
 
 
18713
ac_ext=c
 
18714
ac_cpp='$CPP $CPPFLAGS'
 
18715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18718
if test -n "$ac_tool_prefix"; then
 
18719
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
18720
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
18721
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18722
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18723
if test "${ac_cv_prog_CC+set}" = set; then
 
18724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18725
else
 
18726
  if test -n "$CC"; then
 
18727
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18728
else
 
18729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18730
for as_dir in $PATH
 
18731
do
 
18732
  IFS=$as_save_IFS
 
18733
  test -z "$as_dir" && as_dir=.
 
18734
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18735
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18736
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
18737
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18738
    break 2
 
18739
  fi
 
18740
done
 
18741
done
 
18742
 
 
18743
fi
 
18744
fi
 
18745
CC=$ac_cv_prog_CC
 
18746
if test -n "$CC"; then
 
18747
  echo "$as_me:$LINENO: result: $CC" >&5
 
18748
echo "${ECHO_T}$CC" >&6
 
18749
else
 
18750
  echo "$as_me:$LINENO: result: no" >&5
 
18751
echo "${ECHO_T}no" >&6
 
18752
fi
 
18753
 
 
18754
fi
 
18755
if test -z "$ac_cv_prog_CC"; then
 
18756
  ac_ct_CC=$CC
 
18757
  # Extract the first word of "gcc", so it can be a program name with args.
 
18758
set dummy gcc; ac_word=$2
 
18759
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18761
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18763
else
 
18764
  if test -n "$ac_ct_CC"; then
 
18765
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18766
else
 
18767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18768
for as_dir in $PATH
 
18769
do
 
18770
  IFS=$as_save_IFS
 
18771
  test -z "$as_dir" && as_dir=.
 
18772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18773
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18774
    ac_cv_prog_ac_ct_CC="gcc"
 
18775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18776
    break 2
 
18777
  fi
 
18778
done
 
18779
done
 
18780
 
 
18781
fi
 
18782
fi
 
18783
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18784
if test -n "$ac_ct_CC"; then
 
18785
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18786
echo "${ECHO_T}$ac_ct_CC" >&6
 
18787
else
 
18788
  echo "$as_me:$LINENO: result: no" >&5
 
18789
echo "${ECHO_T}no" >&6
 
18790
fi
 
18791
 
 
18792
  CC=$ac_ct_CC
 
18793
else
 
18794
  CC="$ac_cv_prog_CC"
 
18795
fi
 
18796
 
 
18797
if test -z "$CC"; then
 
18798
  if test -n "$ac_tool_prefix"; then
 
18799
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
18800
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
18801
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18803
if test "${ac_cv_prog_CC+set}" = set; then
 
18804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18805
else
 
18806
  if test -n "$CC"; then
 
18807
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18808
else
 
18809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18810
for as_dir in $PATH
 
18811
do
 
18812
  IFS=$as_save_IFS
 
18813
  test -z "$as_dir" && as_dir=.
 
18814
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18815
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18816
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
18817
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18818
    break 2
 
18819
  fi
 
18820
done
 
18821
done
 
18822
 
 
18823
fi
 
18824
fi
 
18825
CC=$ac_cv_prog_CC
 
18826
if test -n "$CC"; then
 
18827
  echo "$as_me:$LINENO: result: $CC" >&5
 
18828
echo "${ECHO_T}$CC" >&6
 
18829
else
 
18830
  echo "$as_me:$LINENO: result: no" >&5
 
18831
echo "${ECHO_T}no" >&6
 
18832
fi
 
18833
 
 
18834
fi
 
18835
if test -z "$ac_cv_prog_CC"; then
 
18836
  ac_ct_CC=$CC
 
18837
  # Extract the first word of "cc", so it can be a program name with args.
 
18838
set dummy cc; ac_word=$2
 
18839
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18841
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18843
else
 
18844
  if test -n "$ac_ct_CC"; then
 
18845
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18846
else
 
18847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18848
for as_dir in $PATH
 
18849
do
 
18850
  IFS=$as_save_IFS
 
18851
  test -z "$as_dir" && as_dir=.
 
18852
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18853
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18854
    ac_cv_prog_ac_ct_CC="cc"
 
18855
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18856
    break 2
 
18857
  fi
 
18858
done
 
18859
done
 
18860
 
 
18861
fi
 
18862
fi
 
18863
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18864
if test -n "$ac_ct_CC"; then
 
18865
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18866
echo "${ECHO_T}$ac_ct_CC" >&6
 
18867
else
 
18868
  echo "$as_me:$LINENO: result: no" >&5
 
18869
echo "${ECHO_T}no" >&6
 
18870
fi
 
18871
 
 
18872
  CC=$ac_ct_CC
 
18873
else
 
18874
  CC="$ac_cv_prog_CC"
 
18875
fi
 
18876
 
 
18877
fi
 
18878
if test -z "$CC"; then
 
18879
  # Extract the first word of "cc", so it can be a program name with args.
 
18880
set dummy cc; ac_word=$2
 
18881
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18883
if test "${ac_cv_prog_CC+set}" = set; then
 
18884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18885
else
 
18886
  if test -n "$CC"; then
 
18887
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18888
else
 
18889
  ac_prog_rejected=no
 
18890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18891
for as_dir in $PATH
 
18892
do
 
18893
  IFS=$as_save_IFS
 
18894
  test -z "$as_dir" && as_dir=.
 
18895
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18896
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18897
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
18898
       ac_prog_rejected=yes
 
18899
       continue
 
18900
     fi
 
18901
    ac_cv_prog_CC="cc"
 
18902
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18903
    break 2
 
18904
  fi
 
18905
done
 
18906
done
 
18907
 
 
18908
if test $ac_prog_rejected = yes; then
 
18909
  # We found a bogon in the path, so make sure we never use it.
 
18910
  set dummy $ac_cv_prog_CC
 
18911
  shift
 
18912
  if test $# != 0; then
 
18913
    # We chose a different compiler from the bogus one.
 
18914
    # However, it has the same basename, so the bogon will be chosen
 
18915
    # first if we set CC to just the basename; use the full file name.
 
18916
    shift
 
18917
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
18918
  fi
 
18919
fi
 
18920
fi
 
18921
fi
 
18922
CC=$ac_cv_prog_CC
 
18923
if test -n "$CC"; then
 
18924
  echo "$as_me:$LINENO: result: $CC" >&5
 
18925
echo "${ECHO_T}$CC" >&6
 
18926
else
 
18927
  echo "$as_me:$LINENO: result: no" >&5
 
18928
echo "${ECHO_T}no" >&6
 
18929
fi
 
18930
 
 
18931
fi
 
18932
if test -z "$CC"; then
 
18933
  if test -n "$ac_tool_prefix"; then
 
18934
  for ac_prog in cl
 
18935
  do
 
18936
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
18937
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
18938
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18940
if test "${ac_cv_prog_CC+set}" = set; then
 
18941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18942
else
 
18943
  if test -n "$CC"; then
 
18944
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18945
else
 
18946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18947
for as_dir in $PATH
 
18948
do
 
18949
  IFS=$as_save_IFS
 
18950
  test -z "$as_dir" && as_dir=.
 
18951
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18952
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18953
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
18954
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18955
    break 2
 
18956
  fi
 
18957
done
 
18958
done
 
18959
 
 
18960
fi
 
18961
fi
 
18962
CC=$ac_cv_prog_CC
 
18963
if test -n "$CC"; then
 
18964
  echo "$as_me:$LINENO: result: $CC" >&5
 
18965
echo "${ECHO_T}$CC" >&6
 
18966
else
 
18967
  echo "$as_me:$LINENO: result: no" >&5
 
18968
echo "${ECHO_T}no" >&6
 
18969
fi
 
18970
 
 
18971
    test -n "$CC" && break
 
18972
  done
 
18973
fi
 
18974
if test -z "$CC"; then
 
18975
  ac_ct_CC=$CC
 
18976
  for ac_prog in cl
 
18977
do
 
18978
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
18979
set dummy $ac_prog; ac_word=$2
 
18980
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18981
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18982
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18984
else
 
18985
  if test -n "$ac_ct_CC"; then
 
18986
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18987
else
 
18988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18989
for as_dir in $PATH
 
18990
do
 
18991
  IFS=$as_save_IFS
 
18992
  test -z "$as_dir" && as_dir=.
 
18993
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18994
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18995
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
18996
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18997
    break 2
 
18998
  fi
 
18999
done
 
19000
done
 
19001
 
 
19002
fi
 
19003
fi
 
19004
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19005
if test -n "$ac_ct_CC"; then
 
19006
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19007
echo "${ECHO_T}$ac_ct_CC" >&6
 
19008
else
 
19009
  echo "$as_me:$LINENO: result: no" >&5
 
19010
echo "${ECHO_T}no" >&6
 
19011
fi
 
19012
 
 
19013
  test -n "$ac_ct_CC" && break
 
19014
done
 
19015
 
 
19016
  CC=$ac_ct_CC
 
19017
fi
 
19018
 
 
19019
fi
 
19020
 
 
19021
 
 
19022
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19023
See \`config.log' for more details." >&5
 
19024
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19025
See \`config.log' for more details." >&2;}
 
19026
   { (exit 1); exit 1; }; }
 
19027
 
 
19028
# Provide some information about the compiler.
 
19029
echo "$as_me:$LINENO:" \
 
19030
     "checking for C compiler version" >&5
 
19031
ac_compiler=`set X $ac_compile; echo $2`
 
19032
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19033
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19034
  ac_status=$?
 
19035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19036
  (exit $ac_status); }
 
19037
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19038
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19039
  ac_status=$?
 
19040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19041
  (exit $ac_status); }
 
19042
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19043
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19044
  ac_status=$?
 
19045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19046
  (exit $ac_status); }
 
19047
 
 
19048
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19049
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
19050
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19052
else
 
19053
  cat >conftest.$ac_ext <<_ACEOF
 
19054
/* confdefs.h.  */
 
19055
_ACEOF
 
19056
cat confdefs.h >>conftest.$ac_ext
 
19057
cat >>conftest.$ac_ext <<_ACEOF
 
19058
/* end confdefs.h.  */
 
19059
 
 
19060
int
 
19061
main ()
 
19062
{
 
19063
#ifndef __GNUC__
 
19064
       choke me
 
19065
#endif
 
19066
 
 
19067
  ;
 
19068
  return 0;
 
19069
}
 
19070
_ACEOF
 
19071
rm -f conftest.$ac_objext
 
19072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19073
  (eval $ac_compile) 2>conftest.er1
 
19074
  ac_status=$?
 
19075
  grep -v '^ *+' conftest.er1 >conftest.err
 
19076
  rm -f conftest.er1
 
19077
  cat conftest.err >&5
 
19078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19079
  (exit $ac_status); } &&
 
19080
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19082
  (eval $ac_try) 2>&5
 
19083
  ac_status=$?
 
19084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19085
  (exit $ac_status); }; } &&
 
19086
         { ac_try='test -s conftest.$ac_objext'
 
19087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19088
  (eval $ac_try) 2>&5
 
19089
  ac_status=$?
 
19090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19091
  (exit $ac_status); }; }; then
 
19092
  ac_compiler_gnu=yes
 
19093
else
 
19094
  echo "$as_me: failed program was:" >&5
 
19095
sed 's/^/| /' conftest.$ac_ext >&5
 
19096
 
 
19097
ac_compiler_gnu=no
 
19098
fi
 
19099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19100
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19101
 
 
19102
fi
 
19103
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19104
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
19105
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19106
ac_test_CFLAGS=${CFLAGS+set}
 
19107
ac_save_CFLAGS=$CFLAGS
 
19108
CFLAGS="-g"
 
19109
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19110
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
19111
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19113
else
 
19114
  cat >conftest.$ac_ext <<_ACEOF
 
19115
/* confdefs.h.  */
 
19116
_ACEOF
 
19117
cat confdefs.h >>conftest.$ac_ext
 
19118
cat >>conftest.$ac_ext <<_ACEOF
 
19119
/* end confdefs.h.  */
 
19120
 
 
19121
int
 
19122
main ()
 
19123
{
 
19124
 
 
19125
  ;
 
19126
  return 0;
 
19127
}
 
19128
_ACEOF
 
19129
rm -f conftest.$ac_objext
 
19130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19131
  (eval $ac_compile) 2>conftest.er1
 
19132
  ac_status=$?
 
19133
  grep -v '^ *+' conftest.er1 >conftest.err
 
19134
  rm -f conftest.er1
 
19135
  cat conftest.err >&5
 
19136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19137
  (exit $ac_status); } &&
 
19138
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19140
  (eval $ac_try) 2>&5
 
19141
  ac_status=$?
 
19142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19143
  (exit $ac_status); }; } &&
 
19144
         { ac_try='test -s conftest.$ac_objext'
 
19145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19146
  (eval $ac_try) 2>&5
 
19147
  ac_status=$?
 
19148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19149
  (exit $ac_status); }; }; then
 
19150
  ac_cv_prog_cc_g=yes
 
19151
else
 
19152
  echo "$as_me: failed program was:" >&5
 
19153
sed 's/^/| /' conftest.$ac_ext >&5
 
19154
 
 
19155
ac_cv_prog_cc_g=no
 
19156
fi
 
19157
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19158
fi
 
19159
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19160
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
19161
if test "$ac_test_CFLAGS" = set; then
 
19162
  CFLAGS=$ac_save_CFLAGS
 
19163
elif test $ac_cv_prog_cc_g = yes; then
 
19164
  if test "$GCC" = yes; then
 
19165
    CFLAGS="-g -O2"
 
19166
  else
 
19167
    CFLAGS="-g"
 
19168
  fi
 
19169
else
 
19170
  if test "$GCC" = yes; then
 
19171
    CFLAGS="-O2"
 
19172
  else
 
19173
    CFLAGS=
 
19174
  fi
 
19175
fi
 
19176
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19177
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19178
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
19179
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19180
else
 
19181
  ac_cv_prog_cc_stdc=no
 
19182
ac_save_CC=$CC
 
19183
cat >conftest.$ac_ext <<_ACEOF
 
19184
/* confdefs.h.  */
 
19185
_ACEOF
 
19186
cat confdefs.h >>conftest.$ac_ext
 
19187
cat >>conftest.$ac_ext <<_ACEOF
 
19188
/* end confdefs.h.  */
 
19189
#include <stdarg.h>
 
19190
#include <stdio.h>
 
19191
#include <sys/types.h>
 
19192
#include <sys/stat.h>
 
19193
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19194
struct buf { int x; };
 
19195
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19196
static char *e (p, i)
 
19197
     char **p;
 
19198
     int i;
 
19199
{
 
19200
  return p[i];
 
19201
}
 
19202
static char *f (char * (*g) (char **, int), char **p, ...)
 
19203
{
 
19204
  char *s;
 
19205
  va_list v;
 
19206
  va_start (v,p);
 
19207
  s = g (p, va_arg (v,int));
 
19208
  va_end (v);
 
19209
  return s;
 
19210
}
 
19211
 
 
19212
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19213
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19214
   These don't provoke an error unfortunately, instead are silently treated
 
19215
   as 'x'.  The following induces an error, until -std1 is added to get
 
19216
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19217
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19218
   that's true only with -std1.  */
 
19219
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19220
 
 
19221
int test (int i, double x);
 
19222
struct s1 {int (*f) (int a);};
 
19223
struct s2 {int (*f) (double a);};
 
19224
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19225
int argc;
 
19226
char **argv;
 
19227
int
 
19228
main ()
 
19229
{
 
19230
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19231
  ;
 
19232
  return 0;
 
19233
}
 
19234
_ACEOF
 
19235
# Don't try gcc -ansi; that turns off useful extensions and
 
19236
# breaks some systems' header files.
 
19237
# AIX                   -qlanglvl=ansi
 
19238
# Ultrix and OSF/1      -std1
 
19239
# HP-UX 10.20 and later -Ae
 
19240
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19241
# SVR4                  -Xc -D__EXTENSIONS__
 
19242
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19243
do
 
19244
  CC="$ac_save_CC $ac_arg"
 
19245
  rm -f conftest.$ac_objext
 
19246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19247
  (eval $ac_compile) 2>conftest.er1
 
19248
  ac_status=$?
 
19249
  grep -v '^ *+' conftest.er1 >conftest.err
 
19250
  rm -f conftest.er1
 
19251
  cat conftest.err >&5
 
19252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19253
  (exit $ac_status); } &&
 
19254
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19256
  (eval $ac_try) 2>&5
 
19257
  ac_status=$?
 
19258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19259
  (exit $ac_status); }; } &&
 
19260
         { ac_try='test -s conftest.$ac_objext'
 
19261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19262
  (eval $ac_try) 2>&5
 
19263
  ac_status=$?
 
19264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19265
  (exit $ac_status); }; }; then
 
19266
  ac_cv_prog_cc_stdc=$ac_arg
 
19267
break
 
19268
else
 
19269
  echo "$as_me: failed program was:" >&5
 
19270
sed 's/^/| /' conftest.$ac_ext >&5
 
19271
 
 
19272
fi
 
19273
rm -f conftest.err conftest.$ac_objext
 
19274
done
 
19275
rm -f conftest.$ac_ext conftest.$ac_objext
 
19276
CC=$ac_save_CC
 
19277
 
 
19278
fi
 
19279
 
 
19280
case "x$ac_cv_prog_cc_stdc" in
 
19281
  x|xno)
 
19282
    echo "$as_me:$LINENO: result: none needed" >&5
 
19283
echo "${ECHO_T}none needed" >&6 ;;
 
19284
  *)
 
19285
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19286
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19287
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
19288
esac
 
19289
 
 
19290
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19291
# in C++ we need to declare it.  In case someone uses the same compiler
 
19292
# for both compiling C and C++ we need to have the C++ compiler decide
 
19293
# the declaration of exit, since it's the most demanding environment.
 
19294
cat >conftest.$ac_ext <<_ACEOF
 
19295
#ifndef __cplusplus
 
19296
  choke me
 
19297
#endif
 
19298
_ACEOF
 
19299
rm -f conftest.$ac_objext
 
19300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19301
  (eval $ac_compile) 2>conftest.er1
 
19302
  ac_status=$?
 
19303
  grep -v '^ *+' conftest.er1 >conftest.err
 
19304
  rm -f conftest.er1
 
19305
  cat conftest.err >&5
 
19306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19307
  (exit $ac_status); } &&
 
19308
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19310
  (eval $ac_try) 2>&5
 
19311
  ac_status=$?
 
19312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19313
  (exit $ac_status); }; } &&
 
19314
         { ac_try='test -s conftest.$ac_objext'
 
19315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19316
  (eval $ac_try) 2>&5
 
19317
  ac_status=$?
 
19318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19319
  (exit $ac_status); }; }; then
 
19320
  for ac_declaration in \
 
19321
   '' \
 
19322
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19323
   'extern "C" void std::exit (int); using std::exit;' \
 
19324
   'extern "C" void exit (int) throw ();' \
 
19325
   'extern "C" void exit (int);' \
 
19326
   'void exit (int);'
 
19327
do
 
19328
  cat >conftest.$ac_ext <<_ACEOF
 
19329
/* confdefs.h.  */
 
19330
_ACEOF
 
19331
cat confdefs.h >>conftest.$ac_ext
 
19332
cat >>conftest.$ac_ext <<_ACEOF
 
19333
/* end confdefs.h.  */
 
19334
$ac_declaration
 
19335
#include <stdlib.h>
 
19336
int
 
19337
main ()
 
19338
{
 
19339
exit (42);
 
19340
  ;
 
19341
  return 0;
 
19342
}
 
19343
_ACEOF
 
19344
rm -f conftest.$ac_objext
 
19345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19346
  (eval $ac_compile) 2>conftest.er1
 
19347
  ac_status=$?
 
19348
  grep -v '^ *+' conftest.er1 >conftest.err
 
19349
  rm -f conftest.er1
 
19350
  cat conftest.err >&5
 
19351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19352
  (exit $ac_status); } &&
 
19353
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19355
  (eval $ac_try) 2>&5
 
19356
  ac_status=$?
 
19357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19358
  (exit $ac_status); }; } &&
 
19359
         { ac_try='test -s conftest.$ac_objext'
 
19360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19361
  (eval $ac_try) 2>&5
 
19362
  ac_status=$?
 
19363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19364
  (exit $ac_status); }; }; then
 
19365
  :
 
19366
else
 
19367
  echo "$as_me: failed program was:" >&5
 
19368
sed 's/^/| /' conftest.$ac_ext >&5
 
19369
 
 
19370
continue
 
19371
fi
 
19372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19373
  cat >conftest.$ac_ext <<_ACEOF
 
19374
/* confdefs.h.  */
 
19375
_ACEOF
 
19376
cat confdefs.h >>conftest.$ac_ext
 
19377
cat >>conftest.$ac_ext <<_ACEOF
 
19378
/* end confdefs.h.  */
 
19379
$ac_declaration
 
19380
int
 
19381
main ()
 
19382
{
 
19383
exit (42);
 
19384
  ;
 
19385
  return 0;
 
19386
}
 
19387
_ACEOF
 
19388
rm -f conftest.$ac_objext
 
19389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19390
  (eval $ac_compile) 2>conftest.er1
 
19391
  ac_status=$?
 
19392
  grep -v '^ *+' conftest.er1 >conftest.err
 
19393
  rm -f conftest.er1
 
19394
  cat conftest.err >&5
 
19395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19396
  (exit $ac_status); } &&
 
19397
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19399
  (eval $ac_try) 2>&5
 
19400
  ac_status=$?
 
19401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19402
  (exit $ac_status); }; } &&
 
19403
         { ac_try='test -s conftest.$ac_objext'
 
19404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19405
  (eval $ac_try) 2>&5
 
19406
  ac_status=$?
 
19407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19408
  (exit $ac_status); }; }; then
 
19409
  break
 
19410
else
 
19411
  echo "$as_me: failed program was:" >&5
 
19412
sed 's/^/| /' conftest.$ac_ext >&5
 
19413
 
 
19414
fi
 
19415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19416
done
 
19417
rm -f conftest*
 
19418
if test -n "$ac_declaration"; then
 
19419
  echo '#ifdef __cplusplus' >>confdefs.h
 
19420
  echo $ac_declaration      >>confdefs.h
 
19421
  echo '#endif'             >>confdefs.h
 
19422
fi
 
19423
 
 
19424
else
 
19425
  echo "$as_me: failed program was:" >&5
 
19426
sed 's/^/| /' conftest.$ac_ext >&5
 
19427
 
 
19428
fi
 
19429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19430
ac_ext=c
 
19431
ac_cpp='$CPP $CPPFLAGS'
 
19432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19435
 
 
19436
#AC_PROG_RANLIB
 
19437
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
19438
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
19439
LN_S=$as_ln_s
 
19440
if test "$LN_S" = "ln -s"; then
 
19441
  echo "$as_me:$LINENO: result: yes" >&5
 
19442
echo "${ECHO_T}yes" >&6
 
19443
else
 
19444
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
19445
echo "${ECHO_T}no, using $LN_S" >&6
 
19446
fi
 
19447
 
 
19448
if test $ac_cv_c_compiler_gnu = yes; then
 
19449
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
19450
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
19451
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
19452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19453
else
 
19454
    ac_pattern="Autoconf.*'x'"
 
19455
  cat >conftest.$ac_ext <<_ACEOF
 
19456
/* confdefs.h.  */
 
19457
_ACEOF
 
19458
cat confdefs.h >>conftest.$ac_ext
 
19459
cat >>conftest.$ac_ext <<_ACEOF
 
19460
/* end confdefs.h.  */
 
19461
#include <sgtty.h>
 
19462
Autoconf TIOCGETP
 
19463
_ACEOF
 
19464
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19465
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
19466
  ac_cv_prog_gcc_traditional=yes
 
19467
else
 
19468
  ac_cv_prog_gcc_traditional=no
 
19469
fi
 
19470
rm -f conftest*
 
19471
 
 
19472
 
 
19473
  if test $ac_cv_prog_gcc_traditional = no; then
 
19474
    cat >conftest.$ac_ext <<_ACEOF
 
19475
/* confdefs.h.  */
 
19476
_ACEOF
 
19477
cat confdefs.h >>conftest.$ac_ext
 
19478
cat >>conftest.$ac_ext <<_ACEOF
 
19479
/* end confdefs.h.  */
 
19480
#include <termio.h>
 
19481
Autoconf TCGETA
 
19482
_ACEOF
 
19483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19484
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
19485
  ac_cv_prog_gcc_traditional=yes
 
19486
fi
 
19487
rm -f conftest*
 
19488
 
 
19489
  fi
 
19490
fi
 
19491
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
19492
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
19493
  if test $ac_cv_prog_gcc_traditional = yes; then
 
19494
    CC="$CC -traditional"
 
19495
  fi
 
19496
fi
 
19497
 
 
19498
 
 
19499
 
 
19500
 
 
19501
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19502
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19503
 
 
19504
 
 
19505
_bindir=`eval echo $bindir`
 
19506
_bindir=`eval echo $_bindir`
 
19507
 
 
19508
_libdir=`eval echo $libdir`
 
19509
_libdir=`eval echo $_libdir`
 
19510
lib_search_path="-L$_libdir"
 
19511
 
 
19512
inc_search_path=`eval echo $includedir`
 
19513
inc_search_path="-I`eval echo $inc_search_path`"
 
19514
 
 
19515
 
 
19516
 
 
19517
 
 
19518
 
 
19519
 
 
19520
# Check whether --with-libs-from or --without-libs-from was given.
 
19521
if test "${with_libs_from+set}" = set; then
 
19522
  withval="$with_libs_from"
 
19523
  lib_search_path="$withval $lib_search_path"
 
19524
fi;
 
19525
 
 
19526
 
 
19527
# Check whether --with-incs-from or --without-incs-from was given.
 
19528
if test "${with_incs_from+set}" = set; then
 
19529
  withval="$with_incs_from"
 
19530
  inc_search_path="$withval $inc_search_path"
 
19531
fi;
 
19532
 
 
19533
 
 
19534
 
 
19535
 
 
19536
for ac_func in vprintf
 
19537
do
 
19538
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19539
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19540
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19541
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19543
else
 
19544
  cat >conftest.$ac_ext <<_ACEOF
 
19545
/* confdefs.h.  */
 
19546
_ACEOF
 
19547
cat confdefs.h >>conftest.$ac_ext
 
19548
cat >>conftest.$ac_ext <<_ACEOF
 
19549
/* end confdefs.h.  */
 
19550
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19551
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19552
#define $ac_func innocuous_$ac_func
 
19553
 
 
19554
/* System header to define __stub macros and hopefully few prototypes,
 
19555
    which can conflict with char $ac_func (); below.
 
19556
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19557
    <limits.h> exists even on freestanding compilers.  */
 
19558
 
 
19559
#ifdef __STDC__
 
19560
# include <limits.h>
 
19561
#else
 
19562
# include <assert.h>
 
19563
#endif
 
19564
 
 
19565
#undef $ac_func
 
19566
 
 
19567
/* Override any gcc2 internal prototype to avoid an error.  */
 
19568
#ifdef __cplusplus
 
19569
extern "C"
 
19570
{
 
19571
#endif
 
19572
/* We use char because int might match the return type of a gcc2
 
19573
   builtin and then its argument prototype would still apply.  */
 
19574
char $ac_func ();
 
19575
/* The GNU C library defines this for functions which it implements
 
19576
    to always fail with ENOSYS.  Some functions are actually named
 
19577
    something starting with __ and the normal name is an alias.  */
 
19578
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19579
choke me
 
19580
#else
 
19581
char (*f) () = $ac_func;
 
19582
#endif
 
19583
#ifdef __cplusplus
 
19584
}
 
19585
#endif
 
19586
 
 
19587
int
 
19588
main ()
 
19589
{
 
19590
return f != $ac_func;
 
19591
  ;
 
19592
  return 0;
 
19593
}
 
19594
_ACEOF
 
19595
rm -f conftest.$ac_objext conftest$ac_exeext
 
19596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19597
  (eval $ac_link) 2>conftest.er1
 
19598
  ac_status=$?
 
19599
  grep -v '^ *+' conftest.er1 >conftest.err
 
19600
  rm -f conftest.er1
 
19601
  cat conftest.err >&5
 
19602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19603
  (exit $ac_status); } &&
 
19604
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19606
  (eval $ac_try) 2>&5
 
19607
  ac_status=$?
 
19608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19609
  (exit $ac_status); }; } &&
 
19610
         { ac_try='test -s conftest$ac_exeext'
 
19611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19612
  (eval $ac_try) 2>&5
 
19613
  ac_status=$?
 
19614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19615
  (exit $ac_status); }; }; then
 
19616
  eval "$as_ac_var=yes"
 
19617
else
 
19618
  echo "$as_me: failed program was:" >&5
 
19619
sed 's/^/| /' conftest.$ac_ext >&5
 
19620
 
 
19621
eval "$as_ac_var=no"
 
19622
fi
 
19623
rm -f conftest.err conftest.$ac_objext \
 
19624
      conftest$ac_exeext conftest.$ac_ext
 
19625
fi
 
19626
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19627
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19628
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19629
  cat >>confdefs.h <<_ACEOF
 
19630
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19631
_ACEOF
 
19632
 
 
19633
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
19634
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
19635
if test "${ac_cv_func__doprnt+set}" = set; then
 
19636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19637
else
 
19638
  cat >conftest.$ac_ext <<_ACEOF
 
19639
/* confdefs.h.  */
 
19640
_ACEOF
 
19641
cat confdefs.h >>conftest.$ac_ext
 
19642
cat >>conftest.$ac_ext <<_ACEOF
 
19643
/* end confdefs.h.  */
 
19644
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
19645
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19646
#define _doprnt innocuous__doprnt
 
19647
 
 
19648
/* System header to define __stub macros and hopefully few prototypes,
 
19649
    which can conflict with char _doprnt (); below.
 
19650
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19651
    <limits.h> exists even on freestanding compilers.  */
 
19652
 
 
19653
#ifdef __STDC__
 
19654
# include <limits.h>
 
19655
#else
 
19656
# include <assert.h>
 
19657
#endif
 
19658
 
 
19659
#undef _doprnt
 
19660
 
 
19661
/* Override any gcc2 internal prototype to avoid an error.  */
 
19662
#ifdef __cplusplus
 
19663
extern "C"
 
19664
{
 
19665
#endif
 
19666
/* We use char because int might match the return type of a gcc2
 
19667
   builtin and then its argument prototype would still apply.  */
 
19668
char _doprnt ();
 
19669
/* The GNU C library defines this for functions which it implements
 
19670
    to always fail with ENOSYS.  Some functions are actually named
 
19671
    something starting with __ and the normal name is an alias.  */
 
19672
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
19673
choke me
 
19674
#else
 
19675
char (*f) () = _doprnt;
 
19676
#endif
 
19677
#ifdef __cplusplus
 
19678
}
 
19679
#endif
 
19680
 
 
19681
int
 
19682
main ()
 
19683
{
 
19684
return f != _doprnt;
 
19685
  ;
 
19686
  return 0;
 
19687
}
 
19688
_ACEOF
 
19689
rm -f conftest.$ac_objext conftest$ac_exeext
 
19690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19691
  (eval $ac_link) 2>conftest.er1
 
19692
  ac_status=$?
 
19693
  grep -v '^ *+' conftest.er1 >conftest.err
 
19694
  rm -f conftest.er1
 
19695
  cat conftest.err >&5
 
19696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19697
  (exit $ac_status); } &&
 
19698
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19700
  (eval $ac_try) 2>&5
 
19701
  ac_status=$?
 
19702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19703
  (exit $ac_status); }; } &&
 
19704
         { ac_try='test -s conftest$ac_exeext'
 
19705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19706
  (eval $ac_try) 2>&5
 
19707
  ac_status=$?
 
19708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19709
  (exit $ac_status); }; }; then
 
19710
  ac_cv_func__doprnt=yes
 
19711
else
 
19712
  echo "$as_me: failed program was:" >&5
 
19713
sed 's/^/| /' conftest.$ac_ext >&5
 
19714
 
 
19715
ac_cv_func__doprnt=no
 
19716
fi
 
19717
rm -f conftest.err conftest.$ac_objext \
 
19718
      conftest$ac_exeext conftest.$ac_ext
 
19719
fi
 
19720
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
19721
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
19722
if test $ac_cv_func__doprnt = yes; then
 
19723
 
 
19724
cat >>confdefs.h <<\_ACEOF
 
19725
#define HAVE_DOPRNT 1
 
19726
_ACEOF
 
19727
 
 
19728
fi
 
19729
 
 
19730
fi
 
19731
done
 
19732
 
 
19733
 
 
19734
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
19735
# for constant arguments.  Useless!
 
19736
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
19737
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
19738
if test "${ac_cv_working_alloca_h+set}" = set; then
 
19739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19740
else
 
19741
  cat >conftest.$ac_ext <<_ACEOF
 
19742
/* confdefs.h.  */
 
19743
_ACEOF
 
19744
cat confdefs.h >>conftest.$ac_ext
 
19745
cat >>conftest.$ac_ext <<_ACEOF
 
19746
/* end confdefs.h.  */
 
19747
#include <alloca.h>
 
19748
int
 
19749
main ()
 
19750
{
 
19751
char *p = (char *) alloca (2 * sizeof (int));
 
19752
  ;
 
19753
  return 0;
 
19754
}
 
19755
_ACEOF
 
19756
rm -f conftest.$ac_objext conftest$ac_exeext
 
19757
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19758
  (eval $ac_link) 2>conftest.er1
 
19759
  ac_status=$?
 
19760
  grep -v '^ *+' conftest.er1 >conftest.err
 
19761
  rm -f conftest.er1
 
19762
  cat conftest.err >&5
 
19763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19764
  (exit $ac_status); } &&
 
19765
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19767
  (eval $ac_try) 2>&5
 
19768
  ac_status=$?
 
19769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19770
  (exit $ac_status); }; } &&
 
19771
         { ac_try='test -s conftest$ac_exeext'
 
19772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19773
  (eval $ac_try) 2>&5
 
19774
  ac_status=$?
 
19775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19776
  (exit $ac_status); }; }; then
 
19777
  ac_cv_working_alloca_h=yes
 
19778
else
 
19779
  echo "$as_me: failed program was:" >&5
 
19780
sed 's/^/| /' conftest.$ac_ext >&5
 
19781
 
 
19782
ac_cv_working_alloca_h=no
 
19783
fi
 
19784
rm -f conftest.err conftest.$ac_objext \
 
19785
      conftest$ac_exeext conftest.$ac_ext
 
19786
fi
 
19787
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
19788
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
19789
if test $ac_cv_working_alloca_h = yes; then
 
19790
 
 
19791
cat >>confdefs.h <<\_ACEOF
 
19792
#define HAVE_ALLOCA_H 1
 
19793
_ACEOF
 
19794
 
 
19795
fi
 
19796
 
 
19797
echo "$as_me:$LINENO: checking for alloca" >&5
 
19798
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
19799
if test "${ac_cv_func_alloca_works+set}" = set; then
 
19800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19801
else
 
19802
  cat >conftest.$ac_ext <<_ACEOF
 
19803
/* confdefs.h.  */
 
19804
_ACEOF
 
19805
cat confdefs.h >>conftest.$ac_ext
 
19806
cat >>conftest.$ac_ext <<_ACEOF
 
19807
/* end confdefs.h.  */
 
19808
#ifdef __GNUC__
 
19809
# define alloca __builtin_alloca
 
19810
#else
 
19811
# ifdef _MSC_VER
 
19812
#  include <malloc.h>
 
19813
#  define alloca _alloca
 
19814
# else
 
19815
#  if HAVE_ALLOCA_H
 
19816
#   include <alloca.h>
 
19817
#  else
 
19818
#   ifdef _AIX
 
19819
 #pragma alloca
 
19820
#   else
 
19821
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
19822
char *alloca ();
 
19823
#    endif
 
19824
#   endif
 
19825
#  endif
 
19826
# endif
 
19827
#endif
 
19828
 
 
19829
int
 
19830
main ()
 
19831
{
 
19832
char *p = (char *) alloca (1);
 
19833
  ;
 
19834
  return 0;
 
19835
}
 
19836
_ACEOF
 
19837
rm -f conftest.$ac_objext conftest$ac_exeext
 
19838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19839
  (eval $ac_link) 2>conftest.er1
 
19840
  ac_status=$?
 
19841
  grep -v '^ *+' conftest.er1 >conftest.err
 
19842
  rm -f conftest.er1
 
19843
  cat conftest.err >&5
 
19844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19845
  (exit $ac_status); } &&
 
19846
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19848
  (eval $ac_try) 2>&5
 
19849
  ac_status=$?
 
19850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19851
  (exit $ac_status); }; } &&
 
19852
         { ac_try='test -s conftest$ac_exeext'
 
19853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19854
  (eval $ac_try) 2>&5
 
19855
  ac_status=$?
 
19856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19857
  (exit $ac_status); }; }; then
 
19858
  ac_cv_func_alloca_works=yes
 
19859
else
 
19860
  echo "$as_me: failed program was:" >&5
 
19861
sed 's/^/| /' conftest.$ac_ext >&5
 
19862
 
 
19863
ac_cv_func_alloca_works=no
 
19864
fi
 
19865
rm -f conftest.err conftest.$ac_objext \
 
19866
      conftest$ac_exeext conftest.$ac_ext
 
19867
fi
 
19868
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
19869
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
19870
 
 
19871
if test $ac_cv_func_alloca_works = yes; then
 
19872
 
 
19873
cat >>confdefs.h <<\_ACEOF
 
19874
#define HAVE_ALLOCA 1
 
19875
_ACEOF
 
19876
 
 
19877
else
 
19878
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
19879
# that cause trouble.  Some versions do not even contain alloca or
 
19880
# contain a buggy version.  If you still want to use their alloca,
 
19881
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
19882
 
 
19883
ALLOCA=alloca.$ac_objext
 
19884
 
 
19885
cat >>confdefs.h <<\_ACEOF
 
19886
#define C_ALLOCA 1
 
19887
_ACEOF
 
19888
 
 
19889
 
 
19890
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
19891
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
19892
if test "${ac_cv_os_cray+set}" = set; then
 
19893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19894
else
 
19895
  cat >conftest.$ac_ext <<_ACEOF
 
19896
/* confdefs.h.  */
 
19897
_ACEOF
 
19898
cat confdefs.h >>conftest.$ac_ext
 
19899
cat >>conftest.$ac_ext <<_ACEOF
 
19900
/* end confdefs.h.  */
 
19901
#if defined(CRAY) && ! defined(CRAY2)
 
19902
webecray
 
19903
#else
 
19904
wenotbecray
 
19905
#endif
 
19906
 
 
19907
_ACEOF
 
19908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19909
  $EGREP "webecray" >/dev/null 2>&1; then
 
19910
  ac_cv_os_cray=yes
 
19911
else
 
19912
  ac_cv_os_cray=no
 
19913
fi
 
19914
rm -f conftest*
 
19915
 
 
19916
fi
 
19917
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
19918
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
19919
if test $ac_cv_os_cray = yes; then
 
19920
  for ac_func in _getb67 GETB67 getb67; do
 
19921
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19922
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19923
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19924
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19926
else
 
19927
  cat >conftest.$ac_ext <<_ACEOF
 
19928
/* confdefs.h.  */
 
19929
_ACEOF
 
19930
cat confdefs.h >>conftest.$ac_ext
 
19931
cat >>conftest.$ac_ext <<_ACEOF
 
19932
/* end confdefs.h.  */
 
19933
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19934
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19935
#define $ac_func innocuous_$ac_func
 
19936
 
 
19937
/* System header to define __stub macros and hopefully few prototypes,
 
19938
    which can conflict with char $ac_func (); below.
 
19939
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19940
    <limits.h> exists even on freestanding compilers.  */
 
19941
 
 
19942
#ifdef __STDC__
 
19943
# include <limits.h>
 
19944
#else
 
19945
# include <assert.h>
 
19946
#endif
 
19947
 
 
19948
#undef $ac_func
 
19949
 
 
19950
/* Override any gcc2 internal prototype to avoid an error.  */
 
19951
#ifdef __cplusplus
 
19952
extern "C"
 
19953
{
 
19954
#endif
 
19955
/* We use char because int might match the return type of a gcc2
 
19956
   builtin and then its argument prototype would still apply.  */
 
19957
char $ac_func ();
 
19958
/* The GNU C library defines this for functions which it implements
 
19959
    to always fail with ENOSYS.  Some functions are actually named
 
19960
    something starting with __ and the normal name is an alias.  */
 
19961
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19962
choke me
 
19963
#else
 
19964
char (*f) () = $ac_func;
 
19965
#endif
 
19966
#ifdef __cplusplus
 
19967
}
 
19968
#endif
 
19969
 
 
19970
int
 
19971
main ()
 
19972
{
 
19973
return f != $ac_func;
 
19974
  ;
 
19975
  return 0;
 
19976
}
 
19977
_ACEOF
 
19978
rm -f conftest.$ac_objext conftest$ac_exeext
 
19979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19980
  (eval $ac_link) 2>conftest.er1
 
19981
  ac_status=$?
 
19982
  grep -v '^ *+' conftest.er1 >conftest.err
 
19983
  rm -f conftest.er1
 
19984
  cat conftest.err >&5
 
19985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19986
  (exit $ac_status); } &&
 
19987
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19989
  (eval $ac_try) 2>&5
 
19990
  ac_status=$?
 
19991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19992
  (exit $ac_status); }; } &&
 
19993
         { ac_try='test -s conftest$ac_exeext'
 
19994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19995
  (eval $ac_try) 2>&5
 
19996
  ac_status=$?
 
19997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19998
  (exit $ac_status); }; }; then
 
19999
  eval "$as_ac_var=yes"
 
20000
else
 
20001
  echo "$as_me: failed program was:" >&5
 
20002
sed 's/^/| /' conftest.$ac_ext >&5
 
20003
 
 
20004
eval "$as_ac_var=no"
 
20005
fi
 
20006
rm -f conftest.err conftest.$ac_objext \
 
20007
      conftest$ac_exeext conftest.$ac_ext
 
20008
fi
 
20009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20010
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20011
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20012
 
 
20013
cat >>confdefs.h <<_ACEOF
 
20014
#define CRAY_STACKSEG_END $ac_func
 
20015
_ACEOF
 
20016
 
 
20017
    break
 
20018
fi
 
20019
 
 
20020
  done
 
20021
fi
 
20022
 
 
20023
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
20024
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
20025
if test "${ac_cv_c_stack_direction+set}" = set; then
 
20026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20027
else
 
20028
  if test "$cross_compiling" = yes; then
 
20029
  ac_cv_c_stack_direction=0
 
20030
else
 
20031
  cat >conftest.$ac_ext <<_ACEOF
 
20032
/* confdefs.h.  */
 
20033
_ACEOF
 
20034
cat confdefs.h >>conftest.$ac_ext
 
20035
cat >>conftest.$ac_ext <<_ACEOF
 
20036
/* end confdefs.h.  */
 
20037
int
 
20038
find_stack_direction ()
 
20039
{
 
20040
  static char *addr = 0;
 
20041
  auto char dummy;
 
20042
  if (addr == 0)
 
20043
    {
 
20044
      addr = &dummy;
 
20045
      return find_stack_direction ();
 
20046
    }
 
20047
  else
 
20048
    return (&dummy > addr) ? 1 : -1;
 
20049
}
 
20050
 
 
20051
int
 
20052
main ()
 
20053
{
 
20054
  exit (find_stack_direction () < 0);
 
20055
}
 
20056
_ACEOF
 
20057
rm -f conftest$ac_exeext
 
20058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20059
  (eval $ac_link) 2>&5
 
20060
  ac_status=$?
 
20061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20062
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20064
  (eval $ac_try) 2>&5
 
20065
  ac_status=$?
 
20066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20067
  (exit $ac_status); }; }; then
 
20068
  ac_cv_c_stack_direction=1
 
20069
else
 
20070
  echo "$as_me: program exited with status $ac_status" >&5
 
20071
echo "$as_me: failed program was:" >&5
 
20072
sed 's/^/| /' conftest.$ac_ext >&5
 
20073
 
 
20074
( exit $ac_status )
 
20075
ac_cv_c_stack_direction=-1
 
20076
fi
 
20077
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20078
fi
 
20079
fi
 
20080
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
20081
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
20082
 
 
20083
cat >>confdefs.h <<_ACEOF
 
20084
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
20085
_ACEOF
 
20086
 
 
20087
 
 
20088
fi
 
20089
 
 
20090
 
 
20091
 
 
20092
 
 
20093
 
 
20094
 
 
20095
 
 
20096
 
 
20097
 
 
20098
 
 
20099
 
 
20100
 
 
20101
 
 
20102
 
 
20103
 
 
20104
for ac_func in gethostname select poll strerror strcasecmp strncasecmp \
 
20105
               setsid atexit mallinfo mkstemp snprintf vsnprintf asprintf \
 
20106
               vasprintf
 
20107
do
 
20108
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20109
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20110
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20111
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20113
else
 
20114
  cat >conftest.$ac_ext <<_ACEOF
 
20115
/* confdefs.h.  */
 
20116
_ACEOF
 
20117
cat confdefs.h >>conftest.$ac_ext
 
20118
cat >>conftest.$ac_ext <<_ACEOF
 
20119
/* end confdefs.h.  */
 
20120
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20121
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20122
#define $ac_func innocuous_$ac_func
 
20123
 
 
20124
/* System header to define __stub macros and hopefully few prototypes,
 
20125
    which can conflict with char $ac_func (); below.
 
20126
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20127
    <limits.h> exists even on freestanding compilers.  */
 
20128
 
 
20129
#ifdef __STDC__
 
20130
# include <limits.h>
 
20131
#else
 
20132
# include <assert.h>
 
20133
#endif
 
20134
 
 
20135
#undef $ac_func
 
20136
 
 
20137
/* Override any gcc2 internal prototype to avoid an error.  */
 
20138
#ifdef __cplusplus
 
20139
extern "C"
 
20140
{
 
20141
#endif
 
20142
/* We use char because int might match the return type of a gcc2
 
20143
   builtin and then its argument prototype would still apply.  */
 
20144
char $ac_func ();
 
20145
/* The GNU C library defines this for functions which it implements
 
20146
    to always fail with ENOSYS.  Some functions are actually named
 
20147
    something starting with __ and the normal name is an alias.  */
 
20148
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20149
choke me
 
20150
#else
 
20151
char (*f) () = $ac_func;
 
20152
#endif
 
20153
#ifdef __cplusplus
 
20154
}
 
20155
#endif
 
20156
 
 
20157
int
 
20158
main ()
 
20159
{
 
20160
return f != $ac_func;
 
20161
  ;
 
20162
  return 0;
 
20163
}
 
20164
_ACEOF
 
20165
rm -f conftest.$ac_objext conftest$ac_exeext
 
20166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20167
  (eval $ac_link) 2>conftest.er1
 
20168
  ac_status=$?
 
20169
  grep -v '^ *+' conftest.er1 >conftest.err
 
20170
  rm -f conftest.er1
 
20171
  cat conftest.err >&5
 
20172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20173
  (exit $ac_status); } &&
 
20174
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20176
  (eval $ac_try) 2>&5
 
20177
  ac_status=$?
 
20178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20179
  (exit $ac_status); }; } &&
 
20180
         { ac_try='test -s conftest$ac_exeext'
 
20181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20182
  (eval $ac_try) 2>&5
 
20183
  ac_status=$?
 
20184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20185
  (exit $ac_status); }; }; then
 
20186
  eval "$as_ac_var=yes"
 
20187
else
 
20188
  echo "$as_me: failed program was:" >&5
 
20189
sed 's/^/| /' conftest.$ac_ext >&5
 
20190
 
 
20191
eval "$as_ac_var=no"
 
20192
fi
 
20193
rm -f conftest.err conftest.$ac_objext \
 
20194
      conftest$ac_exeext conftest.$ac_ext
 
20195
fi
 
20196
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20197
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20198
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20199
  cat >>confdefs.h <<_ACEOF
 
20200
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20201
_ACEOF
 
20202
 
 
20203
fi
 
20204
done
 
20205
 
 
20206
 
 
20207
echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
 
20208
echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
 
20209
if test "${_cv_HAVE_C99_VSNPRINTF+set}" = set; then
 
20210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20211
else
 
20212
 
 
20213
if test "$cross_compiling" = yes; then
 
20214
  _cv_HAVE_C99_VSNPRINTF=cross
 
20215
else
 
20216
  cat >conftest.$ac_ext <<_ACEOF
 
20217
/* confdefs.h.  */
 
20218
_ACEOF
 
20219
cat confdefs.h >>conftest.$ac_ext
 
20220
cat >>conftest.$ac_ext <<_ACEOF
 
20221
/* end confdefs.h.  */
 
20222
 
 
20223
#include <sys/types.h>
 
20224
#include <stdarg.h>
 
20225
void foo(const char *format, ...) {
 
20226
       va_list ap;
 
20227
       int len;
 
20228
       char buf[5];
 
20229
 
 
20230
       va_start(ap, format);
 
20231
       len = vsnprintf(0, 0, format, ap);
 
20232
       va_end(ap);
 
20233
       if (len != 5) exit(1);
 
20234
 
 
20235
       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
 
20236
 
 
20237
       exit(0);
 
20238
}
 
20239
main() { foo("hello"); }
 
20240
 
 
20241
_ACEOF
 
20242
rm -f conftest$ac_exeext
 
20243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20244
  (eval $ac_link) 2>&5
 
20245
  ac_status=$?
 
20246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20247
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20249
  (eval $ac_try) 2>&5
 
20250
  ac_status=$?
 
20251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20252
  (exit $ac_status); }; }; then
 
20253
  _cv_HAVE_C99_VSNPRINTF=yes
 
20254
else
 
20255
  echo "$as_me: program exited with status $ac_status" >&5
 
20256
echo "$as_me: failed program was:" >&5
 
20257
sed 's/^/| /' conftest.$ac_ext >&5
 
20258
 
 
20259
( exit $ac_status )
 
20260
_cv_HAVE_C99_VSNPRINTF=no
 
20261
fi
 
20262
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20263
fi
 
20264
fi
 
20265
echo "$as_me:$LINENO: result: $_cv_HAVE_C99_VSNPRINTF" >&5
 
20266
echo "${ECHO_T}$_cv_HAVE_C99_VSNPRINTF" >&6
 
20267
if test x"$_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
 
20268
 
 
20269
cat >>confdefs.h <<\_ACEOF
 
20270
#define HAVE_C99_VSNPRINTF 1
 
20271
_ACEOF
 
20272
 
 
20273
fi
 
20274
 
 
20275
DLLIBS=""
 
20276
 
 
20277
echo "$as_me:$LINENO: checking for dlopen" >&5
 
20278
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
20279
if test "${ac_cv_func_dlopen+set}" = set; then
 
20280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20281
else
 
20282
  cat >conftest.$ac_ext <<_ACEOF
 
20283
/* confdefs.h.  */
 
20284
_ACEOF
 
20285
cat confdefs.h >>conftest.$ac_ext
 
20286
cat >>conftest.$ac_ext <<_ACEOF
 
20287
/* end confdefs.h.  */
 
20288
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
20289
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20290
#define dlopen innocuous_dlopen
 
20291
 
 
20292
/* System header to define __stub macros and hopefully few prototypes,
 
20293
    which can conflict with char dlopen (); below.
 
20294
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20295
    <limits.h> exists even on freestanding compilers.  */
 
20296
 
 
20297
#ifdef __STDC__
 
20298
# include <limits.h>
 
20299
#else
 
20300
# include <assert.h>
 
20301
#endif
 
20302
 
 
20303
#undef dlopen
 
20304
 
 
20305
/* Override any gcc2 internal prototype to avoid an error.  */
 
20306
#ifdef __cplusplus
 
20307
extern "C"
 
20308
{
 
20309
#endif
 
20310
/* We use char because int might match the return type of a gcc2
 
20311
   builtin and then its argument prototype would still apply.  */
 
20312
char dlopen ();
 
20313
/* The GNU C library defines this for functions which it implements
 
20314
    to always fail with ENOSYS.  Some functions are actually named
 
20315
    something starting with __ and the normal name is an alias.  */
 
20316
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
20317
choke me
 
20318
#else
 
20319
char (*f) () = dlopen;
 
20320
#endif
 
20321
#ifdef __cplusplus
 
20322
}
 
20323
#endif
 
20324
 
 
20325
int
 
20326
main ()
 
20327
{
 
20328
return f != dlopen;
 
20329
  ;
 
20330
  return 0;
 
20331
}
 
20332
_ACEOF
 
20333
rm -f conftest.$ac_objext conftest$ac_exeext
 
20334
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20335
  (eval $ac_link) 2>conftest.er1
 
20336
  ac_status=$?
 
20337
  grep -v '^ *+' conftest.er1 >conftest.err
 
20338
  rm -f conftest.er1
 
20339
  cat conftest.err >&5
 
20340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20341
  (exit $ac_status); } &&
 
20342
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20344
  (eval $ac_try) 2>&5
 
20345
  ac_status=$?
 
20346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20347
  (exit $ac_status); }; } &&
 
20348
         { ac_try='test -s conftest$ac_exeext'
 
20349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20350
  (eval $ac_try) 2>&5
 
20351
  ac_status=$?
 
20352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20353
  (exit $ac_status); }; }; then
 
20354
  ac_cv_func_dlopen=yes
 
20355
else
 
20356
  echo "$as_me: failed program was:" >&5
 
20357
sed 's/^/| /' conftest.$ac_ext >&5
 
20358
 
 
20359
ac_cv_func_dlopen=no
 
20360
fi
 
20361
rm -f conftest.err conftest.$ac_objext \
 
20362
      conftest$ac_exeext conftest.$ac_ext
 
20363
fi
 
20364
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
20365
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
20366
if test $ac_cv_func_dlopen = yes; then
 
20367
  HAVEDL="yes"
 
20368
else
 
20369
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20370
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20371
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20373
else
 
20374
  ac_check_lib_save_LIBS=$LIBS
 
20375
LIBS="-ldl  $LIBS"
 
20376
cat >conftest.$ac_ext <<_ACEOF
 
20377
/* confdefs.h.  */
 
20378
_ACEOF
 
20379
cat confdefs.h >>conftest.$ac_ext
 
20380
cat >>conftest.$ac_ext <<_ACEOF
 
20381
/* end confdefs.h.  */
 
20382
 
 
20383
/* Override any gcc2 internal prototype to avoid an error.  */
 
20384
#ifdef __cplusplus
 
20385
extern "C"
 
20386
#endif
 
20387
/* We use char because int might match the return type of a gcc2
 
20388
   builtin and then its argument prototype would still apply.  */
 
20389
char dlopen ();
 
20390
int
 
20391
main ()
 
20392
{
 
20393
dlopen ();
 
20394
  ;
 
20395
  return 0;
 
20396
}
 
20397
_ACEOF
 
20398
rm -f conftest.$ac_objext conftest$ac_exeext
 
20399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20400
  (eval $ac_link) 2>conftest.er1
 
20401
  ac_status=$?
 
20402
  grep -v '^ *+' conftest.er1 >conftest.err
 
20403
  rm -f conftest.er1
 
20404
  cat conftest.err >&5
 
20405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20406
  (exit $ac_status); } &&
 
20407
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20409
  (eval $ac_try) 2>&5
 
20410
  ac_status=$?
 
20411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20412
  (exit $ac_status); }; } &&
 
20413
         { ac_try='test -s conftest$ac_exeext'
 
20414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20415
  (eval $ac_try) 2>&5
 
20416
  ac_status=$?
 
20417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20418
  (exit $ac_status); }; }; then
 
20419
  ac_cv_lib_dl_dlopen=yes
 
20420
else
 
20421
  echo "$as_me: failed program was:" >&5
 
20422
sed 's/^/| /' conftest.$ac_ext >&5
 
20423
 
 
20424
ac_cv_lib_dl_dlopen=no
 
20425
fi
 
20426
rm -f conftest.err conftest.$ac_objext \
 
20427
      conftest$ac_exeext conftest.$ac_ext
 
20428
LIBS=$ac_check_lib_save_LIBS
 
20429
fi
 
20430
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20431
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20432
if test $ac_cv_lib_dl_dlopen = yes; then
 
20433
  DLLIBS="-ldl" HAVEDL="yes"
 
20434
else
 
20435
  DLLIBS=""
 
20436
fi
 
20437
 
 
20438
fi
 
20439
 
 
20440
 
 
20441
if test "x$HAVEDL" = xyes; then
 
20442
 
 
20443
for ac_header in dlfcn.h
 
20444
do
 
20445
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20446
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20447
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20448
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20449
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20451
fi
 
20452
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20453
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20454
else
 
20455
  # Is the header compilable?
 
20456
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20457
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20458
cat >conftest.$ac_ext <<_ACEOF
 
20459
/* confdefs.h.  */
 
20460
_ACEOF
 
20461
cat confdefs.h >>conftest.$ac_ext
 
20462
cat >>conftest.$ac_ext <<_ACEOF
 
20463
/* end confdefs.h.  */
 
20464
$ac_includes_default
 
20465
#include <$ac_header>
 
20466
_ACEOF
 
20467
rm -f conftest.$ac_objext
 
20468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20469
  (eval $ac_compile) 2>conftest.er1
 
20470
  ac_status=$?
 
20471
  grep -v '^ *+' conftest.er1 >conftest.err
 
20472
  rm -f conftest.er1
 
20473
  cat conftest.err >&5
 
20474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20475
  (exit $ac_status); } &&
 
20476
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20478
  (eval $ac_try) 2>&5
 
20479
  ac_status=$?
 
20480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20481
  (exit $ac_status); }; } &&
 
20482
         { ac_try='test -s conftest.$ac_objext'
 
20483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20484
  (eval $ac_try) 2>&5
 
20485
  ac_status=$?
 
20486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20487
  (exit $ac_status); }; }; then
 
20488
  ac_header_compiler=yes
 
20489
else
 
20490
  echo "$as_me: failed program was:" >&5
 
20491
sed 's/^/| /' conftest.$ac_ext >&5
 
20492
 
 
20493
ac_header_compiler=no
 
20494
fi
 
20495
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20496
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20497
echo "${ECHO_T}$ac_header_compiler" >&6
 
20498
 
 
20499
# Is the header present?
 
20500
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20501
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20502
cat >conftest.$ac_ext <<_ACEOF
 
20503
/* confdefs.h.  */
 
20504
_ACEOF
 
20505
cat confdefs.h >>conftest.$ac_ext
 
20506
cat >>conftest.$ac_ext <<_ACEOF
 
20507
/* end confdefs.h.  */
 
20508
#include <$ac_header>
 
20509
_ACEOF
 
20510
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20511
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20512
  ac_status=$?
 
20513
  grep -v '^ *+' conftest.er1 >conftest.err
 
20514
  rm -f conftest.er1
 
20515
  cat conftest.err >&5
 
20516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20517
  (exit $ac_status); } >/dev/null; then
 
20518
  if test -s conftest.err; then
 
20519
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20520
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20521
  else
 
20522
    ac_cpp_err=
 
20523
  fi
 
20524
else
 
20525
  ac_cpp_err=yes
 
20526
fi
 
20527
if test -z "$ac_cpp_err"; then
 
20528
  ac_header_preproc=yes
 
20529
else
 
20530
  echo "$as_me: failed program was:" >&5
 
20531
sed 's/^/| /' conftest.$ac_ext >&5
 
20532
 
 
20533
  ac_header_preproc=no
 
20534
fi
 
20535
rm -f conftest.err conftest.$ac_ext
 
20536
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20537
echo "${ECHO_T}$ac_header_preproc" >&6
 
20538
 
 
20539
# So?  What about this header?
 
20540
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20541
  yes:no: )
 
20542
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20543
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20544
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20545
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20546
    ac_header_preproc=yes
 
20547
    ;;
 
20548
  no:yes:* )
 
20549
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20550
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20551
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20552
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20553
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20554
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20555
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20556
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20557
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20558
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20559
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20560
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20561
    (
 
20562
      cat <<\_ASBOX
 
20563
## ------------------------------------------ ##
 
20564
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20565
## ------------------------------------------ ##
 
20566
_ASBOX
 
20567
    ) |
 
20568
      sed "s/^/$as_me: WARNING:     /" >&2
 
20569
    ;;
 
20570
esac
 
20571
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20572
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20573
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20575
else
 
20576
  eval "$as_ac_Header=\$ac_header_preproc"
 
20577
fi
 
20578
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20579
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20580
 
 
20581
fi
 
20582
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20583
  cat >>confdefs.h <<_ACEOF
 
20584
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20585
_ACEOF
 
20586
 
 
20587
fi
 
20588
 
 
20589
done
 
20590
 
 
20591
fi
 
20592
 
 
20593
 
 
20594
 
 
20595
if test "x$CPP_PATH" = x; then
 
20596
    # Extract the first word of "cpp", so it can be a program name with args.
 
20597
set dummy cpp; ac_word=$2
 
20598
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20600
if test "${ac_cv_path_CPP_PATH+set}" = set; then
 
20601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20602
else
 
20603
  case $CPP_PATH in
 
20604
  [\\/]* | ?:[\\/]*)
 
20605
  ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
 
20606
  ;;
 
20607
  *)
 
20608
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20609
as_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
 
20610
for as_dir in $as_dummy
 
20611
do
 
20612
  IFS=$as_save_IFS
 
20613
  test -z "$as_dir" && as_dir=.
 
20614
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20615
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20616
    ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext"
 
20617
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20618
    break 2
 
20619
  fi
 
20620
done
 
20621
done
 
20622
 
 
20623
  test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
 
20624
  ;;
 
20625
esac
 
20626
fi
 
20627
CPP_PATH=$ac_cv_path_CPP_PATH
 
20628
 
 
20629
if test -n "$CPP_PATH"; then
 
20630
  echo "$as_me:$LINENO: result: $CPP_PATH" >&5
 
20631
echo "${ECHO_T}$CPP_PATH" >&6
 
20632
else
 
20633
  echo "$as_me:$LINENO: result: no" >&5
 
20634
echo "${ECHO_T}no" >&6
 
20635
fi
 
20636
 
 
20637
fi
 
20638
 
 
20639
if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
 
20640
    if test "$GCC" = "yes"; then
 
20641
        CPP_PATH="gcc -E -x c"
 
20642
    else
 
20643
        if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
 
20644
            CPP_PATH="$CPP_PATH -B"
 
20645
        else
 
20646
            echo "cpp, the C preprocessor was not found in your system."
 
20647
            echo "Create a symbolic link from it to /lib/cpp and rerun configure"
 
20648
            exit
 
20649
        fi
 
20650
    fi
 
20651
fi
 
20652
 
 
20653
cat >>confdefs.h <<_ACEOF
 
20654
#define CPP_PATH "$CPP_PATH"
 
20655
_ACEOF
 
20656
 
 
20657
 
 
20658
 
 
20659
 
 
20660
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
20661
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
20662
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
20663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20664
else
 
20665
  cat >conftest.$ac_ext <<_ACEOF
 
20666
/* confdefs.h.  */
 
20667
_ACEOF
 
20668
cat confdefs.h >>conftest.$ac_ext
 
20669
cat >>conftest.$ac_ext <<_ACEOF
 
20670
/* end confdefs.h.  */
 
20671
#include <sys/types.h>
 
20672
#include <sys/wait.h>
 
20673
#ifndef WEXITSTATUS
 
20674
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
20675
#endif
 
20676
#ifndef WIFEXITED
 
20677
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
20678
#endif
 
20679
 
 
20680
int
 
20681
main ()
 
20682
{
 
20683
  int s;
 
20684
  wait (&s);
 
20685
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
20686
  ;
 
20687
  return 0;
 
20688
}
 
20689
_ACEOF
 
20690
rm -f conftest.$ac_objext
 
20691
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20692
  (eval $ac_compile) 2>conftest.er1
 
20693
  ac_status=$?
 
20694
  grep -v '^ *+' conftest.er1 >conftest.err
 
20695
  rm -f conftest.er1
 
20696
  cat conftest.err >&5
 
20697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20698
  (exit $ac_status); } &&
 
20699
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20701
  (eval $ac_try) 2>&5
 
20702
  ac_status=$?
 
20703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20704
  (exit $ac_status); }; } &&
 
20705
         { ac_try='test -s conftest.$ac_objext'
 
20706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20707
  (eval $ac_try) 2>&5
 
20708
  ac_status=$?
 
20709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20710
  (exit $ac_status); }; }; then
 
20711
  ac_cv_header_sys_wait_h=yes
 
20712
else
 
20713
  echo "$as_me: failed program was:" >&5
 
20714
sed 's/^/| /' conftest.$ac_ext >&5
 
20715
 
 
20716
ac_cv_header_sys_wait_h=no
 
20717
fi
 
20718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20719
fi
 
20720
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
20721
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
20722
if test $ac_cv_header_sys_wait_h = yes; then
 
20723
 
 
20724
cat >>confdefs.h <<\_ACEOF
 
20725
#define HAVE_SYS_WAIT_H 1
 
20726
_ACEOF
 
20727
 
 
20728
fi
 
20729
 
 
20730
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20731
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
20732
if test "${ac_cv_header_time+set}" = set; then
 
20733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20734
else
 
20735
  cat >conftest.$ac_ext <<_ACEOF
 
20736
/* confdefs.h.  */
 
20737
_ACEOF
 
20738
cat confdefs.h >>conftest.$ac_ext
 
20739
cat >>conftest.$ac_ext <<_ACEOF
 
20740
/* end confdefs.h.  */
 
20741
#include <sys/types.h>
 
20742
#include <sys/time.h>
 
20743
#include <time.h>
 
20744
 
 
20745
int
 
20746
main ()
 
20747
{
 
20748
if ((struct tm *) 0)
 
20749
return 0;
 
20750
  ;
 
20751
  return 0;
 
20752
}
 
20753
_ACEOF
 
20754
rm -f conftest.$ac_objext
 
20755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20756
  (eval $ac_compile) 2>conftest.er1
 
20757
  ac_status=$?
 
20758
  grep -v '^ *+' conftest.er1 >conftest.err
 
20759
  rm -f conftest.er1
 
20760
  cat conftest.err >&5
 
20761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20762
  (exit $ac_status); } &&
 
20763
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20765
  (eval $ac_try) 2>&5
 
20766
  ac_status=$?
 
20767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20768
  (exit $ac_status); }; } &&
 
20769
         { ac_try='test -s conftest.$ac_objext'
 
20770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20771
  (eval $ac_try) 2>&5
 
20772
  ac_status=$?
 
20773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20774
  (exit $ac_status); }; }; then
 
20775
  ac_cv_header_time=yes
 
20776
else
 
20777
  echo "$as_me: failed program was:" >&5
 
20778
sed 's/^/| /' conftest.$ac_ext >&5
 
20779
 
 
20780
ac_cv_header_time=no
 
20781
fi
 
20782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20783
fi
 
20784
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20785
echo "${ECHO_T}$ac_cv_header_time" >&6
 
20786
if test $ac_cv_header_time = yes; then
 
20787
 
 
20788
cat >>confdefs.h <<\_ACEOF
 
20789
#define TIME_WITH_SYS_TIME 1
 
20790
_ACEOF
 
20791
 
 
20792
fi
 
20793
 
 
20794
 
 
20795
 
 
20796
 
 
20797
 
 
20798
 
 
20799
 
 
20800
 
 
20801
 
 
20802
 
 
20803
 
 
20804
 
 
20805
 
 
20806
for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h \
 
20807
                 libintl.h sys/select.h poll.h malloc.h ctype.h string.h \
 
20808
                 strings.h
 
20809
do
 
20810
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20811
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20812
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20813
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20814
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20816
fi
 
20817
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20818
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20819
else
 
20820
  # Is the header compilable?
 
20821
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20823
cat >conftest.$ac_ext <<_ACEOF
 
20824
/* confdefs.h.  */
 
20825
_ACEOF
 
20826
cat confdefs.h >>conftest.$ac_ext
 
20827
cat >>conftest.$ac_ext <<_ACEOF
 
20828
/* end confdefs.h.  */
 
20829
$ac_includes_default
 
20830
#include <$ac_header>
 
20831
_ACEOF
 
20832
rm -f conftest.$ac_objext
 
20833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20834
  (eval $ac_compile) 2>conftest.er1
 
20835
  ac_status=$?
 
20836
  grep -v '^ *+' conftest.er1 >conftest.err
 
20837
  rm -f conftest.er1
 
20838
  cat conftest.err >&5
 
20839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20840
  (exit $ac_status); } &&
 
20841
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20843
  (eval $ac_try) 2>&5
 
20844
  ac_status=$?
 
20845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20846
  (exit $ac_status); }; } &&
 
20847
         { ac_try='test -s conftest.$ac_objext'
 
20848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20849
  (eval $ac_try) 2>&5
 
20850
  ac_status=$?
 
20851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20852
  (exit $ac_status); }; }; then
 
20853
  ac_header_compiler=yes
 
20854
else
 
20855
  echo "$as_me: failed program was:" >&5
 
20856
sed 's/^/| /' conftest.$ac_ext >&5
 
20857
 
 
20858
ac_header_compiler=no
 
20859
fi
 
20860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20861
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20862
echo "${ECHO_T}$ac_header_compiler" >&6
 
20863
 
 
20864
# Is the header present?
 
20865
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20866
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20867
cat >conftest.$ac_ext <<_ACEOF
 
20868
/* confdefs.h.  */
 
20869
_ACEOF
 
20870
cat confdefs.h >>conftest.$ac_ext
 
20871
cat >>conftest.$ac_ext <<_ACEOF
 
20872
/* end confdefs.h.  */
 
20873
#include <$ac_header>
 
20874
_ACEOF
 
20875
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20876
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20877
  ac_status=$?
 
20878
  grep -v '^ *+' conftest.er1 >conftest.err
 
20879
  rm -f conftest.er1
 
20880
  cat conftest.err >&5
 
20881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20882
  (exit $ac_status); } >/dev/null; then
 
20883
  if test -s conftest.err; then
 
20884
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20885
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20886
  else
 
20887
    ac_cpp_err=
 
20888
  fi
 
20889
else
 
20890
  ac_cpp_err=yes
 
20891
fi
 
20892
if test -z "$ac_cpp_err"; then
 
20893
  ac_header_preproc=yes
 
20894
else
 
20895
  echo "$as_me: failed program was:" >&5
 
20896
sed 's/^/| /' conftest.$ac_ext >&5
 
20897
 
 
20898
  ac_header_preproc=no
 
20899
fi
 
20900
rm -f conftest.err conftest.$ac_ext
 
20901
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20902
echo "${ECHO_T}$ac_header_preproc" >&6
 
20903
 
 
20904
# So?  What about this header?
 
20905
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20906
  yes:no: )
 
20907
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20908
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20909
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20910
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20911
    ac_header_preproc=yes
 
20912
    ;;
 
20913
  no:yes:* )
 
20914
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20915
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20916
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20917
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20918
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20919
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20920
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20921
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20922
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20923
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20924
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20925
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20926
    (
 
20927
      cat <<\_ASBOX
 
20928
## ------------------------------------------ ##
 
20929
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20930
## ------------------------------------------ ##
 
20931
_ASBOX
 
20932
    ) |
 
20933
      sed "s/^/$as_me: WARNING:     /" >&2
 
20934
    ;;
 
20935
esac
 
20936
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20937
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20938
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20940
else
 
20941
  eval "$as_ac_Header=\$ac_header_preproc"
 
20942
fi
 
20943
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20944
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20945
 
 
20946
fi
 
20947
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20948
  cat >>confdefs.h <<_ACEOF
 
20949
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20950
_ACEOF
 
20951
 
 
20952
fi
 
20953
 
 
20954
done
 
20955
 
 
20956
 
 
20957
 
 
20958
 
 
20959
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
 
20960
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
 
20961
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
 
20962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20963
else
 
20964
  cat >conftest.$ac_ext <<_ACEOF
 
20965
/* confdefs.h.  */
 
20966
_ACEOF
 
20967
cat confdefs.h >>conftest.$ac_ext
 
20968
cat >>conftest.$ac_ext <<_ACEOF
 
20969
/* end confdefs.h.  */
 
20970
#include <signal.h>
 
20971
/* NetBSD declares sys_siglist in unistd.h.  */
 
20972
#if HAVE_UNISTD_H
 
20973
# include <unistd.h>
 
20974
#endif
 
20975
 
 
20976
 
 
20977
int
 
20978
main ()
 
20979
{
 
20980
#ifndef sys_siglist
 
20981
  char *p = (char *) sys_siglist;
 
20982
#endif
 
20983
 
 
20984
  ;
 
20985
  return 0;
 
20986
}
 
20987
_ACEOF
 
20988
rm -f conftest.$ac_objext
 
20989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20990
  (eval $ac_compile) 2>conftest.er1
 
20991
  ac_status=$?
 
20992
  grep -v '^ *+' conftest.er1 >conftest.err
 
20993
  rm -f conftest.er1
 
20994
  cat conftest.err >&5
 
20995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20996
  (exit $ac_status); } &&
 
20997
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20999
  (eval $ac_try) 2>&5
 
21000
  ac_status=$?
 
21001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21002
  (exit $ac_status); }; } &&
 
21003
         { ac_try='test -s conftest.$ac_objext'
 
21004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21005
  (eval $ac_try) 2>&5
 
21006
  ac_status=$?
 
21007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21008
  (exit $ac_status); }; }; then
 
21009
  ac_cv_have_decl_sys_siglist=yes
 
21010
else
 
21011
  echo "$as_me: failed program was:" >&5
 
21012
sed 's/^/| /' conftest.$ac_ext >&5
 
21013
 
 
21014
ac_cv_have_decl_sys_siglist=no
 
21015
fi
 
21016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21017
fi
 
21018
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
 
21019
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
 
21020
if test $ac_cv_have_decl_sys_siglist = yes; then
 
21021
 
 
21022
cat >>confdefs.h <<_ACEOF
 
21023
#define HAVE_DECL_SYS_SIGLIST 1
 
21024
_ACEOF
 
21025
 
 
21026
 
 
21027
else
 
21028
  cat >>confdefs.h <<_ACEOF
 
21029
#define HAVE_DECL_SYS_SIGLIST 0
 
21030
_ACEOF
 
21031
 
 
21032
 
 
21033
fi
 
21034
 
 
21035
 
 
21036
 
 
21037
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
21038
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
21039
if test "${ac_cv_c_const+set}" = set; then
 
21040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21041
else
 
21042
  cat >conftest.$ac_ext <<_ACEOF
 
21043
/* confdefs.h.  */
 
21044
_ACEOF
 
21045
cat confdefs.h >>conftest.$ac_ext
 
21046
cat >>conftest.$ac_ext <<_ACEOF
 
21047
/* end confdefs.h.  */
 
21048
 
 
21049
int
 
21050
main ()
 
21051
{
 
21052
/* FIXME: Include the comments suggested by Paul. */
 
21053
#ifndef __cplusplus
 
21054
  /* Ultrix mips cc rejects this.  */
 
21055
  typedef int charset[2];
 
21056
  const charset x;
 
21057
  /* SunOS 4.1.1 cc rejects this.  */
 
21058
  char const *const *ccp;
 
21059
  char **p;
 
21060
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
21061
  struct point {int x, y;};
 
21062
  static struct point const zero = {0,0};
 
21063
  /* AIX XL C 1.02.0.0 rejects this.
 
21064
     It does not let you subtract one const X* pointer from another in
 
21065
     an arm of an if-expression whose if-part is not a constant
 
21066
     expression */
 
21067
  const char *g = "string";
 
21068
  ccp = &g + (g ? g-g : 0);
 
21069
  /* HPUX 7.0 cc rejects these. */
 
21070
  ++ccp;
 
21071
  p = (char**) ccp;
 
21072
  ccp = (char const *const *) p;
 
21073
  { /* SCO 3.2v4 cc rejects this.  */
 
21074
    char *t;
 
21075
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
21076
 
 
21077
    *t++ = 0;
 
21078
  }
 
21079
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
21080
    int x[] = {25, 17};
 
21081
    const int *foo = &x[0];
 
21082
    ++foo;
 
21083
  }
 
21084
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
21085
    typedef const int *iptr;
 
21086
    iptr p = 0;
 
21087
    ++p;
 
21088
  }
 
21089
  { /* AIX XL C 1.02.0.0 rejects this saying
 
21090
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
21091
    struct s { int j; const int *ap[3]; };
 
21092
    struct s *b; b->j = 5;
 
21093
  }
 
21094
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
21095
    const int foo = 10;
 
21096
  }
 
21097
#endif
 
21098
 
 
21099
  ;
 
21100
  return 0;
 
21101
}
 
21102
_ACEOF
 
21103
rm -f conftest.$ac_objext
 
21104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21105
  (eval $ac_compile) 2>conftest.er1
 
21106
  ac_status=$?
 
21107
  grep -v '^ *+' conftest.er1 >conftest.err
 
21108
  rm -f conftest.er1
 
21109
  cat conftest.err >&5
 
21110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21111
  (exit $ac_status); } &&
 
21112
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21114
  (eval $ac_try) 2>&5
 
21115
  ac_status=$?
 
21116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); }; } &&
 
21118
         { ac_try='test -s conftest.$ac_objext'
 
21119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21120
  (eval $ac_try) 2>&5
 
21121
  ac_status=$?
 
21122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21123
  (exit $ac_status); }; }; then
 
21124
  ac_cv_c_const=yes
 
21125
else
 
21126
  echo "$as_me: failed program was:" >&5
 
21127
sed 's/^/| /' conftest.$ac_ext >&5
 
21128
 
 
21129
ac_cv_c_const=no
 
21130
fi
 
21131
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21132
fi
 
21133
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21134
echo "${ECHO_T}$ac_cv_c_const" >&6
 
21135
if test $ac_cv_c_const = no; then
 
21136
 
 
21137
cat >>confdefs.h <<\_ACEOF
 
21138
#define const
 
21139
_ACEOF
 
21140
 
 
21141
fi
 
21142
 
 
21143
#AC_TYPE_SIZE_T
 
21144
#AC_TYPE_PID_T
 
21145
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
21146
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
21147
if test "${ac_cv_type_signal+set}" = set; then
 
21148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21149
else
 
21150
  cat >conftest.$ac_ext <<_ACEOF
 
21151
/* confdefs.h.  */
 
21152
_ACEOF
 
21153
cat confdefs.h >>conftest.$ac_ext
 
21154
cat >>conftest.$ac_ext <<_ACEOF
 
21155
/* end confdefs.h.  */
 
21156
#include <sys/types.h>
 
21157
#include <signal.h>
 
21158
#ifdef signal
 
21159
# undef signal
 
21160
#endif
 
21161
#ifdef __cplusplus
 
21162
extern "C" void (*signal (int, void (*)(int)))(int);
 
21163
#else
 
21164
void (*signal ()) ();
 
21165
#endif
 
21166
 
 
21167
int
 
21168
main ()
 
21169
{
 
21170
int i;
 
21171
  ;
 
21172
  return 0;
 
21173
}
 
21174
_ACEOF
 
21175
rm -f conftest.$ac_objext
 
21176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21177
  (eval $ac_compile) 2>conftest.er1
 
21178
  ac_status=$?
 
21179
  grep -v '^ *+' conftest.er1 >conftest.err
 
21180
  rm -f conftest.er1
 
21181
  cat conftest.err >&5
 
21182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21183
  (exit $ac_status); } &&
 
21184
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21186
  (eval $ac_try) 2>&5
 
21187
  ac_status=$?
 
21188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21189
  (exit $ac_status); }; } &&
 
21190
         { ac_try='test -s conftest.$ac_objext'
 
21191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21192
  (eval $ac_try) 2>&5
 
21193
  ac_status=$?
 
21194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21195
  (exit $ac_status); }; }; then
 
21196
  ac_cv_type_signal=void
 
21197
else
 
21198
  echo "$as_me: failed program was:" >&5
 
21199
sed 's/^/| /' conftest.$ac_ext >&5
 
21200
 
 
21201
ac_cv_type_signal=int
 
21202
fi
 
21203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21204
fi
 
21205
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
21206
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
21207
 
 
21208
cat >>confdefs.h <<_ACEOF
 
21209
#define RETSIGTYPE $ac_cv_type_signal
 
21210
_ACEOF
 
21211
 
 
21212
 
 
21213
 
 
21214
 
 
21215
 
 
21216
 
 
21217
 
 
21218
 
 
21219
# until we fix it, leave it disabled
 
21220
asm_support=no
 
21221
mmx_support=no
 
21222
if test "$ac_cv_c_compiler_gnu" = yes; then
 
21223
 
 
21224
    # gcc-3.4 complains about some of our stuff without this
 
21225
    NOSTRICTALIASING="-fno-strict-aliasing"
 
21226
 
 
21227
    x86=0
 
21228
        case "$host_cpu" in
 
21229
       i[3456]86) x86=1
 
21230
       ;;
 
21231
    esac
 
21232
 
 
21233
    if test "$host_os" != "linux" -a "$host_os" != "linux-gnu" ; then
 
21234
       x86=0
 
21235
    fi
 
21236
 
 
21237
    if test $x86 = 1; then
 
21238
 
 
21239
cat >>confdefs.h <<\_ACEOF
 
21240
#define ASM_X86 1
 
21241
_ACEOF
 
21242
 
 
21243
       asm_support=yes
 
21244
 
 
21245
       echo "$as_me:$LINENO: checking whether gcc supports MMX(tm) inline asm" >&5
 
21246
echo $ECHO_N "checking whether gcc supports MMX(tm) inline asm... $ECHO_C" >&6
 
21247
if test "${ac_cv_c_inline_mmx+set}" = set; then
 
21248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21249
else
 
21250
  cat >conftest.$ac_ext <<_ACEOF
 
21251
/* confdefs.h.  */
 
21252
_ACEOF
 
21253
cat confdefs.h >>conftest.$ac_ext
 
21254
cat >>conftest.$ac_ext <<_ACEOF
 
21255
/* end confdefs.h.  */
 
21256
 
 
21257
int
 
21258
main ()
 
21259
{
 
21260
asm ("movq %mm0, %mm1");
 
21261
  ;
 
21262
  return 0;
 
21263
}
 
21264
_ACEOF
 
21265
rm -f conftest.$ac_objext conftest$ac_exeext
 
21266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21267
  (eval $ac_link) 2>conftest.er1
 
21268
  ac_status=$?
 
21269
  grep -v '^ *+' conftest.er1 >conftest.err
 
21270
  rm -f conftest.er1
 
21271
  cat conftest.err >&5
 
21272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21273
  (exit $ac_status); } &&
 
21274
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21276
  (eval $ac_try) 2>&5
 
21277
  ac_status=$?
 
21278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21279
  (exit $ac_status); }; } &&
 
21280
         { ac_try='test -s conftest$ac_exeext'
 
21281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21282
  (eval $ac_try) 2>&5
 
21283
  ac_status=$?
 
21284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21285
  (exit $ac_status); }; }; then
 
21286
  ac_cv_c_inline_mmx=yes
 
21287
else
 
21288
  echo "$as_me: failed program was:" >&5
 
21289
sed 's/^/| /' conftest.$ac_ext >&5
 
21290
 
 
21291
ac_cv_c_inline_mmx=no
 
21292
fi
 
21293
rm -f conftest.err conftest.$ac_objext \
 
21294
      conftest$ac_exeext conftest.$ac_ext
 
21295
fi
 
21296
echo "$as_me:$LINENO: result: $ac_cv_c_inline_mmx" >&5
 
21297
echo "${ECHO_T}$ac_cv_c_inline_mmx" >&6
 
21298
 
 
21299
       if test "x$ac_cv_c_inline_mmx" = xyes; then
 
21300
 
 
21301
cat >>confdefs.h <<\_ACEOF
 
21302
#define ASM_X86_MMX 1
 
21303
_ACEOF
 
21304
 
 
21305
          mmx_support=yes
 
21306
       fi
 
21307
    fi
 
21308
fi
 
21309
 
 
21310
 
 
21311
 
 
21312
# Extract the first word of "pkg-config", so it can be a program name with args.
 
21313
set dummy pkg-config; ac_word=$2
 
21314
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21315
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21316
if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
 
21317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21318
else
 
21319
  if test -n "$PKGCONFIG"; then
 
21320
  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
 
21321
else
 
21322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21323
for as_dir in $PATH
 
21324
do
 
21325
  IFS=$as_save_IFS
 
21326
  test -z "$as_dir" && as_dir=.
 
21327
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21328
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21329
    ac_cv_prog_PKGCONFIG="pkg-config"
 
21330
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21331
    break 2
 
21332
  fi
 
21333
done
 
21334
done
 
21335
 
 
21336
fi
 
21337
fi
 
21338
PKGCONFIG=$ac_cv_prog_PKGCONFIG
 
21339
if test -n "$PKGCONFIG"; then
 
21340
  echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
 
21341
echo "${ECHO_T}$PKGCONFIG" >&6
 
21342
else
 
21343
  echo "$as_me:$LINENO: result: no" >&5
 
21344
echo "${ECHO_T}no" >&6
 
21345
fi
 
21346
 
 
21347
 
 
21348
 
 
21349
 
 
21350
 
 
21351
 
 
21352
 
 
21353
 
 
21354
INTLIBS=""
 
21355
 
 
21356
echo "$as_me:$LINENO: checking for gettext" >&5
 
21357
echo $ECHO_N "checking for gettext... $ECHO_C" >&6
 
21358
if test "${ac_cv_func_gettext+set}" = set; then
 
21359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21360
else
 
21361
  cat >conftest.$ac_ext <<_ACEOF
 
21362
/* confdefs.h.  */
 
21363
_ACEOF
 
21364
cat confdefs.h >>conftest.$ac_ext
 
21365
cat >>conftest.$ac_ext <<_ACEOF
 
21366
/* end confdefs.h.  */
 
21367
/* Define gettext to an innocuous variant, in case <limits.h> declares gettext.
 
21368
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21369
#define gettext innocuous_gettext
 
21370
 
 
21371
/* System header to define __stub macros and hopefully few prototypes,
 
21372
    which can conflict with char gettext (); below.
 
21373
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21374
    <limits.h> exists even on freestanding compilers.  */
 
21375
 
 
21376
#ifdef __STDC__
 
21377
# include <limits.h>
 
21378
#else
 
21379
# include <assert.h>
 
21380
#endif
 
21381
 
 
21382
#undef gettext
 
21383
 
 
21384
/* Override any gcc2 internal prototype to avoid an error.  */
 
21385
#ifdef __cplusplus
 
21386
extern "C"
 
21387
{
 
21388
#endif
 
21389
/* We use char because int might match the return type of a gcc2
 
21390
   builtin and then its argument prototype would still apply.  */
 
21391
char gettext ();
 
21392
/* The GNU C library defines this for functions which it implements
 
21393
    to always fail with ENOSYS.  Some functions are actually named
 
21394
    something starting with __ and the normal name is an alias.  */
 
21395
#if defined (__stub_gettext) || defined (__stub___gettext)
 
21396
choke me
 
21397
#else
 
21398
char (*f) () = gettext;
 
21399
#endif
 
21400
#ifdef __cplusplus
 
21401
}
 
21402
#endif
 
21403
 
 
21404
int
 
21405
main ()
 
21406
{
 
21407
return f != gettext;
 
21408
  ;
 
21409
  return 0;
 
21410
}
 
21411
_ACEOF
 
21412
rm -f conftest.$ac_objext conftest$ac_exeext
 
21413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21414
  (eval $ac_link) 2>conftest.er1
 
21415
  ac_status=$?
 
21416
  grep -v '^ *+' conftest.er1 >conftest.err
 
21417
  rm -f conftest.er1
 
21418
  cat conftest.err >&5
 
21419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21420
  (exit $ac_status); } &&
 
21421
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21423
  (eval $ac_try) 2>&5
 
21424
  ac_status=$?
 
21425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21426
  (exit $ac_status); }; } &&
 
21427
         { ac_try='test -s conftest$ac_exeext'
 
21428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21429
  (eval $ac_try) 2>&5
 
21430
  ac_status=$?
 
21431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21432
  (exit $ac_status); }; }; then
 
21433
  ac_cv_func_gettext=yes
 
21434
else
 
21435
  echo "$as_me: failed program was:" >&5
 
21436
sed 's/^/| /' conftest.$ac_ext >&5
 
21437
 
 
21438
ac_cv_func_gettext=no
 
21439
fi
 
21440
rm -f conftest.err conftest.$ac_objext \
 
21441
      conftest$ac_exeext conftest.$ac_ext
 
21442
fi
 
21443
echo "$as_me:$LINENO: result: $ac_cv_func_gettext" >&5
 
21444
echo "${ECHO_T}$ac_cv_func_gettext" >&6
 
21445
if test $ac_cv_func_gettext = yes; then
 
21446
  HAVEGETTEXT="yes"
 
21447
else
 
21448
  echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
 
21449
echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
 
21450
if test "${ac_cv_lib_intl_gettext+set}" = set; then
 
21451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21452
else
 
21453
  ac_check_lib_save_LIBS=$LIBS
 
21454
LIBS="-lintl  $LIBS"
 
21455
cat >conftest.$ac_ext <<_ACEOF
 
21456
/* confdefs.h.  */
 
21457
_ACEOF
 
21458
cat confdefs.h >>conftest.$ac_ext
 
21459
cat >>conftest.$ac_ext <<_ACEOF
 
21460
/* end confdefs.h.  */
 
21461
 
 
21462
/* Override any gcc2 internal prototype to avoid an error.  */
 
21463
#ifdef __cplusplus
 
21464
extern "C"
 
21465
#endif
 
21466
/* We use char because int might match the return type of a gcc2
 
21467
   builtin and then its argument prototype would still apply.  */
 
21468
char gettext ();
 
21469
int
 
21470
main ()
 
21471
{
 
21472
gettext ();
 
21473
  ;
 
21474
  return 0;
 
21475
}
 
21476
_ACEOF
 
21477
rm -f conftest.$ac_objext conftest$ac_exeext
 
21478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21479
  (eval $ac_link) 2>conftest.er1
 
21480
  ac_status=$?
 
21481
  grep -v '^ *+' conftest.er1 >conftest.err
 
21482
  rm -f conftest.er1
 
21483
  cat conftest.err >&5
 
21484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21485
  (exit $ac_status); } &&
 
21486
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21488
  (eval $ac_try) 2>&5
 
21489
  ac_status=$?
 
21490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21491
  (exit $ac_status); }; } &&
 
21492
         { ac_try='test -s conftest$ac_exeext'
 
21493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21494
  (eval $ac_try) 2>&5
 
21495
  ac_status=$?
 
21496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21497
  (exit $ac_status); }; }; then
 
21498
  ac_cv_lib_intl_gettext=yes
 
21499
else
 
21500
  echo "$as_me: failed program was:" >&5
 
21501
sed 's/^/| /' conftest.$ac_ext >&5
 
21502
 
 
21503
ac_cv_lib_intl_gettext=no
 
21504
fi
 
21505
rm -f conftest.err conftest.$ac_objext \
 
21506
      conftest$ac_exeext conftest.$ac_ext
 
21507
LIBS=$ac_check_lib_save_LIBS
 
21508
fi
 
21509
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
 
21510
echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
 
21511
if test $ac_cv_lib_intl_gettext = yes; then
 
21512
  INTLIBS="-lintl" HAVEGETTEXT="yes"
 
21513
else
 
21514
  INTLIBS=""
 
21515
fi
 
21516
 
 
21517
fi
 
21518
 
 
21519
 
 
21520
# Extract the first word of "xgettext", so it can be a program name with args.
 
21521
set dummy xgettext; ac_word=$2
 
21522
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21524
if test "${ac_cv_prog_XGETTEXT+set}" = set; then
 
21525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21526
else
 
21527
  if test -n "$XGETTEXT"; then
 
21528
  ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
 
21529
else
 
21530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21531
for as_dir in $PATH
 
21532
do
 
21533
  IFS=$as_save_IFS
 
21534
  test -z "$as_dir" && as_dir=.
 
21535
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21536
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21537
    ac_cv_prog_XGETTEXT="xgettext"
 
21538
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21539
    break 2
 
21540
  fi
 
21541
done
 
21542
done
 
21543
 
 
21544
fi
 
21545
fi
 
21546
XGETTEXT=$ac_cv_prog_XGETTEXT
 
21547
if test -n "$XGETTEXT"; then
 
21548
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21549
echo "${ECHO_T}$XGETTEXT" >&6
 
21550
else
 
21551
  echo "$as_me:$LINENO: result: no" >&5
 
21552
echo "${ECHO_T}no" >&6
 
21553
fi
 
21554
 
 
21555
 
 
21556
if test "$XGETTEXT" != ""; then
 
21557
    if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
 
21558
        echo "xgettext isn't GNU version"
 
21559
        XGETTEXT=""
 
21560
    fi
 
21561
fi
 
21562
 
 
21563
if test "$LINGUAS" != ""; then
 
21564
    if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
 
21565
 
 
21566
cat >>confdefs.h <<\_ACEOF
 
21567
#define I18N 1
 
21568
_ACEOF
 
21569
 
 
21570
        PO=""
 
21571
#       if test "$LINGUAS" = ""; then
 
21572
#           ling=` (cd src/po; /bin/ls *.po) `
 
21573
#           for l in $ling; do
 
21574
#               lcode=`basename $l .po`
 
21575
#               LINGUAS="$LINGUAS $lcode"
 
21576
#           done
 
21577
#       fi
 
21578
        echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
 
21579
    else
 
21580
        LINGUAS=""
 
21581
        PO=""
 
21582
        echo "xgettext and libintl.a don't both exist; will not build i18n support"
 
21583
    fi
 
21584
else
 
21585
        INTLIBS=""
 
21586
        MOFILES=""
 
21587
        WPMOFILES=""
 
21588
        PO=""
 
21589
fi
 
21590
 
 
21591
 
 
21592
 
 
21593
supported_locales="be bg bs ca cs da de el es et fi fr gl hr hu it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW.Big5"
 
21594
supported_wprefs_locales="bg ca cs de es et fi fr hr hu it ja ko pt ru sk zh_CN zh_TW.Big5"
 
21595
supported_wings_locales="bg ca cs de fr sk"
 
21596
 
 
21597
for lang in $LINGUAS; do
 
21598
        ok=0
 
21599
        for l in $supported_locales; do
 
21600
                if test "$l" = "$lang"; then
 
21601
                        ok=1
 
21602
                        break
 
21603
                fi
 
21604
        done
 
21605
        if test "$ok" = 1; then
 
21606
                MOFILES="$MOFILES $lang.mo"
 
21607
        else
 
21608
                echo "Locale $lang is not supported."
 
21609
        fi
 
21610
        ok=0
 
21611
        for l in $supported_wprefs_locales; do
 
21612
                if test "$l" = "$lang"; then
 
21613
                        ok=1
 
21614
                        break
 
21615
                fi
 
21616
        done
 
21617
        if test "$ok" = 1; then
 
21618
                WPMOFILES="$WPMOFILES $lang.mo"
 
21619
        fi
 
21620
        ok=0
 
21621
        for l in $supported_wings_locales; do
 
21622
                if test "$l" = "$lang"; then
 
21623
                        ok=1
 
21624
                        break
 
21625
                fi
 
21626
        done
 
21627
        if test "$ok" = 1; then
 
21628
                WINGSMOFILES="$WINGSMOFILES $lang.mo"
 
21629
        fi
 
21630
done
 
21631
 
 
21632
 
 
21633
 
 
21634
case $host_os in
 
21635
        freebsd*)
 
21636
                echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
 
21637
echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
 
21638
if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
 
21639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21640
else
 
21641
  ac_check_lib_save_LIBS=$LIBS
 
21642
LIBS="-lxpg4  $LIBS"
 
21643
cat >conftest.$ac_ext <<_ACEOF
 
21644
/* confdefs.h.  */
 
21645
_ACEOF
 
21646
cat confdefs.h >>conftest.$ac_ext
 
21647
cat >>conftest.$ac_ext <<_ACEOF
 
21648
/* end confdefs.h.  */
 
21649
 
 
21650
/* Override any gcc2 internal prototype to avoid an error.  */
 
21651
#ifdef __cplusplus
 
21652
extern "C"
 
21653
#endif
 
21654
/* We use char because int might match the return type of a gcc2
 
21655
   builtin and then its argument prototype would still apply.  */
 
21656
char setlocale ();
 
21657
int
 
21658
main ()
 
21659
{
 
21660
setlocale ();
 
21661
  ;
 
21662
  return 0;
 
21663
}
 
21664
_ACEOF
 
21665
rm -f conftest.$ac_objext conftest$ac_exeext
 
21666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21667
  (eval $ac_link) 2>conftest.er1
 
21668
  ac_status=$?
 
21669
  grep -v '^ *+' conftest.er1 >conftest.err
 
21670
  rm -f conftest.er1
 
21671
  cat conftest.err >&5
 
21672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21673
  (exit $ac_status); } &&
 
21674
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21676
  (eval $ac_try) 2>&5
 
21677
  ac_status=$?
 
21678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21679
  (exit $ac_status); }; } &&
 
21680
         { ac_try='test -s conftest$ac_exeext'
 
21681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21682
  (eval $ac_try) 2>&5
 
21683
  ac_status=$?
 
21684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21685
  (exit $ac_status); }; }; then
 
21686
  ac_cv_lib_xpg4_setlocale=yes
 
21687
else
 
21688
  echo "$as_me: failed program was:" >&5
 
21689
sed 's/^/| /' conftest.$ac_ext >&5
 
21690
 
 
21691
ac_cv_lib_xpg4_setlocale=no
 
21692
fi
 
21693
rm -f conftest.err conftest.$ac_objext \
 
21694
      conftest$ac_exeext conftest.$ac_ext
 
21695
LIBS=$ac_check_lib_save_LIBS
 
21696
fi
 
21697
echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
 
21698
echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
 
21699
if test $ac_cv_lib_xpg4_setlocale = yes; then
 
21700
  LIBS="$LIBS -lxpg4"
 
21701
fi
 
21702
;;
 
21703
        *)
 
21704
        ;;
 
21705
esac
 
21706
 
 
21707
 
 
21708
 
 
21709
 
 
21710
# Check whether --with-nlsdir or --without-nlsdir was given.
 
21711
if test "${with_nlsdir+set}" = set; then
 
21712
  withval="$with_nlsdir"
 
21713
 
 
21714
fi;
 
21715
 
 
21716
 
 
21717
if test "x$NLSDIR" = "x"; then
 
21718
        if test "x$with_nlsdir" != "x"; then
 
21719
                NLSDIR=$with_nlsdir
 
21720
        else
 
21721
                NLSDIR='$(prefix)/lib/locale'
 
21722
        fi
 
21723
fi
 
21724
 
 
21725
 
 
21726
 
 
21727
 
 
21728
 
 
21729
 
 
21730
 
 
21731
 
 
21732
 
 
21733
 
 
21734
 
 
21735
 
 
21736
 
 
21737
 
 
21738
 
 
21739
 
 
21740
 
 
21741
# Check whether --enable-lite or --disable-lite was given.
 
21742
if test "${enable_lite+set}" = set; then
 
21743
  enableval="$enable_lite"
 
21744
  if test x$enableval = xyes; then
 
21745
        LITE=yes
 
21746
 
 
21747
cat >>confdefs.h <<\_ACEOF
 
21748
#define LITE 1
 
21749
_ACEOF
 
21750
 
 
21751
 
 
21752
  fi
 
21753
fi;
 
21754
 
 
21755
 
 
21756
 
 
21757
 
 
21758
NETLIBS=""
 
21759
 
 
21760
echo "$as_me:$LINENO: checking for connect" >&5
 
21761
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
21762
if test "${ac_cv_func_connect+set}" = set; then
 
21763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21764
else
 
21765
  cat >conftest.$ac_ext <<_ACEOF
 
21766
/* confdefs.h.  */
 
21767
_ACEOF
 
21768
cat confdefs.h >>conftest.$ac_ext
 
21769
cat >>conftest.$ac_ext <<_ACEOF
 
21770
/* end confdefs.h.  */
 
21771
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
21772
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21773
#define connect innocuous_connect
 
21774
 
 
21775
/* System header to define __stub macros and hopefully few prototypes,
 
21776
    which can conflict with char connect (); below.
 
21777
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21778
    <limits.h> exists even on freestanding compilers.  */
 
21779
 
 
21780
#ifdef __STDC__
 
21781
# include <limits.h>
 
21782
#else
 
21783
# include <assert.h>
 
21784
#endif
 
21785
 
 
21786
#undef connect
 
21787
 
 
21788
/* Override any gcc2 internal prototype to avoid an error.  */
 
21789
#ifdef __cplusplus
 
21790
extern "C"
 
21791
{
 
21792
#endif
 
21793
/* We use char because int might match the return type of a gcc2
 
21794
   builtin and then its argument prototype would still apply.  */
 
21795
char connect ();
 
21796
/* The GNU C library defines this for functions which it implements
 
21797
    to always fail with ENOSYS.  Some functions are actually named
 
21798
    something starting with __ and the normal name is an alias.  */
 
21799
#if defined (__stub_connect) || defined (__stub___connect)
 
21800
choke me
 
21801
#else
 
21802
char (*f) () = connect;
 
21803
#endif
 
21804
#ifdef __cplusplus
 
21805
}
 
21806
#endif
 
21807
 
 
21808
int
 
21809
main ()
 
21810
{
 
21811
return f != connect;
 
21812
  ;
 
21813
  return 0;
 
21814
}
 
21815
_ACEOF
 
21816
rm -f conftest.$ac_objext conftest$ac_exeext
 
21817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21818
  (eval $ac_link) 2>conftest.er1
 
21819
  ac_status=$?
 
21820
  grep -v '^ *+' conftest.er1 >conftest.err
 
21821
  rm -f conftest.er1
 
21822
  cat conftest.err >&5
 
21823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21824
  (exit $ac_status); } &&
 
21825
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21827
  (eval $ac_try) 2>&5
 
21828
  ac_status=$?
 
21829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21830
  (exit $ac_status); }; } &&
 
21831
         { ac_try='test -s conftest$ac_exeext'
 
21832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21833
  (eval $ac_try) 2>&5
 
21834
  ac_status=$?
 
21835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21836
  (exit $ac_status); }; }; then
 
21837
  ac_cv_func_connect=yes
 
21838
else
 
21839
  echo "$as_me: failed program was:" >&5
 
21840
sed 's/^/| /' conftest.$ac_ext >&5
 
21841
 
 
21842
ac_cv_func_connect=no
 
21843
fi
 
21844
rm -f conftest.err conftest.$ac_objext \
 
21845
      conftest$ac_exeext conftest.$ac_ext
 
21846
fi
 
21847
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
21848
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
21849
if test $ac_cv_func_connect = yes; then
 
21850
  :
 
21851
else
 
21852
  echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
21853
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
21854
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
21855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21856
else
 
21857
  ac_check_lib_save_LIBS=$LIBS
 
21858
LIBS="-lsocket  $LIBS"
 
21859
cat >conftest.$ac_ext <<_ACEOF
 
21860
/* confdefs.h.  */
 
21861
_ACEOF
 
21862
cat confdefs.h >>conftest.$ac_ext
 
21863
cat >>conftest.$ac_ext <<_ACEOF
 
21864
/* end confdefs.h.  */
 
21865
 
 
21866
/* Override any gcc2 internal prototype to avoid an error.  */
 
21867
#ifdef __cplusplus
 
21868
extern "C"
 
21869
#endif
 
21870
/* We use char because int might match the return type of a gcc2
 
21871
   builtin and then its argument prototype would still apply.  */
 
21872
char connect ();
 
21873
int
 
21874
main ()
 
21875
{
 
21876
connect ();
 
21877
  ;
 
21878
  return 0;
 
21879
}
 
21880
_ACEOF
 
21881
rm -f conftest.$ac_objext conftest$ac_exeext
 
21882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21883
  (eval $ac_link) 2>conftest.er1
 
21884
  ac_status=$?
 
21885
  grep -v '^ *+' conftest.er1 >conftest.err
 
21886
  rm -f conftest.er1
 
21887
  cat conftest.err >&5
 
21888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21889
  (exit $ac_status); } &&
 
21890
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21892
  (eval $ac_try) 2>&5
 
21893
  ac_status=$?
 
21894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21895
  (exit $ac_status); }; } &&
 
21896
         { ac_try='test -s conftest$ac_exeext'
 
21897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21898
  (eval $ac_try) 2>&5
 
21899
  ac_status=$?
 
21900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21901
  (exit $ac_status); }; }; then
 
21902
  ac_cv_lib_socket_connect=yes
 
21903
else
 
21904
  echo "$as_me: failed program was:" >&5
 
21905
sed 's/^/| /' conftest.$ac_ext >&5
 
21906
 
 
21907
ac_cv_lib_socket_connect=no
 
21908
fi
 
21909
rm -f conftest.err conftest.$ac_objext \
 
21910
      conftest$ac_exeext conftest.$ac_ext
 
21911
LIBS=$ac_check_lib_save_LIBS
 
21912
fi
 
21913
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
21914
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
21915
if test $ac_cv_lib_socket_connect = yes; then
 
21916
  NETLIBS="$NETLIBS -lsocket"
 
21917
fi
 
21918
 
 
21919
fi
 
21920
 
 
21921
 
 
21922
echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
21923
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
21924
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
21925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21926
else
 
21927
  cat >conftest.$ac_ext <<_ACEOF
 
21928
/* confdefs.h.  */
 
21929
_ACEOF
 
21930
cat confdefs.h >>conftest.$ac_ext
 
21931
cat >>conftest.$ac_ext <<_ACEOF
 
21932
/* end confdefs.h.  */
 
21933
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
21934
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21935
#define gethostbyname innocuous_gethostbyname
 
21936
 
 
21937
/* System header to define __stub macros and hopefully few prototypes,
 
21938
    which can conflict with char gethostbyname (); below.
 
21939
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21940
    <limits.h> exists even on freestanding compilers.  */
 
21941
 
 
21942
#ifdef __STDC__
 
21943
# include <limits.h>
 
21944
#else
 
21945
# include <assert.h>
 
21946
#endif
 
21947
 
 
21948
#undef gethostbyname
 
21949
 
 
21950
/* Override any gcc2 internal prototype to avoid an error.  */
 
21951
#ifdef __cplusplus
 
21952
extern "C"
 
21953
{
 
21954
#endif
 
21955
/* We use char because int might match the return type of a gcc2
 
21956
   builtin and then its argument prototype would still apply.  */
 
21957
char gethostbyname ();
 
21958
/* The GNU C library defines this for functions which it implements
 
21959
    to always fail with ENOSYS.  Some functions are actually named
 
21960
    something starting with __ and the normal name is an alias.  */
 
21961
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
21962
choke me
 
21963
#else
 
21964
char (*f) () = gethostbyname;
 
21965
#endif
 
21966
#ifdef __cplusplus
 
21967
}
 
21968
#endif
 
21969
 
 
21970
int
 
21971
main ()
 
21972
{
 
21973
return f != gethostbyname;
 
21974
  ;
 
21975
  return 0;
 
21976
}
 
21977
_ACEOF
 
21978
rm -f conftest.$ac_objext conftest$ac_exeext
 
21979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21980
  (eval $ac_link) 2>conftest.er1
 
21981
  ac_status=$?
 
21982
  grep -v '^ *+' conftest.er1 >conftest.err
 
21983
  rm -f conftest.er1
 
21984
  cat conftest.err >&5
 
21985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21986
  (exit $ac_status); } &&
 
21987
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21989
  (eval $ac_try) 2>&5
 
21990
  ac_status=$?
 
21991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21992
  (exit $ac_status); }; } &&
 
21993
         { ac_try='test -s conftest$ac_exeext'
 
21994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21995
  (eval $ac_try) 2>&5
 
21996
  ac_status=$?
 
21997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21998
  (exit $ac_status); }; }; then
 
21999
  ac_cv_func_gethostbyname=yes
 
22000
else
 
22001
  echo "$as_me: failed program was:" >&5
 
22002
sed 's/^/| /' conftest.$ac_ext >&5
 
22003
 
 
22004
ac_cv_func_gethostbyname=no
 
22005
fi
 
22006
rm -f conftest.err conftest.$ac_objext \
 
22007
      conftest$ac_exeext conftest.$ac_ext
 
22008
fi
 
22009
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
22010
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
22011
if test $ac_cv_func_gethostbyname = yes; then
 
22012
  :
 
22013
else
 
22014
  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
22015
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
22016
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
22017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22018
else
 
22019
  ac_check_lib_save_LIBS=$LIBS
 
22020
LIBS="-lnsl  $LIBS"
 
22021
cat >conftest.$ac_ext <<_ACEOF
 
22022
/* confdefs.h.  */
 
22023
_ACEOF
 
22024
cat confdefs.h >>conftest.$ac_ext
 
22025
cat >>conftest.$ac_ext <<_ACEOF
 
22026
/* end confdefs.h.  */
 
22027
 
 
22028
/* Override any gcc2 internal prototype to avoid an error.  */
 
22029
#ifdef __cplusplus
 
22030
extern "C"
 
22031
#endif
 
22032
/* We use char because int might match the return type of a gcc2
 
22033
   builtin and then its argument prototype would still apply.  */
 
22034
char gethostbyname ();
 
22035
int
 
22036
main ()
 
22037
{
 
22038
gethostbyname ();
 
22039
  ;
 
22040
  return 0;
 
22041
}
 
22042
_ACEOF
 
22043
rm -f conftest.$ac_objext conftest$ac_exeext
 
22044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22045
  (eval $ac_link) 2>conftest.er1
 
22046
  ac_status=$?
 
22047
  grep -v '^ *+' conftest.er1 >conftest.err
 
22048
  rm -f conftest.er1
 
22049
  cat conftest.err >&5
 
22050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22051
  (exit $ac_status); } &&
 
22052
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22054
  (eval $ac_try) 2>&5
 
22055
  ac_status=$?
 
22056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22057
  (exit $ac_status); }; } &&
 
22058
         { ac_try='test -s conftest$ac_exeext'
 
22059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22060
  (eval $ac_try) 2>&5
 
22061
  ac_status=$?
 
22062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22063
  (exit $ac_status); }; }; then
 
22064
  ac_cv_lib_nsl_gethostbyname=yes
 
22065
else
 
22066
  echo "$as_me: failed program was:" >&5
 
22067
sed 's/^/| /' conftest.$ac_ext >&5
 
22068
 
 
22069
ac_cv_lib_nsl_gethostbyname=no
 
22070
fi
 
22071
rm -f conftest.err conftest.$ac_objext \
 
22072
      conftest$ac_exeext conftest.$ac_ext
 
22073
LIBS=$ac_check_lib_save_LIBS
 
22074
fi
 
22075
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
22076
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
22077
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
22078
  NETLIBS="$NETLIBS -lnsl"
 
22079
fi
 
22080
 
 
22081
fi
 
22082
 
 
22083
 
 
22084
echo "$as_me:$LINENO: checking for inet_aton" >&5
 
22085
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
 
22086
if test "${ac_cv_func_inet_aton+set}" = set; then
 
22087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22088
else
 
22089
  cat >conftest.$ac_ext <<_ACEOF
 
22090
/* confdefs.h.  */
 
22091
_ACEOF
 
22092
cat confdefs.h >>conftest.$ac_ext
 
22093
cat >>conftest.$ac_ext <<_ACEOF
 
22094
/* end confdefs.h.  */
 
22095
/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
 
22096
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22097
#define inet_aton innocuous_inet_aton
 
22098
 
 
22099
/* System header to define __stub macros and hopefully few prototypes,
 
22100
    which can conflict with char inet_aton (); below.
 
22101
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22102
    <limits.h> exists even on freestanding compilers.  */
 
22103
 
 
22104
#ifdef __STDC__
 
22105
# include <limits.h>
 
22106
#else
 
22107
# include <assert.h>
 
22108
#endif
 
22109
 
 
22110
#undef inet_aton
 
22111
 
 
22112
/* Override any gcc2 internal prototype to avoid an error.  */
 
22113
#ifdef __cplusplus
 
22114
extern "C"
 
22115
{
 
22116
#endif
 
22117
/* We use char because int might match the return type of a gcc2
 
22118
   builtin and then its argument prototype would still apply.  */
 
22119
char inet_aton ();
 
22120
/* The GNU C library defines this for functions which it implements
 
22121
    to always fail with ENOSYS.  Some functions are actually named
 
22122
    something starting with __ and the normal name is an alias.  */
 
22123
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
 
22124
choke me
 
22125
#else
 
22126
char (*f) () = inet_aton;
 
22127
#endif
 
22128
#ifdef __cplusplus
 
22129
}
 
22130
#endif
 
22131
 
 
22132
int
 
22133
main ()
 
22134
{
 
22135
return f != inet_aton;
 
22136
  ;
 
22137
  return 0;
 
22138
}
 
22139
_ACEOF
 
22140
rm -f conftest.$ac_objext conftest$ac_exeext
 
22141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22142
  (eval $ac_link) 2>conftest.er1
 
22143
  ac_status=$?
 
22144
  grep -v '^ *+' conftest.er1 >conftest.err
 
22145
  rm -f conftest.er1
 
22146
  cat conftest.err >&5
 
22147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22148
  (exit $ac_status); } &&
 
22149
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22151
  (eval $ac_try) 2>&5
 
22152
  ac_status=$?
 
22153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22154
  (exit $ac_status); }; } &&
 
22155
         { ac_try='test -s conftest$ac_exeext'
 
22156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22157
  (eval $ac_try) 2>&5
 
22158
  ac_status=$?
 
22159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22160
  (exit $ac_status); }; }; then
 
22161
  ac_cv_func_inet_aton=yes
 
22162
else
 
22163
  echo "$as_me: failed program was:" >&5
 
22164
sed 's/^/| /' conftest.$ac_ext >&5
 
22165
 
 
22166
ac_cv_func_inet_aton=no
 
22167
fi
 
22168
rm -f conftest.err conftest.$ac_objext \
 
22169
      conftest$ac_exeext conftest.$ac_ext
 
22170
fi
 
22171
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
 
22172
echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
 
22173
if test $ac_cv_func_inet_aton = yes; then
 
22174
 
 
22175
cat >>confdefs.h <<\_ACEOF
 
22176
#define HAVE_INET_ATON 1
 
22177
_ACEOF
 
22178
 
 
22179
else
 
22180
  for lib in resolv socket inet bsd; do
 
22181
        as_ac_Lib=`echo "ac_cv_lib_$lib''_inet_aton" | $as_tr_sh`
 
22182
echo "$as_me:$LINENO: checking for inet_aton in -l$lib" >&5
 
22183
echo $ECHO_N "checking for inet_aton in -l$lib... $ECHO_C" >&6
 
22184
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
22185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22186
else
 
22187
  ac_check_lib_save_LIBS=$LIBS
 
22188
LIBS="-l$lib $NETLIBS $LIBS"
 
22189
cat >conftest.$ac_ext <<_ACEOF
 
22190
/* confdefs.h.  */
 
22191
_ACEOF
 
22192
cat confdefs.h >>conftest.$ac_ext
 
22193
cat >>conftest.$ac_ext <<_ACEOF
 
22194
/* end confdefs.h.  */
 
22195
 
 
22196
/* Override any gcc2 internal prototype to avoid an error.  */
 
22197
#ifdef __cplusplus
 
22198
extern "C"
 
22199
#endif
 
22200
/* We use char because int might match the return type of a gcc2
 
22201
   builtin and then its argument prototype would still apply.  */
 
22202
char inet_aton ();
 
22203
int
 
22204
main ()
 
22205
{
 
22206
inet_aton ();
 
22207
  ;
 
22208
  return 0;
 
22209
}
 
22210
_ACEOF
 
22211
rm -f conftest.$ac_objext conftest$ac_exeext
 
22212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22213
  (eval $ac_link) 2>conftest.er1
 
22214
  ac_status=$?
 
22215
  grep -v '^ *+' conftest.er1 >conftest.err
 
22216
  rm -f conftest.er1
 
22217
  cat conftest.err >&5
 
22218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22219
  (exit $ac_status); } &&
 
22220
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22222
  (eval $ac_try) 2>&5
 
22223
  ac_status=$?
 
22224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22225
  (exit $ac_status); }; } &&
 
22226
         { ac_try='test -s conftest$ac_exeext'
 
22227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22228
  (eval $ac_try) 2>&5
 
22229
  ac_status=$?
 
22230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22231
  (exit $ac_status); }; }; then
 
22232
  eval "$as_ac_Lib=yes"
 
22233
else
 
22234
  echo "$as_me: failed program was:" >&5
 
22235
sed 's/^/| /' conftest.$ac_ext >&5
 
22236
 
 
22237
eval "$as_ac_Lib=no"
 
22238
fi
 
22239
rm -f conftest.err conftest.$ac_objext \
 
22240
      conftest$ac_exeext conftest.$ac_ext
 
22241
LIBS=$ac_check_lib_save_LIBS
 
22242
fi
 
22243
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
22244
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
22245
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
22246
  cat >>confdefs.h <<\_ACEOF
 
22247
#define HAVE_INET_ATON 1
 
22248
_ACEOF
 
22249
 
 
22250
                     NETLIBS="$NETLIBS -l$lib"; break
 
22251
fi
 
22252
 
 
22253
     done
 
22254
fi
 
22255
 
 
22256
 
 
22257
 
 
22258
 
 
22259
 
 
22260
 
 
22261
 
 
22262
if test "x$ac_path_x_has_been_run" != xyes; then
 
22263
  echo "$as_me:$LINENO: checking for X" >&5
 
22264
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
22265
 
 
22266
ac_path_x_has_been_run=yes
 
22267
 
 
22268
# Check whether --with-x or --without-x was given.
 
22269
if test "${with_x+set}" = set; then
 
22270
  withval="$with_x"
 
22271
 
 
22272
fi;
 
22273
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
22274
if test "x$with_x" = xno; then
 
22275
  # The user explicitly disabled X.
 
22276
  have_x=disabled
 
22277
else
 
22278
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
22279
    # Both variables are already set.
 
22280
    have_x=yes
 
22281
  else
 
22282
    if test "${ac_cv_have_x+set}" = set; then
 
22283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22284
else
 
22285
  # One or both of the vars are not set, and there is no cached value.
 
22286
ac_x_includes=no ac_x_libraries=no
 
22287
rm -fr conftest.dir
 
22288
if mkdir conftest.dir; then
 
22289
  cd conftest.dir
 
22290
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
22291
  cat >Imakefile <<'_ACEOF'
 
22292
acfindx:
 
22293
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
22294
_ACEOF
 
22295
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
22296
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
22297
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
22298
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
22299
    for ac_extension in a so sl; do
 
22300
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
22301
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
22302
        ac_im_usrlibdir=$ac_im_libdir; break
 
22303
      fi
 
22304
    done
 
22305
    # Screen out bogus values from the imake configuration.  They are
 
22306
    # bogus both because they are the default anyway, and because
 
22307
    # using them would break gcc on systems where it needs fixed includes.
 
22308
    case $ac_im_incroot in
 
22309
        /usr/include) ;;
 
22310
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
22311
    esac
 
22312
    case $ac_im_usrlibdir in
 
22313
        /usr/lib | /lib) ;;
 
22314
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
22315
    esac
 
22316
  fi
 
22317
  cd ..
 
22318
  rm -fr conftest.dir
 
22319
fi
 
22320
 
 
22321
# Standard set of common directories for X headers.
 
22322
# Check X11 before X11Rn because it is often a symlink to the current release.
 
22323
ac_x_header_dirs='
 
22324
/usr/X11/include
 
22325
/usr/X11R6/include
 
22326
/usr/X11R5/include
 
22327
/usr/X11R4/include
 
22328
 
 
22329
/usr/include/X11
 
22330
/usr/include/X11R6
 
22331
/usr/include/X11R5
 
22332
/usr/include/X11R4
 
22333
 
 
22334
/usr/local/X11/include
 
22335
/usr/local/X11R6/include
 
22336
/usr/local/X11R5/include
 
22337
/usr/local/X11R4/include
 
22338
 
 
22339
/usr/local/include/X11
 
22340
/usr/local/include/X11R6
 
22341
/usr/local/include/X11R5
 
22342
/usr/local/include/X11R4
 
22343
 
 
22344
/usr/X386/include
 
22345
/usr/x386/include
 
22346
/usr/XFree86/include/X11
 
22347
 
 
22348
/usr/include
 
22349
/usr/local/include
 
22350
/usr/unsupported/include
 
22351
/usr/athena/include
 
22352
/usr/local/x11r5/include
 
22353
/usr/lpp/Xamples/include
 
22354
 
 
22355
/usr/openwin/include
 
22356
/usr/openwin/share/include'
 
22357
 
 
22358
if test "$ac_x_includes" = no; then
 
22359
  # Guess where to find include files, by looking for a specified header file.
 
22360
  # First, try using that file with no special directory specified.
 
22361
  cat >conftest.$ac_ext <<_ACEOF
 
22362
/* confdefs.h.  */
 
22363
_ACEOF
 
22364
cat confdefs.h >>conftest.$ac_ext
 
22365
cat >>conftest.$ac_ext <<_ACEOF
 
22366
/* end confdefs.h.  */
 
22367
#include <X11/Intrinsic.h>
 
22368
_ACEOF
 
22369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22370
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22371
  ac_status=$?
 
22372
  grep -v '^ *+' conftest.er1 >conftest.err
 
22373
  rm -f conftest.er1
 
22374
  cat conftest.err >&5
 
22375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22376
  (exit $ac_status); } >/dev/null; then
 
22377
  if test -s conftest.err; then
 
22378
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22379
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22380
  else
 
22381
    ac_cpp_err=
 
22382
  fi
 
22383
else
 
22384
  ac_cpp_err=yes
 
22385
fi
 
22386
if test -z "$ac_cpp_err"; then
 
22387
  # We can compile using X headers with no special include directory.
 
22388
ac_x_includes=
 
22389
else
 
22390
  echo "$as_me: failed program was:" >&5
 
22391
sed 's/^/| /' conftest.$ac_ext >&5
 
22392
 
 
22393
  for ac_dir in $ac_x_header_dirs; do
 
22394
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
22395
    ac_x_includes=$ac_dir
 
22396
    break
 
22397
  fi
 
22398
done
 
22399
fi
 
22400
rm -f conftest.err conftest.$ac_ext
 
22401
fi # $ac_x_includes = no
 
22402
 
 
22403
if test "$ac_x_libraries" = no; then
 
22404
  # Check for the libraries.
 
22405
  # See if we find them without any special options.
 
22406
  # Don't add to $LIBS permanently.
 
22407
  ac_save_LIBS=$LIBS
 
22408
  LIBS="-lXt $LIBS"
 
22409
  cat >conftest.$ac_ext <<_ACEOF
 
22410
/* confdefs.h.  */
 
22411
_ACEOF
 
22412
cat confdefs.h >>conftest.$ac_ext
 
22413
cat >>conftest.$ac_ext <<_ACEOF
 
22414
/* end confdefs.h.  */
 
22415
#include <X11/Intrinsic.h>
 
22416
int
 
22417
main ()
 
22418
{
 
22419
XtMalloc (0)
 
22420
  ;
 
22421
  return 0;
 
22422
}
 
22423
_ACEOF
 
22424
rm -f conftest.$ac_objext conftest$ac_exeext
 
22425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22426
  (eval $ac_link) 2>conftest.er1
 
22427
  ac_status=$?
 
22428
  grep -v '^ *+' conftest.er1 >conftest.err
 
22429
  rm -f conftest.er1
 
22430
  cat conftest.err >&5
 
22431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22432
  (exit $ac_status); } &&
 
22433
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22435
  (eval $ac_try) 2>&5
 
22436
  ac_status=$?
 
22437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22438
  (exit $ac_status); }; } &&
 
22439
         { ac_try='test -s conftest$ac_exeext'
 
22440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22441
  (eval $ac_try) 2>&5
 
22442
  ac_status=$?
 
22443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22444
  (exit $ac_status); }; }; then
 
22445
  LIBS=$ac_save_LIBS
 
22446
# We can link X programs with no special library path.
 
22447
ac_x_libraries=
 
22448
else
 
22449
  echo "$as_me: failed program was:" >&5
 
22450
sed 's/^/| /' conftest.$ac_ext >&5
 
22451
 
 
22452
LIBS=$ac_save_LIBS
 
22453
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
22454
do
 
22455
  # Don't even attempt the hair of trying to link an X program!
 
22456
  for ac_extension in a so sl; do
 
22457
    if test -r $ac_dir/libXt.$ac_extension; then
 
22458
      ac_x_libraries=$ac_dir
 
22459
      break 2
 
22460
    fi
 
22461
  done
 
22462
done
 
22463
fi
 
22464
rm -f conftest.err conftest.$ac_objext \
 
22465
      conftest$ac_exeext conftest.$ac_ext
 
22466
fi # $ac_x_libraries = no
 
22467
 
 
22468
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
22469
  # Didn't find X anywhere.  Cache the known absence of X.
 
22470
  ac_cv_have_x="have_x=no"
 
22471
else
 
22472
  # Record where we found X for the cache.
 
22473
  ac_cv_have_x="have_x=yes \
 
22474
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
22475
fi
 
22476
fi
 
22477
 
 
22478
  fi
 
22479
  eval "$ac_cv_have_x"
 
22480
fi # $with_x != no
 
22481
 
 
22482
if test "$have_x" != yes; then
 
22483
  echo "$as_me:$LINENO: result: $have_x" >&5
 
22484
echo "${ECHO_T}$have_x" >&6
 
22485
  no_x=yes
 
22486
else
 
22487
  # If each of the values was on the command line, it overrides each guess.
 
22488
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
22489
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
22490
  # Update the cache value to reflect the command line values.
 
22491
  ac_cv_have_x="have_x=yes \
 
22492
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
22493
  # It might be that x_includes is empty (headers are found in the
 
22494
  # standard search path. Then output the corresponding message
 
22495
  ac_out_x_includes=$x_includes
 
22496
  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
 
22497
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
 
22498
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
 
22499
fi
 
22500
 
 
22501
fi
 
22502
if test "$no_x" = yes; then
 
22503
  # Not all programs may use this symbol, but it does not hurt to define it.
 
22504
 
 
22505
cat >>confdefs.h <<\_ACEOF
 
22506
#define X_DISPLAY_MISSING 1
 
22507
_ACEOF
 
22508
 
 
22509
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
22510
else
 
22511
  if test -n "$x_includes"; then
 
22512
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
22513
  fi
 
22514
 
 
22515
  # It would also be nice to do this for all -L options, not just this one.
 
22516
  if test -n "$x_libraries"; then
 
22517
    X_LIBS="$X_LIBS -L$x_libraries"
 
22518
    # For Solaris; some versions of Sun CC require a space after -R and
 
22519
    # others require no space.  Words are not sufficient . . . .
 
22520
    case `(uname -sr) 2>/dev/null` in
 
22521
    "SunOS 5"*)
 
22522
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
22523
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
22524
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
22525
      cat >conftest.$ac_ext <<_ACEOF
 
22526
/* confdefs.h.  */
 
22527
_ACEOF
 
22528
cat confdefs.h >>conftest.$ac_ext
 
22529
cat >>conftest.$ac_ext <<_ACEOF
 
22530
/* end confdefs.h.  */
 
22531
 
 
22532
int
 
22533
main ()
 
22534
{
 
22535
 
 
22536
  ;
 
22537
  return 0;
 
22538
}
 
22539
_ACEOF
 
22540
rm -f conftest.$ac_objext conftest$ac_exeext
 
22541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22542
  (eval $ac_link) 2>conftest.er1
 
22543
  ac_status=$?
 
22544
  grep -v '^ *+' conftest.er1 >conftest.err
 
22545
  rm -f conftest.er1
 
22546
  cat conftest.err >&5
 
22547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22548
  (exit $ac_status); } &&
 
22549
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22551
  (eval $ac_try) 2>&5
 
22552
  ac_status=$?
 
22553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22554
  (exit $ac_status); }; } &&
 
22555
         { ac_try='test -s conftest$ac_exeext'
 
22556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22557
  (eval $ac_try) 2>&5
 
22558
  ac_status=$?
 
22559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22560
  (exit $ac_status); }; }; then
 
22561
  ac_R_nospace=yes
 
22562
else
 
22563
  echo "$as_me: failed program was:" >&5
 
22564
sed 's/^/| /' conftest.$ac_ext >&5
 
22565
 
 
22566
ac_R_nospace=no
 
22567
fi
 
22568
rm -f conftest.err conftest.$ac_objext \
 
22569
      conftest$ac_exeext conftest.$ac_ext
 
22570
      if test $ac_R_nospace = yes; then
 
22571
        echo "$as_me:$LINENO: result: no" >&5
 
22572
echo "${ECHO_T}no" >&6
 
22573
        X_LIBS="$X_LIBS -R$x_libraries"
 
22574
      else
 
22575
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
22576
        cat >conftest.$ac_ext <<_ACEOF
 
22577
/* confdefs.h.  */
 
22578
_ACEOF
 
22579
cat confdefs.h >>conftest.$ac_ext
 
22580
cat >>conftest.$ac_ext <<_ACEOF
 
22581
/* end confdefs.h.  */
 
22582
 
 
22583
int
 
22584
main ()
 
22585
{
 
22586
 
 
22587
  ;
 
22588
  return 0;
 
22589
}
 
22590
_ACEOF
 
22591
rm -f conftest.$ac_objext conftest$ac_exeext
 
22592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22593
  (eval $ac_link) 2>conftest.er1
 
22594
  ac_status=$?
 
22595
  grep -v '^ *+' conftest.er1 >conftest.err
 
22596
  rm -f conftest.er1
 
22597
  cat conftest.err >&5
 
22598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22599
  (exit $ac_status); } &&
 
22600
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22602
  (eval $ac_try) 2>&5
 
22603
  ac_status=$?
 
22604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22605
  (exit $ac_status); }; } &&
 
22606
         { ac_try='test -s conftest$ac_exeext'
 
22607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22608
  (eval $ac_try) 2>&5
 
22609
  ac_status=$?
 
22610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22611
  (exit $ac_status); }; }; then
 
22612
  ac_R_space=yes
 
22613
else
 
22614
  echo "$as_me: failed program was:" >&5
 
22615
sed 's/^/| /' conftest.$ac_ext >&5
 
22616
 
 
22617
ac_R_space=no
 
22618
fi
 
22619
rm -f conftest.err conftest.$ac_objext \
 
22620
      conftest$ac_exeext conftest.$ac_ext
 
22621
        if test $ac_R_space = yes; then
 
22622
          echo "$as_me:$LINENO: result: yes" >&5
 
22623
echo "${ECHO_T}yes" >&6
 
22624
          X_LIBS="$X_LIBS -R $x_libraries"
 
22625
        else
 
22626
          echo "$as_me:$LINENO: result: neither works" >&5
 
22627
echo "${ECHO_T}neither works" >&6
 
22628
        fi
 
22629
      fi
 
22630
      LIBS=$ac_xsave_LIBS
 
22631
    esac
 
22632
  fi
 
22633
 
 
22634
  # Check for system-dependent libraries X programs must link with.
 
22635
  # Do this before checking for the system-independent R6 libraries
 
22636
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
22637
 
 
22638
  if test "$ISC" = yes; then
 
22639
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
22640
  else
 
22641
    # Martyn Johnson says this is needed for Ultrix, if the X
 
22642
    # libraries were built with DECnet support.  And Karl Berry says
 
22643
    # the Alpha needs dnet_stub (dnet does not exist).
 
22644
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
22645
    cat >conftest.$ac_ext <<_ACEOF
 
22646
/* confdefs.h.  */
 
22647
_ACEOF
 
22648
cat confdefs.h >>conftest.$ac_ext
 
22649
cat >>conftest.$ac_ext <<_ACEOF
 
22650
/* end confdefs.h.  */
 
22651
 
 
22652
/* Override any gcc2 internal prototype to avoid an error.  */
 
22653
#ifdef __cplusplus
 
22654
extern "C"
 
22655
#endif
 
22656
/* We use char because int might match the return type of a gcc2
 
22657
   builtin and then its argument prototype would still apply.  */
 
22658
char XOpenDisplay ();
 
22659
int
 
22660
main ()
 
22661
{
 
22662
XOpenDisplay ();
 
22663
  ;
 
22664
  return 0;
 
22665
}
 
22666
_ACEOF
 
22667
rm -f conftest.$ac_objext conftest$ac_exeext
 
22668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22669
  (eval $ac_link) 2>conftest.er1
 
22670
  ac_status=$?
 
22671
  grep -v '^ *+' conftest.er1 >conftest.err
 
22672
  rm -f conftest.er1
 
22673
  cat conftest.err >&5
 
22674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22675
  (exit $ac_status); } &&
 
22676
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22678
  (eval $ac_try) 2>&5
 
22679
  ac_status=$?
 
22680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22681
  (exit $ac_status); }; } &&
 
22682
         { ac_try='test -s conftest$ac_exeext'
 
22683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22684
  (eval $ac_try) 2>&5
 
22685
  ac_status=$?
 
22686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22687
  (exit $ac_status); }; }; then
 
22688
  :
 
22689
else
 
22690
  echo "$as_me: failed program was:" >&5
 
22691
sed 's/^/| /' conftest.$ac_ext >&5
 
22692
 
 
22693
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
22694
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
22695
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
22696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22697
else
 
22698
  ac_check_lib_save_LIBS=$LIBS
 
22699
LIBS="-ldnet  $LIBS"
 
22700
cat >conftest.$ac_ext <<_ACEOF
 
22701
/* confdefs.h.  */
 
22702
_ACEOF
 
22703
cat confdefs.h >>conftest.$ac_ext
 
22704
cat >>conftest.$ac_ext <<_ACEOF
 
22705
/* end confdefs.h.  */
 
22706
 
 
22707
/* Override any gcc2 internal prototype to avoid an error.  */
 
22708
#ifdef __cplusplus
 
22709
extern "C"
 
22710
#endif
 
22711
/* We use char because int might match the return type of a gcc2
 
22712
   builtin and then its argument prototype would still apply.  */
 
22713
char dnet_ntoa ();
 
22714
int
 
22715
main ()
 
22716
{
 
22717
dnet_ntoa ();
 
22718
  ;
 
22719
  return 0;
 
22720
}
 
22721
_ACEOF
 
22722
rm -f conftest.$ac_objext conftest$ac_exeext
 
22723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22724
  (eval $ac_link) 2>conftest.er1
 
22725
  ac_status=$?
 
22726
  grep -v '^ *+' conftest.er1 >conftest.err
 
22727
  rm -f conftest.er1
 
22728
  cat conftest.err >&5
 
22729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22730
  (exit $ac_status); } &&
 
22731
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22733
  (eval $ac_try) 2>&5
 
22734
  ac_status=$?
 
22735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22736
  (exit $ac_status); }; } &&
 
22737
         { ac_try='test -s conftest$ac_exeext'
 
22738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22739
  (eval $ac_try) 2>&5
 
22740
  ac_status=$?
 
22741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22742
  (exit $ac_status); }; }; then
 
22743
  ac_cv_lib_dnet_dnet_ntoa=yes
 
22744
else
 
22745
  echo "$as_me: failed program was:" >&5
 
22746
sed 's/^/| /' conftest.$ac_ext >&5
 
22747
 
 
22748
ac_cv_lib_dnet_dnet_ntoa=no
 
22749
fi
 
22750
rm -f conftest.err conftest.$ac_objext \
 
22751
      conftest$ac_exeext conftest.$ac_ext
 
22752
LIBS=$ac_check_lib_save_LIBS
 
22753
fi
 
22754
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
22755
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
22756
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
22757
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
22758
fi
 
22759
 
 
22760
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
22761
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
22762
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
22763
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
22764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22765
else
 
22766
  ac_check_lib_save_LIBS=$LIBS
 
22767
LIBS="-ldnet_stub  $LIBS"
 
22768
cat >conftest.$ac_ext <<_ACEOF
 
22769
/* confdefs.h.  */
 
22770
_ACEOF
 
22771
cat confdefs.h >>conftest.$ac_ext
 
22772
cat >>conftest.$ac_ext <<_ACEOF
 
22773
/* end confdefs.h.  */
 
22774
 
 
22775
/* Override any gcc2 internal prototype to avoid an error.  */
 
22776
#ifdef __cplusplus
 
22777
extern "C"
 
22778
#endif
 
22779
/* We use char because int might match the return type of a gcc2
 
22780
   builtin and then its argument prototype would still apply.  */
 
22781
char dnet_ntoa ();
 
22782
int
 
22783
main ()
 
22784
{
 
22785
dnet_ntoa ();
 
22786
  ;
 
22787
  return 0;
 
22788
}
 
22789
_ACEOF
 
22790
rm -f conftest.$ac_objext conftest$ac_exeext
 
22791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22792
  (eval $ac_link) 2>conftest.er1
 
22793
  ac_status=$?
 
22794
  grep -v '^ *+' conftest.er1 >conftest.err
 
22795
  rm -f conftest.er1
 
22796
  cat conftest.err >&5
 
22797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22798
  (exit $ac_status); } &&
 
22799
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22801
  (eval $ac_try) 2>&5
 
22802
  ac_status=$?
 
22803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22804
  (exit $ac_status); }; } &&
 
22805
         { ac_try='test -s conftest$ac_exeext'
 
22806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22807
  (eval $ac_try) 2>&5
 
22808
  ac_status=$?
 
22809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22810
  (exit $ac_status); }; }; then
 
22811
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
22812
else
 
22813
  echo "$as_me: failed program was:" >&5
 
22814
sed 's/^/| /' conftest.$ac_ext >&5
 
22815
 
 
22816
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
22817
fi
 
22818
rm -f conftest.err conftest.$ac_objext \
 
22819
      conftest$ac_exeext conftest.$ac_ext
 
22820
LIBS=$ac_check_lib_save_LIBS
 
22821
fi
 
22822
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
22823
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
22824
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
22825
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
22826
fi
 
22827
 
 
22828
    fi
 
22829
fi
 
22830
rm -f conftest.err conftest.$ac_objext \
 
22831
      conftest$ac_exeext conftest.$ac_ext
 
22832
    LIBS="$ac_xsave_LIBS"
 
22833
 
 
22834
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
22835
    # to get the SysV transport functions.
 
22836
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
22837
    # needs -lnsl.
 
22838
    # The nsl library prevents programs from opening the X display
 
22839
    # on Irix 5.2, according to T.E. Dickey.
 
22840
    # The functions gethostbyname, getservbyname, and inet_addr are
 
22841
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
22842
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
22843
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
22844
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
22845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22846
else
 
22847
  cat >conftest.$ac_ext <<_ACEOF
 
22848
/* confdefs.h.  */
 
22849
_ACEOF
 
22850
cat confdefs.h >>conftest.$ac_ext
 
22851
cat >>conftest.$ac_ext <<_ACEOF
 
22852
/* end confdefs.h.  */
 
22853
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
22854
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22855
#define gethostbyname innocuous_gethostbyname
 
22856
 
 
22857
/* System header to define __stub macros and hopefully few prototypes,
 
22858
    which can conflict with char gethostbyname (); below.
 
22859
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22860
    <limits.h> exists even on freestanding compilers.  */
 
22861
 
 
22862
#ifdef __STDC__
 
22863
# include <limits.h>
 
22864
#else
 
22865
# include <assert.h>
 
22866
#endif
 
22867
 
 
22868
#undef gethostbyname
 
22869
 
 
22870
/* Override any gcc2 internal prototype to avoid an error.  */
 
22871
#ifdef __cplusplus
 
22872
extern "C"
 
22873
{
 
22874
#endif
 
22875
/* We use char because int might match the return type of a gcc2
 
22876
   builtin and then its argument prototype would still apply.  */
 
22877
char gethostbyname ();
 
22878
/* The GNU C library defines this for functions which it implements
 
22879
    to always fail with ENOSYS.  Some functions are actually named
 
22880
    something starting with __ and the normal name is an alias.  */
 
22881
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
22882
choke me
 
22883
#else
 
22884
char (*f) () = gethostbyname;
 
22885
#endif
 
22886
#ifdef __cplusplus
 
22887
}
 
22888
#endif
 
22889
 
 
22890
int
 
22891
main ()
 
22892
{
 
22893
return f != gethostbyname;
 
22894
  ;
 
22895
  return 0;
 
22896
}
 
22897
_ACEOF
 
22898
rm -f conftest.$ac_objext conftest$ac_exeext
 
22899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22900
  (eval $ac_link) 2>conftest.er1
 
22901
  ac_status=$?
 
22902
  grep -v '^ *+' conftest.er1 >conftest.err
 
22903
  rm -f conftest.er1
 
22904
  cat conftest.err >&5
 
22905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22906
  (exit $ac_status); } &&
 
22907
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22909
  (eval $ac_try) 2>&5
 
22910
  ac_status=$?
 
22911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22912
  (exit $ac_status); }; } &&
 
22913
         { ac_try='test -s conftest$ac_exeext'
 
22914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22915
  (eval $ac_try) 2>&5
 
22916
  ac_status=$?
 
22917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22918
  (exit $ac_status); }; }; then
 
22919
  ac_cv_func_gethostbyname=yes
 
22920
else
 
22921
  echo "$as_me: failed program was:" >&5
 
22922
sed 's/^/| /' conftest.$ac_ext >&5
 
22923
 
 
22924
ac_cv_func_gethostbyname=no
 
22925
fi
 
22926
rm -f conftest.err conftest.$ac_objext \
 
22927
      conftest$ac_exeext conftest.$ac_ext
 
22928
fi
 
22929
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
22930
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
22931
 
 
22932
    if test $ac_cv_func_gethostbyname = no; then
 
22933
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
22934
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
22935
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
22936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22937
else
 
22938
  ac_check_lib_save_LIBS=$LIBS
 
22939
LIBS="-lnsl  $LIBS"
 
22940
cat >conftest.$ac_ext <<_ACEOF
 
22941
/* confdefs.h.  */
 
22942
_ACEOF
 
22943
cat confdefs.h >>conftest.$ac_ext
 
22944
cat >>conftest.$ac_ext <<_ACEOF
 
22945
/* end confdefs.h.  */
 
22946
 
 
22947
/* Override any gcc2 internal prototype to avoid an error.  */
 
22948
#ifdef __cplusplus
 
22949
extern "C"
 
22950
#endif
 
22951
/* We use char because int might match the return type of a gcc2
 
22952
   builtin and then its argument prototype would still apply.  */
 
22953
char gethostbyname ();
 
22954
int
 
22955
main ()
 
22956
{
 
22957
gethostbyname ();
 
22958
  ;
 
22959
  return 0;
 
22960
}
 
22961
_ACEOF
 
22962
rm -f conftest.$ac_objext conftest$ac_exeext
 
22963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22964
  (eval $ac_link) 2>conftest.er1
 
22965
  ac_status=$?
 
22966
  grep -v '^ *+' conftest.er1 >conftest.err
 
22967
  rm -f conftest.er1
 
22968
  cat conftest.err >&5
 
22969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22970
  (exit $ac_status); } &&
 
22971
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22973
  (eval $ac_try) 2>&5
 
22974
  ac_status=$?
 
22975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22976
  (exit $ac_status); }; } &&
 
22977
         { ac_try='test -s conftest$ac_exeext'
 
22978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22979
  (eval $ac_try) 2>&5
 
22980
  ac_status=$?
 
22981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22982
  (exit $ac_status); }; }; then
 
22983
  ac_cv_lib_nsl_gethostbyname=yes
 
22984
else
 
22985
  echo "$as_me: failed program was:" >&5
 
22986
sed 's/^/| /' conftest.$ac_ext >&5
 
22987
 
 
22988
ac_cv_lib_nsl_gethostbyname=no
 
22989
fi
 
22990
rm -f conftest.err conftest.$ac_objext \
 
22991
      conftest$ac_exeext conftest.$ac_ext
 
22992
LIBS=$ac_check_lib_save_LIBS
 
22993
fi
 
22994
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
22995
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
22996
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
22997
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
22998
fi
 
22999
 
 
23000
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
23001
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
23002
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
23003
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
23004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23005
else
 
23006
  ac_check_lib_save_LIBS=$LIBS
 
23007
LIBS="-lbsd  $LIBS"
 
23008
cat >conftest.$ac_ext <<_ACEOF
 
23009
/* confdefs.h.  */
 
23010
_ACEOF
 
23011
cat confdefs.h >>conftest.$ac_ext
 
23012
cat >>conftest.$ac_ext <<_ACEOF
 
23013
/* end confdefs.h.  */
 
23014
 
 
23015
/* Override any gcc2 internal prototype to avoid an error.  */
 
23016
#ifdef __cplusplus
 
23017
extern "C"
 
23018
#endif
 
23019
/* We use char because int might match the return type of a gcc2
 
23020
   builtin and then its argument prototype would still apply.  */
 
23021
char gethostbyname ();
 
23022
int
 
23023
main ()
 
23024
{
 
23025
gethostbyname ();
 
23026
  ;
 
23027
  return 0;
 
23028
}
 
23029
_ACEOF
 
23030
rm -f conftest.$ac_objext conftest$ac_exeext
 
23031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23032
  (eval $ac_link) 2>conftest.er1
 
23033
  ac_status=$?
 
23034
  grep -v '^ *+' conftest.er1 >conftest.err
 
23035
  rm -f conftest.er1
 
23036
  cat conftest.err >&5
 
23037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23038
  (exit $ac_status); } &&
 
23039
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23041
  (eval $ac_try) 2>&5
 
23042
  ac_status=$?
 
23043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23044
  (exit $ac_status); }; } &&
 
23045
         { ac_try='test -s conftest$ac_exeext'
 
23046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23047
  (eval $ac_try) 2>&5
 
23048
  ac_status=$?
 
23049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23050
  (exit $ac_status); }; }; then
 
23051
  ac_cv_lib_bsd_gethostbyname=yes
 
23052
else
 
23053
  echo "$as_me: failed program was:" >&5
 
23054
sed 's/^/| /' conftest.$ac_ext >&5
 
23055
 
 
23056
ac_cv_lib_bsd_gethostbyname=no
 
23057
fi
 
23058
rm -f conftest.err conftest.$ac_objext \
 
23059
      conftest$ac_exeext conftest.$ac_ext
 
23060
LIBS=$ac_check_lib_save_LIBS
 
23061
fi
 
23062
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
23063
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
23064
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
23065
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
23066
fi
 
23067
 
 
23068
      fi
 
23069
    fi
 
23070
 
 
23071
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
23072
    # socket/setsockopt and other routines are undefined under SCO ODT
 
23073
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
23074
    # on later versions), says Simon Leinen: it contains gethostby*
 
23075
    # variants that don't use the name server (or something).  -lsocket
 
23076
    # must be given before -lnsl if both are needed.  We assume that
 
23077
    # if connect needs -lnsl, so does gethostbyname.
 
23078
    echo "$as_me:$LINENO: checking for connect" >&5
 
23079
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
23080
if test "${ac_cv_func_connect+set}" = set; then
 
23081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23082
else
 
23083
  cat >conftest.$ac_ext <<_ACEOF
 
23084
/* confdefs.h.  */
 
23085
_ACEOF
 
23086
cat confdefs.h >>conftest.$ac_ext
 
23087
cat >>conftest.$ac_ext <<_ACEOF
 
23088
/* end confdefs.h.  */
 
23089
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
23090
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23091
#define connect innocuous_connect
 
23092
 
 
23093
/* System header to define __stub macros and hopefully few prototypes,
 
23094
    which can conflict with char connect (); below.
 
23095
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23096
    <limits.h> exists even on freestanding compilers.  */
 
23097
 
 
23098
#ifdef __STDC__
 
23099
# include <limits.h>
 
23100
#else
 
23101
# include <assert.h>
 
23102
#endif
 
23103
 
 
23104
#undef connect
 
23105
 
 
23106
/* Override any gcc2 internal prototype to avoid an error.  */
 
23107
#ifdef __cplusplus
 
23108
extern "C"
 
23109
{
 
23110
#endif
 
23111
/* We use char because int might match the return type of a gcc2
 
23112
   builtin and then its argument prototype would still apply.  */
 
23113
char connect ();
 
23114
/* The GNU C library defines this for functions which it implements
 
23115
    to always fail with ENOSYS.  Some functions are actually named
 
23116
    something starting with __ and the normal name is an alias.  */
 
23117
#if defined (__stub_connect) || defined (__stub___connect)
 
23118
choke me
 
23119
#else
 
23120
char (*f) () = connect;
 
23121
#endif
 
23122
#ifdef __cplusplus
 
23123
}
 
23124
#endif
 
23125
 
 
23126
int
 
23127
main ()
 
23128
{
 
23129
return f != connect;
 
23130
  ;
 
23131
  return 0;
 
23132
}
 
23133
_ACEOF
 
23134
rm -f conftest.$ac_objext conftest$ac_exeext
 
23135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23136
  (eval $ac_link) 2>conftest.er1
 
23137
  ac_status=$?
 
23138
  grep -v '^ *+' conftest.er1 >conftest.err
 
23139
  rm -f conftest.er1
 
23140
  cat conftest.err >&5
 
23141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23142
  (exit $ac_status); } &&
 
23143
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23145
  (eval $ac_try) 2>&5
 
23146
  ac_status=$?
 
23147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23148
  (exit $ac_status); }; } &&
 
23149
         { ac_try='test -s conftest$ac_exeext'
 
23150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23151
  (eval $ac_try) 2>&5
 
23152
  ac_status=$?
 
23153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23154
  (exit $ac_status); }; }; then
 
23155
  ac_cv_func_connect=yes
 
23156
else
 
23157
  echo "$as_me: failed program was:" >&5
 
23158
sed 's/^/| /' conftest.$ac_ext >&5
 
23159
 
 
23160
ac_cv_func_connect=no
 
23161
fi
 
23162
rm -f conftest.err conftest.$ac_objext \
 
23163
      conftest$ac_exeext conftest.$ac_ext
 
23164
fi
 
23165
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
23166
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
23167
 
 
23168
    if test $ac_cv_func_connect = no; then
 
23169
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
23170
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
23171
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
23172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23173
else
 
23174
  ac_check_lib_save_LIBS=$LIBS
 
23175
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
23176
cat >conftest.$ac_ext <<_ACEOF
 
23177
/* confdefs.h.  */
 
23178
_ACEOF
 
23179
cat confdefs.h >>conftest.$ac_ext
 
23180
cat >>conftest.$ac_ext <<_ACEOF
 
23181
/* end confdefs.h.  */
 
23182
 
 
23183
/* Override any gcc2 internal prototype to avoid an error.  */
 
23184
#ifdef __cplusplus
 
23185
extern "C"
 
23186
#endif
 
23187
/* We use char because int might match the return type of a gcc2
 
23188
   builtin and then its argument prototype would still apply.  */
 
23189
char connect ();
 
23190
int
 
23191
main ()
 
23192
{
 
23193
connect ();
 
23194
  ;
 
23195
  return 0;
 
23196
}
 
23197
_ACEOF
 
23198
rm -f conftest.$ac_objext conftest$ac_exeext
 
23199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23200
  (eval $ac_link) 2>conftest.er1
 
23201
  ac_status=$?
 
23202
  grep -v '^ *+' conftest.er1 >conftest.err
 
23203
  rm -f conftest.er1
 
23204
  cat conftest.err >&5
 
23205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23206
  (exit $ac_status); } &&
 
23207
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23209
  (eval $ac_try) 2>&5
 
23210
  ac_status=$?
 
23211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23212
  (exit $ac_status); }; } &&
 
23213
         { ac_try='test -s conftest$ac_exeext'
 
23214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23215
  (eval $ac_try) 2>&5
 
23216
  ac_status=$?
 
23217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23218
  (exit $ac_status); }; }; then
 
23219
  ac_cv_lib_socket_connect=yes
 
23220
else
 
23221
  echo "$as_me: failed program was:" >&5
 
23222
sed 's/^/| /' conftest.$ac_ext >&5
 
23223
 
 
23224
ac_cv_lib_socket_connect=no
 
23225
fi
 
23226
rm -f conftest.err conftest.$ac_objext \
 
23227
      conftest$ac_exeext conftest.$ac_ext
 
23228
LIBS=$ac_check_lib_save_LIBS
 
23229
fi
 
23230
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
23231
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
23232
if test $ac_cv_lib_socket_connect = yes; then
 
23233
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
23234
fi
 
23235
 
 
23236
    fi
 
23237
 
 
23238
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
23239
    echo "$as_me:$LINENO: checking for remove" >&5
 
23240
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
23241
if test "${ac_cv_func_remove+set}" = set; then
 
23242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23243
else
 
23244
  cat >conftest.$ac_ext <<_ACEOF
 
23245
/* confdefs.h.  */
 
23246
_ACEOF
 
23247
cat confdefs.h >>conftest.$ac_ext
 
23248
cat >>conftest.$ac_ext <<_ACEOF
 
23249
/* end confdefs.h.  */
 
23250
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
23251
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23252
#define remove innocuous_remove
 
23253
 
 
23254
/* System header to define __stub macros and hopefully few prototypes,
 
23255
    which can conflict with char remove (); below.
 
23256
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23257
    <limits.h> exists even on freestanding compilers.  */
 
23258
 
 
23259
#ifdef __STDC__
 
23260
# include <limits.h>
 
23261
#else
 
23262
# include <assert.h>
 
23263
#endif
 
23264
 
 
23265
#undef remove
 
23266
 
 
23267
/* Override any gcc2 internal prototype to avoid an error.  */
 
23268
#ifdef __cplusplus
 
23269
extern "C"
 
23270
{
 
23271
#endif
 
23272
/* We use char because int might match the return type of a gcc2
 
23273
   builtin and then its argument prototype would still apply.  */
 
23274
char remove ();
 
23275
/* The GNU C library defines this for functions which it implements
 
23276
    to always fail with ENOSYS.  Some functions are actually named
 
23277
    something starting with __ and the normal name is an alias.  */
 
23278
#if defined (__stub_remove) || defined (__stub___remove)
 
23279
choke me
 
23280
#else
 
23281
char (*f) () = remove;
 
23282
#endif
 
23283
#ifdef __cplusplus
 
23284
}
 
23285
#endif
 
23286
 
 
23287
int
 
23288
main ()
 
23289
{
 
23290
return f != remove;
 
23291
  ;
 
23292
  return 0;
 
23293
}
 
23294
_ACEOF
 
23295
rm -f conftest.$ac_objext conftest$ac_exeext
 
23296
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23297
  (eval $ac_link) 2>conftest.er1
 
23298
  ac_status=$?
 
23299
  grep -v '^ *+' conftest.er1 >conftest.err
 
23300
  rm -f conftest.er1
 
23301
  cat conftest.err >&5
 
23302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23303
  (exit $ac_status); } &&
 
23304
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23306
  (eval $ac_try) 2>&5
 
23307
  ac_status=$?
 
23308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23309
  (exit $ac_status); }; } &&
 
23310
         { ac_try='test -s conftest$ac_exeext'
 
23311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23312
  (eval $ac_try) 2>&5
 
23313
  ac_status=$?
 
23314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23315
  (exit $ac_status); }; }; then
 
23316
  ac_cv_func_remove=yes
 
23317
else
 
23318
  echo "$as_me: failed program was:" >&5
 
23319
sed 's/^/| /' conftest.$ac_ext >&5
 
23320
 
 
23321
ac_cv_func_remove=no
 
23322
fi
 
23323
rm -f conftest.err conftest.$ac_objext \
 
23324
      conftest$ac_exeext conftest.$ac_ext
 
23325
fi
 
23326
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
23327
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
23328
 
 
23329
    if test $ac_cv_func_remove = no; then
 
23330
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
23331
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
23332
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
23333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23334
else
 
23335
  ac_check_lib_save_LIBS=$LIBS
 
23336
LIBS="-lposix  $LIBS"
 
23337
cat >conftest.$ac_ext <<_ACEOF
 
23338
/* confdefs.h.  */
 
23339
_ACEOF
 
23340
cat confdefs.h >>conftest.$ac_ext
 
23341
cat >>conftest.$ac_ext <<_ACEOF
 
23342
/* end confdefs.h.  */
 
23343
 
 
23344
/* Override any gcc2 internal prototype to avoid an error.  */
 
23345
#ifdef __cplusplus
 
23346
extern "C"
 
23347
#endif
 
23348
/* We use char because int might match the return type of a gcc2
 
23349
   builtin and then its argument prototype would still apply.  */
 
23350
char remove ();
 
23351
int
 
23352
main ()
 
23353
{
 
23354
remove ();
 
23355
  ;
 
23356
  return 0;
 
23357
}
 
23358
_ACEOF
 
23359
rm -f conftest.$ac_objext conftest$ac_exeext
 
23360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23361
  (eval $ac_link) 2>conftest.er1
 
23362
  ac_status=$?
 
23363
  grep -v '^ *+' conftest.er1 >conftest.err
 
23364
  rm -f conftest.er1
 
23365
  cat conftest.err >&5
 
23366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23367
  (exit $ac_status); } &&
 
23368
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23370
  (eval $ac_try) 2>&5
 
23371
  ac_status=$?
 
23372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23373
  (exit $ac_status); }; } &&
 
23374
         { ac_try='test -s conftest$ac_exeext'
 
23375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23376
  (eval $ac_try) 2>&5
 
23377
  ac_status=$?
 
23378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23379
  (exit $ac_status); }; }; then
 
23380
  ac_cv_lib_posix_remove=yes
 
23381
else
 
23382
  echo "$as_me: failed program was:" >&5
 
23383
sed 's/^/| /' conftest.$ac_ext >&5
 
23384
 
 
23385
ac_cv_lib_posix_remove=no
 
23386
fi
 
23387
rm -f conftest.err conftest.$ac_objext \
 
23388
      conftest$ac_exeext conftest.$ac_ext
 
23389
LIBS=$ac_check_lib_save_LIBS
 
23390
fi
 
23391
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
23392
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
23393
if test $ac_cv_lib_posix_remove = yes; then
 
23394
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
23395
fi
 
23396
 
 
23397
    fi
 
23398
 
 
23399
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
23400
    echo "$as_me:$LINENO: checking for shmat" >&5
 
23401
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
23402
if test "${ac_cv_func_shmat+set}" = set; then
 
23403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23404
else
 
23405
  cat >conftest.$ac_ext <<_ACEOF
 
23406
/* confdefs.h.  */
 
23407
_ACEOF
 
23408
cat confdefs.h >>conftest.$ac_ext
 
23409
cat >>conftest.$ac_ext <<_ACEOF
 
23410
/* end confdefs.h.  */
 
23411
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
23412
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23413
#define shmat innocuous_shmat
 
23414
 
 
23415
/* System header to define __stub macros and hopefully few prototypes,
 
23416
    which can conflict with char shmat (); below.
 
23417
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23418
    <limits.h> exists even on freestanding compilers.  */
 
23419
 
 
23420
#ifdef __STDC__
 
23421
# include <limits.h>
 
23422
#else
 
23423
# include <assert.h>
 
23424
#endif
 
23425
 
 
23426
#undef shmat
 
23427
 
 
23428
/* Override any gcc2 internal prototype to avoid an error.  */
 
23429
#ifdef __cplusplus
 
23430
extern "C"
 
23431
{
 
23432
#endif
 
23433
/* We use char because int might match the return type of a gcc2
 
23434
   builtin and then its argument prototype would still apply.  */
 
23435
char shmat ();
 
23436
/* The GNU C library defines this for functions which it implements
 
23437
    to always fail with ENOSYS.  Some functions are actually named
 
23438
    something starting with __ and the normal name is an alias.  */
 
23439
#if defined (__stub_shmat) || defined (__stub___shmat)
 
23440
choke me
 
23441
#else
 
23442
char (*f) () = shmat;
 
23443
#endif
 
23444
#ifdef __cplusplus
 
23445
}
 
23446
#endif
 
23447
 
 
23448
int
 
23449
main ()
 
23450
{
 
23451
return f != shmat;
 
23452
  ;
 
23453
  return 0;
 
23454
}
 
23455
_ACEOF
 
23456
rm -f conftest.$ac_objext conftest$ac_exeext
 
23457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23458
  (eval $ac_link) 2>conftest.er1
 
23459
  ac_status=$?
 
23460
  grep -v '^ *+' conftest.er1 >conftest.err
 
23461
  rm -f conftest.er1
 
23462
  cat conftest.err >&5
 
23463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23464
  (exit $ac_status); } &&
 
23465
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23467
  (eval $ac_try) 2>&5
 
23468
  ac_status=$?
 
23469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23470
  (exit $ac_status); }; } &&
 
23471
         { ac_try='test -s conftest$ac_exeext'
 
23472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23473
  (eval $ac_try) 2>&5
 
23474
  ac_status=$?
 
23475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23476
  (exit $ac_status); }; }; then
 
23477
  ac_cv_func_shmat=yes
 
23478
else
 
23479
  echo "$as_me: failed program was:" >&5
 
23480
sed 's/^/| /' conftest.$ac_ext >&5
 
23481
 
 
23482
ac_cv_func_shmat=no
 
23483
fi
 
23484
rm -f conftest.err conftest.$ac_objext \
 
23485
      conftest$ac_exeext conftest.$ac_ext
 
23486
fi
 
23487
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
23488
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
23489
 
 
23490
    if test $ac_cv_func_shmat = no; then
 
23491
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
23492
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
23493
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
23494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23495
else
 
23496
  ac_check_lib_save_LIBS=$LIBS
 
23497
LIBS="-lipc  $LIBS"
 
23498
cat >conftest.$ac_ext <<_ACEOF
 
23499
/* confdefs.h.  */
 
23500
_ACEOF
 
23501
cat confdefs.h >>conftest.$ac_ext
 
23502
cat >>conftest.$ac_ext <<_ACEOF
 
23503
/* end confdefs.h.  */
 
23504
 
 
23505
/* Override any gcc2 internal prototype to avoid an error.  */
 
23506
#ifdef __cplusplus
 
23507
extern "C"
 
23508
#endif
 
23509
/* We use char because int might match the return type of a gcc2
 
23510
   builtin and then its argument prototype would still apply.  */
 
23511
char shmat ();
 
23512
int
 
23513
main ()
 
23514
{
 
23515
shmat ();
 
23516
  ;
 
23517
  return 0;
 
23518
}
 
23519
_ACEOF
 
23520
rm -f conftest.$ac_objext conftest$ac_exeext
 
23521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23522
  (eval $ac_link) 2>conftest.er1
 
23523
  ac_status=$?
 
23524
  grep -v '^ *+' conftest.er1 >conftest.err
 
23525
  rm -f conftest.er1
 
23526
  cat conftest.err >&5
 
23527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23528
  (exit $ac_status); } &&
 
23529
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23531
  (eval $ac_try) 2>&5
 
23532
  ac_status=$?
 
23533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23534
  (exit $ac_status); }; } &&
 
23535
         { ac_try='test -s conftest$ac_exeext'
 
23536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23537
  (eval $ac_try) 2>&5
 
23538
  ac_status=$?
 
23539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23540
  (exit $ac_status); }; }; then
 
23541
  ac_cv_lib_ipc_shmat=yes
 
23542
else
 
23543
  echo "$as_me: failed program was:" >&5
 
23544
sed 's/^/| /' conftest.$ac_ext >&5
 
23545
 
 
23546
ac_cv_lib_ipc_shmat=no
 
23547
fi
 
23548
rm -f conftest.err conftest.$ac_objext \
 
23549
      conftest$ac_exeext conftest.$ac_ext
 
23550
LIBS=$ac_check_lib_save_LIBS
 
23551
fi
 
23552
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
23553
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
23554
if test $ac_cv_lib_ipc_shmat = yes; then
 
23555
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
23556
fi
 
23557
 
 
23558
    fi
 
23559
  fi
 
23560
 
 
23561
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
23562
  ac_save_LDFLAGS=$LDFLAGS
 
23563
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
23564
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
23565
  # check for ICE first), but we must link in the order -lSM -lICE or
 
23566
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
23567
  # These have to be linked with before -lX11, unlike the other
 
23568
  # libraries we check for below, so use a different variable.
 
23569
  # John Interrante, Karl Berry
 
23570
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
23571
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
23572
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
23573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23574
else
 
23575
  ac_check_lib_save_LIBS=$LIBS
 
23576
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
23577
cat >conftest.$ac_ext <<_ACEOF
 
23578
/* confdefs.h.  */
 
23579
_ACEOF
 
23580
cat confdefs.h >>conftest.$ac_ext
 
23581
cat >>conftest.$ac_ext <<_ACEOF
 
23582
/* end confdefs.h.  */
 
23583
 
 
23584
/* Override any gcc2 internal prototype to avoid an error.  */
 
23585
#ifdef __cplusplus
 
23586
extern "C"
 
23587
#endif
 
23588
/* We use char because int might match the return type of a gcc2
 
23589
   builtin and then its argument prototype would still apply.  */
 
23590
char IceConnectionNumber ();
 
23591
int
 
23592
main ()
 
23593
{
 
23594
IceConnectionNumber ();
 
23595
  ;
 
23596
  return 0;
 
23597
}
 
23598
_ACEOF
 
23599
rm -f conftest.$ac_objext conftest$ac_exeext
 
23600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23601
  (eval $ac_link) 2>conftest.er1
 
23602
  ac_status=$?
 
23603
  grep -v '^ *+' conftest.er1 >conftest.err
 
23604
  rm -f conftest.er1
 
23605
  cat conftest.err >&5
 
23606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23607
  (exit $ac_status); } &&
 
23608
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23610
  (eval $ac_try) 2>&5
 
23611
  ac_status=$?
 
23612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23613
  (exit $ac_status); }; } &&
 
23614
         { ac_try='test -s conftest$ac_exeext'
 
23615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23616
  (eval $ac_try) 2>&5
 
23617
  ac_status=$?
 
23618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23619
  (exit $ac_status); }; }; then
 
23620
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
23621
else
 
23622
  echo "$as_me: failed program was:" >&5
 
23623
sed 's/^/| /' conftest.$ac_ext >&5
 
23624
 
 
23625
ac_cv_lib_ICE_IceConnectionNumber=no
 
23626
fi
 
23627
rm -f conftest.err conftest.$ac_objext \
 
23628
      conftest$ac_exeext conftest.$ac_ext
 
23629
LIBS=$ac_check_lib_save_LIBS
 
23630
fi
 
23631
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
23632
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
23633
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
23634
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
23635
fi
 
23636
 
 
23637
  LDFLAGS=$ac_save_LDFLAGS
 
23638
 
 
23639
fi
 
23640
 
 
23641
 
 
23642
if test $no_x; then
 
23643
    { { echo "$as_me:$LINENO: error: The path for the X11 files not found!
 
23644
Make sure you have X and it's headers and libraries (the -devel packages
 
23645
in Linux) installed." >&5
 
23646
echo "$as_me: error: The path for the X11 files not found!
 
23647
Make sure you have X and it's headers and libraries (the -devel packages
 
23648
in Linux) installed." >&2;}
 
23649
   { (exit 1); exit 1; }; }
 
23650
fi
 
23651
 
 
23652
X_LIBRARY_PATH=$x_libraries
 
23653
 
 
23654
XCFLAGS="$X_CFLAGS"
 
23655
 
 
23656
XLFLAGS="$X_LIBS"
 
23657
 
 
23658
XLIBS="-lX11 $X_EXTRA_LIBS"
 
23659
 
 
23660
 
 
23661
lib_search_path="$lib_search_path $XLFLAGS"
 
23662
inc_search_path="$inc_search_path $XCFLAGS"
 
23663
 
 
23664
 
 
23665
 
 
23666
 
 
23667
 
 
23668
 
 
23669
use_locale=yes
 
23670
# Check whether --enable-locale or --disable-locale was given.
 
23671
if test "${enable_locale+set}" = set; then
 
23672
  enableval="$enable_locale"
 
23673
  use_locale=no
 
23674
fi;
 
23675
 
 
23676
if test "$use_locale" = yes; then
 
23677
        echo "$as_me:$LINENO: checking for _Xsetlocale in -lX11" >&5
 
23678
echo $ECHO_N "checking for _Xsetlocale in -lX11... $ECHO_C" >&6
 
23679
if test "${ac_cv_lib_X11__Xsetlocale+set}" = set; then
 
23680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23681
else
 
23682
  ac_check_lib_save_LIBS=$LIBS
 
23683
LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
 
23684
cat >conftest.$ac_ext <<_ACEOF
 
23685
/* confdefs.h.  */
 
23686
_ACEOF
 
23687
cat confdefs.h >>conftest.$ac_ext
 
23688
cat >>conftest.$ac_ext <<_ACEOF
 
23689
/* end confdefs.h.  */
 
23690
 
 
23691
/* Override any gcc2 internal prototype to avoid an error.  */
 
23692
#ifdef __cplusplus
 
23693
extern "C"
 
23694
#endif
 
23695
/* We use char because int might match the return type of a gcc2
 
23696
   builtin and then its argument prototype would still apply.  */
 
23697
char _Xsetlocale ();
 
23698
int
 
23699
main ()
 
23700
{
 
23701
_Xsetlocale ();
 
23702
  ;
 
23703
  return 0;
 
23704
}
 
23705
_ACEOF
 
23706
rm -f conftest.$ac_objext conftest$ac_exeext
 
23707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23708
  (eval $ac_link) 2>conftest.er1
 
23709
  ac_status=$?
 
23710
  grep -v '^ *+' conftest.er1 >conftest.err
 
23711
  rm -f conftest.er1
 
23712
  cat conftest.err >&5
 
23713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23714
  (exit $ac_status); } &&
 
23715
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23717
  (eval $ac_try) 2>&5
 
23718
  ac_status=$?
 
23719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23720
  (exit $ac_status); }; } &&
 
23721
         { ac_try='test -s conftest$ac_exeext'
 
23722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23723
  (eval $ac_try) 2>&5
 
23724
  ac_status=$?
 
23725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23726
  (exit $ac_status); }; }; then
 
23727
  ac_cv_lib_X11__Xsetlocale=yes
 
23728
else
 
23729
  echo "$as_me: failed program was:" >&5
 
23730
sed 's/^/| /' conftest.$ac_ext >&5
 
23731
 
 
23732
ac_cv_lib_X11__Xsetlocale=no
 
23733
fi
 
23734
rm -f conftest.err conftest.$ac_objext \
 
23735
      conftest$ac_exeext conftest.$ac_ext
 
23736
LIBS=$ac_check_lib_save_LIBS
 
23737
fi
 
23738
echo "$as_me:$LINENO: result: $ac_cv_lib_X11__Xsetlocale" >&5
 
23739
echo "${ECHO_T}$ac_cv_lib_X11__Xsetlocale" >&6
 
23740
if test $ac_cv_lib_X11__Xsetlocale = yes; then
 
23741
 
 
23742
cat >>confdefs.h <<\_ACEOF
 
23743
#define X_LOCALE 1
 
23744
_ACEOF
 
23745
 
 
23746
fi
 
23747
 
 
23748
fi
 
23749
 
 
23750
 
 
23751
echo "$as_me:$LINENO: checking for XInternAtoms in -lX11" >&5
 
23752
echo $ECHO_N "checking for XInternAtoms in -lX11... $ECHO_C" >&6
 
23753
if test "${ac_cv_lib_X11_XInternAtoms+set}" = set; then
 
23754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23755
else
 
23756
  ac_check_lib_save_LIBS=$LIBS
 
23757
LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
 
23758
cat >conftest.$ac_ext <<_ACEOF
 
23759
/* confdefs.h.  */
 
23760
_ACEOF
 
23761
cat confdefs.h >>conftest.$ac_ext
 
23762
cat >>conftest.$ac_ext <<_ACEOF
 
23763
/* end confdefs.h.  */
 
23764
 
 
23765
/* Override any gcc2 internal prototype to avoid an error.  */
 
23766
#ifdef __cplusplus
 
23767
extern "C"
 
23768
#endif
 
23769
/* We use char because int might match the return type of a gcc2
 
23770
   builtin and then its argument prototype would still apply.  */
 
23771
char XInternAtoms ();
 
23772
int
 
23773
main ()
 
23774
{
 
23775
XInternAtoms ();
 
23776
  ;
 
23777
  return 0;
 
23778
}
 
23779
_ACEOF
 
23780
rm -f conftest.$ac_objext conftest$ac_exeext
 
23781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23782
  (eval $ac_link) 2>conftest.er1
 
23783
  ac_status=$?
 
23784
  grep -v '^ *+' conftest.er1 >conftest.err
 
23785
  rm -f conftest.er1
 
23786
  cat conftest.err >&5
 
23787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23788
  (exit $ac_status); } &&
 
23789
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23791
  (eval $ac_try) 2>&5
 
23792
  ac_status=$?
 
23793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23794
  (exit $ac_status); }; } &&
 
23795
         { ac_try='test -s conftest$ac_exeext'
 
23796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23797
  (eval $ac_try) 2>&5
 
23798
  ac_status=$?
 
23799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23800
  (exit $ac_status); }; }; then
 
23801
  ac_cv_lib_X11_XInternAtoms=yes
 
23802
else
 
23803
  echo "$as_me: failed program was:" >&5
 
23804
sed 's/^/| /' conftest.$ac_ext >&5
 
23805
 
 
23806
ac_cv_lib_X11_XInternAtoms=no
 
23807
fi
 
23808
rm -f conftest.err conftest.$ac_objext \
 
23809
      conftest$ac_exeext conftest.$ac_ext
 
23810
LIBS=$ac_check_lib_save_LIBS
 
23811
fi
 
23812
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XInternAtoms" >&5
 
23813
echo "${ECHO_T}$ac_cv_lib_X11_XInternAtoms" >&6
 
23814
if test $ac_cv_lib_X11_XInternAtoms = yes; then
 
23815
 
 
23816
cat >>confdefs.h <<\_ACEOF
 
23817
#define HAVE_XINTERNATOMS 1
 
23818
_ACEOF
 
23819
 
 
23820
fi
 
23821
 
 
23822
 
 
23823
echo "$as_me:$LINENO: checking for XConvertCase in -lX11" >&5
 
23824
echo $ECHO_N "checking for XConvertCase in -lX11... $ECHO_C" >&6
 
23825
if test "${ac_cv_lib_X11_XConvertCase+set}" = set; then
 
23826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23827
else
 
23828
  ac_check_lib_save_LIBS=$LIBS
 
23829
LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
 
23830
cat >conftest.$ac_ext <<_ACEOF
 
23831
/* confdefs.h.  */
 
23832
_ACEOF
 
23833
cat confdefs.h >>conftest.$ac_ext
 
23834
cat >>conftest.$ac_ext <<_ACEOF
 
23835
/* end confdefs.h.  */
 
23836
 
 
23837
/* Override any gcc2 internal prototype to avoid an error.  */
 
23838
#ifdef __cplusplus
 
23839
extern "C"
 
23840
#endif
 
23841
/* We use char because int might match the return type of a gcc2
 
23842
   builtin and then its argument prototype would still apply.  */
 
23843
char XConvertCase ();
 
23844
int
 
23845
main ()
 
23846
{
 
23847
XConvertCase ();
 
23848
  ;
 
23849
  return 0;
 
23850
}
 
23851
_ACEOF
 
23852
rm -f conftest.$ac_objext conftest$ac_exeext
 
23853
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23854
  (eval $ac_link) 2>conftest.er1
 
23855
  ac_status=$?
 
23856
  grep -v '^ *+' conftest.er1 >conftest.err
 
23857
  rm -f conftest.er1
 
23858
  cat conftest.err >&5
 
23859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23860
  (exit $ac_status); } &&
 
23861
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23863
  (eval $ac_try) 2>&5
 
23864
  ac_status=$?
 
23865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23866
  (exit $ac_status); }; } &&
 
23867
         { ac_try='test -s conftest$ac_exeext'
 
23868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23869
  (eval $ac_try) 2>&5
 
23870
  ac_status=$?
 
23871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23872
  (exit $ac_status); }; }; then
 
23873
  ac_cv_lib_X11_XConvertCase=yes
 
23874
else
 
23875
  echo "$as_me: failed program was:" >&5
 
23876
sed 's/^/| /' conftest.$ac_ext >&5
 
23877
 
 
23878
ac_cv_lib_X11_XConvertCase=no
 
23879
fi
 
23880
rm -f conftest.err conftest.$ac_objext \
 
23881
      conftest$ac_exeext conftest.$ac_ext
 
23882
LIBS=$ac_check_lib_save_LIBS
 
23883
fi
 
23884
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XConvertCase" >&5
 
23885
echo "${ECHO_T}$ac_cv_lib_X11_XConvertCase" >&6
 
23886
if test $ac_cv_lib_X11_XConvertCase = yes; then
 
23887
 
 
23888
cat >>confdefs.h <<\_ACEOF
 
23889
#define HAVE_XCONVERTCASE 1
 
23890
_ACEOF
 
23891
 
 
23892
fi
 
23893
 
 
23894
 
 
23895
 
 
23896
# Check whether --enable-modelock or --disable-modelock was given.
 
23897
if test "${enable_modelock+set}" = set; then
 
23898
  enableval="$enable_modelock"
 
23899
 
 
23900
cat >>confdefs.h <<\_ACEOF
 
23901
#define XKB_MODELOCK 1
 
23902
_ACEOF
 
23903
 
 
23904
fi;
 
23905
 
 
23906
 
 
23907
 
 
23908
shape=yes
 
23909
# Check whether --enable-shape or --disable-shape was given.
 
23910
if test "${enable_shape+set}" = set; then
 
23911
  enableval="$enable_shape"
 
23912
  shape=$enableval
 
23913
else
 
23914
  shape=yes
 
23915
fi;
 
23916
 
 
23917
added_xext=no
 
23918
 
 
23919
if test "$shape" = yes; then
 
23920
        echo "$as_me:$LINENO: checking for XShapeSelectInput in -lXext" >&5
 
23921
echo $ECHO_N "checking for XShapeSelectInput in -lXext... $ECHO_C" >&6
 
23922
if test "${ac_cv_lib_Xext_XShapeSelectInput+set}" = set; then
 
23923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23924
else
 
23925
  ac_check_lib_save_LIBS=$LIBS
 
23926
LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
 
23927
cat >conftest.$ac_ext <<_ACEOF
 
23928
/* confdefs.h.  */
 
23929
_ACEOF
 
23930
cat confdefs.h >>conftest.$ac_ext
 
23931
cat >>conftest.$ac_ext <<_ACEOF
 
23932
/* end confdefs.h.  */
 
23933
 
 
23934
/* Override any gcc2 internal prototype to avoid an error.  */
 
23935
#ifdef __cplusplus
 
23936
extern "C"
 
23937
#endif
 
23938
/* We use char because int might match the return type of a gcc2
 
23939
   builtin and then its argument prototype would still apply.  */
 
23940
char XShapeSelectInput ();
 
23941
int
 
23942
main ()
 
23943
{
 
23944
XShapeSelectInput ();
 
23945
  ;
 
23946
  return 0;
 
23947
}
 
23948
_ACEOF
 
23949
rm -f conftest.$ac_objext conftest$ac_exeext
 
23950
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23951
  (eval $ac_link) 2>conftest.er1
 
23952
  ac_status=$?
 
23953
  grep -v '^ *+' conftest.er1 >conftest.err
 
23954
  rm -f conftest.er1
 
23955
  cat conftest.err >&5
 
23956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23957
  (exit $ac_status); } &&
 
23958
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23960
  (eval $ac_try) 2>&5
 
23961
  ac_status=$?
 
23962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23963
  (exit $ac_status); }; } &&
 
23964
         { ac_try='test -s conftest$ac_exeext'
 
23965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23966
  (eval $ac_try) 2>&5
 
23967
  ac_status=$?
 
23968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23969
  (exit $ac_status); }; }; then
 
23970
  ac_cv_lib_Xext_XShapeSelectInput=yes
 
23971
else
 
23972
  echo "$as_me: failed program was:" >&5
 
23973
sed 's/^/| /' conftest.$ac_ext >&5
 
23974
 
 
23975
ac_cv_lib_Xext_XShapeSelectInput=no
 
23976
fi
 
23977
rm -f conftest.err conftest.$ac_objext \
 
23978
      conftest$ac_exeext conftest.$ac_ext
 
23979
LIBS=$ac_check_lib_save_LIBS
 
23980
fi
 
23981
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeSelectInput" >&5
 
23982
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeSelectInput" >&6
 
23983
if test $ac_cv_lib_Xext_XShapeSelectInput = yes; then
 
23984
  XLIBS="-lXext $XLIBS"
 
23985
                added_xext=yes
 
23986
 
 
23987
cat >>confdefs.h <<\_ACEOF
 
23988
#define SHAPE 1
 
23989
_ACEOF
 
23990
 
 
23991
else
 
23992
  shape=no
 
23993
fi
 
23994
 
 
23995
fi
 
23996
 
 
23997
 
 
23998
 
 
23999
xft=yes
 
24000
XFTLIBS=""
 
24001
 
 
24002
if test "x$PKGCONFIG" != x -a "`$PKGCONFIG xft; echo $?`" = 0; then
 
24003
        XFTCONFIG="$PKGCONFIG xft"
 
24004
        pkgconfig_xft=yes
 
24005
else
 
24006
        # Extract the first word of "xft-config", so it can be a program name with args.
 
24007
set dummy xft-config; ac_word=$2
 
24008
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24009
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
24010
if test "${ac_cv_prog_XFTCONFIG+set}" = set; then
 
24011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24012
else
 
24013
  if test -n "$XFTCONFIG"; then
 
24014
  ac_cv_prog_XFTCONFIG="$XFTCONFIG" # Let the user override the test.
 
24015
else
 
24016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24017
for as_dir in $PATH
 
24018
do
 
24019
  IFS=$as_save_IFS
 
24020
  test -z "$as_dir" && as_dir=.
 
24021
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24022
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
24023
    ac_cv_prog_XFTCONFIG="xft-config"
 
24024
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24025
    break 2
 
24026
  fi
 
24027
done
 
24028
done
 
24029
 
 
24030
fi
 
24031
fi
 
24032
XFTCONFIG=$ac_cv_prog_XFTCONFIG
 
24033
if test -n "$XFTCONFIG"; then
 
24034
  echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
 
24035
echo "${ECHO_T}$XFTCONFIG" >&6
 
24036
else
 
24037
  echo "$as_me:$LINENO: result: no" >&5
 
24038
echo "${ECHO_T}no" >&6
 
24039
fi
 
24040
 
 
24041
fi
 
24042
 
 
24043
echo "$as_me:$LINENO: checking for the Xft2 library" >&5
 
24044
echo $ECHO_N "checking for the Xft2 library... $ECHO_C" >&6
 
24045
 
 
24046
if test "x$XFTCONFIG" != x; then
 
24047
        XFTLIBS=`$XFTCONFIG --libs`
 
24048
        XFTFLAGS=`$XFTCONFIG --cflags`
 
24049
        echo "$as_me:$LINENO: result: found" >&5
 
24050
echo "${ECHO_T}found" >&6
 
24051
else
 
24052
        echo "$as_me:$LINENO: result: not found" >&5
 
24053
echo "${ECHO_T}not found" >&6
 
24054
        echo
 
24055
        echo "ERROR!!! libXft2 is not installed or could not be found."
 
24056
        echo "         Xft2 is a requirement for building Window Maker."
 
24057
        echo "         Please install it (along with fontconfig) before continuing."
 
24058
        echo
 
24059
        exit 1
 
24060
fi
 
24061
 
 
24062
minXFT="2.1.2"
 
24063
goodxft="no"
 
24064
 
 
24065
 
 
24066
CPPFLAGS_old="$CPPFLAGS"
 
24067
CPPFLAGS="$CPPFLAGS $XFTFLAGS $inc_search_path"
 
24068
xft_major_version=`echo $minXFT | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
24069
xft_minor_version=`echo $minXFT | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
24070
xft_micro_version=`echo $minXFT | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
24071
echo "$as_me:$LINENO: checking whether libXft is at least version $minXFT" >&5
 
24072
echo $ECHO_N "checking whether libXft is at least version $minXFT... $ECHO_C" >&6
 
24073
if test "${ac_cv_lib_xft_version_ok+set}" = set; then
 
24074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24075
else
 
24076
  cat >conftest.$ac_ext <<_ACEOF
 
24077
/* confdefs.h.  */
 
24078
_ACEOF
 
24079
cat confdefs.h >>conftest.$ac_ext
 
24080
cat >>conftest.$ac_ext <<_ACEOF
 
24081
/* end confdefs.h.  */
 
24082
/* Test version of libXft we have */
 
24083
#include <X11/Xft/Xft.h>
 
24084
 
 
24085
#if !defined(XFT_VERSION) || XFT_VERSION < $xft_major_version*10000 + $xft_minor_version*100 + $xft_micro_version
 
24086
#error libXft on this system is too old. Consider upgrading to at least $minXFT
 
24087
#endif
 
24088
 
 
24089
int
 
24090
main ()
 
24091
{
 
24092
 
 
24093
  ;
 
24094
  return 0;
 
24095
}
 
24096
_ACEOF
 
24097
rm -f conftest.$ac_objext conftest$ac_exeext
 
24098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24099
  (eval $ac_link) 2>conftest.er1
 
24100
  ac_status=$?
 
24101
  grep -v '^ *+' conftest.er1 >conftest.err
 
24102
  rm -f conftest.er1
 
24103
  cat conftest.err >&5
 
24104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24105
  (exit $ac_status); } &&
 
24106
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24108
  (eval $ac_try) 2>&5
 
24109
  ac_status=$?
 
24110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24111
  (exit $ac_status); }; } &&
 
24112
         { ac_try='test -s conftest$ac_exeext'
 
24113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24114
  (eval $ac_try) 2>&5
 
24115
  ac_status=$?
 
24116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24117
  (exit $ac_status); }; }; then
 
24118
  eval "ac_cv_lib_xft_version_ok=yes"
 
24119
else
 
24120
  echo "$as_me: failed program was:" >&5
 
24121
sed 's/^/| /' conftest.$ac_ext >&5
 
24122
 
 
24123
eval "ac_cv_lib_xft_version_ok=no"
 
24124
fi
 
24125
rm -f conftest.err conftest.$ac_objext \
 
24126
      conftest$ac_exeext conftest.$ac_ext
 
24127
fi
 
24128
 
 
24129
if eval "test \"`echo '$ac_cv_lib_xft_version_ok'`\" = yes"; then
 
24130
  echo "$as_me:$LINENO: result: yes" >&5
 
24131
echo "${ECHO_T}yes" >&6
 
24132
  goodxft=yes
 
24133
else
 
24134
  echo "$as_me:$LINENO: result: no" >&5
 
24135
echo "${ECHO_T}no" >&6
 
24136
  goodxft=no
 
24137
fi
 
24138
CPPFLAGS="$CPPFLAGS_old"
 
24139
 
 
24140
 
 
24141
if test "$goodxft" = no; then
 
24142
        echo
 
24143
        echo "ERROR!!! libXft on this system is an old version."
 
24144
        echo "         Please consider upgrading to at least version ${minXFT}."
 
24145
        echo
 
24146
        exit 1
 
24147
fi
 
24148
 
 
24149
 
 
24150
 
 
24151
 
 
24152
 
 
24153
xinerama=no
 
24154
# Check whether --enable-xinerama or --disable-xinerama was given.
 
24155
if test "${enable_xinerama+set}" = set; then
 
24156
  enableval="$enable_xinerama"
 
24157
  xinerama=$enableval
 
24158
else
 
24159
  xinerama=no
 
24160
fi;
 
24161
 
 
24162
if test "$xinerama" = yes; then
 
24163
        echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
 
24164
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
 
24165
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
 
24166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24167
else
 
24168
  ac_check_lib_save_LIBS=$LIBS
 
24169
LIBS="-lXinerama $XLFLAGS $XLIBS $LIBS"
 
24170
cat >conftest.$ac_ext <<_ACEOF
 
24171
/* confdefs.h.  */
 
24172
_ACEOF
 
24173
cat confdefs.h >>conftest.$ac_ext
 
24174
cat >>conftest.$ac_ext <<_ACEOF
 
24175
/* end confdefs.h.  */
 
24176
 
 
24177
/* Override any gcc2 internal prototype to avoid an error.  */
 
24178
#ifdef __cplusplus
 
24179
extern "C"
 
24180
#endif
 
24181
/* We use char because int might match the return type of a gcc2
 
24182
   builtin and then its argument prototype would still apply.  */
 
24183
char XineramaQueryScreens ();
 
24184
int
 
24185
main ()
 
24186
{
 
24187
XineramaQueryScreens ();
 
24188
  ;
 
24189
  return 0;
 
24190
}
 
24191
_ACEOF
 
24192
rm -f conftest.$ac_objext conftest$ac_exeext
 
24193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24194
  (eval $ac_link) 2>conftest.er1
 
24195
  ac_status=$?
 
24196
  grep -v '^ *+' conftest.er1 >conftest.err
 
24197
  rm -f conftest.er1
 
24198
  cat conftest.err >&5
 
24199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24200
  (exit $ac_status); } &&
 
24201
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24203
  (eval $ac_try) 2>&5
 
24204
  ac_status=$?
 
24205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24206
  (exit $ac_status); }; } &&
 
24207
         { ac_try='test -s conftest$ac_exeext'
 
24208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24209
  (eval $ac_try) 2>&5
 
24210
  ac_status=$?
 
24211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24212
  (exit $ac_status); }; }; then
 
24213
  ac_cv_lib_Xinerama_XineramaQueryScreens=yes
 
24214
else
 
24215
  echo "$as_me: failed program was:" >&5
 
24216
sed 's/^/| /' conftest.$ac_ext >&5
 
24217
 
 
24218
ac_cv_lib_Xinerama_XineramaQueryScreens=no
 
24219
fi
 
24220
rm -f conftest.err conftest.$ac_objext \
 
24221
      conftest$ac_exeext conftest.$ac_ext
 
24222
LIBS=$ac_check_lib_save_LIBS
 
24223
fi
 
24224
echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
 
24225
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
 
24226
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
 
24227
  XLIBS="-lXinerama $XLIBS"
 
24228
                xfxine=yes
 
24229
else
 
24230
  xfxine=no
 
24231
fi
 
24232
 
 
24233
 
 
24234
        echo "$as_me:$LINENO: checking for XineramaGetInfo in -lXext" >&5
 
24235
echo $ECHO_N "checking for XineramaGetInfo in -lXext... $ECHO_C" >&6
 
24236
if test "${ac_cv_lib_Xext_XineramaGetInfo+set}" = set; then
 
24237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24238
else
 
24239
  ac_check_lib_save_LIBS=$LIBS
 
24240
LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
 
24241
cat >conftest.$ac_ext <<_ACEOF
 
24242
/* confdefs.h.  */
 
24243
_ACEOF
 
24244
cat confdefs.h >>conftest.$ac_ext
 
24245
cat >>conftest.$ac_ext <<_ACEOF
 
24246
/* end confdefs.h.  */
 
24247
 
 
24248
/* Override any gcc2 internal prototype to avoid an error.  */
 
24249
#ifdef __cplusplus
 
24250
extern "C"
 
24251
#endif
 
24252
/* We use char because int might match the return type of a gcc2
 
24253
   builtin and then its argument prototype would still apply.  */
 
24254
char XineramaGetInfo ();
 
24255
int
 
24256
main ()
 
24257
{
 
24258
XineramaGetInfo ();
 
24259
  ;
 
24260
  return 0;
 
24261
}
 
24262
_ACEOF
 
24263
rm -f conftest.$ac_objext conftest$ac_exeext
 
24264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24265
  (eval $ac_link) 2>conftest.er1
 
24266
  ac_status=$?
 
24267
  grep -v '^ *+' conftest.er1 >conftest.err
 
24268
  rm -f conftest.er1
 
24269
  cat conftest.err >&5
 
24270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24271
  (exit $ac_status); } &&
 
24272
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24274
  (eval $ac_try) 2>&5
 
24275
  ac_status=$?
 
24276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24277
  (exit $ac_status); }; } &&
 
24278
         { ac_try='test -s conftest$ac_exeext'
 
24279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24280
  (eval $ac_try) 2>&5
 
24281
  ac_status=$?
 
24282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24283
  (exit $ac_status); }; }; then
 
24284
  ac_cv_lib_Xext_XineramaGetInfo=yes
 
24285
else
 
24286
  echo "$as_me: failed program was:" >&5
 
24287
sed 's/^/| /' conftest.$ac_ext >&5
 
24288
 
 
24289
ac_cv_lib_Xext_XineramaGetInfo=no
 
24290
fi
 
24291
rm -f conftest.err conftest.$ac_objext \
 
24292
      conftest$ac_exeext conftest.$ac_ext
 
24293
LIBS=$ac_check_lib_save_LIBS
 
24294
fi
 
24295
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaGetInfo" >&5
 
24296
echo "${ECHO_T}$ac_cv_lib_Xext_XineramaGetInfo" >&6
 
24297
if test $ac_cv_lib_Xext_XineramaGetInfo = yes; then
 
24298
  sunxine=yes
 
24299
 
 
24300
else
 
24301
  sunxine=no
 
24302
fi
 
24303
 
 
24304
 
 
24305
        if test "$xfxine" = yes; then
 
24306
                xine=1
 
24307
        fi
 
24308
 
 
24309
        if test "$sunxine" = yes; then
 
24310
            xine=1
 
24311
 
 
24312
cat >>confdefs.h <<\_ACEOF
 
24313
#define SOLARIS_XINERAMA 1
 
24314
_ACEOF
 
24315
 
 
24316
        fi
 
24317
 
 
24318
        if test "$xine" = 1; then
 
24319
 
 
24320
cat >>confdefs.h <<\_ACEOF
 
24321
#define XINERAMA 1
 
24322
_ACEOF
 
24323
 
 
24324
        fi
 
24325
fi
 
24326
 
 
24327
 
 
24328
 
 
24329
shm=yes
 
24330
# Check whether --enable-shm or --disable-shm was given.
 
24331
if test "${enable_shm+set}" = set; then
 
24332
  enableval="$enable_shm"
 
24333
  shm=$enableval
 
24334
else
 
24335
  shm=yes
 
24336
fi;
 
24337
 
 
24338
if test "$shm" = yes; then
 
24339
        echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
 
24340
echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6
 
24341
if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
 
24342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24343
else
 
24344
  ac_check_lib_save_LIBS=$LIBS
 
24345
LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
 
24346
cat >conftest.$ac_ext <<_ACEOF
 
24347
/* confdefs.h.  */
 
24348
_ACEOF
 
24349
cat confdefs.h >>conftest.$ac_ext
 
24350
cat >>conftest.$ac_ext <<_ACEOF
 
24351
/* end confdefs.h.  */
 
24352
 
 
24353
/* Override any gcc2 internal prototype to avoid an error.  */
 
24354
#ifdef __cplusplus
 
24355
extern "C"
 
24356
#endif
 
24357
/* We use char because int might match the return type of a gcc2
 
24358
   builtin and then its argument prototype would still apply.  */
 
24359
char XShmAttach ();
 
24360
int
 
24361
main ()
 
24362
{
 
24363
XShmAttach ();
 
24364
  ;
 
24365
  return 0;
 
24366
}
 
24367
_ACEOF
 
24368
rm -f conftest.$ac_objext conftest$ac_exeext
 
24369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24370
  (eval $ac_link) 2>conftest.er1
 
24371
  ac_status=$?
 
24372
  grep -v '^ *+' conftest.er1 >conftest.err
 
24373
  rm -f conftest.er1
 
24374
  cat conftest.err >&5
 
24375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24376
  (exit $ac_status); } &&
 
24377
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24379
  (eval $ac_try) 2>&5
 
24380
  ac_status=$?
 
24381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24382
  (exit $ac_status); }; } &&
 
24383
         { ac_try='test -s conftest$ac_exeext'
 
24384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24385
  (eval $ac_try) 2>&5
 
24386
  ac_status=$?
 
24387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24388
  (exit $ac_status); }; }; then
 
24389
  ac_cv_lib_Xext_XShmAttach=yes
 
24390
else
 
24391
  echo "$as_me: failed program was:" >&5
 
24392
sed 's/^/| /' conftest.$ac_ext >&5
 
24393
 
 
24394
ac_cv_lib_Xext_XShmAttach=no
 
24395
fi
 
24396
rm -f conftest.err conftest.$ac_objext \
 
24397
      conftest$ac_exeext conftest.$ac_ext
 
24398
LIBS=$ac_check_lib_save_LIBS
 
24399
fi
 
24400
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
 
24401
echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6
 
24402
if test $ac_cv_lib_Xext_XShmAttach = yes; then
 
24403
  ok=yes
 
24404
else
 
24405
  ok=no
 
24406
fi
 
24407
 
 
24408
 
 
24409
        if test "$ok" = yes; then
 
24410
        echo "$as_me:$LINENO: checking for shmget" >&5
 
24411
echo $ECHO_N "checking for shmget... $ECHO_C" >&6
 
24412
if test "${ac_cv_func_shmget+set}" = set; then
 
24413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24414
else
 
24415
  cat >conftest.$ac_ext <<_ACEOF
 
24416
/* confdefs.h.  */
 
24417
_ACEOF
 
24418
cat confdefs.h >>conftest.$ac_ext
 
24419
cat >>conftest.$ac_ext <<_ACEOF
 
24420
/* end confdefs.h.  */
 
24421
/* Define shmget to an innocuous variant, in case <limits.h> declares shmget.
 
24422
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24423
#define shmget innocuous_shmget
 
24424
 
 
24425
/* System header to define __stub macros and hopefully few prototypes,
 
24426
    which can conflict with char shmget (); below.
 
24427
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24428
    <limits.h> exists even on freestanding compilers.  */
 
24429
 
 
24430
#ifdef __STDC__
 
24431
# include <limits.h>
 
24432
#else
 
24433
# include <assert.h>
 
24434
#endif
 
24435
 
 
24436
#undef shmget
 
24437
 
 
24438
/* Override any gcc2 internal prototype to avoid an error.  */
 
24439
#ifdef __cplusplus
 
24440
extern "C"
 
24441
{
 
24442
#endif
 
24443
/* We use char because int might match the return type of a gcc2
 
24444
   builtin and then its argument prototype would still apply.  */
 
24445
char shmget ();
 
24446
/* The GNU C library defines this for functions which it implements
 
24447
    to always fail with ENOSYS.  Some functions are actually named
 
24448
    something starting with __ and the normal name is an alias.  */
 
24449
#if defined (__stub_shmget) || defined (__stub___shmget)
 
24450
choke me
 
24451
#else
 
24452
char (*f) () = shmget;
 
24453
#endif
 
24454
#ifdef __cplusplus
 
24455
}
 
24456
#endif
 
24457
 
 
24458
int
 
24459
main ()
 
24460
{
 
24461
return f != shmget;
 
24462
  ;
 
24463
  return 0;
 
24464
}
 
24465
_ACEOF
 
24466
rm -f conftest.$ac_objext conftest$ac_exeext
 
24467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24468
  (eval $ac_link) 2>conftest.er1
 
24469
  ac_status=$?
 
24470
  grep -v '^ *+' conftest.er1 >conftest.err
 
24471
  rm -f conftest.er1
 
24472
  cat conftest.err >&5
 
24473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24474
  (exit $ac_status); } &&
 
24475
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24477
  (eval $ac_try) 2>&5
 
24478
  ac_status=$?
 
24479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24480
  (exit $ac_status); }; } &&
 
24481
         { ac_try='test -s conftest$ac_exeext'
 
24482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24483
  (eval $ac_try) 2>&5
 
24484
  ac_status=$?
 
24485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24486
  (exit $ac_status); }; }; then
 
24487
  ac_cv_func_shmget=yes
 
24488
else
 
24489
  echo "$as_me: failed program was:" >&5
 
24490
sed 's/^/| /' conftest.$ac_ext >&5
 
24491
 
 
24492
ac_cv_func_shmget=no
 
24493
fi
 
24494
rm -f conftest.err conftest.$ac_objext \
 
24495
      conftest$ac_exeext conftest.$ac_ext
 
24496
fi
 
24497
echo "$as_me:$LINENO: result: $ac_cv_func_shmget" >&5
 
24498
echo "${ECHO_T}$ac_cv_func_shmget" >&6
 
24499
if test $ac_cv_func_shmget = yes; then
 
24500
  ok=yes
 
24501
else
 
24502
  ok=no
 
24503
fi
 
24504
 
 
24505
        fi
 
24506
 
 
24507
        if test "$ok" = yes; then
 
24508
                if test "$added_xext" = no; then
 
24509
                        XLIBS="-lXext $XLIBS"
 
24510
                fi
 
24511
 
 
24512
cat >>confdefs.h <<\_ACEOF
 
24513
#define XSHM 1
 
24514
_ACEOF
 
24515
 
 
24516
        fi
 
24517
fi
 
24518
 
 
24519
 
 
24520
 
 
24521
#
 
24522
#
 
24523
#AC_DEFINE(R6SM)
 
24524
#AC_SUBST(XSMPLIBS)
 
24525
#
 
24526
 
 
24527
 
 
24528
 
 
24529
 
 
24530
 
 
24531
 
 
24532
 
 
24533
xpm=yes
 
24534
# Check whether --enable-xpm or --disable-xpm was given.
 
24535
if test "${enable_xpm+set}" = set; then
 
24536
  enableval="$enable_xpm"
 
24537
  xpm=$enableval
 
24538
else
 
24539
  xpm=yes
 
24540
fi;
 
24541
 
 
24542
if test "$xpm" = yes; then
 
24543
 
 
24544
LDFLAGS_old="$LDFLAGS"
 
24545
LDFLAGS="$LDFLAGS $lib_search_path"
 
24546
echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
 
24547
echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
 
24548
if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
 
24549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24550
else
 
24551
  ac_check_lib_save_LIBS=$LIBS
 
24552
LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
 
24553
cat >conftest.$ac_ext <<_ACEOF
 
24554
/* confdefs.h.  */
 
24555
_ACEOF
 
24556
cat confdefs.h >>conftest.$ac_ext
 
24557
cat >>conftest.$ac_ext <<_ACEOF
 
24558
/* end confdefs.h.  */
 
24559
 
 
24560
/* Override any gcc2 internal prototype to avoid an error.  */
 
24561
#ifdef __cplusplus
 
24562
extern "C"
 
24563
#endif
 
24564
/* We use char because int might match the return type of a gcc2
 
24565
   builtin and then its argument prototype would still apply.  */
 
24566
char XpmCreatePixmapFromData ();
 
24567
int
 
24568
main ()
 
24569
{
 
24570
XpmCreatePixmapFromData ();
 
24571
  ;
 
24572
  return 0;
 
24573
}
 
24574
_ACEOF
 
24575
rm -f conftest.$ac_objext conftest$ac_exeext
 
24576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24577
  (eval $ac_link) 2>conftest.er1
 
24578
  ac_status=$?
 
24579
  grep -v '^ *+' conftest.er1 >conftest.err
 
24580
  rm -f conftest.er1
 
24581
  cat conftest.err >&5
 
24582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24583
  (exit $ac_status); } &&
 
24584
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24586
  (eval $ac_try) 2>&5
 
24587
  ac_status=$?
 
24588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24589
  (exit $ac_status); }; } &&
 
24590
         { ac_try='test -s conftest$ac_exeext'
 
24591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24592
  (eval $ac_try) 2>&5
 
24593
  ac_status=$?
 
24594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24595
  (exit $ac_status); }; }; then
 
24596
  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
 
24597
else
 
24598
  echo "$as_me: failed program was:" >&5
 
24599
sed 's/^/| /' conftest.$ac_ext >&5
 
24600
 
 
24601
ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
 
24602
fi
 
24603
rm -f conftest.err conftest.$ac_objext \
 
24604
      conftest$ac_exeext conftest.$ac_ext
 
24605
LIBS=$ac_check_lib_save_LIBS
 
24606
fi
 
24607
echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
 
24608
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
 
24609
if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
 
24610
  yes=yes
 
24611
else
 
24612
  no=no
 
24613
fi
 
24614
 
 
24615
LDFLAGS="$LDFLAGS_old"
 
24616
 
 
24617
 
 
24618
    if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
 
24619
 
 
24620
CPPFLAGS_old="$CPPFLAGS"
 
24621
CPPFLAGS="$CPPFLAGS $inc_search_path"
 
24622
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
 
24623
  echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
 
24624
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
 
24625
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
 
24626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24627
fi
 
24628
echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
 
24629
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
 
24630
else
 
24631
  # Is the header compilable?
 
24632
echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
 
24633
echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
 
24634
cat >conftest.$ac_ext <<_ACEOF
 
24635
/* confdefs.h.  */
 
24636
_ACEOF
 
24637
cat confdefs.h >>conftest.$ac_ext
 
24638
cat >>conftest.$ac_ext <<_ACEOF
 
24639
/* end confdefs.h.  */
 
24640
$ac_includes_default
 
24641
#include <X11/xpm.h>
 
24642
_ACEOF
 
24643
rm -f conftest.$ac_objext
 
24644
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24645
  (eval $ac_compile) 2>conftest.er1
 
24646
  ac_status=$?
 
24647
  grep -v '^ *+' conftest.er1 >conftest.err
 
24648
  rm -f conftest.er1
 
24649
  cat conftest.err >&5
 
24650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24651
  (exit $ac_status); } &&
 
24652
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24654
  (eval $ac_try) 2>&5
 
24655
  ac_status=$?
 
24656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24657
  (exit $ac_status); }; } &&
 
24658
         { ac_try='test -s conftest.$ac_objext'
 
24659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24660
  (eval $ac_try) 2>&5
 
24661
  ac_status=$?
 
24662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24663
  (exit $ac_status); }; }; then
 
24664
  ac_header_compiler=yes
 
24665
else
 
24666
  echo "$as_me: failed program was:" >&5
 
24667
sed 's/^/| /' conftest.$ac_ext >&5
 
24668
 
 
24669
ac_header_compiler=no
 
24670
fi
 
24671
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24672
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24673
echo "${ECHO_T}$ac_header_compiler" >&6
 
24674
 
 
24675
# Is the header present?
 
24676
echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
 
24677
echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
 
24678
cat >conftest.$ac_ext <<_ACEOF
 
24679
/* confdefs.h.  */
 
24680
_ACEOF
 
24681
cat confdefs.h >>conftest.$ac_ext
 
24682
cat >>conftest.$ac_ext <<_ACEOF
 
24683
/* end confdefs.h.  */
 
24684
#include <X11/xpm.h>
 
24685
_ACEOF
 
24686
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24687
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24688
  ac_status=$?
 
24689
  grep -v '^ *+' conftest.er1 >conftest.err
 
24690
  rm -f conftest.er1
 
24691
  cat conftest.err >&5
 
24692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24693
  (exit $ac_status); } >/dev/null; then
 
24694
  if test -s conftest.err; then
 
24695
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24696
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24697
  else
 
24698
    ac_cpp_err=
 
24699
  fi
 
24700
else
 
24701
  ac_cpp_err=yes
 
24702
fi
 
24703
if test -z "$ac_cpp_err"; then
 
24704
  ac_header_preproc=yes
 
24705
else
 
24706
  echo "$as_me: failed program was:" >&5
 
24707
sed 's/^/| /' conftest.$ac_ext >&5
 
24708
 
 
24709
  ac_header_preproc=no
 
24710
fi
 
24711
rm -f conftest.err conftest.$ac_ext
 
24712
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24713
echo "${ECHO_T}$ac_header_preproc" >&6
 
24714
 
 
24715
# So?  What about this header?
 
24716
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24717
  yes:no: )
 
24718
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24719
echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24720
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
 
24721
echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
 
24722
    ac_header_preproc=yes
 
24723
    ;;
 
24724
  no:yes:* )
 
24725
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
 
24726
echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
 
24727
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
 
24728
echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
 
24729
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
 
24730
echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
 
24731
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24732
echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24733
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
 
24734
echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
 
24735
    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
 
24736
echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
 
24737
    (
 
24738
      cat <<\_ASBOX
 
24739
## ------------------------------------------ ##
 
24740
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24741
## ------------------------------------------ ##
 
24742
_ASBOX
 
24743
    ) |
 
24744
      sed "s/^/$as_me: WARNING:     /" >&2
 
24745
    ;;
 
24746
esac
 
24747
echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
 
24748
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
 
24749
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
 
24750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24751
else
 
24752
  ac_cv_header_X11_xpm_h=$ac_header_preproc
 
24753
fi
 
24754
echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
 
24755
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
 
24756
 
 
24757
fi
 
24758
 
 
24759
 
 
24760
CPPFLAGS="$CPPFLAGS_old"
 
24761
 
 
24762
        if test "x$ac_cv_header_X11_xpm_h" = xyes; then
 
24763
                GFXLIBS="$GFXLIBS -lXpm"
 
24764
                supported_gfx="XPM"
 
24765
 
 
24766
cat >>confdefs.h <<\_ACEOF
 
24767
#define USE_XPM 1
 
24768
_ACEOF
 
24769
 
 
24770
        else
 
24771
                supported_gfx="builtin-XPM"
 
24772
        fi
 
24773
    fi
 
24774
fi
 
24775
 
 
24776
# for wmlib
 
24777
 
 
24778
# for test
 
24779
 
 
24780
 
 
24781
 
 
24782
 
 
24783
 
 
24784
 
 
24785
 
 
24786
 
 
24787
png=yes
 
24788
# Check whether --enable-png or --disable-png was given.
 
24789
if test "${enable_png+set}" = set; then
 
24790
  enableval="$enable_png"
 
24791
  png=$enableval
 
24792
else
 
24793
  png=yes
 
24794
fi;
 
24795
 
 
24796
 
 
24797
if test "$png" = yes ; then
 
24798
 
 
24799
LDFLAGS_old="$LDFLAGS"
 
24800
LDFLAGS="$LDFLAGS $lib_search_path"
 
24801
echo "$as_me:$LINENO: checking for png_get_valid in -lpng" >&5
 
24802
echo $ECHO_N "checking for png_get_valid in -lpng... $ECHO_C" >&6
 
24803
if test "${ac_cv_lib_png_png_get_valid+set}" = set; then
 
24804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24805
else
 
24806
  ac_check_lib_save_LIBS=$LIBS
 
24807
LIBS="-lpng -lz -lm $LIBS"
 
24808
cat >conftest.$ac_ext <<_ACEOF
 
24809
/* confdefs.h.  */
 
24810
_ACEOF
 
24811
cat confdefs.h >>conftest.$ac_ext
 
24812
cat >>conftest.$ac_ext <<_ACEOF
 
24813
/* end confdefs.h.  */
 
24814
 
 
24815
/* Override any gcc2 internal prototype to avoid an error.  */
 
24816
#ifdef __cplusplus
 
24817
extern "C"
 
24818
#endif
 
24819
/* We use char because int might match the return type of a gcc2
 
24820
   builtin and then its argument prototype would still apply.  */
 
24821
char png_get_valid ();
 
24822
int
 
24823
main ()
 
24824
{
 
24825
png_get_valid ();
 
24826
  ;
 
24827
  return 0;
 
24828
}
 
24829
_ACEOF
 
24830
rm -f conftest.$ac_objext conftest$ac_exeext
 
24831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24832
  (eval $ac_link) 2>conftest.er1
 
24833
  ac_status=$?
 
24834
  grep -v '^ *+' conftest.er1 >conftest.err
 
24835
  rm -f conftest.er1
 
24836
  cat conftest.err >&5
 
24837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24838
  (exit $ac_status); } &&
 
24839
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24841
  (eval $ac_try) 2>&5
 
24842
  ac_status=$?
 
24843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24844
  (exit $ac_status); }; } &&
 
24845
         { ac_try='test -s conftest$ac_exeext'
 
24846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24847
  (eval $ac_try) 2>&5
 
24848
  ac_status=$?
 
24849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24850
  (exit $ac_status); }; }; then
 
24851
  ac_cv_lib_png_png_get_valid=yes
 
24852
else
 
24853
  echo "$as_me: failed program was:" >&5
 
24854
sed 's/^/| /' conftest.$ac_ext >&5
 
24855
 
 
24856
ac_cv_lib_png_png_get_valid=no
 
24857
fi
 
24858
rm -f conftest.err conftest.$ac_objext \
 
24859
      conftest$ac_exeext conftest.$ac_ext
 
24860
LIBS=$ac_check_lib_save_LIBS
 
24861
fi
 
24862
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_valid" >&5
 
24863
echo "${ECHO_T}$ac_cv_lib_png_png_get_valid" >&6
 
24864
if test $ac_cv_lib_png_png_get_valid = yes; then
 
24865
  yes=yes
 
24866
else
 
24867
  no=no
 
24868
fi
 
24869
 
 
24870
LDFLAGS="$LDFLAGS_old"
 
24871
 
 
24872
 
 
24873
    if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
 
24874
 
 
24875
CPPFLAGS_old="$CPPFLAGS"
 
24876
CPPFLAGS="$CPPFLAGS $inc_search_path"
 
24877
if test "${ac_cv_header_png_h+set}" = set; then
 
24878
  echo "$as_me:$LINENO: checking for png.h" >&5
 
24879
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
 
24880
if test "${ac_cv_header_png_h+set}" = set; then
 
24881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24882
fi
 
24883
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
24884
echo "${ECHO_T}$ac_cv_header_png_h" >&6
 
24885
else
 
24886
  # Is the header compilable?
 
24887
echo "$as_me:$LINENO: checking png.h usability" >&5
 
24888
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
 
24889
cat >conftest.$ac_ext <<_ACEOF
 
24890
/* confdefs.h.  */
 
24891
_ACEOF
 
24892
cat confdefs.h >>conftest.$ac_ext
 
24893
cat >>conftest.$ac_ext <<_ACEOF
 
24894
/* end confdefs.h.  */
 
24895
$ac_includes_default
 
24896
#include <png.h>
 
24897
_ACEOF
 
24898
rm -f conftest.$ac_objext
 
24899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24900
  (eval $ac_compile) 2>conftest.er1
 
24901
  ac_status=$?
 
24902
  grep -v '^ *+' conftest.er1 >conftest.err
 
24903
  rm -f conftest.er1
 
24904
  cat conftest.err >&5
 
24905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24906
  (exit $ac_status); } &&
 
24907
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24909
  (eval $ac_try) 2>&5
 
24910
  ac_status=$?
 
24911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24912
  (exit $ac_status); }; } &&
 
24913
         { ac_try='test -s conftest.$ac_objext'
 
24914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24915
  (eval $ac_try) 2>&5
 
24916
  ac_status=$?
 
24917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24918
  (exit $ac_status); }; }; then
 
24919
  ac_header_compiler=yes
 
24920
else
 
24921
  echo "$as_me: failed program was:" >&5
 
24922
sed 's/^/| /' conftest.$ac_ext >&5
 
24923
 
 
24924
ac_header_compiler=no
 
24925
fi
 
24926
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24927
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24928
echo "${ECHO_T}$ac_header_compiler" >&6
 
24929
 
 
24930
# Is the header present?
 
24931
echo "$as_me:$LINENO: checking png.h presence" >&5
 
24932
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
 
24933
cat >conftest.$ac_ext <<_ACEOF
 
24934
/* confdefs.h.  */
 
24935
_ACEOF
 
24936
cat confdefs.h >>conftest.$ac_ext
 
24937
cat >>conftest.$ac_ext <<_ACEOF
 
24938
/* end confdefs.h.  */
 
24939
#include <png.h>
 
24940
_ACEOF
 
24941
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24942
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24943
  ac_status=$?
 
24944
  grep -v '^ *+' conftest.er1 >conftest.err
 
24945
  rm -f conftest.er1
 
24946
  cat conftest.err >&5
 
24947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24948
  (exit $ac_status); } >/dev/null; then
 
24949
  if test -s conftest.err; then
 
24950
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24951
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24952
  else
 
24953
    ac_cpp_err=
 
24954
  fi
 
24955
else
 
24956
  ac_cpp_err=yes
 
24957
fi
 
24958
if test -z "$ac_cpp_err"; then
 
24959
  ac_header_preproc=yes
 
24960
else
 
24961
  echo "$as_me: failed program was:" >&5
 
24962
sed 's/^/| /' conftest.$ac_ext >&5
 
24963
 
 
24964
  ac_header_preproc=no
 
24965
fi
 
24966
rm -f conftest.err conftest.$ac_ext
 
24967
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24968
echo "${ECHO_T}$ac_header_preproc" >&6
 
24969
 
 
24970
# So?  What about this header?
 
24971
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24972
  yes:no: )
 
24973
    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24974
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24975
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
 
24976
echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
 
24977
    ac_header_preproc=yes
 
24978
    ;;
 
24979
  no:yes:* )
 
24980
    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
 
24981
echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
 
24982
    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
 
24983
echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
 
24984
    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
 
24985
echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
 
24986
    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24987
echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24988
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
 
24989
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
 
24990
    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
 
24991
echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
 
24992
    (
 
24993
      cat <<\_ASBOX
 
24994
## ------------------------------------------ ##
 
24995
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24996
## ------------------------------------------ ##
 
24997
_ASBOX
 
24998
    ) |
 
24999
      sed "s/^/$as_me: WARNING:     /" >&2
 
25000
    ;;
 
25001
esac
 
25002
echo "$as_me:$LINENO: checking for png.h" >&5
 
25003
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
 
25004
if test "${ac_cv_header_png_h+set}" = set; then
 
25005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25006
else
 
25007
  ac_cv_header_png_h=$ac_header_preproc
 
25008
fi
 
25009
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
25010
echo "${ECHO_T}$ac_cv_header_png_h" >&6
 
25011
 
 
25012
fi
 
25013
 
 
25014
 
 
25015
CPPFLAGS="$CPPFLAGS_old"
 
25016
 
 
25017
        if test "x$ac_cv_header_png_h" = xyes; then
 
25018
            GFXLIBS="$GFXLIBS -lpng -lz"
 
25019
            supported_gfx="$supported_gfx PNG"
 
25020
 
 
25021
cat >>confdefs.h <<\_ACEOF
 
25022
#define USE_PNG 1
 
25023
_ACEOF
 
25024
 
 
25025
        fi
 
25026
    fi
 
25027
fi
 
25028
 
 
25029
 
 
25030
jpeg=yes
 
25031
ljpeg=""
 
25032
# Check whether --enable-jpeg or --disable-jpeg was given.
 
25033
if test "${enable_jpeg+set}" = set; then
 
25034
  enableval="$enable_jpeg"
 
25035
  jpeg=$enableval
 
25036
else
 
25037
  jpeg=yes
 
25038
fi;
 
25039
 
 
25040
if test "$jpeg" = yes; then
 
25041
 
 
25042
LDFLAGS_old="$LDFLAGS"
 
25043
LDFLAGS="$LDFLAGS $lib_search_path"
 
25044
echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
 
25045
echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
 
25046
if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
 
25047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25048
else
 
25049
  ac_check_lib_save_LIBS=$LIBS
 
25050
LIBS="-ljpeg  $LIBS"
 
25051
cat >conftest.$ac_ext <<_ACEOF
 
25052
/* confdefs.h.  */
 
25053
_ACEOF
 
25054
cat confdefs.h >>conftest.$ac_ext
 
25055
cat >>conftest.$ac_ext <<_ACEOF
 
25056
/* end confdefs.h.  */
 
25057
 
 
25058
/* Override any gcc2 internal prototype to avoid an error.  */
 
25059
#ifdef __cplusplus
 
25060
extern "C"
 
25061
#endif
 
25062
/* We use char because int might match the return type of a gcc2
 
25063
   builtin and then its argument prototype would still apply.  */
 
25064
char jpeg_destroy_compress ();
 
25065
int
 
25066
main ()
 
25067
{
 
25068
jpeg_destroy_compress ();
 
25069
  ;
 
25070
  return 0;
 
25071
}
 
25072
_ACEOF
 
25073
rm -f conftest.$ac_objext conftest$ac_exeext
 
25074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25075
  (eval $ac_link) 2>conftest.er1
 
25076
  ac_status=$?
 
25077
  grep -v '^ *+' conftest.er1 >conftest.err
 
25078
  rm -f conftest.er1
 
25079
  cat conftest.err >&5
 
25080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25081
  (exit $ac_status); } &&
 
25082
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25084
  (eval $ac_try) 2>&5
 
25085
  ac_status=$?
 
25086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25087
  (exit $ac_status); }; } &&
 
25088
         { ac_try='test -s conftest$ac_exeext'
 
25089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25090
  (eval $ac_try) 2>&5
 
25091
  ac_status=$?
 
25092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25093
  (exit $ac_status); }; }; then
 
25094
  ac_cv_lib_jpeg_jpeg_destroy_compress=yes
 
25095
else
 
25096
  echo "$as_me: failed program was:" >&5
 
25097
sed 's/^/| /' conftest.$ac_ext >&5
 
25098
 
 
25099
ac_cv_lib_jpeg_jpeg_destroy_compress=no
 
25100
fi
 
25101
rm -f conftest.err conftest.$ac_objext \
 
25102
      conftest$ac_exeext conftest.$ac_ext
 
25103
LIBS=$ac_check_lib_save_LIBS
 
25104
fi
 
25105
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
 
25106
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
 
25107
if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
 
25108
  yes=yes
 
25109
else
 
25110
  no=no
 
25111
fi
 
25112
 
 
25113
LDFLAGS="$LDFLAGS_old"
 
25114
 
 
25115
 
 
25116
    if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
 
25117
 
 
25118
        ljpeg="-ljpeg"
 
25119
 
 
25120
 
 
25121
CPPFLAGS_old="$CPPFLAGS"
 
25122
CPPFLAGS="$CPPFLAGS $inc_search_path"
 
25123
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
25124
  echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
25125
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
25126
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
25127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25128
fi
 
25129
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
25130
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
25131
else
 
25132
  # Is the header compilable?
 
25133
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
 
25134
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
 
25135
cat >conftest.$ac_ext <<_ACEOF
 
25136
/* confdefs.h.  */
 
25137
_ACEOF
 
25138
cat confdefs.h >>conftest.$ac_ext
 
25139
cat >>conftest.$ac_ext <<_ACEOF
 
25140
/* end confdefs.h.  */
 
25141
$ac_includes_default
 
25142
#include <jpeglib.h>
 
25143
_ACEOF
 
25144
rm -f conftest.$ac_objext
 
25145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25146
  (eval $ac_compile) 2>conftest.er1
 
25147
  ac_status=$?
 
25148
  grep -v '^ *+' conftest.er1 >conftest.err
 
25149
  rm -f conftest.er1
 
25150
  cat conftest.err >&5
 
25151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25152
  (exit $ac_status); } &&
 
25153
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25155
  (eval $ac_try) 2>&5
 
25156
  ac_status=$?
 
25157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25158
  (exit $ac_status); }; } &&
 
25159
         { ac_try='test -s conftest.$ac_objext'
 
25160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25161
  (eval $ac_try) 2>&5
 
25162
  ac_status=$?
 
25163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25164
  (exit $ac_status); }; }; then
 
25165
  ac_header_compiler=yes
 
25166
else
 
25167
  echo "$as_me: failed program was:" >&5
 
25168
sed 's/^/| /' conftest.$ac_ext >&5
 
25169
 
 
25170
ac_header_compiler=no
 
25171
fi
 
25172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25173
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25174
echo "${ECHO_T}$ac_header_compiler" >&6
 
25175
 
 
25176
# Is the header present?
 
25177
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
 
25178
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
 
25179
cat >conftest.$ac_ext <<_ACEOF
 
25180
/* confdefs.h.  */
 
25181
_ACEOF
 
25182
cat confdefs.h >>conftest.$ac_ext
 
25183
cat >>conftest.$ac_ext <<_ACEOF
 
25184
/* end confdefs.h.  */
 
25185
#include <jpeglib.h>
 
25186
_ACEOF
 
25187
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25188
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25189
  ac_status=$?
 
25190
  grep -v '^ *+' conftest.er1 >conftest.err
 
25191
  rm -f conftest.er1
 
25192
  cat conftest.err >&5
 
25193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25194
  (exit $ac_status); } >/dev/null; then
 
25195
  if test -s conftest.err; then
 
25196
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25197
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25198
  else
 
25199
    ac_cpp_err=
 
25200
  fi
 
25201
else
 
25202
  ac_cpp_err=yes
 
25203
fi
 
25204
if test -z "$ac_cpp_err"; then
 
25205
  ac_header_preproc=yes
 
25206
else
 
25207
  echo "$as_me: failed program was:" >&5
 
25208
sed 's/^/| /' conftest.$ac_ext >&5
 
25209
 
 
25210
  ac_header_preproc=no
 
25211
fi
 
25212
rm -f conftest.err conftest.$ac_ext
 
25213
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25214
echo "${ECHO_T}$ac_header_preproc" >&6
 
25215
 
 
25216
# So?  What about this header?
 
25217
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25218
  yes:no: )
 
25219
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25220
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25221
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
 
25222
echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
 
25223
    ac_header_preproc=yes
 
25224
    ;;
 
25225
  no:yes:* )
 
25226
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
 
25227
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
 
25228
    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
 
25229
echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
 
25230
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
 
25231
echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
 
25232
    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25233
echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25234
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
 
25235
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
 
25236
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
 
25237
echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
 
25238
    (
 
25239
      cat <<\_ASBOX
 
25240
## ------------------------------------------ ##
 
25241
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25242
## ------------------------------------------ ##
 
25243
_ASBOX
 
25244
    ) |
 
25245
      sed "s/^/$as_me: WARNING:     /" >&2
 
25246
    ;;
 
25247
esac
 
25248
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
25249
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
25250
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
25251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25252
else
 
25253
  ac_cv_header_jpeglib_h=$ac_header_preproc
 
25254
fi
 
25255
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
25256
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
25257
 
 
25258
fi
 
25259
 
 
25260
 
 
25261
CPPFLAGS="$CPPFLAGS_old"
 
25262
 
 
25263
        if test "x$ac_cv_header_jpeglib_h" = xyes; then
 
25264
            GFXLIBS="$GFXLIBS -ljpeg"
 
25265
            supported_gfx="$supported_gfx JPEG"
 
25266
 
 
25267
cat >>confdefs.h <<\_ACEOF
 
25268
#define USE_JPEG 1
 
25269
_ACEOF
 
25270
 
 
25271
        fi
 
25272
    fi
 
25273
fi
 
25274
 
 
25275
 
 
25276
gif=yes
 
25277
# Check whether --enable-gif or --disable-gif was given.
 
25278
if test "${enable_gif+set}" = set; then
 
25279
  enableval="$enable_gif"
 
25280
  gif=$enableval
 
25281
else
 
25282
  gif=yes
 
25283
fi;
 
25284
 
 
25285
if test "$gif" = yes; then
 
25286
    my_libname=""
 
25287
 
 
25288
LDFLAGS_old="$LDFLAGS"
 
25289
LDFLAGS="$LDFLAGS $lib_search_path"
 
25290
echo "$as_me:$LINENO: checking for DGifOpenFileName in -lungif" >&5
 
25291
echo $ECHO_N "checking for DGifOpenFileName in -lungif... $ECHO_C" >&6
 
25292
if test "${ac_cv_lib_ungif_DGifOpenFileName+set}" = set; then
 
25293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25294
else
 
25295
  ac_check_lib_save_LIBS=$LIBS
 
25296
LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
 
25297
cat >conftest.$ac_ext <<_ACEOF
 
25298
/* confdefs.h.  */
 
25299
_ACEOF
 
25300
cat confdefs.h >>conftest.$ac_ext
 
25301
cat >>conftest.$ac_ext <<_ACEOF
 
25302
/* end confdefs.h.  */
 
25303
 
 
25304
/* Override any gcc2 internal prototype to avoid an error.  */
 
25305
#ifdef __cplusplus
 
25306
extern "C"
 
25307
#endif
 
25308
/* We use char because int might match the return type of a gcc2
 
25309
   builtin and then its argument prototype would still apply.  */
 
25310
char DGifOpenFileName ();
 
25311
int
 
25312
main ()
 
25313
{
 
25314
DGifOpenFileName ();
 
25315
  ;
 
25316
  return 0;
 
25317
}
 
25318
_ACEOF
 
25319
rm -f conftest.$ac_objext conftest$ac_exeext
 
25320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25321
  (eval $ac_link) 2>conftest.er1
 
25322
  ac_status=$?
 
25323
  grep -v '^ *+' conftest.er1 >conftest.err
 
25324
  rm -f conftest.er1
 
25325
  cat conftest.err >&5
 
25326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25327
  (exit $ac_status); } &&
 
25328
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25330
  (eval $ac_try) 2>&5
 
25331
  ac_status=$?
 
25332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25333
  (exit $ac_status); }; } &&
 
25334
         { ac_try='test -s conftest$ac_exeext'
 
25335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25336
  (eval $ac_try) 2>&5
 
25337
  ac_status=$?
 
25338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25339
  (exit $ac_status); }; }; then
 
25340
  ac_cv_lib_ungif_DGifOpenFileName=yes
 
25341
else
 
25342
  echo "$as_me: failed program was:" >&5
 
25343
sed 's/^/| /' conftest.$ac_ext >&5
 
25344
 
 
25345
ac_cv_lib_ungif_DGifOpenFileName=no
 
25346
fi
 
25347
rm -f conftest.err conftest.$ac_objext \
 
25348
      conftest$ac_exeext conftest.$ac_ext
 
25349
LIBS=$ac_check_lib_save_LIBS
 
25350
fi
 
25351
echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5
 
25352
echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpenFileName" >&6
 
25353
if test $ac_cv_lib_ungif_DGifOpenFileName = yes; then
 
25354
  yes=yes
 
25355
else
 
25356
  no=no
 
25357
fi
 
25358
 
 
25359
LDFLAGS="$LDFLAGS_old"
 
25360
 
 
25361
    if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
 
25362
        my_libname=-lungif
 
25363
    fi
 
25364
    if test "x$my_libname" = x; then
 
25365
 
 
25366
LDFLAGS_old="$LDFLAGS"
 
25367
LDFLAGS="$LDFLAGS $lib_search_path"
 
25368
echo "$as_me:$LINENO: checking for DGifOpenFileName in -lgif" >&5
 
25369
echo $ECHO_N "checking for DGifOpenFileName in -lgif... $ECHO_C" >&6
 
25370
if test "${ac_cv_lib_gif_DGifOpenFileName+set}" = set; then
 
25371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25372
else
 
25373
  ac_check_lib_save_LIBS=$LIBS
 
25374
LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
 
25375
cat >conftest.$ac_ext <<_ACEOF
 
25376
/* confdefs.h.  */
 
25377
_ACEOF
 
25378
cat confdefs.h >>conftest.$ac_ext
 
25379
cat >>conftest.$ac_ext <<_ACEOF
 
25380
/* end confdefs.h.  */
 
25381
 
 
25382
/* Override any gcc2 internal prototype to avoid an error.  */
 
25383
#ifdef __cplusplus
 
25384
extern "C"
 
25385
#endif
 
25386
/* We use char because int might match the return type of a gcc2
 
25387
   builtin and then its argument prototype would still apply.  */
 
25388
char DGifOpenFileName ();
 
25389
int
 
25390
main ()
 
25391
{
 
25392
DGifOpenFileName ();
 
25393
  ;
 
25394
  return 0;
 
25395
}
 
25396
_ACEOF
 
25397
rm -f conftest.$ac_objext conftest$ac_exeext
 
25398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25399
  (eval $ac_link) 2>conftest.er1
 
25400
  ac_status=$?
 
25401
  grep -v '^ *+' conftest.er1 >conftest.err
 
25402
  rm -f conftest.er1
 
25403
  cat conftest.err >&5
 
25404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25405
  (exit $ac_status); } &&
 
25406
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25408
  (eval $ac_try) 2>&5
 
25409
  ac_status=$?
 
25410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25411
  (exit $ac_status); }; } &&
 
25412
         { ac_try='test -s conftest$ac_exeext'
 
25413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25414
  (eval $ac_try) 2>&5
 
25415
  ac_status=$?
 
25416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25417
  (exit $ac_status); }; }; then
 
25418
  ac_cv_lib_gif_DGifOpenFileName=yes
 
25419
else
 
25420
  echo "$as_me: failed program was:" >&5
 
25421
sed 's/^/| /' conftest.$ac_ext >&5
 
25422
 
 
25423
ac_cv_lib_gif_DGifOpenFileName=no
 
25424
fi
 
25425
rm -f conftest.err conftest.$ac_objext \
 
25426
      conftest$ac_exeext conftest.$ac_ext
 
25427
LIBS=$ac_check_lib_save_LIBS
 
25428
fi
 
25429
echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpenFileName" >&5
 
25430
echo "${ECHO_T}$ac_cv_lib_gif_DGifOpenFileName" >&6
 
25431
if test $ac_cv_lib_gif_DGifOpenFileName = yes; then
 
25432
  yes=yes
 
25433
else
 
25434
  no=no
 
25435
fi
 
25436
 
 
25437
LDFLAGS="$LDFLAGS_old"
 
25438
 
 
25439
        if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
 
25440
            my_libname=-lgif
 
25441
        fi
 
25442
    fi
 
25443
 
 
25444
    if test "$my_libname" != x; then
 
25445
 
 
25446
CPPFLAGS_old="$CPPFLAGS"
 
25447
CPPFLAGS="$CPPFLAGS $inc_search_path"
 
25448
if test "${ac_cv_header_gif_lib_h+set}" = set; then
 
25449
  echo "$as_me:$LINENO: checking for gif_lib.h" >&5
 
25450
echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
 
25451
if test "${ac_cv_header_gif_lib_h+set}" = set; then
 
25452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25453
fi
 
25454
echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
 
25455
echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
 
25456
else
 
25457
  # Is the header compilable?
 
25458
echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
 
25459
echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
 
25460
cat >conftest.$ac_ext <<_ACEOF
 
25461
/* confdefs.h.  */
 
25462
_ACEOF
 
25463
cat confdefs.h >>conftest.$ac_ext
 
25464
cat >>conftest.$ac_ext <<_ACEOF
 
25465
/* end confdefs.h.  */
 
25466
$ac_includes_default
 
25467
#include <gif_lib.h>
 
25468
_ACEOF
 
25469
rm -f conftest.$ac_objext
 
25470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25471
  (eval $ac_compile) 2>conftest.er1
 
25472
  ac_status=$?
 
25473
  grep -v '^ *+' conftest.er1 >conftest.err
 
25474
  rm -f conftest.er1
 
25475
  cat conftest.err >&5
 
25476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25477
  (exit $ac_status); } &&
 
25478
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25480
  (eval $ac_try) 2>&5
 
25481
  ac_status=$?
 
25482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25483
  (exit $ac_status); }; } &&
 
25484
         { ac_try='test -s conftest.$ac_objext'
 
25485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25486
  (eval $ac_try) 2>&5
 
25487
  ac_status=$?
 
25488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25489
  (exit $ac_status); }; }; then
 
25490
  ac_header_compiler=yes
 
25491
else
 
25492
  echo "$as_me: failed program was:" >&5
 
25493
sed 's/^/| /' conftest.$ac_ext >&5
 
25494
 
 
25495
ac_header_compiler=no
 
25496
fi
 
25497
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25498
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25499
echo "${ECHO_T}$ac_header_compiler" >&6
 
25500
 
 
25501
# Is the header present?
 
25502
echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
 
25503
echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
 
25504
cat >conftest.$ac_ext <<_ACEOF
 
25505
/* confdefs.h.  */
 
25506
_ACEOF
 
25507
cat confdefs.h >>conftest.$ac_ext
 
25508
cat >>conftest.$ac_ext <<_ACEOF
 
25509
/* end confdefs.h.  */
 
25510
#include <gif_lib.h>
 
25511
_ACEOF
 
25512
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25513
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25514
  ac_status=$?
 
25515
  grep -v '^ *+' conftest.er1 >conftest.err
 
25516
  rm -f conftest.er1
 
25517
  cat conftest.err >&5
 
25518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25519
  (exit $ac_status); } >/dev/null; then
 
25520
  if test -s conftest.err; then
 
25521
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25522
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25523
  else
 
25524
    ac_cpp_err=
 
25525
  fi
 
25526
else
 
25527
  ac_cpp_err=yes
 
25528
fi
 
25529
if test -z "$ac_cpp_err"; then
 
25530
  ac_header_preproc=yes
 
25531
else
 
25532
  echo "$as_me: failed program was:" >&5
 
25533
sed 's/^/| /' conftest.$ac_ext >&5
 
25534
 
 
25535
  ac_header_preproc=no
 
25536
fi
 
25537
rm -f conftest.err conftest.$ac_ext
 
25538
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25539
echo "${ECHO_T}$ac_header_preproc" >&6
 
25540
 
 
25541
# So?  What about this header?
 
25542
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25543
  yes:no: )
 
25544
    { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25545
echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25546
    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
 
25547
echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
 
25548
    ac_header_preproc=yes
 
25549
    ;;
 
25550
  no:yes:* )
 
25551
    { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
 
25552
echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
 
25553
    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&5
 
25554
echo "$as_me: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&2;}
 
25555
    { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
 
25556
echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
 
25557
    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25558
echo "$as_me: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25559
    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
 
25560
echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
 
25561
    { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
 
25562
echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
 
25563
    (
 
25564
      cat <<\_ASBOX
 
25565
## ------------------------------------------ ##
 
25566
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25567
## ------------------------------------------ ##
 
25568
_ASBOX
 
25569
    ) |
 
25570
      sed "s/^/$as_me: WARNING:     /" >&2
 
25571
    ;;
 
25572
esac
 
25573
echo "$as_me:$LINENO: checking for gif_lib.h" >&5
 
25574
echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
 
25575
if test "${ac_cv_header_gif_lib_h+set}" = set; then
 
25576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25577
else
 
25578
  ac_cv_header_gif_lib_h=$ac_header_preproc
 
25579
fi
 
25580
echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
 
25581
echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
 
25582
 
 
25583
fi
 
25584
 
 
25585
 
 
25586
CPPFLAGS="$CPPFLAGS_old"
 
25587
 
 
25588
        if test "x$ac_cv_header_gif_lib_h" = xyes; then
 
25589
            GFXLIBS="$GFXLIBS $my_libname"
 
25590
            supported_gfx="$supported_gfx GIF"
 
25591
 
 
25592
cat >>confdefs.h <<\_ACEOF
 
25593
#define USE_GIF 1
 
25594
_ACEOF
 
25595
 
 
25596
        fi
 
25597
    fi
 
25598
fi
 
25599
 
 
25600
 
 
25601
 
 
25602
# Check whether --enable-tiff or --disable-tiff was given.
 
25603
if test "${enable_tiff+set}" = set; then
 
25604
  enableval="$enable_tiff"
 
25605
  tif=$enableval
 
25606
else
 
25607
  tif=yes
 
25608
fi;
 
25609
 
 
25610
#
 
25611
# TIFF can optionally have JPEG and/or zlib support. Must find out
 
25612
# when they are supported so that correct library flags are passed during
 
25613
# detection and linkage
 
25614
#
 
25615
#
 
25616
# By default use xpm icons if tiff is not found.
 
25617
ICONEXT="xpm"
 
25618
#
 
25619
 
 
25620
if test "$tif" = yes; then
 
25621
    my_libname=""
 
25622
 
 
25623
LDFLAGS_old="$LDFLAGS"
 
25624
LDFLAGS="$LDFLAGS $lib_search_path"
 
25625
echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
 
25626
echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
 
25627
if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
 
25628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25629
else
 
25630
  ac_check_lib_save_LIBS=$LIBS
 
25631
LIBS="-ltiff -lm $LIBS"
 
25632
cat >conftest.$ac_ext <<_ACEOF
 
25633
/* confdefs.h.  */
 
25634
_ACEOF
 
25635
cat confdefs.h >>conftest.$ac_ext
 
25636
cat >>conftest.$ac_ext <<_ACEOF
 
25637
/* end confdefs.h.  */
 
25638
 
 
25639
/* Override any gcc2 internal prototype to avoid an error.  */
 
25640
#ifdef __cplusplus
 
25641
extern "C"
 
25642
#endif
 
25643
/* We use char because int might match the return type of a gcc2
 
25644
   builtin and then its argument prototype would still apply.  */
 
25645
char TIFFGetVersion ();
 
25646
int
 
25647
main ()
 
25648
{
 
25649
TIFFGetVersion ();
 
25650
  ;
 
25651
  return 0;
 
25652
}
 
25653
_ACEOF
 
25654
rm -f conftest.$ac_objext conftest$ac_exeext
 
25655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25656
  (eval $ac_link) 2>conftest.er1
 
25657
  ac_status=$?
 
25658
  grep -v '^ *+' conftest.er1 >conftest.err
 
25659
  rm -f conftest.er1
 
25660
  cat conftest.err >&5
 
25661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25662
  (exit $ac_status); } &&
 
25663
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25665
  (eval $ac_try) 2>&5
 
25666
  ac_status=$?
 
25667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25668
  (exit $ac_status); }; } &&
 
25669
         { ac_try='test -s conftest$ac_exeext'
 
25670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25671
  (eval $ac_try) 2>&5
 
25672
  ac_status=$?
 
25673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25674
  (exit $ac_status); }; }; then
 
25675
  ac_cv_lib_tiff_TIFFGetVersion=yes
 
25676
else
 
25677
  echo "$as_me: failed program was:" >&5
 
25678
sed 's/^/| /' conftest.$ac_ext >&5
 
25679
 
 
25680
ac_cv_lib_tiff_TIFFGetVersion=no
 
25681
fi
 
25682
rm -f conftest.err conftest.$ac_objext \
 
25683
      conftest$ac_exeext conftest.$ac_ext
 
25684
LIBS=$ac_check_lib_save_LIBS
 
25685
fi
 
25686
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
 
25687
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
 
25688
if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
 
25689
  yes=yes
 
25690
else
 
25691
  no=no
 
25692
fi
 
25693
 
 
25694
LDFLAGS="$LDFLAGS_old"
 
25695
 
 
25696
    if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
 
25697
        my_libname="-ltiff"
 
25698
    fi
 
25699
    unset ac_cv_lib_tiff_TIFFGetVersion
 
25700
    if test "x$my_libname" = x; then
 
25701
 
 
25702
LDFLAGS_old="$LDFLAGS"
 
25703
LDFLAGS="$LDFLAGS $lib_search_path"
 
25704
echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
 
25705
echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
 
25706
if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
 
25707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25708
else
 
25709
  ac_check_lib_save_LIBS=$LIBS
 
25710
LIBS="-ltiff $ljpeg -lz -lm $LIBS"
 
25711
cat >conftest.$ac_ext <<_ACEOF
 
25712
/* confdefs.h.  */
 
25713
_ACEOF
 
25714
cat confdefs.h >>conftest.$ac_ext
 
25715
cat >>conftest.$ac_ext <<_ACEOF
 
25716
/* end confdefs.h.  */
 
25717
 
 
25718
/* Override any gcc2 internal prototype to avoid an error.  */
 
25719
#ifdef __cplusplus
 
25720
extern "C"
 
25721
#endif
 
25722
/* We use char because int might match the return type of a gcc2
 
25723
   builtin and then its argument prototype would still apply.  */
 
25724
char TIFFGetVersion ();
 
25725
int
 
25726
main ()
 
25727
{
 
25728
TIFFGetVersion ();
 
25729
  ;
 
25730
  return 0;
 
25731
}
 
25732
_ACEOF
 
25733
rm -f conftest.$ac_objext conftest$ac_exeext
 
25734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25735
  (eval $ac_link) 2>conftest.er1
 
25736
  ac_status=$?
 
25737
  grep -v '^ *+' conftest.er1 >conftest.err
 
25738
  rm -f conftest.er1
 
25739
  cat conftest.err >&5
 
25740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25741
  (exit $ac_status); } &&
 
25742
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25744
  (eval $ac_try) 2>&5
 
25745
  ac_status=$?
 
25746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25747
  (exit $ac_status); }; } &&
 
25748
         { ac_try='test -s conftest$ac_exeext'
 
25749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25750
  (eval $ac_try) 2>&5
 
25751
  ac_status=$?
 
25752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25753
  (exit $ac_status); }; }; then
 
25754
  ac_cv_lib_tiff_TIFFGetVersion=yes
 
25755
else
 
25756
  echo "$as_me: failed program was:" >&5
 
25757
sed 's/^/| /' conftest.$ac_ext >&5
 
25758
 
 
25759
ac_cv_lib_tiff_TIFFGetVersion=no
 
25760
fi
 
25761
rm -f conftest.err conftest.$ac_objext \
 
25762
      conftest$ac_exeext conftest.$ac_ext
 
25763
LIBS=$ac_check_lib_save_LIBS
 
25764
fi
 
25765
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
 
25766
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
 
25767
if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
 
25768
  yes=yes
 
25769
else
 
25770
  no=no
 
25771
fi
 
25772
 
 
25773
LDFLAGS="$LDFLAGS_old"
 
25774
 
 
25775
        if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
 
25776
            my_libname="-ltiff -lz"
 
25777
        fi
 
25778
    fi
 
25779
 
 
25780
    if test "x$my_libname" = x; then
 
25781
 
 
25782
LDFLAGS_old="$LDFLAGS"
 
25783
LDFLAGS="$LDFLAGS $lib_search_path"
 
25784
echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff34" >&5
 
25785
echo $ECHO_N "checking for TIFFGetVersion in -ltiff34... $ECHO_C" >&6
 
25786
if test "${ac_cv_lib_tiff34_TIFFGetVersion+set}" = set; then
 
25787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25788
else
 
25789
  ac_check_lib_save_LIBS=$LIBS
 
25790
LIBS="-ltiff34 $ljpeg -lm $LIBS"
 
25791
cat >conftest.$ac_ext <<_ACEOF
 
25792
/* confdefs.h.  */
 
25793
_ACEOF
 
25794
cat confdefs.h >>conftest.$ac_ext
 
25795
cat >>conftest.$ac_ext <<_ACEOF
 
25796
/* end confdefs.h.  */
 
25797
 
 
25798
/* Override any gcc2 internal prototype to avoid an error.  */
 
25799
#ifdef __cplusplus
 
25800
extern "C"
 
25801
#endif
 
25802
/* We use char because int might match the return type of a gcc2
 
25803
   builtin and then its argument prototype would still apply.  */
 
25804
char TIFFGetVersion ();
 
25805
int
 
25806
main ()
 
25807
{
 
25808
TIFFGetVersion ();
 
25809
  ;
 
25810
  return 0;
 
25811
}
 
25812
_ACEOF
 
25813
rm -f conftest.$ac_objext conftest$ac_exeext
 
25814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25815
  (eval $ac_link) 2>conftest.er1
 
25816
  ac_status=$?
 
25817
  grep -v '^ *+' conftest.er1 >conftest.err
 
25818
  rm -f conftest.er1
 
25819
  cat conftest.err >&5
 
25820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25821
  (exit $ac_status); } &&
 
25822
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25824
  (eval $ac_try) 2>&5
 
25825
  ac_status=$?
 
25826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25827
  (exit $ac_status); }; } &&
 
25828
         { ac_try='test -s conftest$ac_exeext'
 
25829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25830
  (eval $ac_try) 2>&5
 
25831
  ac_status=$?
 
25832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25833
  (exit $ac_status); }; }; then
 
25834
  ac_cv_lib_tiff34_TIFFGetVersion=yes
 
25835
else
 
25836
  echo "$as_me: failed program was:" >&5
 
25837
sed 's/^/| /' conftest.$ac_ext >&5
 
25838
 
 
25839
ac_cv_lib_tiff34_TIFFGetVersion=no
 
25840
fi
 
25841
rm -f conftest.err conftest.$ac_objext \
 
25842
      conftest$ac_exeext conftest.$ac_ext
 
25843
LIBS=$ac_check_lib_save_LIBS
 
25844
fi
 
25845
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff34_TIFFGetVersion" >&5
 
25846
echo "${ECHO_T}$ac_cv_lib_tiff34_TIFFGetVersion" >&6
 
25847
if test $ac_cv_lib_tiff34_TIFFGetVersion = yes; then
 
25848
  yes=yes
 
25849
else
 
25850
  no=no
 
25851
fi
 
25852
 
 
25853
LDFLAGS="$LDFLAGS_old"
 
25854
 
 
25855
        if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
 
25856
            my_libname="-ltiff34"
 
25857
        fi
 
25858
    fi
 
25859
 
 
25860
 
 
25861
    if test "x$my_libname" != x; then
 
25862
 
 
25863
CPPFLAGS_old="$CPPFLAGS"
 
25864
CPPFLAGS="$CPPFLAGS $inc_search_path"
 
25865
if test "${ac_cv_header_tiffio_h+set}" = set; then
 
25866
  echo "$as_me:$LINENO: checking for tiffio.h" >&5
 
25867
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
 
25868
if test "${ac_cv_header_tiffio_h+set}" = set; then
 
25869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25870
fi
 
25871
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
 
25872
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
 
25873
else
 
25874
  # Is the header compilable?
 
25875
echo "$as_me:$LINENO: checking tiffio.h usability" >&5
 
25876
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
 
25877
cat >conftest.$ac_ext <<_ACEOF
 
25878
/* confdefs.h.  */
 
25879
_ACEOF
 
25880
cat confdefs.h >>conftest.$ac_ext
 
25881
cat >>conftest.$ac_ext <<_ACEOF
 
25882
/* end confdefs.h.  */
 
25883
$ac_includes_default
 
25884
#include <tiffio.h>
 
25885
_ACEOF
 
25886
rm -f conftest.$ac_objext
 
25887
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25888
  (eval $ac_compile) 2>conftest.er1
 
25889
  ac_status=$?
 
25890
  grep -v '^ *+' conftest.er1 >conftest.err
 
25891
  rm -f conftest.er1
 
25892
  cat conftest.err >&5
 
25893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25894
  (exit $ac_status); } &&
 
25895
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25897
  (eval $ac_try) 2>&5
 
25898
  ac_status=$?
 
25899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25900
  (exit $ac_status); }; } &&
 
25901
         { ac_try='test -s conftest.$ac_objext'
 
25902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25903
  (eval $ac_try) 2>&5
 
25904
  ac_status=$?
 
25905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25906
  (exit $ac_status); }; }; then
 
25907
  ac_header_compiler=yes
 
25908
else
 
25909
  echo "$as_me: failed program was:" >&5
 
25910
sed 's/^/| /' conftest.$ac_ext >&5
 
25911
 
 
25912
ac_header_compiler=no
 
25913
fi
 
25914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25915
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25916
echo "${ECHO_T}$ac_header_compiler" >&6
 
25917
 
 
25918
# Is the header present?
 
25919
echo "$as_me:$LINENO: checking tiffio.h presence" >&5
 
25920
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
 
25921
cat >conftest.$ac_ext <<_ACEOF
 
25922
/* confdefs.h.  */
 
25923
_ACEOF
 
25924
cat confdefs.h >>conftest.$ac_ext
 
25925
cat >>conftest.$ac_ext <<_ACEOF
 
25926
/* end confdefs.h.  */
 
25927
#include <tiffio.h>
 
25928
_ACEOF
 
25929
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25930
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25931
  ac_status=$?
 
25932
  grep -v '^ *+' conftest.er1 >conftest.err
 
25933
  rm -f conftest.er1
 
25934
  cat conftest.err >&5
 
25935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25936
  (exit $ac_status); } >/dev/null; then
 
25937
  if test -s conftest.err; then
 
25938
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25939
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25940
  else
 
25941
    ac_cpp_err=
 
25942
  fi
 
25943
else
 
25944
  ac_cpp_err=yes
 
25945
fi
 
25946
if test -z "$ac_cpp_err"; then
 
25947
  ac_header_preproc=yes
 
25948
else
 
25949
  echo "$as_me: failed program was:" >&5
 
25950
sed 's/^/| /' conftest.$ac_ext >&5
 
25951
 
 
25952
  ac_header_preproc=no
 
25953
fi
 
25954
rm -f conftest.err conftest.$ac_ext
 
25955
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25956
echo "${ECHO_T}$ac_header_preproc" >&6
 
25957
 
 
25958
# So?  What about this header?
 
25959
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25960
  yes:no: )
 
25961
    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25962
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25963
    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
 
25964
echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
 
25965
    ac_header_preproc=yes
 
25966
    ;;
 
25967
  no:yes:* )
 
25968
    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
 
25969
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
 
25970
    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
 
25971
echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
 
25972
    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
 
25973
echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
 
25974
    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25975
echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25976
    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
 
25977
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
 
25978
    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
 
25979
echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
 
25980
    (
 
25981
      cat <<\_ASBOX
 
25982
## ------------------------------------------ ##
 
25983
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25984
## ------------------------------------------ ##
 
25985
_ASBOX
 
25986
    ) |
 
25987
      sed "s/^/$as_me: WARNING:     /" >&2
 
25988
    ;;
 
25989
esac
 
25990
echo "$as_me:$LINENO: checking for tiffio.h" >&5
 
25991
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
 
25992
if test "${ac_cv_header_tiffio_h+set}" = set; then
 
25993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25994
else
 
25995
  ac_cv_header_tiffio_h=$ac_header_preproc
 
25996
fi
 
25997
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
 
25998
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
 
25999
 
 
26000
fi
 
26001
 
 
26002
 
 
26003
CPPFLAGS="$CPPFLAGS_old"
 
26004
 
 
26005
        if test "x$ac_cv_header_tiffio_h" = xyes; then
 
26006
            GFXLIBS="$my_libname $GFXLIBS"
 
26007
            ICONEXT="tiff"
 
26008
            supported_gfx="$supported_gfx TIFF"
 
26009
 
 
26010
cat >>confdefs.h <<\_ACEOF
 
26011
#define USE_TIFF 1
 
26012
_ACEOF
 
26013
 
 
26014
        fi
 
26015
    fi
 
26016
fi
 
26017
 
 
26018
LIBRARY_SEARCH_PATH="$lib_search_path"
 
26019
HEADER_SEARCH_PATH="$inc_search_path"
 
26020
 
 
26021
 
 
26022
 
 
26023
 
 
26024
 
 
26025
 
 
26026
 
 
26027
 
 
26028
 
 
26029
 
 
26030
 
 
26031
 
 
26032
for ac_header in stdlib.h
 
26033
do
 
26034
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26035
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26036
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26037
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26038
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26040
fi
 
26041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26043
else
 
26044
  # Is the header compilable?
 
26045
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26046
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26047
cat >conftest.$ac_ext <<_ACEOF
 
26048
/* confdefs.h.  */
 
26049
_ACEOF
 
26050
cat confdefs.h >>conftest.$ac_ext
 
26051
cat >>conftest.$ac_ext <<_ACEOF
 
26052
/* end confdefs.h.  */
 
26053
$ac_includes_default
 
26054
#include <$ac_header>
 
26055
_ACEOF
 
26056
rm -f conftest.$ac_objext
 
26057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26058
  (eval $ac_compile) 2>conftest.er1
 
26059
  ac_status=$?
 
26060
  grep -v '^ *+' conftest.er1 >conftest.err
 
26061
  rm -f conftest.er1
 
26062
  cat conftest.err >&5
 
26063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26064
  (exit $ac_status); } &&
 
26065
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26067
  (eval $ac_try) 2>&5
 
26068
  ac_status=$?
 
26069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26070
  (exit $ac_status); }; } &&
 
26071
         { ac_try='test -s conftest.$ac_objext'
 
26072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26073
  (eval $ac_try) 2>&5
 
26074
  ac_status=$?
 
26075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26076
  (exit $ac_status); }; }; then
 
26077
  ac_header_compiler=yes
 
26078
else
 
26079
  echo "$as_me: failed program was:" >&5
 
26080
sed 's/^/| /' conftest.$ac_ext >&5
 
26081
 
 
26082
ac_header_compiler=no
 
26083
fi
 
26084
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26085
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26086
echo "${ECHO_T}$ac_header_compiler" >&6
 
26087
 
 
26088
# Is the header present?
 
26089
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26090
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26091
cat >conftest.$ac_ext <<_ACEOF
 
26092
/* confdefs.h.  */
 
26093
_ACEOF
 
26094
cat confdefs.h >>conftest.$ac_ext
 
26095
cat >>conftest.$ac_ext <<_ACEOF
 
26096
/* end confdefs.h.  */
 
26097
#include <$ac_header>
 
26098
_ACEOF
 
26099
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26100
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26101
  ac_status=$?
 
26102
  grep -v '^ *+' conftest.er1 >conftest.err
 
26103
  rm -f conftest.er1
 
26104
  cat conftest.err >&5
 
26105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26106
  (exit $ac_status); } >/dev/null; then
 
26107
  if test -s conftest.err; then
 
26108
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26109
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26110
  else
 
26111
    ac_cpp_err=
 
26112
  fi
 
26113
else
 
26114
  ac_cpp_err=yes
 
26115
fi
 
26116
if test -z "$ac_cpp_err"; then
 
26117
  ac_header_preproc=yes
 
26118
else
 
26119
  echo "$as_me: failed program was:" >&5
 
26120
sed 's/^/| /' conftest.$ac_ext >&5
 
26121
 
 
26122
  ac_header_preproc=no
 
26123
fi
 
26124
rm -f conftest.err conftest.$ac_ext
 
26125
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26126
echo "${ECHO_T}$ac_header_preproc" >&6
 
26127
 
 
26128
# So?  What about this header?
 
26129
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26130
  yes:no: )
 
26131
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26132
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26133
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26134
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26135
    ac_header_preproc=yes
 
26136
    ;;
 
26137
  no:yes:* )
 
26138
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26139
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26140
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26141
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26142
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26143
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26144
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26145
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26146
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26147
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26148
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26149
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26150
    (
 
26151
      cat <<\_ASBOX
 
26152
## ------------------------------------------ ##
 
26153
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26154
## ------------------------------------------ ##
 
26155
_ASBOX
 
26156
    ) |
 
26157
      sed "s/^/$as_me: WARNING:     /" >&2
 
26158
    ;;
 
26159
esac
 
26160
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26161
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26162
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26164
else
 
26165
  eval "$as_ac_Header=\$ac_header_preproc"
 
26166
fi
 
26167
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26168
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26169
 
 
26170
fi
 
26171
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26172
  cat >>confdefs.h <<_ACEOF
 
26173
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26174
_ACEOF
 
26175
 
 
26176
fi
 
26177
 
 
26178
done
 
26179
 
 
26180
 
 
26181
# AC_PREFIX_PROGRAM(wmaker)
 
26182
 
 
26183
 
 
26184
# Check whether --with-pixmapdir or --without-pixmapdir was given.
 
26185
if test "${with_pixmapdir+set}" = set; then
 
26186
  withval="$with_pixmapdir"
 
26187
 
 
26188
fi;
 
26189
 
 
26190
if test "x$with_pixmapdir" != "x"; then
 
26191
        pixmapdir=$with_pixmapdir
 
26192
else
 
26193
        pixmapdir=`eval echo ${datadir}/pixmaps`
 
26194
fi
 
26195
 
 
26196
 
 
26197
cat >>confdefs.h <<_ACEOF
 
26198
#define PIXMAPDIR "$pixmapdir"
 
26199
_ACEOF
 
26200
 
 
26201
 
 
26202
pkgdatadir=`eval echo $datadir`
 
26203
 
 
26204
cat >>confdefs.h <<_ACEOF
 
26205
#define PKGDATADIR "$pkgdatadir/WindowMaker"
 
26206
_ACEOF
 
26207
 
 
26208
 
 
26209
_sysconfdir=`eval echo $sysconfdir`
 
26210
 
 
26211
cat >>confdefs.h <<_ACEOF
 
26212
#define SYSCONFDIR "$_sysconfdir"
 
26213
_ACEOF
 
26214
 
 
26215
 
 
26216
 
 
26217
 
 
26218
appspath=""
 
26219
 
 
26220
 
 
26221
# Check whether --with-appspath or --without-appspath was given.
 
26222
if test "${with_appspath+set}" = set; then
 
26223
  withval="$with_appspath"
 
26224
  appspath=$withval
 
26225
fi;
 
26226
 
 
26227
if test "x$appspath" = "x"; then
 
26228
    gnustepdir='${prefix}/GNUstep'
 
26229
 
 
26230
    if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
 
26231
        gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
 
26232
        gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
 
26233
    fi
 
26234
 
 
26235
    with_appspath=$gnustepdir/Applications
 
26236
fi
 
26237
 
 
26238
wprefsdir=$with_appspath/WPrefs.app
 
26239
 
 
26240
 
 
26241
 
 
26242
 
 
26243
# Check whether --enable-usermenu or --disable-usermenu was given.
 
26244
if test "${enable_usermenu+set}" = set; then
 
26245
  enableval="$enable_usermenu"
 
26246
  if test "$enableval" = yes; then
 
26247
 
 
26248
cat >>confdefs.h <<\_ACEOF
 
26249
#define USER_MENU 1
 
26250
_ACEOF
 
26251
 
 
26252
fi
 
26253
 
 
26254
fi;
 
26255
 
 
26256
 
 
26257
 
 
26258
 
 
26259
                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile po/Makefile util/Makefile test/Makefile WINGs/Makefile WINGs/WINGs/Makefile WINGs/Documentation/Makefile WINGs/Examples/Makefile WINGs/Resources/Makefile WINGs/Tests/Makefile WINGs/Extras/Makefile WINGs/po/Makefile wmlib/Makefile wrlib/Makefile src/Makefile src/wconfig.h doc/Makefile doc/sk/Makefile WindowMaker/Makefile WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile WindowMaker/Themes/Makefile WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile WPrefs.app/po/Makefile contrib/Makefile contrib/WindowMaker.spec"
 
26260
cat >confcache <<\_ACEOF
 
26261
# This file is a shell script that caches the results of configure
 
26262
# tests run on this system so they can be shared between configure
 
26263
# scripts and configure runs, see configure's option --config-cache.
 
26264
# It is not useful on other systems.  If it contains results you don't
 
26265
# want to keep, you may remove or edit it.
 
26266
#
 
26267
# config.status only pays attention to the cache file if you give it
 
26268
# the --recheck option to rerun configure.
 
26269
#
 
26270
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
26271
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
26272
# following values.
 
26273
 
 
26274
_ACEOF
 
26275
 
 
26276
# The following way of writing the cache mishandles newlines in values,
 
26277
# but we know of no workaround that is simple, portable, and efficient.
 
26278
# So, don't put newlines in cache variables' values.
 
26279
# Ultrix sh set writes to stderr and can't be redirected directly,
 
26280
# and sets the high bit in the cache file unless we assign to the vars.
 
26281
{
 
26282
  (set) 2>&1 |
 
26283
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
26284
    *ac_space=\ *)
 
26285
      # `set' does not quote correctly, so add quotes (double-quote
 
26286
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
26287
      sed -n \
 
26288
        "s/'/'\\\\''/g;
 
26289
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
26290
      ;;
 
26291
    *)
 
26292
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
26293
      sed -n \
 
26294
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
26295
      ;;
 
26296
    esac;
 
26297
} |
 
26298
  sed '
 
26299
     t clear
 
26300
     : clear
 
26301
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
26302
     t end
 
26303
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
26304
     : end' >>confcache
 
26305
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
26306
  if test -w $cache_file; then
 
26307
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
26308
    cat confcache >$cache_file
 
26309
  else
 
26310
    echo "not updating unwritable cache $cache_file"
 
26311
  fi
 
26312
fi
 
26313
rm -f confcache
 
26314
 
 
26315
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
26316
# Let make expand exec_prefix.
 
26317
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
26318
 
 
26319
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
26320
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
26321
# trailing colons and then remove the whole line if VPATH becomes empty
 
26322
# (actually we leave an empty line to preserve line numbers).
 
26323
if test "x$srcdir" = x.; then
 
26324
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
26325
s/:*\$(srcdir):*/:/;
 
26326
s/:*\${srcdir}:*/:/;
 
26327
s/:*@srcdir@:*/:/;
 
26328
s/^\([^=]*=[     ]*\):*/\1/;
 
26329
s/:*$//;
 
26330
s/^[^=]*=[       ]*$//;
 
26331
}'
 
26332
fi
 
26333
 
 
26334
DEFS=-DHAVE_CONFIG_H
 
26335
 
 
26336
ac_libobjs=
 
26337
ac_ltlibobjs=
 
26338
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
26339
  # 1. Remove the extension, and $U if already installed.
 
26340
  ac_i=`echo "$ac_i" |
 
26341
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
26342
  # 2. Add them.
 
26343
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
26344
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
26345
done
 
26346
LIBOBJS=$ac_libobjs
 
26347
 
 
26348
LTLIBOBJS=$ac_ltlibobjs
 
26349
 
 
26350
 
 
26351
 
 
26352
: ${CONFIG_STATUS=./config.status}
 
26353
ac_clean_files_save=$ac_clean_files
 
26354
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
26355
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
26356
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
26357
cat >$CONFIG_STATUS <<_ACEOF
 
26358
#! $SHELL
 
26359
# Generated by $as_me.
 
26360
# Run this file to recreate the current configuration.
 
26361
# Compiler output produced by configure, useful for debugging
 
26362
# configure, is in config.log if it exists.
 
26363
 
 
26364
debug=false
 
26365
ac_cs_recheck=false
 
26366
ac_cs_silent=false
 
26367
SHELL=\${CONFIG_SHELL-$SHELL}
 
26368
_ACEOF
 
26369
 
 
26370
cat >>$CONFIG_STATUS <<\_ACEOF
 
26371
## --------------------- ##
 
26372
## M4sh Initialization.  ##
 
26373
## --------------------- ##
 
26374
 
 
26375
# Be Bourne compatible
 
26376
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
26377
  emulate sh
 
26378
  NULLCMD=:
 
26379
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
26380
  # is contrary to our usage.  Disable this feature.
 
26381
  alias -g '${1+"$@"}'='"$@"'
 
26382
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
26383
  set -o posix
 
26384
fi
 
26385
DUALCASE=1; export DUALCASE # for MKS sh
 
26386
 
 
26387
# Support unset when possible.
 
26388
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26389
  as_unset=unset
 
26390
else
 
26391
  as_unset=false
 
26392
fi
 
26393
 
 
26394
 
 
26395
# Work around bugs in pre-3.0 UWIN ksh.
 
26396
$as_unset ENV MAIL MAILPATH
 
26397
PS1='$ '
 
26398
PS2='> '
 
26399
PS4='+ '
 
26400
 
 
26401
# NLS nuisances.
 
26402
for as_var in \
 
26403
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
26404
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
26405
  LC_TELEPHONE LC_TIME
 
26406
do
 
26407
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
26408
    eval $as_var=C; export $as_var
 
26409
  else
 
26410
    $as_unset $as_var
 
26411
  fi
 
26412
done
 
26413
 
 
26414
# Required to use basename.
 
26415
if expr a : '\(a\)' >/dev/null 2>&1; then
 
26416
  as_expr=expr
 
26417
else
 
26418
  as_expr=false
 
26419
fi
 
26420
 
 
26421
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
26422
  as_basename=basename
 
26423
else
 
26424
  as_basename=false
 
26425
fi
 
26426
 
 
26427
 
 
26428
# Name of the executable.
 
26429
as_me=`$as_basename "$0" ||
 
26430
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
26431
         X"$0" : 'X\(//\)$' \| \
 
26432
         X"$0" : 'X\(/\)$' \| \
 
26433
         .     : '\(.\)' 2>/dev/null ||
 
26434
echo X/"$0" |
 
26435
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
26436
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
26437
          /^X\/\(\/\).*/{ s//\1/; q; }
 
26438
          s/.*/./; q'`
 
26439
 
 
26440
 
 
26441
# PATH needs CR, and LINENO needs CR and PATH.
 
26442
# Avoid depending upon Character Ranges.
 
26443
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
26444
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
26445
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
26446
as_cr_digits='0123456789'
 
26447
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
26448
 
 
26449
# The user is always right.
 
26450
if test "${PATH_SEPARATOR+set}" != set; then
 
26451
  echo "#! /bin/sh" >conf$$.sh
 
26452
  echo  "exit 0"   >>conf$$.sh
 
26453
  chmod +x conf$$.sh
 
26454
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
26455
    PATH_SEPARATOR=';'
 
26456
  else
 
26457
    PATH_SEPARATOR=:
 
26458
  fi
 
26459
  rm -f conf$$.sh
 
26460
fi
 
26461
 
 
26462
 
 
26463
  as_lineno_1=$LINENO
 
26464
  as_lineno_2=$LINENO
 
26465
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
26466
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
26467
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
26468
  # Find who we are.  Look in the path if we contain no path at all
 
26469
  # relative or not.
 
26470
  case $0 in
 
26471
    *[\\/]* ) as_myself=$0 ;;
 
26472
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26473
for as_dir in $PATH
 
26474
do
 
26475
  IFS=$as_save_IFS
 
26476
  test -z "$as_dir" && as_dir=.
 
26477
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
26478
done
 
26479
 
 
26480
       ;;
 
26481
  esac
 
26482
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
26483
  # in which case we are not to be found in the path.
 
26484
  if test "x$as_myself" = x; then
 
26485
    as_myself=$0
 
26486
  fi
 
26487
  if test ! -f "$as_myself"; then
 
26488
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
26489
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
26490
   { (exit 1); exit 1; }; }
 
26491
  fi
 
26492
  case $CONFIG_SHELL in
 
26493
  '')
 
26494
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26495
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
26496
do
 
26497
  IFS=$as_save_IFS
 
26498
  test -z "$as_dir" && as_dir=.
 
26499
  for as_base in sh bash ksh sh5; do
 
26500
         case $as_dir in
 
26501
         /*)
 
26502
           if ("$as_dir/$as_base" -c '
 
26503
  as_lineno_1=$LINENO
 
26504
  as_lineno_2=$LINENO
 
26505
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
26506
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
26507
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
26508
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
26509
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
26510
             CONFIG_SHELL=$as_dir/$as_base
 
26511
             export CONFIG_SHELL
 
26512
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
26513
           fi;;
 
26514
         esac
 
26515
       done
 
26516
done
 
26517
;;
 
26518
  esac
 
26519
 
 
26520
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
26521
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
26522
  # line-number line before each line; the second 'sed' does the real
 
26523
  # work.  The second script uses 'N' to pair each line-number line
 
26524
  # with the numbered line, and appends trailing '-' during
 
26525
  # substitution so that $LINENO is not a special case at line end.
 
26526
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
26527
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
26528
  sed '=' <$as_myself |
 
26529
    sed '
 
26530
      N
 
26531
      s,$,-,
 
26532
      : loop
 
26533
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
26534
      t loop
 
26535
      s,-$,,
 
26536
      s,^['$as_cr_digits']*\n,,
 
26537
    ' >$as_me.lineno &&
 
26538
  chmod +x $as_me.lineno ||
 
26539
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
26540
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
26541
   { (exit 1); exit 1; }; }
 
26542
 
 
26543
  # Don't try to exec as it changes $[0], causing all sort of problems
 
26544
  # (the dirname of $[0] is not the place where we might find the
 
26545
  # original and so on.  Autoconf is especially sensible to this).
 
26546
  . ./$as_me.lineno
 
26547
  # Exit status is that of the last command.
 
26548
  exit
 
26549
}
 
26550
 
 
26551
 
 
26552
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
26553
  *c*,-n*) ECHO_N= ECHO_C='
 
26554
' ECHO_T='      ' ;;
 
26555
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
26556
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
26557
esac
 
26558
 
 
26559
if expr a : '\(a\)' >/dev/null 2>&1; then
 
26560
  as_expr=expr
 
26561
else
 
26562
  as_expr=false
 
26563
fi
 
26564
 
 
26565
rm -f conf$$ conf$$.exe conf$$.file
 
26566
echo >conf$$.file
 
26567
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
26568
  # We could just check for DJGPP; but this test a) works b) is more generic
 
26569
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
26570
  if test -f conf$$.exe; then
 
26571
    # Don't use ln at all; we don't have any links
 
26572
    as_ln_s='cp -p'
 
26573
  else
 
26574
    as_ln_s='ln -s'
 
26575
  fi
 
26576
elif ln conf$$.file conf$$ 2>/dev/null; then
 
26577
  as_ln_s=ln
 
26578
else
 
26579
  as_ln_s='cp -p'
 
26580
fi
 
26581
rm -f conf$$ conf$$.exe conf$$.file
 
26582
 
 
26583
if mkdir -p . 2>/dev/null; then
 
26584
  as_mkdir_p=:
 
26585
else
 
26586
  test -d ./-p && rmdir ./-p
 
26587
  as_mkdir_p=false
 
26588
fi
 
26589
 
 
26590
as_executable_p="test -f"
 
26591
 
 
26592
# Sed expression to map a string onto a valid CPP name.
 
26593
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
26594
 
 
26595
# Sed expression to map a string onto a valid variable name.
 
26596
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
26597
 
 
26598
 
 
26599
# IFS
 
26600
# We need space, tab and new line, in precisely that order.
 
26601
as_nl='
 
26602
'
 
26603
IFS="   $as_nl"
 
26604
 
 
26605
# CDPATH.
 
26606
$as_unset CDPATH
 
26607
 
 
26608
exec 6>&1
 
26609
 
 
26610
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
26611
# report actual input values of CONFIG_FILES etc. instead of their
 
26612
# values after options handling.  Logging --version etc. is OK.
 
26613
exec 5>>config.log
 
26614
{
 
26615
  echo
 
26616
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
26617
## Running $as_me. ##
 
26618
_ASBOX
 
26619
} >&5
 
26620
cat >&5 <<_CSEOF
 
26621
 
 
26622
This file was extended by $as_me, which was
 
26623
generated by GNU Autoconf 2.59.  Invocation command line was
 
26624
 
 
26625
  CONFIG_FILES    = $CONFIG_FILES
 
26626
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
26627
  CONFIG_LINKS    = $CONFIG_LINKS
 
26628
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
26629
  $ $0 $@
 
26630
 
 
26631
_CSEOF
 
26632
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
26633
echo >&5
 
26634
_ACEOF
 
26635
 
 
26636
# Files that config.status was made for.
 
26637
if test -n "$ac_config_files"; then
 
26638
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
26639
fi
 
26640
 
 
26641
if test -n "$ac_config_headers"; then
 
26642
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
26643
fi
 
26644
 
 
26645
if test -n "$ac_config_links"; then
 
26646
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
26647
fi
 
26648
 
 
26649
if test -n "$ac_config_commands"; then
 
26650
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
26651
fi
 
26652
 
 
26653
cat >>$CONFIG_STATUS <<\_ACEOF
 
26654
 
 
26655
ac_cs_usage="\
 
26656
\`$as_me' instantiates files from templates according to the
 
26657
current configuration.
 
26658
 
 
26659
Usage: $0 [OPTIONS] [FILE]...
 
26660
 
 
26661
  -h, --help       print this help, then exit
 
26662
  -V, --version    print version number, then exit
 
26663
  -q, --quiet      do not print progress messages
 
26664
  -d, --debug      don't remove temporary files
 
26665
      --recheck    update $as_me by reconfiguring in the same conditions
 
26666
  --file=FILE[:TEMPLATE]
 
26667
                   instantiate the configuration file FILE
 
26668
  --header=FILE[:TEMPLATE]
 
26669
                   instantiate the configuration header FILE
 
26670
 
 
26671
Configuration files:
 
26672
$config_files
 
26673
 
 
26674
Configuration headers:
 
26675
$config_headers
 
26676
 
 
26677
Configuration commands:
 
26678
$config_commands
 
26679
 
 
26680
Report bugs to <bug-autoconf@gnu.org>."
 
26681
_ACEOF
 
26682
 
 
26683
cat >>$CONFIG_STATUS <<_ACEOF
 
26684
ac_cs_version="\\
 
26685
config.status
 
26686
configured by $0, generated by GNU Autoconf 2.59,
 
26687
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
26688
 
 
26689
Copyright (C) 2003 Free Software Foundation, Inc.
 
26690
This config.status script is free software; the Free Software Foundation
 
26691
gives unlimited permission to copy, distribute and modify it."
 
26692
srcdir=$srcdir
 
26693
INSTALL="$INSTALL"
 
26694
_ACEOF
 
26695
 
 
26696
cat >>$CONFIG_STATUS <<\_ACEOF
 
26697
# If no file are specified by the user, then we need to provide default
 
26698
# value.  By we need to know if files were specified by the user.
 
26699
ac_need_defaults=:
 
26700
while test $# != 0
 
26701
do
 
26702
  case $1 in
 
26703
  --*=*)
 
26704
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
26705
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
26706
    ac_shift=:
 
26707
    ;;
 
26708
  -*)
 
26709
    ac_option=$1
 
26710
    ac_optarg=$2
 
26711
    ac_shift=shift
 
26712
    ;;
 
26713
  *) # This is not an option, so the user has probably given explicit
 
26714
     # arguments.
 
26715
     ac_option=$1
 
26716
     ac_need_defaults=false;;
 
26717
  esac
 
26718
 
 
26719
  case $ac_option in
 
26720
  # Handling of the options.
 
26721
_ACEOF
 
26722
cat >>$CONFIG_STATUS <<\_ACEOF
 
26723
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
26724
    ac_cs_recheck=: ;;
 
26725
  --version | --vers* | -V )
 
26726
    echo "$ac_cs_version"; exit 0 ;;
 
26727
  --he | --h)
 
26728
    # Conflict between --help and --header
 
26729
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
26730
Try \`$0 --help' for more information." >&5
 
26731
echo "$as_me: error: ambiguous option: $1
 
26732
Try \`$0 --help' for more information." >&2;}
 
26733
   { (exit 1); exit 1; }; };;
 
26734
  --help | --hel | -h )
 
26735
    echo "$ac_cs_usage"; exit 0 ;;
 
26736
  --debug | --d* | -d )
 
26737
    debug=: ;;
 
26738
  --file | --fil | --fi | --f )
 
26739
    $ac_shift
 
26740
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
26741
    ac_need_defaults=false;;
 
26742
  --header | --heade | --head | --hea )
 
26743
    $ac_shift
 
26744
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
26745
    ac_need_defaults=false;;
 
26746
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
26747
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
26748
    ac_cs_silent=: ;;
 
26749
 
 
26750
  # This is an error.
 
26751
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
26752
Try \`$0 --help' for more information." >&5
 
26753
echo "$as_me: error: unrecognized option: $1
 
26754
Try \`$0 --help' for more information." >&2;}
 
26755
   { (exit 1); exit 1; }; } ;;
 
26756
 
 
26757
  *) ac_config_targets="$ac_config_targets $1" ;;
 
26758
 
 
26759
  esac
 
26760
  shift
 
26761
done
 
26762
 
 
26763
ac_configure_extra_args=
 
26764
 
 
26765
if $ac_cs_silent; then
 
26766
  exec 6>/dev/null
 
26767
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
26768
fi
 
26769
 
 
26770
_ACEOF
 
26771
cat >>$CONFIG_STATUS <<_ACEOF
 
26772
if \$ac_cs_recheck; then
 
26773
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
26774
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
26775
fi
 
26776
 
 
26777
_ACEOF
 
26778
 
 
26779
cat >>$CONFIG_STATUS <<_ACEOF
 
26780
#
 
26781
# INIT-COMMANDS section.
 
26782
#
 
26783
 
 
26784
 
 
26785
 
 
26786
_ACEOF
 
26787
 
 
26788
 
 
26789
 
 
26790
cat >>$CONFIG_STATUS <<\_ACEOF
 
26791
for ac_config_target in $ac_config_targets
 
26792
do
 
26793
  case "$ac_config_target" in
 
26794
  # Handling of arguments.
 
26795
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
26796
  "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
 
26797
  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
 
26798
  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
26799
  "WINGs/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Makefile" ;;
 
26800
  "WINGs/WINGs/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/WINGs/Makefile" ;;
 
26801
  "WINGs/Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Documentation/Makefile" ;;
 
26802
  "WINGs/Examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Examples/Makefile" ;;
 
26803
  "WINGs/Resources/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Resources/Makefile" ;;
 
26804
  "WINGs/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Tests/Makefile" ;;
 
26805
  "WINGs/Extras/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Extras/Makefile" ;;
 
26806
  "WINGs/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/po/Makefile" ;;
 
26807
  "wmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES wmlib/Makefile" ;;
 
26808
  "wrlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES wrlib/Makefile" ;;
 
26809
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
26810
  "src/wconfig.h" ) CONFIG_FILES="$CONFIG_FILES src/wconfig.h" ;;
 
26811
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
26812
  "doc/sk/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/sk/Makefile" ;;
 
26813
  "WindowMaker/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Makefile" ;;
 
26814
  "WindowMaker/Backgrounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Backgrounds/Makefile" ;;
 
26815
  "WindowMaker/Defaults/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Defaults/Makefile" ;;
 
26816
  "WindowMaker/IconSets/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/IconSets/Makefile" ;;
 
26817
  "WindowMaker/Icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Icons/Makefile" ;;
 
26818
  "WindowMaker/Pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Pixmaps/Makefile" ;;
 
26819
  "WindowMaker/Styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Styles/Makefile" ;;
 
26820
  "WindowMaker/Themes/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Themes/Makefile" ;;
 
26821
  "WPrefs.app/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/Makefile" ;;
 
26822
  "WPrefs.app/tiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/tiff/Makefile" ;;
 
26823
  "WPrefs.app/xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/xpm/Makefile" ;;
 
26824
  "WPrefs.app/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/po/Makefile" ;;
 
26825
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
 
26826
  "contrib/WindowMaker.spec" ) CONFIG_FILES="$CONFIG_FILES contrib/WindowMaker.spec" ;;
 
26827
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
26828
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
26829
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
26830
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
26831
   { (exit 1); exit 1; }; };;
 
26832
  esac
 
26833
done
 
26834
 
 
26835
# If the user did not use the arguments to specify the items to instantiate,
 
26836
# then the envvar interface is used.  Set only those that are not.
 
26837
# We use the long form for the default assignment because of an extremely
 
26838
# bizarre bug on SunOS 4.1.3.
 
26839
if $ac_need_defaults; then
 
26840
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
26841
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
26842
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
26843
fi
 
26844
 
 
26845
# Have a temporary directory for convenience.  Make it in the build tree
 
26846
# simply because there is no reason to put it here, and in addition,
 
26847
# creating and moving files from /tmp can sometimes cause problems.
 
26848
# Create a temporary directory, and hook for its removal unless debugging.
 
26849
$debug ||
 
26850
{
 
26851
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
26852
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
26853
}
 
26854
 
 
26855
# Create a (secure) tmp directory for tmp files.
 
26856
 
 
26857
{
 
26858
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
26859
  test -n "$tmp" && test -d "$tmp"
 
26860
}  ||
 
26861
{
 
26862
  tmp=./confstat$$-$RANDOM
 
26863
  (umask 077 && mkdir $tmp)
 
26864
} ||
 
26865
{
 
26866
   echo "$me: cannot create a temporary directory in ." >&2
 
26867
   { (exit 1); exit 1; }
 
26868
}
 
26869
 
 
26870
_ACEOF
 
26871
 
 
26872
cat >>$CONFIG_STATUS <<_ACEOF
 
26873
 
 
26874
#
 
26875
# CONFIG_FILES section.
 
26876
#
 
26877
 
 
26878
# No need to generate the scripts if there are no CONFIG_FILES.
 
26879
# This happens for instance when ./config.status config.h
 
26880
if test -n "\$CONFIG_FILES"; then
 
26881
  # Protect against being on the right side of a sed subst in config.status.
 
26882
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
26883
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
26884
s,@SHELL@,$SHELL,;t t
 
26885
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
26886
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
26887
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
26888
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
26889
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
26890
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
26891
s,@exec_prefix@,$exec_prefix,;t t
 
26892
s,@prefix@,$prefix,;t t
 
26893
s,@program_transform_name@,$program_transform_name,;t t
 
26894
s,@bindir@,$bindir,;t t
 
26895
s,@sbindir@,$sbindir,;t t
 
26896
s,@libexecdir@,$libexecdir,;t t
 
26897
s,@datadir@,$datadir,;t t
 
26898
s,@sysconfdir@,$sysconfdir,;t t
 
26899
s,@sharedstatedir@,$sharedstatedir,;t t
 
26900
s,@localstatedir@,$localstatedir,;t t
 
26901
s,@libdir@,$libdir,;t t
 
26902
s,@includedir@,$includedir,;t t
 
26903
s,@oldincludedir@,$oldincludedir,;t t
 
26904
s,@infodir@,$infodir,;t t
 
26905
s,@mandir@,$mandir,;t t
 
26906
s,@build_alias@,$build_alias,;t t
 
26907
s,@host_alias@,$host_alias,;t t
 
26908
s,@target_alias@,$target_alias,;t t
 
26909
s,@DEFS@,$DEFS,;t t
 
26910
s,@ECHO_C@,$ECHO_C,;t t
 
26911
s,@ECHO_N@,$ECHO_N,;t t
 
26912
s,@ECHO_T@,$ECHO_T,;t t
 
26913
s,@LIBS@,$LIBS,;t t
 
26914
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
26915
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
26916
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
26917
s,@PACKAGE@,$PACKAGE,;t t
 
26918
s,@VERSION@,$VERSION,;t t
 
26919
s,@ACLOCAL@,$ACLOCAL,;t t
 
26920
s,@AUTOCONF@,$AUTOCONF,;t t
 
26921
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
26922
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
26923
s,@MAKEINFO@,$MAKEINFO,;t t
 
26924
s,@SET_MAKE@,$SET_MAKE,;t t
 
26925
s,@build@,$build,;t t
 
26926
s,@build_cpu@,$build_cpu,;t t
 
26927
s,@build_vendor@,$build_vendor,;t t
 
26928
s,@build_os@,$build_os,;t t
 
26929
s,@host@,$host,;t t
 
26930
s,@host_cpu@,$host_cpu,;t t
 
26931
s,@host_vendor@,$host_vendor,;t t
 
26932
s,@host_os@,$host_os,;t t
 
26933
s,@CC@,$CC,;t t
 
26934
s,@CFLAGS@,$CFLAGS,;t t
 
26935
s,@LDFLAGS@,$LDFLAGS,;t t
 
26936
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
26937
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
26938
s,@EXEEXT@,$EXEEXT,;t t
 
26939
s,@OBJEXT@,$OBJEXT,;t t
 
26940
s,@EGREP@,$EGREP,;t t
 
26941
s,@LN_S@,$LN_S,;t t
 
26942
s,@ECHO@,$ECHO,;t t
 
26943
s,@AR@,$AR,;t t
 
26944
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
26945
s,@RANLIB@,$RANLIB,;t t
 
26946
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
26947
s,@STRIP@,$STRIP,;t t
 
26948
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
26949
s,@CPP@,$CPP,;t t
 
26950
s,@CXX@,$CXX,;t t
 
26951
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
26952
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
26953
s,@CXXCPP@,$CXXCPP,;t t
 
26954
s,@F77@,$F77,;t t
 
26955
s,@FFLAGS@,$FFLAGS,;t t
 
26956
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
26957
s,@LIBTOOL@,$LIBTOOL,;t t
 
26958
s,@ALLOCA@,$ALLOCA,;t t
 
26959
s,@CPP_PATH@,$CPP_PATH,;t t
 
26960
s,@NOSTRICTALIASING@,$NOSTRICTALIASING,;t t
 
26961
s,@PKGCONFIG@,$PKGCONFIG,;t t
 
26962
s,@XGETTEXT@,$XGETTEXT,;t t
 
26963
s,@DLLIBS@,$DLLIBS,;t t
 
26964
s,@INTLIBS@,$INTLIBS,;t t
 
26965
s,@NLSDIR@,$NLSDIR,;t t
 
26966
s,@MOFILES@,$MOFILES,;t t
 
26967
s,@WPMOFILES@,$WPMOFILES,;t t
 
26968
s,@WINGSMOFILES@,$WINGSMOFILES,;t t
 
26969
s,@supported_locales@,$supported_locales,;t t
 
26970
s,@LITE@,$LITE,;t t
 
26971
s,@NETLIBS@,$NETLIBS,;t t
 
26972
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
26973
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
26974
s,@X_LIBS@,$X_LIBS,;t t
 
26975
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
26976
s,@X_LIBRARY_PATH@,$X_LIBRARY_PATH,;t t
 
26977
s,@XFTCONFIG@,$XFTCONFIG,;t t
 
26978
s,@XFTFLAGS@,$XFTFLAGS,;t t
 
26979
s,@XFTLIBS@,$XFTLIBS,;t t
 
26980
s,@XCFLAGS@,$XCFLAGS,;t t
 
26981
s,@XLFLAGS@,$XLFLAGS,;t t
 
26982
s,@XLIBS@,$XLIBS,;t t
 
26983
s,@LIBRARY_SEARCH_PATH@,$LIBRARY_SEARCH_PATH,;t t
 
26984
s,@HEADER_SEARCH_PATH@,$HEADER_SEARCH_PATH,;t t
 
26985
s,@GFXLIBS@,$GFXLIBS,;t t
 
26986
s,@ICONEXT@,$ICONEXT,;t t
 
26987
s,@wprefsdir@,$wprefsdir,;t t
 
26988
s,@LIBOBJS@,$LIBOBJS,;t t
 
26989
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
26990
CEOF
 
26991
 
 
26992
_ACEOF
 
26993
 
 
26994
  cat >>$CONFIG_STATUS <<\_ACEOF
 
26995
  # Split the substitutions into bite-sized pieces for seds with
 
26996
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
26997
  ac_max_sed_lines=48
 
26998
  ac_sed_frag=1 # Number of current file.
 
26999
  ac_beg=1 # First line for current file.
 
27000
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
27001
  ac_more_lines=:
 
27002
  ac_sed_cmds=
 
27003
  while $ac_more_lines; do
 
27004
    if test $ac_beg -gt 1; then
 
27005
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
27006
    else
 
27007
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
27008
    fi
 
27009
    if test ! -s $tmp/subs.frag; then
 
27010
      ac_more_lines=false
 
27011
    else
 
27012
      # The purpose of the label and of the branching condition is to
 
27013
      # speed up the sed processing (if there are no `@' at all, there
 
27014
      # is no need to browse any of the substitutions).
 
27015
      # These are the two extra sed commands mentioned above.
 
27016
      (echo ':t
 
27017
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
27018
      if test -z "$ac_sed_cmds"; then
 
27019
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
27020
      else
 
27021
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
27022
      fi
 
27023
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
27024
      ac_beg=$ac_end
 
27025
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
27026
    fi
 
27027
  done
 
27028
  if test -z "$ac_sed_cmds"; then
 
27029
    ac_sed_cmds=cat
 
27030
  fi
 
27031
fi # test -n "$CONFIG_FILES"
 
27032
 
 
27033
_ACEOF
 
27034
cat >>$CONFIG_STATUS <<\_ACEOF
 
27035
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
27036
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
27037
  case $ac_file in
 
27038
  - | *:- | *:-:* ) # input from stdin
 
27039
        cat >$tmp/stdin
 
27040
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27041
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
27042
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27043
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
27044
  * )   ac_file_in=$ac_file.in ;;
 
27045
  esac
 
27046
 
 
27047
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
27048
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
27049
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27050
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
27051
         X"$ac_file" : 'X\(//\)$' \| \
 
27052
         X"$ac_file" : 'X\(/\)' \| \
 
27053
         .     : '\(.\)' 2>/dev/null ||
 
27054
echo X"$ac_file" |
 
27055
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27056
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27057
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27058
          /^X\(\/\).*/{ s//\1/; q; }
 
27059
          s/.*/./; q'`
 
27060
  { if $as_mkdir_p; then
 
27061
    mkdir -p "$ac_dir"
 
27062
  else
 
27063
    as_dir="$ac_dir"
 
27064
    as_dirs=
 
27065
    while test ! -d "$as_dir"; do
 
27066
      as_dirs="$as_dir $as_dirs"
 
27067
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27068
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27069
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
27070
         X"$as_dir" : 'X\(//\)$' \| \
 
27071
         X"$as_dir" : 'X\(/\)' \| \
 
27072
         .     : '\(.\)' 2>/dev/null ||
 
27073
echo X"$as_dir" |
 
27074
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27075
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27076
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27077
          /^X\(\/\).*/{ s//\1/; q; }
 
27078
          s/.*/./; q'`
 
27079
    done
 
27080
    test ! -n "$as_dirs" || mkdir $as_dirs
 
27081
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
27082
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
27083
   { (exit 1); exit 1; }; }; }
 
27084
 
 
27085
  ac_builddir=.
 
27086
 
 
27087
if test "$ac_dir" != .; then
 
27088
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
27089
  # A "../" for each directory in $ac_dir_suffix.
 
27090
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
27091
else
 
27092
  ac_dir_suffix= ac_top_builddir=
 
27093
fi
 
27094
 
 
27095
case $srcdir in
 
27096
  .)  # No --srcdir option.  We are building in place.
 
27097
    ac_srcdir=.
 
27098
    if test -z "$ac_top_builddir"; then
 
27099
       ac_top_srcdir=.
 
27100
    else
 
27101
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
27102
    fi ;;
 
27103
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
27104
    ac_srcdir=$srcdir$ac_dir_suffix;
 
27105
    ac_top_srcdir=$srcdir ;;
 
27106
  *) # Relative path.
 
27107
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
27108
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
27109
esac
 
27110
 
 
27111
# Do not use `cd foo && pwd` to compute absolute paths, because
 
27112
# the directories may not exist.
 
27113
case `pwd` in
 
27114
.) ac_abs_builddir="$ac_dir";;
 
27115
*)
 
27116
  case "$ac_dir" in
 
27117
  .) ac_abs_builddir=`pwd`;;
 
27118
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
27119
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
27120
  esac;;
 
27121
esac
 
27122
case $ac_abs_builddir in
 
27123
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27124
*)
 
27125
  case ${ac_top_builddir}. in
 
27126
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
27127
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27128
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
27129
  esac;;
 
27130
esac
 
27131
case $ac_abs_builddir in
 
27132
.) ac_abs_srcdir=$ac_srcdir;;
 
27133
*)
 
27134
  case $ac_srcdir in
 
27135
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
27136
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
27137
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
27138
  esac;;
 
27139
esac
 
27140
case $ac_abs_builddir in
 
27141
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
27142
*)
 
27143
  case $ac_top_srcdir in
 
27144
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
27145
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
27146
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
27147
  esac;;
 
27148
esac
 
27149
 
 
27150
 
 
27151
  case $INSTALL in
 
27152
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
27153
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
27154
  esac
 
27155
 
 
27156
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
27157
  # use $as_me), people would be surprised to read:
 
27158
  #    /* config.h.  Generated by config.status.  */
 
27159
  if test x"$ac_file" = x-; then
 
27160
    configure_input=
 
27161
  else
 
27162
    configure_input="$ac_file.  "
 
27163
  fi
 
27164
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
27165
                                     sed 's,.*/,,'` by configure."
 
27166
 
 
27167
  # First look for the input files in the build tree, otherwise in the
 
27168
  # src tree.
 
27169
  ac_file_inputs=`IFS=:
 
27170
    for f in $ac_file_in; do
 
27171
      case $f in
 
27172
      -) echo $tmp/stdin ;;
 
27173
      [\\/$]*)
 
27174
         # Absolute (can't be DOS-style, as IFS=:)
 
27175
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
27176
echo "$as_me: error: cannot find input file: $f" >&2;}
 
27177
   { (exit 1); exit 1; }; }
 
27178
         echo "$f";;
 
27179
      *) # Relative
 
27180
         if test -f "$f"; then
 
27181
           # Build tree
 
27182
           echo "$f"
 
27183
         elif test -f "$srcdir/$f"; then
 
27184
           # Source tree
 
27185
           echo "$srcdir/$f"
 
27186
         else
 
27187
           # /dev/null tree
 
27188
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
27189
echo "$as_me: error: cannot find input file: $f" >&2;}
 
27190
   { (exit 1); exit 1; }; }
 
27191
         fi;;
 
27192
      esac
 
27193
    done` || { (exit 1); exit 1; }
 
27194
 
 
27195
  if test x"$ac_file" != x-; then
 
27196
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
27197
echo "$as_me: creating $ac_file" >&6;}
 
27198
    rm -f "$ac_file"
 
27199
  fi
 
27200
_ACEOF
 
27201
cat >>$CONFIG_STATUS <<_ACEOF
 
27202
  sed "$ac_vpsub
 
27203
$extrasub
 
27204
_ACEOF
 
27205
cat >>$CONFIG_STATUS <<\_ACEOF
 
27206
:t
 
27207
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
27208
s,@configure_input@,$configure_input,;t t
 
27209
s,@srcdir@,$ac_srcdir,;t t
 
27210
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
27211
s,@top_srcdir@,$ac_top_srcdir,;t t
 
27212
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
27213
s,@builddir@,$ac_builddir,;t t
 
27214
s,@abs_builddir@,$ac_abs_builddir,;t t
 
27215
s,@top_builddir@,$ac_top_builddir,;t t
 
27216
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
27217
s,@INSTALL@,$ac_INSTALL,;t t
 
27218
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
27219
  rm -f $tmp/stdin
 
27220
  if test x"$ac_file" != x-; then
 
27221
    mv $tmp/out $ac_file
 
27222
  else
 
27223
    cat $tmp/out
 
27224
    rm -f $tmp/out
 
27225
  fi
 
27226
 
 
27227
done
 
27228
_ACEOF
 
27229
cat >>$CONFIG_STATUS <<\_ACEOF
 
27230
 
 
27231
#
 
27232
# CONFIG_HEADER section.
 
27233
#
 
27234
 
 
27235
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
27236
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
27237
#
 
27238
# ac_d sets the value in "#define NAME VALUE" lines.
 
27239
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
27240
ac_dB='[         ].*$,\1#\2'
 
27241
ac_dC=' '
 
27242
ac_dD=',;t'
 
27243
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
27244
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
27245
ac_uB='$,\1#\2define\3'
 
27246
ac_uC=' '
 
27247
ac_uD=',;t'
 
27248
 
 
27249
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
27250
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
27251
  case $ac_file in
 
27252
  - | *:- | *:-:* ) # input from stdin
 
27253
        cat >$tmp/stdin
 
27254
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27255
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
27256
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27257
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
27258
  * )   ac_file_in=$ac_file.in ;;
 
27259
  esac
 
27260
 
 
27261
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
27262
echo "$as_me: creating $ac_file" >&6;}
 
27263
 
 
27264
  # First look for the input files in the build tree, otherwise in the
 
27265
  # src tree.
 
27266
  ac_file_inputs=`IFS=:
 
27267
    for f in $ac_file_in; do
 
27268
      case $f in
 
27269
      -) echo $tmp/stdin ;;
 
27270
      [\\/$]*)
 
27271
         # Absolute (can't be DOS-style, as IFS=:)
 
27272
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
27273
echo "$as_me: error: cannot find input file: $f" >&2;}
 
27274
   { (exit 1); exit 1; }; }
 
27275
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
27276
         echo "$f";;
 
27277
      *) # Relative
 
27278
         if test -f "$f"; then
 
27279
           # Build tree
 
27280
           echo "$f"
 
27281
         elif test -f "$srcdir/$f"; then
 
27282
           # Source tree
 
27283
           echo "$srcdir/$f"
 
27284
         else
 
27285
           # /dev/null tree
 
27286
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
27287
echo "$as_me: error: cannot find input file: $f" >&2;}
 
27288
   { (exit 1); exit 1; }; }
 
27289
         fi;;
 
27290
      esac
 
27291
    done` || { (exit 1); exit 1; }
 
27292
  # Remove the trailing spaces.
 
27293
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
27294
 
 
27295
_ACEOF
 
27296
 
 
27297
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
27298
# `conftest.undefs', that substitutes the proper values into
 
27299
# config.h.in to produce config.h.  The first handles `#define'
 
27300
# templates, and the second `#undef' templates.
 
27301
# And first: Protect against being on the right side of a sed subst in
 
27302
# config.status.  Protect against being in an unquoted here document
 
27303
# in config.status.
 
27304
rm -f conftest.defines conftest.undefs
 
27305
# Using a here document instead of a string reduces the quoting nightmare.
 
27306
# Putting comments in sed scripts is not portable.
 
27307
#
 
27308
# `end' is used to avoid that the second main sed command (meant for
 
27309
# 0-ary CPP macros) applies to n-ary macro definitions.
 
27310
# See the Autoconf documentation for `clear'.
 
27311
cat >confdef2sed.sed <<\_ACEOF
 
27312
s/[\\&,]/\\&/g
 
27313
s,[\\$`],\\&,g
 
27314
t clear
 
27315
: clear
 
27316
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
27317
t end
 
27318
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
27319
: end
 
27320
_ACEOF
 
27321
# If some macros were called several times there might be several times
 
27322
# the same #defines, which is useless.  Nevertheless, we may not want to
 
27323
# sort them, since we want the *last* AC-DEFINE to be honored.
 
27324
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
27325
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
27326
rm -f confdef2sed.sed
 
27327
 
 
27328
# This sed command replaces #undef with comments.  This is necessary, for
 
27329
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
27330
# on some systems where configure will not decide to define it.
 
27331
cat >>conftest.undefs <<\_ACEOF
 
27332
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
27333
_ACEOF
 
27334
 
 
27335
# Break up conftest.defines because some shells have a limit on the size
 
27336
# of here documents, and old seds have small limits too (100 cmds).
 
27337
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
27338
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
27339
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
27340
echo '  :' >>$CONFIG_STATUS
 
27341
rm -f conftest.tail
 
27342
while grep . conftest.defines >/dev/null
 
27343
do
 
27344
  # Write a limited-size here document to $tmp/defines.sed.
 
27345
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
27346
  # Speed up: don't consider the non `#define' lines.
 
27347
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
27348
  # Work around the forget-to-reset-the-flag bug.
 
27349
  echo 't clr' >>$CONFIG_STATUS
 
27350
  echo ': clr' >>$CONFIG_STATUS
 
27351
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
27352
  echo 'CEOF
 
27353
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
27354
  rm -f $tmp/in
 
27355
  mv $tmp/out $tmp/in
 
27356
' >>$CONFIG_STATUS
 
27357
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
27358
  rm -f conftest.defines
 
27359
  mv conftest.tail conftest.defines
 
27360
done
 
27361
rm -f conftest.defines
 
27362
echo '  fi # grep' >>$CONFIG_STATUS
 
27363
echo >>$CONFIG_STATUS
 
27364
 
 
27365
# Break up conftest.undefs because some shells have a limit on the size
 
27366
# of here documents, and old seds have small limits too (100 cmds).
 
27367
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
27368
rm -f conftest.tail
 
27369
while grep . conftest.undefs >/dev/null
 
27370
do
 
27371
  # Write a limited-size here document to $tmp/undefs.sed.
 
27372
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
27373
  # Speed up: don't consider the non `#undef'
 
27374
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
27375
  # Work around the forget-to-reset-the-flag bug.
 
27376
  echo 't clr' >>$CONFIG_STATUS
 
27377
  echo ': clr' >>$CONFIG_STATUS
 
27378
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
27379
  echo 'CEOF
 
27380
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
27381
  rm -f $tmp/in
 
27382
  mv $tmp/out $tmp/in
 
27383
' >>$CONFIG_STATUS
 
27384
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
27385
  rm -f conftest.undefs
 
27386
  mv conftest.tail conftest.undefs
 
27387
done
 
27388
rm -f conftest.undefs
 
27389
 
 
27390
cat >>$CONFIG_STATUS <<\_ACEOF
 
27391
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
27392
  # use $as_me), people would be surprised to read:
 
27393
  #    /* config.h.  Generated by config.status.  */
 
27394
  if test x"$ac_file" = x-; then
 
27395
    echo "/* Generated by configure.  */" >$tmp/config.h
 
27396
  else
 
27397
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
27398
  fi
 
27399
  cat $tmp/in >>$tmp/config.h
 
27400
  rm -f $tmp/in
 
27401
  if test x"$ac_file" != x-; then
 
27402
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
27403
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
27404
echo "$as_me: $ac_file is unchanged" >&6;}
 
27405
    else
 
27406
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
27407
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27408
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
27409
         X"$ac_file" : 'X\(//\)$' \| \
 
27410
         X"$ac_file" : 'X\(/\)' \| \
 
27411
         .     : '\(.\)' 2>/dev/null ||
 
27412
echo X"$ac_file" |
 
27413
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27414
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27415
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27416
          /^X\(\/\).*/{ s//\1/; q; }
 
27417
          s/.*/./; q'`
 
27418
      { if $as_mkdir_p; then
 
27419
    mkdir -p "$ac_dir"
 
27420
  else
 
27421
    as_dir="$ac_dir"
 
27422
    as_dirs=
 
27423
    while test ! -d "$as_dir"; do
 
27424
      as_dirs="$as_dir $as_dirs"
 
27425
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27426
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27427
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
27428
         X"$as_dir" : 'X\(//\)$' \| \
 
27429
         X"$as_dir" : 'X\(/\)' \| \
 
27430
         .     : '\(.\)' 2>/dev/null ||
 
27431
echo X"$as_dir" |
 
27432
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27433
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27434
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27435
          /^X\(\/\).*/{ s//\1/; q; }
 
27436
          s/.*/./; q'`
 
27437
    done
 
27438
    test ! -n "$as_dirs" || mkdir $as_dirs
 
27439
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
27440
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
27441
   { (exit 1); exit 1; }; }; }
 
27442
 
 
27443
      rm -f $ac_file
 
27444
      mv $tmp/config.h $ac_file
 
27445
    fi
 
27446
  else
 
27447
    cat $tmp/config.h
 
27448
    rm -f $tmp/config.h
 
27449
  fi
 
27450
done
 
27451
_ACEOF
 
27452
cat >>$CONFIG_STATUS <<\_ACEOF
 
27453
 
 
27454
#
 
27455
# CONFIG_COMMANDS section.
 
27456
#
 
27457
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
27458
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
27459
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27460
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
27461
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27462
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
27463
         X"$ac_dest" : 'X\(//\)$' \| \
 
27464
         X"$ac_dest" : 'X\(/\)' \| \
 
27465
         .     : '\(.\)' 2>/dev/null ||
 
27466
echo X"$ac_dest" |
 
27467
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27468
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27469
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27470
          /^X\(\/\).*/{ s//\1/; q; }
 
27471
          s/.*/./; q'`
 
27472
  { if $as_mkdir_p; then
 
27473
    mkdir -p "$ac_dir"
 
27474
  else
 
27475
    as_dir="$ac_dir"
 
27476
    as_dirs=
 
27477
    while test ! -d "$as_dir"; do
 
27478
      as_dirs="$as_dir $as_dirs"
 
27479
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27480
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27481
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
27482
         X"$as_dir" : 'X\(//\)$' \| \
 
27483
         X"$as_dir" : 'X\(/\)' \| \
 
27484
         .     : '\(.\)' 2>/dev/null ||
 
27485
echo X"$as_dir" |
 
27486
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27487
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27488
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27489
          /^X\(\/\).*/{ s//\1/; q; }
 
27490
          s/.*/./; q'`
 
27491
    done
 
27492
    test ! -n "$as_dirs" || mkdir $as_dirs
 
27493
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
27494
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
27495
   { (exit 1); exit 1; }; }; }
 
27496
 
 
27497
  ac_builddir=.
 
27498
 
 
27499
if test "$ac_dir" != .; then
 
27500
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
27501
  # A "../" for each directory in $ac_dir_suffix.
 
27502
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
27503
else
 
27504
  ac_dir_suffix= ac_top_builddir=
 
27505
fi
 
27506
 
 
27507
case $srcdir in
 
27508
  .)  # No --srcdir option.  We are building in place.
 
27509
    ac_srcdir=.
 
27510
    if test -z "$ac_top_builddir"; then
 
27511
       ac_top_srcdir=.
 
27512
    else
 
27513
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
27514
    fi ;;
 
27515
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
27516
    ac_srcdir=$srcdir$ac_dir_suffix;
 
27517
    ac_top_srcdir=$srcdir ;;
 
27518
  *) # Relative path.
 
27519
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
27520
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
27521
esac
 
27522
 
 
27523
# Do not use `cd foo && pwd` to compute absolute paths, because
 
27524
# the directories may not exist.
 
27525
case `pwd` in
 
27526
.) ac_abs_builddir="$ac_dir";;
 
27527
*)
 
27528
  case "$ac_dir" in
 
27529
  .) ac_abs_builddir=`pwd`;;
 
27530
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
27531
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
27532
  esac;;
 
27533
esac
 
27534
case $ac_abs_builddir in
 
27535
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27536
*)
 
27537
  case ${ac_top_builddir}. in
 
27538
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
27539
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27540
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
27541
  esac;;
 
27542
esac
 
27543
case $ac_abs_builddir in
 
27544
.) ac_abs_srcdir=$ac_srcdir;;
 
27545
*)
 
27546
  case $ac_srcdir in
 
27547
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
27548
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
27549
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
27550
  esac;;
 
27551
esac
 
27552
case $ac_abs_builddir in
 
27553
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
27554
*)
 
27555
  case $ac_top_srcdir in
 
27556
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
27557
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
27558
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
27559
  esac;;
 
27560
esac
 
27561
 
 
27562
 
 
27563
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
27564
echo "$as_me: executing $ac_dest commands" >&6;}
 
27565
  case $ac_dest in
 
27566
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
 
27567
  esac
 
27568
done
 
27569
_ACEOF
 
27570
 
 
27571
cat >>$CONFIG_STATUS <<\_ACEOF
 
27572
 
 
27573
{ (exit 0); exit 0; }
 
27574
_ACEOF
 
27575
chmod +x $CONFIG_STATUS
 
27576
ac_clean_files=$ac_clean_files_save
 
27577
 
 
27578
 
 
27579
# configure is writing to config.log, and then calls config.status.
 
27580
# config.status does its own redirection, appending to config.log.
 
27581
# Unfortunately, on DOS this fails, as config.log is still kept open
 
27582
# by configure, so config.status won't be able to write to it; its
 
27583
# output is simply discarded.  So we exec the FD to /dev/null,
 
27584
# effectively closing config.log, so it can be properly (re)opened and
 
27585
# appended to by config.status.  When coming back to configure, we
 
27586
# need to make the FD available again.
 
27587
if test "$no_create" != yes; then
 
27588
  ac_cs_success=:
 
27589
  ac_config_status_args=
 
27590
  test "$silent" = yes &&
 
27591
    ac_config_status_args="$ac_config_status_args --quiet"
 
27592
  exec 5>/dev/null
 
27593
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
27594
  exec 5>>config.log
 
27595
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
27596
  # would make configure fail if this is the last instruction.
 
27597
  $ac_cs_success || { (exit 1); exit 1; }
 
27598
fi
 
27599
 
 
27600
#       plugins/Makefile plugins/libwmfun/Makefile)
 
27601
 
 
27602
 
 
27603
 
 
27604
 
 
27605
 
 
27606
 
 
27607
cat <<EOF >get-wraster-flags
 
27608
#!/bin/sh
 
27609
 
 
27610
WCFLAGS="$inc_search_path"
 
27611
WLFLAGS="$lib_search_path"
 
27612
WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
 
27613
 
 
27614
usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
 
27615
 
 
27616
if test \$# -eq 0; then
 
27617
      echo "\${usage}" 1>&2
 
27618
      exit 1
 
27619
fi
 
27620
 
 
27621
while test \$# -gt 0; do
 
27622
  case \$1 in
 
27623
    --cflags)
 
27624
        echo \$WCFLAGS
 
27625
        ;;
 
27626
    --ldflags|--lflags)
 
27627
        echo \$WLFLAGS
 
27628
        ;;
 
27629
    --libs)
 
27630
        echo \$WLIBS
 
27631
        ;;
 
27632
    *)
 
27633
        echo "\${usage}" 1>&2
 
27634
        exit 1
 
27635
        ;;
 
27636
  esac
 
27637
  shift
 
27638
done
 
27639
 
 
27640
 
 
27641
EOF
 
27642
 
 
27643
cat <<EOF > wrlib/wrlib.pc
 
27644
Name: wrlib
 
27645
Description: Image manipulation and conversion library
 
27646
Version: $VERSION
 
27647
Libs: $lib_search_path -lwraster $GFXLIBS $XLIBS -lm
 
27648
Cflags: $inc_search_path
 
27649
EOF
 
27650
 
 
27651
cat <<EOF >get-wings-flags
 
27652
#!/bin/sh
 
27653
 
 
27654
WCFLAGS="$inc_search_path"
 
27655
WLFLAGS="$lib_search_path"
 
27656
WLIBS="-lWINGs -lwraster $GFXLIBS $XFTLIBS $XLIBS -lm $NETLIBS $INTLIBS"
 
27657
 
 
27658
usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
 
27659
 
 
27660
if test \$# -eq 0; then
 
27661
      echo "\${usage}" 1>&2
 
27662
      exit 1
 
27663
fi
 
27664
 
 
27665
while test \$# -gt 0; do
 
27666
  case \$1 in
 
27667
    --cflags)
 
27668
        echo \$WCFLAGS
 
27669
        ;;
 
27670
    --ldflags|--lflags)
 
27671
        echo \$WLFLAGS
 
27672
        ;;
 
27673
    --libs)
 
27674
        echo \$WLIBS
 
27675
        ;;
 
27676
    *)
 
27677
        echo "\${usage}" 1>&2
 
27678
        exit 1
 
27679
        ;;
 
27680
  esac
 
27681
  shift
 
27682
done
 
27683
 
 
27684
 
 
27685
EOF
 
27686
 
 
27687
cat <<EOF > WINGs/WINGs.pc
 
27688
Name: WINGs
 
27689
Description: Small widget set with the NeXTStep(TM) look and feel
 
27690
Version: $VERSION
 
27691
Requires: wrlib
 
27692
Libs: $lib_search_path -lWINGs $XFTLIBS $XLIBS -lm $NETLIBS $INTLIBS
 
27693
Cflags: $inc_search_path
 
27694
EOF
 
27695
 
 
27696
cat <<EOF >get-wutil-flags
 
27697
#!/bin/sh
 
27698
 
 
27699
WCFLAGS="-I`eval echo ${includedir}`"
 
27700
WLFLAGS="-L${_libdir}"
 
27701
WLIBS="-lWUtil $NETLIBS $INTLIBS"
 
27702
 
 
27703
usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
 
27704
 
 
27705
if test \$# -eq 0; then
 
27706
      echo "\${usage}" 1>&2
 
27707
      exit 1
 
27708
fi
 
27709
 
 
27710
while test \$# -gt 0; do
 
27711
  case \$1 in
 
27712
    --cflags)
 
27713
        echo \$WCFLAGS
 
27714
        ;;
 
27715
    --ldflags|--lflags)
 
27716
        echo \$WLFLAGS
 
27717
        ;;
 
27718
    --libs)
 
27719
        echo \$WLIBS
 
27720
        ;;
 
27721
    *)
 
27722
        echo "\${usage}" 1>&2
 
27723
        exit 1
 
27724
        ;;
 
27725
  esac
 
27726
  shift
 
27727
done
 
27728
 
 
27729
 
 
27730
EOF
 
27731
 
 
27732
cat <<EOF > wmlib/wmlib.pc
 
27733
Name: wmlib
 
27734
Description: FIXME: What do I write here?
 
27735
Version: $VERSION
 
27736
Requires: wrlib
 
27737
Libs: $lib_search_path -lWUtil $NETLIBS $INTLIBS
 
27738
Cflags: $inc_search_path
 
27739
EOF
 
27740
 
 
27741
sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
 
27742
sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
 
27743
sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
 
27744
 
 
27745
chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
 
27746
 
 
27747
rm -f get-wraster-flags get-wings-flags get-wutil-flags
 
27748
 
 
27749
 
 
27750
 
 
27751
supported_gfx="$supported_gfx builtin-PPM"
 
27752
 
 
27753
if test "x$MOFILES" = "x"; then
 
27754
        mof=None
 
27755
else
 
27756
        mof=`echo $MOFILES`
 
27757
fi
 
27758
 
 
27759
if test "x$MOFILES" = "x"; then
 
27760
        languages=None
 
27761
else
 
27762
        languages=`echo $MOFILES | sed 's/.mo//g'`
 
27763
fi
 
27764
 
 
27765
echo
 
27766
echo "Window Maker was configured as follows:"
 
27767
echo
 
27768
echo "Installation path prefix            : $prefix"
 
27769
echo "Installation path for binaries      : $_bindir"
 
27770
echo "Installation path for WPrefs.app    : $with_appspath" | sed -e 's|\${prefix}|'"$prefix|"
 
27771
echo "Supported graphic format libraries  : $supported_gfx"
 
27772
echo "Use assembly routines for wrlib     : $asm_support"
 
27773
echo "Use inline MMX(tm) x86 assembly     : $mmx_support"
 
27774
echo "Antialiased text support in WINGs   : $xft"
 
27775
echo "Xinerama extension support          : $xinerama"
 
27776
echo "Translated message files to install : $mof"
 
27777
if test "x$MOFILES" != "x"; then
 
27778
        echo "Installation path for translations  : $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
 
27779
fi
 
27780
echo
 
27781
 
 
27782
 
 
27783
if test "x$ac_cv_header_jpeglib_h" != xyes; then
 
27784
echo "WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING"
 
27785
echo
 
27786
echo "JPEG support will not be included because the JPEG library is"
 
27787
echo "not installed correctly or was not found. Background images"
 
27788
echo "from themes will not display as they usually are JPEG files."
 
27789
echo
 
27790
echo "To fix, download and install the jpeg library and/or make sure you"
 
27791
echo "installed all jpeg related packages, SPECIALLY the development packages"
 
27792
echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
 
27793
echo
 
27794
echo "WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING"
 
27795
fi
 
27796
 
 
27797
 
 
27798