~ubuntu-branches/ubuntu/hoary/devil/hoary

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2005-01-03 19:57:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050103195742-4ipkplcwygu3irv0
Tags: upstream-1.6.7
ImportĀ upstreamĀ versionĀ 1.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# From configure.in Revision: 1.37 .
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated by GNU Autoconf 2.59.
 
5
#
 
6
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21
  set -o posix
 
22
fi
 
23
DUALCASE=1; export DUALCASE # for MKS sh
 
24
 
 
25
# Support unset when possible.
 
26
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
27
  as_unset=unset
 
28
else
 
29
  as_unset=false
 
30
fi
 
31
 
 
32
 
 
33
# Work around bugs in pre-3.0 UWIN ksh.
 
34
$as_unset ENV MAIL MAILPATH
 
35
PS1='$ '
 
36
PS2='> '
 
37
PS4='+ '
 
38
 
 
39
# NLS nuisances.
 
40
for as_var in \
 
41
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
42
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
43
  LC_TELEPHONE LC_TIME
 
44
do
 
45
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
    eval $as_var=C; export $as_var
 
47
  else
 
48
    $as_unset $as_var
 
49
  fi
 
50
done
 
51
 
 
52
# Required to use basename.
 
53
if expr a : '\(a\)' >/dev/null 2>&1; then
 
54
  as_expr=expr
 
55
else
 
56
  as_expr=false
 
57
fi
 
58
 
 
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
60
  as_basename=basename
 
61
else
 
62
  as_basename=false
 
63
fi
 
64
 
 
65
 
 
66
# Name of the executable.
 
67
as_me=`$as_basename "$0" ||
 
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
69
         X"$0" : 'X\(//\)$' \| \
 
70
         X"$0" : 'X\(/\)$' \| \
 
71
         .     : '\(.\)' 2>/dev/null ||
 
72
echo X/"$0" |
 
73
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
74
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
75
          /^X\/\(\/\).*/{ s//\1/; q; }
 
76
          s/.*/./; q'`
 
77
 
 
78
 
 
79
# PATH needs CR, and LINENO needs CR and PATH.
 
80
# Avoid depending upon Character Ranges.
 
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
84
as_cr_digits='0123456789'
 
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
86
 
 
87
# The user is always right.
 
88
if test "${PATH_SEPARATOR+set}" != set; then
 
89
  echo "#! /bin/sh" >conf$$.sh
 
90
  echo  "exit 0"   >>conf$$.sh
 
91
  chmod +x conf$$.sh
 
92
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
93
    PATH_SEPARATOR=';'
 
94
  else
 
95
    PATH_SEPARATOR=:
 
96
  fi
 
97
  rm -f conf$$.sh
 
98
fi
 
99
 
 
100
 
 
101
  as_lineno_1=$LINENO
 
102
  as_lineno_2=$LINENO
 
103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
105
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
106
  # Find who we are.  Look in the path if we contain no path at all
 
107
  # relative or not.
 
108
  case $0 in
 
109
    *[\\/]* ) as_myself=$0 ;;
 
110
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
111
for as_dir in $PATH
 
112
do
 
113
  IFS=$as_save_IFS
 
114
  test -z "$as_dir" && as_dir=.
 
115
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
116
done
 
117
 
 
118
       ;;
 
119
  esac
 
120
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
121
  # in which case we are not to be found in the path.
 
122
  if test "x$as_myself" = x; then
 
123
    as_myself=$0
 
124
  fi
 
125
  if test ! -f "$as_myself"; then
 
126
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
127
   { (exit 1); exit 1; }; }
 
128
  fi
 
129
  case $CONFIG_SHELL in
 
130
  '')
 
131
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
133
do
 
134
  IFS=$as_save_IFS
 
135
  test -z "$as_dir" && as_dir=.
 
136
  for as_base in sh bash ksh sh5; do
 
137
         case $as_dir in
 
138
         /*)
 
139
           if ("$as_dir/$as_base" -c '
 
140
  as_lineno_1=$LINENO
 
141
  as_lineno_2=$LINENO
 
142
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
143
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
144
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
145
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
146
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
147
             CONFIG_SHELL=$as_dir/$as_base
 
148
             export CONFIG_SHELL
 
149
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
150
           fi;;
 
151
         esac
 
152
       done
 
153
done
 
154
;;
 
155
  esac
 
156
 
 
157
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
158
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
159
  # line-number line before each line; the second 'sed' does the real
 
160
  # work.  The second script uses 'N' to pair each line-number line
 
161
  # with the numbered line, and appends trailing '-' during
 
162
  # substitution so that $LINENO is not a special case at line end.
 
163
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
164
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
165
  sed '=' <$as_myself |
 
166
    sed '
 
167
      N
 
168
      s,$,-,
 
169
      : loop
 
170
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
171
      t loop
 
172
      s,-$,,
 
173
      s,^['$as_cr_digits']*\n,,
 
174
    ' >$as_me.lineno &&
 
175
  chmod +x $as_me.lineno ||
 
176
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
177
   { (exit 1); exit 1; }; }
 
178
 
 
179
  # Don't try to exec as it changes $[0], causing all sort of problems
 
180
  # (the dirname of $[0] is not the place where we might find the
 
181
  # original and so on.  Autoconf is especially sensible to this).
 
182
  . ./$as_me.lineno
 
183
  # Exit status is that of the last command.
 
184
  exit
 
185
}
 
186
 
 
187
 
 
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
189
  *c*,-n*) ECHO_N= ECHO_C='
 
190
' ECHO_T='      ' ;;
 
191
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
192
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
193
esac
 
194
 
 
195
if expr a : '\(a\)' >/dev/null 2>&1; then
 
196
  as_expr=expr
 
197
else
 
198
  as_expr=false
 
199
fi
 
200
 
 
201
rm -f conf$$ conf$$.exe conf$$.file
 
202
echo >conf$$.file
 
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
204
  # We could just check for DJGPP; but this test a) works b) is more generic
 
205
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
206
  if test -f conf$$.exe; then
 
207
    # Don't use ln at all; we don't have any links
 
208
    as_ln_s='cp -p'
 
209
  else
 
210
    as_ln_s='ln -s'
 
211
  fi
 
212
elif ln conf$$.file conf$$ 2>/dev/null; then
 
213
  as_ln_s=ln
 
214
else
 
215
  as_ln_s='cp -p'
 
216
fi
 
217
rm -f conf$$ conf$$.exe conf$$.file
 
218
 
 
219
if mkdir -p . 2>/dev/null; then
 
220
  as_mkdir_p=:
 
221
else
 
222
  test -d ./-p && rmdir ./-p
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
 
226
as_executable_p="test -f"
 
227
 
 
228
# Sed expression to map a string onto a valid CPP name.
 
229
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
230
 
 
231
# Sed expression to map a string onto a valid variable name.
 
232
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
233
 
 
234
 
 
235
# IFS
 
236
# We need space, tab and new line, in precisely that order.
 
237
as_nl='
 
238
'
 
239
IFS="   $as_nl"
 
240
 
 
241
# CDPATH.
 
242
$as_unset CDPATH
 
243
 
 
244
 
 
245
 
 
246
# Check that we are running under the correct shell.
 
247
SHELL=${CONFIG_SHELL-/bin/sh}
 
248
 
 
249
case X$ECHO in
 
250
X*--fallback-echo)
 
251
  # Remove one level of quotation (which was required for Make).
 
252
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
253
  ;;
 
254
esac
 
255
 
 
256
echo=${ECHO-echo}
 
257
if test "X$1" = X--no-reexec; then
 
258
  # Discard the --no-reexec flag, and continue.
 
259
  shift
 
260
elif test "X$1" = X--fallback-echo; then
 
261
  # Avoid inline document here, it may be left over
 
262
  :
 
263
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
264
  # Yippee, $echo works!
 
265
  :
 
266
else
 
267
  # Restart under the correct shell.
 
268
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
269
fi
 
270
 
 
271
if test "X$1" = X--fallback-echo; then
 
272
  # used as fallback echo
 
273
  shift
 
274
  cat <<EOF
 
275
$*
 
276
EOF
 
277
  exit 0
 
278
fi
 
279
 
 
280
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
281
# if CDPATH is set.
 
282
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
283
 
 
284
if test -z "$ECHO"; then
 
285
if test "X${echo_test_string+set}" != Xset; then
 
286
# find a string as large as possible, as long as the shell can cope with it
 
287
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
288
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
289
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
290
       echo_test_string="`eval $cmd`" &&
 
291
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
292
    then
 
293
      break
 
294
    fi
 
295
  done
 
296
fi
 
297
 
 
298
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
299
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
300
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
301
  :
 
302
else
 
303
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
304
  # backslashes.  This makes it impossible to quote backslashes using
 
305
  #   echo "$something" | sed 's/\\/\\\\/g'
 
306
  #
 
307
  # So, first we look for a working echo in the user's PATH.
 
308
 
 
309
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
310
  for dir in $PATH /usr/ucb; do
 
311
    IFS="$lt_save_ifs"
 
312
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
313
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
314
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
315
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
316
      echo="$dir/echo"
 
317
      break
 
318
    fi
 
319
  done
 
320
  IFS="$lt_save_ifs"
 
321
 
 
322
  if test "X$echo" = Xecho; then
 
323
    # We didn't find a better echo, so look for alternatives.
 
324
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
325
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
326
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
327
      # This shell has a builtin print -r that does the trick.
 
328
      echo='print -r'
 
329
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
330
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
331
      # If we have ksh, try running configure again with it.
 
332
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
333
      export ORIGINAL_CONFIG_SHELL
 
334
      CONFIG_SHELL=/bin/ksh
 
335
      export CONFIG_SHELL
 
336
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
337
    else
 
338
      # Try using printf.
 
339
      echo='printf %s\n'
 
340
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
341
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
342
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
343
        # Cool, printf works
 
344
        :
 
345
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
346
           test "X$echo_testing_string" = 'X\t' &&
 
347
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
348
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
349
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
350
        export CONFIG_SHELL
 
351
        SHELL="$CONFIG_SHELL"
 
352
        export SHELL
 
353
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
354
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
355
           test "X$echo_testing_string" = 'X\t' &&
 
356
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
357
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
358
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
359
      else
 
360
        # maybe with a smaller string...
 
361
        prev=:
 
362
 
 
363
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
364
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
365
          then
 
366
            break
 
367
          fi
 
368
          prev="$cmd"
 
369
        done
 
370
 
 
371
        if test "$prev" != 'sed 50q "$0"'; then
 
372
          echo_test_string=`eval $prev`
 
373
          export echo_test_string
 
374
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
375
        else
 
376
          # Oops.  We lost completely, so just stick with echo.
 
377
          echo=echo
 
378
        fi
 
379
      fi
 
380
    fi
 
381
  fi
 
382
fi
 
383
fi
 
384
 
 
385
# Copy echo and quote the copy suitably for passing to libtool from
 
386
# the Makefile, instead of quoting the original, which is used later.
 
387
ECHO=$echo
 
388
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
389
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
390
fi
 
391
 
 
392
 
 
393
 
 
394
 
 
395
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
 
396
 
 
397
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
 
398
 
 
399
# Name of the host.
 
400
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
401
# so uname gets run too.
 
402
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
403
 
 
404
exec 6>&1
 
405
 
 
406
#
 
407
# Initializations.
 
408
#
 
409
ac_default_prefix=/usr/local
 
410
ac_config_libobj_dir=.
 
411
cross_compiling=no
 
412
subdirs=
 
413
MFLAGS=
 
414
MAKEFLAGS=
 
415
SHELL=${CONFIG_SHELL-/bin/sh}
 
416
 
 
417
# Maximum number of lines to put in a shell here document.
 
418
# This variable seems obsolete.  It should probably be removed, and
 
419
# only ac_max_sed_lines should be used.
 
420
: ${ac_max_here_lines=38}
 
421
 
 
422
# Identity of this package.
 
423
PACKAGE_NAME=
 
424
PACKAGE_TARNAME=
 
425
PACKAGE_VERSION=
 
426
PACKAGE_STRING=
 
427
PACKAGE_BUGREPORT=
 
428
 
 
429
ac_unique_file="README"
 
430
ac_default_prefix=/usr/local
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
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 DEVIL_LTVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT VERSIONINFO LIBZ LIBJPG LIBTIFF LIBPNG LIBLCMS LIBMNG SDL_CONFIG sdl_major_version sdl_minor_version sdl_micro_version SDL_CFLAGS SDL_LIBS LIBSDL HSDL LIBGL allegro_config LIBALLEGRO HALLEGRO LIBGDI32 IL_NO_BMP_TRUE IL_NO_BMP_FALSE IL_NO_DCX_TRUE IL_NO_DCX_FALSE IL_NO_DDS_TRUE IL_NO_DDS_FALSE IL_NO_DOOM_TRUE IL_NO_DOOM_FALSE IL_NO_GIF_TRUE IL_NO_GIF_FALSE IL_NO_HDR_TRUE IL_NO_HDR_FALSE IL_NO_ICO_TRUE IL_NO_ICO_FALSE IL_NO_JPG_TRUE IL_NO_JPG_FALSE IL_NO_LIF_TRUE IL_NO_LIF_FALSE IL_NO_LCMS_TRUE IL_NO_LCMS_FALSE IL_NO_MDL_TRUE IL_NO_MDL_FALSE IL_NO_MNG_TRUE IL_NO_MNG_FALSE IL_NO_PCD_TRUE IL_NO_PCD_FALSE IL_NO_PCX_TRUE IL_NO_PCX_FALSE IL_NO_PIC_TRUE IL_NO_PIC_FALSE IL_NO_PIX_TRUE IL_NO_PIX_FALSE IL_NO_PNG_TRUE IL_NO_PNG_FALSE IL_NO_PNM_TRUE IL_NO_PNM_FALSE IL_NO_PSD_TRUE IL_NO_PSD_FALSE IL_NO_PSP_TRUE IL_NO_PSP_FALSE IL_NO_PXR_TRUE IL_NO_PXR_FALSE IL_NO_RAW_TRUE IL_NO_RAW_FALSE IL_NO_SGI_TRUE IL_NO_SGI_FALSE IL_NO_TGA_TRUE IL_NO_TGA_FALSE IL_NO_TIF_TRUE IL_NO_TIF_FALSE IL_NO_WAL_TRUE IL_NO_WAL_FALSE IL_NO_XPM_TRUE IL_NO_XPM_FALSE LIBIL_CFLAGS LIBILU_CFLAGS LIBILUT_CFLAGS LIBILUT_WIN32LIBPATH LIBOBJS LTLIBOBJS'
 
469
ac_subst_files=''
 
470
 
 
471
# Initialize some variables set by options.
 
472
ac_init_help=
 
473
ac_init_version=false
 
474
# The variables have the same names as the options, with
 
475
# dashes changed to underlines.
 
476
cache_file=/dev/null
 
477
exec_prefix=NONE
 
478
no_create=
 
479
no_recursion=
 
480
prefix=NONE
 
481
program_prefix=NONE
 
482
program_suffix=NONE
 
483
program_transform_name=s,x,x,
 
484
silent=
 
485
site=
 
486
srcdir=
 
487
verbose=
 
488
x_includes=NONE
 
489
x_libraries=NONE
 
490
 
 
491
# Installation directory options.
 
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
493
# and all the variables that are supposed to be based on exec_prefix
 
494
# by default will actually change.
 
495
# Use braces instead of parens because sh, perl, etc. also accept them.
 
496
bindir='${exec_prefix}/bin'
 
497
sbindir='${exec_prefix}/sbin'
 
498
libexecdir='${exec_prefix}/libexec'
 
499
datadir='${prefix}/share'
 
500
sysconfdir='${prefix}/etc'
 
501
sharedstatedir='${prefix}/com'
 
502
localstatedir='${prefix}/var'
 
503
libdir='${exec_prefix}/lib'
 
504
includedir='${prefix}/include'
 
505
oldincludedir='/usr/include'
 
506
infodir='${prefix}/info'
 
507
mandir='${prefix}/man'
 
508
 
 
509
ac_prev=
 
510
for ac_option
 
511
do
 
512
  # If the previous option needs an argument, assign it.
 
513
  if test -n "$ac_prev"; then
 
514
    eval "$ac_prev=\$ac_option"
 
515
    ac_prev=
 
516
    continue
 
517
  fi
 
518
 
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
520
 
 
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
522
 
 
523
  case $ac_option in
 
524
 
 
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
526
    ac_prev=bindir ;;
 
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
528
    bindir=$ac_optarg ;;
 
529
 
 
530
  -build | --build | --buil | --bui | --bu)
 
531
    ac_prev=build_alias ;;
 
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
533
    build_alias=$ac_optarg ;;
 
534
 
 
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
537
    ac_prev=cache_file ;;
 
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
540
    cache_file=$ac_optarg ;;
 
541
 
 
542
  --config-cache | -C)
 
543
    cache_file=config.cache ;;
 
544
 
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
546
    ac_prev=datadir ;;
 
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
548
  | --da=*)
 
549
    datadir=$ac_optarg ;;
 
550
 
 
551
  -disable-* | --disable-*)
 
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
553
    # Reject names that are not valid shell variable names.
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
556
   { (exit 1); exit 1; }; }
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
 
559
 
 
560
  -enable-* | --enable-*)
 
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
562
    # Reject names that are not valid shell variable names.
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
565
   { (exit 1); exit 1; }; }
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
569
      *) ac_optarg=yes ;;
 
570
    esac
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
572
 
 
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
575
  | --exec | --exe | --ex)
 
576
    ac_prev=exec_prefix ;;
 
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
579
  | --exec=* | --exe=* | --ex=*)
 
580
    exec_prefix=$ac_optarg ;;
 
581
 
 
582
  -gas | --gas | --ga | --g)
 
583
    # Obsolete; use --with-gas.
 
584
    with_gas=yes ;;
 
585
 
 
586
  -help | --help | --hel | --he | -h)
 
587
    ac_init_help=long ;;
 
588
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
589
    ac_init_help=recursive ;;
 
590
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
591
    ac_init_help=short ;;
 
592
 
 
593
  -host | --host | --hos | --ho)
 
594
    ac_prev=host_alias ;;
 
595
  -host=* | --host=* | --hos=* | --ho=*)
 
596
    host_alias=$ac_optarg ;;
 
597
 
 
598
  -includedir | --includedir | --includedi | --included | --include \
 
599
  | --includ | --inclu | --incl | --inc)
 
600
    ac_prev=includedir ;;
 
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
603
    includedir=$ac_optarg ;;
 
604
 
 
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
606
    ac_prev=infodir ;;
 
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
608
    infodir=$ac_optarg ;;
 
609
 
 
610
  -libdir | --libdir | --libdi | --libd)
 
611
    ac_prev=libdir ;;
 
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
613
    libdir=$ac_optarg ;;
 
614
 
 
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
616
  | --libexe | --libex | --libe)
 
617
    ac_prev=libexecdir ;;
 
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
619
  | --libexe=* | --libex=* | --libe=*)
 
620
    libexecdir=$ac_optarg ;;
 
621
 
 
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
623
  | --localstate | --localstat | --localsta | --localst \
 
624
  | --locals | --local | --loca | --loc | --lo)
 
625
    ac_prev=localstatedir ;;
 
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
629
    localstatedir=$ac_optarg ;;
 
630
 
 
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
632
    ac_prev=mandir ;;
 
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
634
    mandir=$ac_optarg ;;
 
635
 
 
636
  -nfp | --nfp | --nf)
 
637
    # Obsolete; use --without-fp.
 
638
    with_fp=no ;;
 
639
 
 
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
641
  | --no-cr | --no-c | -n)
 
642
    no_create=yes ;;
 
643
 
 
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
645
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
646
    no_recursion=yes ;;
 
647
 
 
648
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
649
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
650
  | --oldin | --oldi | --old | --ol | --o)
 
651
    ac_prev=oldincludedir ;;
 
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
655
    oldincludedir=$ac_optarg ;;
 
656
 
 
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
658
    ac_prev=prefix ;;
 
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
660
    prefix=$ac_optarg ;;
 
661
 
 
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
663
  | --program-pre | --program-pr | --program-p)
 
664
    ac_prev=program_prefix ;;
 
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
667
    program_prefix=$ac_optarg ;;
 
668
 
 
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
670
  | --program-suf | --program-su | --program-s)
 
671
    ac_prev=program_suffix ;;
 
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
674
    program_suffix=$ac_optarg ;;
 
675
 
 
676
  -program-transform-name | --program-transform-name \
 
677
  | --program-transform-nam | --program-transform-na \
 
678
  | --program-transform-n | --program-transform- \
 
679
  | --program-transform | --program-transfor \
 
680
  | --program-transfo | --program-transf \
 
681
  | --program-trans | --program-tran \
 
682
  | --progr-tra | --program-tr | --program-t)
 
683
    ac_prev=program_transform_name ;;
 
684
  -program-transform-name=* | --program-transform-name=* \
 
685
  | --program-transform-nam=* | --program-transform-na=* \
 
686
  | --program-transform-n=* | --program-transform-=* \
 
687
  | --program-transform=* | --program-transfor=* \
 
688
  | --program-transfo=* | --program-transf=* \
 
689
  | --program-trans=* | --program-tran=* \
 
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
691
    program_transform_name=$ac_optarg ;;
 
692
 
 
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
694
  | -silent | --silent | --silen | --sile | --sil)
 
695
    silent=yes ;;
 
696
 
 
697
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
698
    ac_prev=sbindir ;;
 
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
700
  | --sbi=* | --sb=*)
 
701
    sbindir=$ac_optarg ;;
 
702
 
 
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
705
  | --sharedst | --shareds | --shared | --share | --shar \
 
706
  | --sha | --sh)
 
707
    ac_prev=sharedstatedir ;;
 
708
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
711
  | --sha=* | --sh=*)
 
712
    sharedstatedir=$ac_optarg ;;
 
713
 
 
714
  -site | --site | --sit)
 
715
    ac_prev=site ;;
 
716
  -site=* | --site=* | --sit=*)
 
717
    site=$ac_optarg ;;
 
718
 
 
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
720
    ac_prev=srcdir ;;
 
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
722
    srcdir=$ac_optarg ;;
 
723
 
 
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
725
  | --syscon | --sysco | --sysc | --sys | --sy)
 
726
    ac_prev=sysconfdir ;;
 
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
729
    sysconfdir=$ac_optarg ;;
 
730
 
 
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
732
    ac_prev=target_alias ;;
 
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
734
    target_alias=$ac_optarg ;;
 
735
 
 
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
737
    verbose=yes ;;
 
738
 
 
739
  -version | --version | --versio | --versi | --vers | -V)
 
740
    ac_init_version=: ;;
 
741
 
 
742
  -with-* | --with-*)
 
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
744
    # Reject names that are not valid shell variable names.
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
747
   { (exit 1); exit 1; }; }
 
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
751
      *) ac_optarg=yes ;;
 
752
    esac
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
 
754
 
 
755
  -without-* | --without-*)
 
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
757
    # Reject names that are not valid shell variable names.
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
760
   { (exit 1); exit 1; }; }
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
 
763
 
 
764
  --x)
 
765
    # Obsolete; use --with-x.
 
766
    with_x=yes ;;
 
767
 
 
768
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
769
  | --x-incl | --x-inc | --x-in | --x-i)
 
770
    ac_prev=x_includes ;;
 
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
773
    x_includes=$ac_optarg ;;
 
774
 
 
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
777
    ac_prev=x_libraries ;;
 
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
780
    x_libraries=$ac_optarg ;;
 
781
 
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
783
Try \`$0 --help' for more information." >&2
 
784
   { (exit 1); exit 1; }; }
 
785
    ;;
 
786
 
 
787
  *=*)
 
788
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
792
   { (exit 1); exit 1; }; }
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
 
795
    export $ac_envvar ;;
 
796
 
 
797
  *)
 
798
    # FIXME: should be removed in autoconf 3.0.
 
799
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
800
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
801
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
802
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
803
    ;;
 
804
 
 
805
  esac
 
806
done
 
807
 
 
808
if test -n "$ac_prev"; then
 
809
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
810
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
811
   { (exit 1); exit 1; }; }
 
812
fi
 
813
 
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# There might be people who depend on the old broken behavior: `$host'
 
838
# used to hold the argument of --host etc.
 
839
# FIXME: To remove some day.
 
840
build=$build_alias
 
841
host=$host_alias
 
842
target=$target_alias
 
843
 
 
844
# FIXME: To remove some day.
 
845
if test "x$host_alias" != x; then
 
846
  if test "x$build_alias" = x; then
 
847
    cross_compiling=maybe
 
848
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
849
    If a cross compiler is detected then cross compile mode will be used." >&2
 
850
  elif test "x$build_alias" != "x$host_alias"; then
 
851
    cross_compiling=yes
 
852
  fi
 
853
fi
 
854
 
 
855
ac_tool_prefix=
 
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
857
 
 
858
test "$silent" = yes && exec 6>/dev/null
 
859
 
 
860
 
 
861
# Find the source files, if location was not specified.
 
862
if test -z "$srcdir"; then
 
863
  ac_srcdir_defaulted=yes
 
864
  # Try the directory containing this script, then its parent.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
 
871
echo X"$0" |
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
 
877
  srcdir=$ac_confdir
 
878
  if test ! -r $srcdir/$ac_unique_file; then
 
879
    srcdir=..
 
880
  fi
 
881
else
 
882
  ac_srcdir_defaulted=no
 
883
fi
 
884
if test ! -r $srcdir/$ac_unique_file; then
 
885
  if test "$ac_srcdir_defaulted" = yes; then
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  else
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  fi
 
892
fi
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
ac_env_CXX_set=${CXX+set}
 
930
ac_env_CXX_value=$CXX
 
931
ac_cv_env_CXX_set=${CXX+set}
 
932
ac_cv_env_CXX_value=$CXX
 
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
 
949
 
 
950
#
 
951
# Report the --help message.
 
952
#
 
953
if test "$ac_init_help" = "long"; then
 
954
  # Omit some internal or obsolete options to make the list less imposing.
 
955
  # This message is too long to be a string in the A/UX 3.1 sh.
 
956
  cat <<_ACEOF
 
957
\`configure' configures this package to adapt to many kinds of systems.
 
958
 
 
959
Usage: $0 [OPTION]... [VAR=VALUE]...
 
960
 
 
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
962
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
963
 
 
964
Defaults for the options are specified in brackets.
 
965
 
 
966
Configuration:
 
967
  -h, --help              display this help and exit
 
968
      --help=short        display options specific to this package
 
969
      --help=recursive    display the short help of all the included packages
 
970
  -V, --version           display version information and exit
 
971
  -q, --quiet, --silent   do not print \`checking...' messages
 
972
      --cache-file=FILE   cache test results in FILE [disabled]
 
973
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
974
  -n, --no-create         do not create output files
 
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
 
980
Installation directories:
 
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
982
                          [$ac_default_prefix]
 
983
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
984
                          [PREFIX]
 
985
 
 
986
By default, \`make install' will install all the files in
 
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
989
for instance \`--prefix=\$HOME'.
 
990
 
 
991
For better control, use the options below.
 
992
 
 
993
Fine tuning of the installation directories:
 
994
  --bindir=DIR           user executables [EPREFIX/bin]
 
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1002
  --includedir=DIR       C header files [PREFIX/include]
 
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
 
1006
_ACEOF
 
1007
 
 
1008
  cat <<\_ACEOF
 
1009
 
 
1010
X features:
 
1011
  --x-includes=DIR    X include files are in DIR
 
1012
  --x-libraries=DIR   X library files are in DIR
 
1013
 
 
1014
Program names:
 
1015
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1016
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1017
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1018
 
 
1019
System types:
 
1020
  --build=BUILD     configure for building on BUILD [guessed]
 
1021
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1022
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1023
_ACEOF
 
1024
fi
 
1025
 
 
1026
if test -n "$ac_init_help"; then
 
1027
 
 
1028
  cat <<\_ACEOF
 
1029
 
 
1030
Optional Features:
 
1031
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1032
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1033
  --disable-dependency-tracking  speeds up one-time build
 
1034
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1035
  --enable-static[=PKGS]
 
1036
                          build static libraries [default=no]
 
1037
  --enable-shared[=PKGS]
 
1038
                          build shared libraries [default=yes]
 
1039
  --enable-fast-install[=PKGS]
 
1040
                          optimize for fast installation [default=yes]
 
1041
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1042
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1043
                          (and sometimes confusing) to the casual installer
 
1044
  --disable-bmp           Doesn't compile bmp support
 
1045
  --disable-dcx           Doesn't compile dcx support
 
1046
  --disable-doom          Doesn't compile wad support
 
1047
  --disable-gif           Doesn't compile gif support
 
1048
  --disable-hdr           Doesn't compile hdr support
 
1049
  --disable-icon          Doesn't compile icon support
 
1050
  --disable-jpeg          Doesn't compile jpeg support
 
1051
  --disable-lif           Doesn't compile lif support
 
1052
  --disable-lcms          Doesn't compile lcms support
 
1053
  --disable-mdl           Doesn't compile mdl support
 
1054
  --disable-mng           Doesn't compile mng support
 
1055
  --disable-pcd           Doesn't compile pcd support
 
1056
  --disable-pcx           Doesn't compile pcx support
 
1057
  --disable-pic           Doesn't compile pic support
 
1058
  --disable-pix           Doesn't compile pix support
 
1059
  --disable-png           Doesn't compile png support
 
1060
  --disable-pnm           Doesn't compile pnm support
 
1061
  --disable-psd           Doesn't compile psd support
 
1062
  --disable-psp           Doesn't compile psp support
 
1063
  --disable-pxr           Doesn't compile pxr support
 
1064
  --disable-raw           Doesn't compile raw support
 
1065
  --disable-sgi           Doesn't compile sgi support
 
1066
  --disable-tga           Doesn't compile tga support
 
1067
  --disable-tiff          Doesn't compile tiff support
 
1068
  --disable-wal           Doesn't compile wal support
 
1069
  --disable-xpm           Doesn't compile xpm support
 
1070
  --disable-allegro       Doesn't compile allegro support
 
1071
  --disable-directx       Doesn't compile directx support
 
1072
  --disable-opengl        Doesn't compile opengl support
 
1073
  --disable-sdl           Doesn't compile sdl support
 
1074
  --disable-win32         Doesn't compile win32 support
 
1075
  --disable-release         Compile a debug version of the library
 
1076
  --disable-sdltest       Do not try to compile and run a test SDL program
 
1077
 
 
1078
Optional Packages:
 
1079
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1080
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1081
  --with-x                use the X Window System
 
1082
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1083
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1084
                          both]
 
1085
  --with-tags[=TAGS]
 
1086
                          include additional configurations [automatic]
 
1087
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
 
1088
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
 
1089
 
 
1090
Some influential environment variables:
 
1091
  CC          C compiler command
 
1092
  CFLAGS      C compiler flags
 
1093
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1094
              nonstandard directory <lib dir>
 
1095
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1096
              headers in a nonstandard directory <include dir>
 
1097
  CPP         C preprocessor
 
1098
  CXX         C++ compiler command
 
1099
  CXXFLAGS    C++ compiler flags
 
1100
  CXXCPP      C++ preprocessor
 
1101
  F77         Fortran 77 compiler command
 
1102
  FFLAGS      Fortran 77 compiler flags
 
1103
 
 
1104
Use these variables to override the choices made by `configure' or to help
 
1105
it to find libraries and programs with nonstandard names/locations.
 
1106
 
 
1107
_ACEOF
 
1108
fi
 
1109
 
 
1110
if test "$ac_init_help" = "recursive"; then
 
1111
  # If there are subdirs, report their specific --help.
 
1112
  ac_popdir=`pwd`
 
1113
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1114
    test -d $ac_dir || continue
 
1115
    ac_builddir=.
 
1116
 
 
1117
if test "$ac_dir" != .; then
 
1118
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1119
  # A "../" for each directory in $ac_dir_suffix.
 
1120
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1121
else
 
1122
  ac_dir_suffix= ac_top_builddir=
 
1123
fi
 
1124
 
 
1125
case $srcdir in
 
1126
  .)  # No --srcdir option.  We are building in place.
 
1127
    ac_srcdir=.
 
1128
    if test -z "$ac_top_builddir"; then
 
1129
       ac_top_srcdir=.
 
1130
    else
 
1131
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1132
    fi ;;
 
1133
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1134
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1135
    ac_top_srcdir=$srcdir ;;
 
1136
  *) # Relative path.
 
1137
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1138
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1139
esac
 
1140
 
 
1141
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1142
# the directories may not exist.
 
1143
case `pwd` in
 
1144
.) ac_abs_builddir="$ac_dir";;
 
1145
*)
 
1146
  case "$ac_dir" in
 
1147
  .) ac_abs_builddir=`pwd`;;
 
1148
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1149
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1150
  esac;;
 
1151
esac
 
1152
case $ac_abs_builddir in
 
1153
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1154
*)
 
1155
  case ${ac_top_builddir}. in
 
1156
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1157
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1158
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1159
  esac;;
 
1160
esac
 
1161
case $ac_abs_builddir in
 
1162
.) ac_abs_srcdir=$ac_srcdir;;
 
1163
*)
 
1164
  case $ac_srcdir in
 
1165
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1166
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1167
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1168
  esac;;
 
1169
esac
 
1170
case $ac_abs_builddir in
 
1171
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1172
*)
 
1173
  case $ac_top_srcdir in
 
1174
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1175
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1176
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1177
  esac;;
 
1178
esac
 
1179
 
 
1180
    cd $ac_dir
 
1181
    # Check for guested configure; otherwise get Cygnus style configure.
 
1182
    if test -f $ac_srcdir/configure.gnu; then
 
1183
      echo
 
1184
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1185
    elif test -f $ac_srcdir/configure; then
 
1186
      echo
 
1187
      $SHELL $ac_srcdir/configure  --help=recursive
 
1188
    elif test -f $ac_srcdir/configure.ac ||
 
1189
           test -f $ac_srcdir/configure.in; then
 
1190
      echo
 
1191
      $ac_configure --help
 
1192
    else
 
1193
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1194
    fi
 
1195
    cd $ac_popdir
 
1196
  done
 
1197
fi
 
1198
 
 
1199
test -n "$ac_init_help" && exit 0
 
1200
if $ac_init_version; then
 
1201
  cat <<\_ACEOF
 
1202
 
 
1203
Copyright (C) 2003 Free Software Foundation, Inc.
 
1204
This configure script is free software; the Free Software Foundation
 
1205
gives unlimited permission to copy, distribute and modify it.
 
1206
_ACEOF
 
1207
  exit 0
 
1208
fi
 
1209
exec 5>config.log
 
1210
cat >&5 <<_ACEOF
 
1211
This file contains any messages produced by compilers while
 
1212
running configure, to aid debugging if configure makes a mistake.
 
1213
 
 
1214
It was created by $as_me, which was
 
1215
generated by GNU Autoconf 2.59.  Invocation command line was
 
1216
 
 
1217
  $ $0 $@
 
1218
 
 
1219
_ACEOF
 
1220
{
 
1221
cat <<_ASUNAME
 
1222
## --------- ##
 
1223
## Platform. ##
 
1224
## --------- ##
 
1225
 
 
1226
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1227
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1228
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1229
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1230
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1231
 
 
1232
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1233
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1234
 
 
1235
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1236
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1237
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1238
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1239
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1240
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1241
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1242
 
 
1243
_ASUNAME
 
1244
 
 
1245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1246
for as_dir in $PATH
 
1247
do
 
1248
  IFS=$as_save_IFS
 
1249
  test -z "$as_dir" && as_dir=.
 
1250
  echo "PATH: $as_dir"
 
1251
done
 
1252
 
 
1253
} >&5
 
1254
 
 
1255
cat >&5 <<_ACEOF
 
1256
 
 
1257
 
 
1258
## ----------- ##
 
1259
## Core tests. ##
 
1260
## ----------- ##
 
1261
 
 
1262
_ACEOF
 
1263
 
 
1264
 
 
1265
# Keep a trace of the command line.
 
1266
# Strip out --no-create and --no-recursion so they do not pile up.
 
1267
# Strip out --silent because we don't want to record it for future runs.
 
1268
# Also quote any args containing shell meta-characters.
 
1269
# Make two passes to allow for proper duplicate-argument suppression.
 
1270
ac_configure_args=
 
1271
ac_configure_args0=
 
1272
ac_configure_args1=
 
1273
ac_sep=
 
1274
ac_must_keep_next=false
 
1275
for ac_pass in 1 2
 
1276
do
 
1277
  for ac_arg
 
1278
  do
 
1279
    case $ac_arg in
 
1280
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1281
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1282
    | -silent | --silent | --silen | --sile | --sil)
 
1283
      continue ;;
 
1284
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1285
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1286
    esac
 
1287
    case $ac_pass in
 
1288
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1289
    2)
 
1290
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1291
      if test $ac_must_keep_next = true; then
 
1292
        ac_must_keep_next=false # Got value, back to normal.
 
1293
      else
 
1294
        case $ac_arg in
 
1295
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1296
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1297
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1298
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1299
            case "$ac_configure_args0 " in
 
1300
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1301
            esac
 
1302
            ;;
 
1303
          -* ) ac_must_keep_next=true ;;
 
1304
        esac
 
1305
      fi
 
1306
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1307
      # Get rid of the leading space.
 
1308
      ac_sep=" "
 
1309
      ;;
 
1310
    esac
 
1311
  done
 
1312
done
 
1313
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1314
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1315
 
 
1316
# When interrupted or exit'd, cleanup temporary files, and complete
 
1317
# config.log.  We remove comments because anyway the quotes in there
 
1318
# would cause problems or look ugly.
 
1319
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1320
# such as our DU 5.0 friend, will then `close' the trap.
 
1321
trap 'exit_status=$?
 
1322
  # Save into config.log some information that might help in debugging.
 
1323
  {
 
1324
    echo
 
1325
 
 
1326
    cat <<\_ASBOX
 
1327
## ---------------- ##
 
1328
## Cache variables. ##
 
1329
## ---------------- ##
 
1330
_ASBOX
 
1331
    echo
 
1332
    # The following way of writing the cache mishandles newlines in values,
 
1333
{
 
1334
  (set) 2>&1 |
 
1335
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1336
    *ac_space=\ *)
 
1337
      sed -n \
 
1338
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1339
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1340
      ;;
 
1341
    *)
 
1342
      sed -n \
 
1343
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1344
      ;;
 
1345
    esac;
 
1346
}
 
1347
    echo
 
1348
 
 
1349
    cat <<\_ASBOX
 
1350
## ----------------- ##
 
1351
## Output variables. ##
 
1352
## ----------------- ##
 
1353
_ASBOX
 
1354
    echo
 
1355
    for ac_var in $ac_subst_vars
 
1356
    do
 
1357
      eval ac_val=$`echo $ac_var`
 
1358
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1359
    done | sort
 
1360
    echo
 
1361
 
 
1362
    if test -n "$ac_subst_files"; then
 
1363
      cat <<\_ASBOX
 
1364
## ------------- ##
 
1365
## Output files. ##
 
1366
## ------------- ##
 
1367
_ASBOX
 
1368
      echo
 
1369
      for ac_var in $ac_subst_files
 
1370
      do
 
1371
        eval ac_val=$`echo $ac_var`
 
1372
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1373
      done | sort
 
1374
      echo
 
1375
    fi
 
1376
 
 
1377
    if test -s confdefs.h; then
 
1378
      cat <<\_ASBOX
 
1379
## ----------- ##
 
1380
## confdefs.h. ##
 
1381
## ----------- ##
 
1382
_ASBOX
 
1383
      echo
 
1384
      sed "/^$/d" confdefs.h | sort
 
1385
      echo
 
1386
    fi
 
1387
    test "$ac_signal" != 0 &&
 
1388
      echo "$as_me: caught signal $ac_signal"
 
1389
    echo "$as_me: exit $exit_status"
 
1390
  } >&5
 
1391
  rm -f core *.core &&
 
1392
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1393
    exit $exit_status
 
1394
     ' 0
 
1395
for ac_signal in 1 2 13 15; do
 
1396
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1397
done
 
1398
ac_signal=0
 
1399
 
 
1400
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1401
rm -rf conftest* confdefs.h
 
1402
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1403
echo >confdefs.h
 
1404
 
 
1405
# Predefined preprocessor variables.
 
1406
 
 
1407
cat >>confdefs.h <<_ACEOF
 
1408
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1409
_ACEOF
 
1410
 
 
1411
 
 
1412
cat >>confdefs.h <<_ACEOF
 
1413
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1414
_ACEOF
 
1415
 
 
1416
 
 
1417
cat >>confdefs.h <<_ACEOF
 
1418
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1419
_ACEOF
 
1420
 
 
1421
 
 
1422
cat >>confdefs.h <<_ACEOF
 
1423
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1424
_ACEOF
 
1425
 
 
1426
 
 
1427
cat >>confdefs.h <<_ACEOF
 
1428
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1429
_ACEOF
 
1430
 
 
1431
 
 
1432
# Let the site file select an alternate cache file if it wants to.
 
1433
# Prefer explicitly selected file to automatically selected ones.
 
1434
if test -z "$CONFIG_SITE"; then
 
1435
  if test "x$prefix" != xNONE; then
 
1436
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1437
  else
 
1438
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1439
  fi
 
1440
fi
 
1441
for ac_site_file in $CONFIG_SITE; do
 
1442
  if test -r "$ac_site_file"; then
 
1443
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1444
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1445
    sed 's/^/| /' "$ac_site_file" >&5
 
1446
    . "$ac_site_file"
 
1447
  fi
 
1448
done
 
1449
 
 
1450
if test -r "$cache_file"; then
 
1451
  # Some versions of bash will fail to source /dev/null (special
 
1452
  # files actually), so we avoid doing that.
 
1453
  if test -f "$cache_file"; then
 
1454
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1455
echo "$as_me: loading cache $cache_file" >&6;}
 
1456
    case $cache_file in
 
1457
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1458
      *)                      . ./$cache_file;;
 
1459
    esac
 
1460
  fi
 
1461
else
 
1462
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1463
echo "$as_me: creating cache $cache_file" >&6;}
 
1464
  >$cache_file
 
1465
fi
 
1466
 
 
1467
# Check that the precious variables saved in the cache have kept the same
 
1468
# value.
 
1469
ac_cache_corrupted=false
 
1470
for ac_var in `(set) 2>&1 |
 
1471
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1472
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1473
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1474
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1475
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1476
  case $ac_old_set,$ac_new_set in
 
1477
    set,)
 
1478
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1479
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1480
      ac_cache_corrupted=: ;;
 
1481
    ,set)
 
1482
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1483
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1484
      ac_cache_corrupted=: ;;
 
1485
    ,);;
 
1486
    *)
 
1487
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1488
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1489
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1490
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1491
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1492
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1493
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1494
        ac_cache_corrupted=:
 
1495
      fi;;
 
1496
  esac
 
1497
  # Pass precious variables to config.status.
 
1498
  if test "$ac_new_set" = set; then
 
1499
    case $ac_new_val in
 
1500
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1501
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1502
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1503
    esac
 
1504
    case " $ac_configure_args " in
 
1505
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1506
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1507
    esac
 
1508
  fi
 
1509
done
 
1510
if $ac_cache_corrupted; then
 
1511
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1512
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1513
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1514
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1515
   { (exit 1); exit 1; }; }
 
1516
fi
 
1517
 
 
1518
ac_ext=c
 
1519
ac_cpp='$CPP $CPPFLAGS'
 
1520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
 
 
1539
 
 
1540
 
 
1541
 
 
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
 
1547
DEVIL_MAJOR=1
 
1548
DEVIL_MINOR=6
 
1549
DEVIL_REVISION=7
 
1550
DEVIL_VERSION=$DEVIL_MAJOR$DEVIL_MINOR$DEVIL_REVISION
 
1551
 
 
1552
DEVIL_LTVERSION=1:0:0
 
1553
 
 
1554
 
 
1555
 
 
1556
 
 
1557
ac_aux_dir=
 
1558
for ac_dir in libtools $srcdir/libtools; do
 
1559
  if test -f $ac_dir/install-sh; then
 
1560
    ac_aux_dir=$ac_dir
 
1561
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1562
    break
 
1563
  elif test -f $ac_dir/install.sh; then
 
1564
    ac_aux_dir=$ac_dir
 
1565
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1566
    break
 
1567
  elif test -f $ac_dir/shtool; then
 
1568
    ac_aux_dir=$ac_dir
 
1569
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1570
    break
 
1571
  fi
 
1572
done
 
1573
if test -z "$ac_aux_dir"; then
 
1574
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in libtools $srcdir/libtools" >&5
 
1575
echo "$as_me: error: cannot find install-sh or install.sh in libtools $srcdir/libtools" >&2;}
 
1576
   { (exit 1); exit 1; }; }
 
1577
fi
 
1578
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1579
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1580
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1581
 
 
1582
 
 
1583
# Make sure we can run config.sub.
 
1584
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1585
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1586
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1587
   { (exit 1); exit 1; }; }
 
1588
 
 
1589
echo "$as_me:$LINENO: checking build system type" >&5
 
1590
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1591
if test "${ac_cv_build+set}" = set; then
 
1592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1593
else
 
1594
  ac_cv_build_alias=$build_alias
 
1595
test -z "$ac_cv_build_alias" &&
 
1596
  ac_cv_build_alias=`$ac_config_guess`
 
1597
test -z "$ac_cv_build_alias" &&
 
1598
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1599
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1600
   { (exit 1); exit 1; }; }
 
1601
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1602
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1603
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1604
   { (exit 1); exit 1; }; }
 
1605
 
 
1606
fi
 
1607
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1608
echo "${ECHO_T}$ac_cv_build" >&6
 
1609
build=$ac_cv_build
 
1610
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1611
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1612
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1613
 
 
1614
 
 
1615
echo "$as_me:$LINENO: checking host system type" >&5
 
1616
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1617
if test "${ac_cv_host+set}" = set; then
 
1618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1619
else
 
1620
  ac_cv_host_alias=$host_alias
 
1621
test -z "$ac_cv_host_alias" &&
 
1622
  ac_cv_host_alias=$ac_cv_build_alias
 
1623
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1624
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1625
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1626
   { (exit 1); exit 1; }; }
 
1627
 
 
1628
fi
 
1629
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1630
echo "${ECHO_T}$ac_cv_host" >&6
 
1631
host=$ac_cv_host
 
1632
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1633
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1634
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1635
 
 
1636
 
 
1637
echo "$as_me:$LINENO: checking target system type" >&5
 
1638
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1639
if test "${ac_cv_target+set}" = set; then
 
1640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1641
else
 
1642
  ac_cv_target_alias=$target_alias
 
1643
test "x$ac_cv_target_alias" = "x" &&
 
1644
  ac_cv_target_alias=$ac_cv_host_alias
 
1645
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1646
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1647
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1648
   { (exit 1); exit 1; }; }
 
1649
 
 
1650
fi
 
1651
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1652
echo "${ECHO_T}$ac_cv_target" >&6
 
1653
target=$ac_cv_target
 
1654
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1655
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1656
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1657
 
 
1658
 
 
1659
# The aliases save the names the user supplied, while $host etc.
 
1660
# will get canonicalized.
 
1661
test -n "$target_alias" &&
 
1662
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1663
    NONENONEs,x,x, &&
 
1664
  program_prefix=${target_alias}-
 
1665
ac_ext=c
 
1666
ac_cpp='$CPP $CPPFLAGS'
 
1667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1670
 
 
1671
ac_ext=c
 
1672
ac_cpp='$CPP $CPPFLAGS'
 
1673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1676
if test -n "$ac_tool_prefix"; then
 
1677
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1678
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1679
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1681
if test "${ac_cv_prog_CC+set}" = set; then
 
1682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1683
else
 
1684
  if test -n "$CC"; then
 
1685
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1686
else
 
1687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1688
for as_dir in $PATH
 
1689
do
 
1690
  IFS=$as_save_IFS
 
1691
  test -z "$as_dir" && as_dir=.
 
1692
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1693
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1694
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1695
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1696
    break 2
 
1697
  fi
 
1698
done
 
1699
done
 
1700
 
 
1701
fi
 
1702
fi
 
1703
CC=$ac_cv_prog_CC
 
1704
if test -n "$CC"; then
 
1705
  echo "$as_me:$LINENO: result: $CC" >&5
 
1706
echo "${ECHO_T}$CC" >&6
 
1707
else
 
1708
  echo "$as_me:$LINENO: result: no" >&5
 
1709
echo "${ECHO_T}no" >&6
 
1710
fi
 
1711
 
 
1712
fi
 
1713
if test -z "$ac_cv_prog_CC"; then
 
1714
  ac_ct_CC=$CC
 
1715
  # Extract the first word of "gcc", so it can be a program name with args.
 
1716
set dummy gcc; ac_word=$2
 
1717
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1719
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1721
else
 
1722
  if test -n "$ac_ct_CC"; then
 
1723
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1724
else
 
1725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1726
for as_dir in $PATH
 
1727
do
 
1728
  IFS=$as_save_IFS
 
1729
  test -z "$as_dir" && as_dir=.
 
1730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1732
    ac_cv_prog_ac_ct_CC="gcc"
 
1733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1734
    break 2
 
1735
  fi
 
1736
done
 
1737
done
 
1738
 
 
1739
fi
 
1740
fi
 
1741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1742
if test -n "$ac_ct_CC"; then
 
1743
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1744
echo "${ECHO_T}$ac_ct_CC" >&6
 
1745
else
 
1746
  echo "$as_me:$LINENO: result: no" >&5
 
1747
echo "${ECHO_T}no" >&6
 
1748
fi
 
1749
 
 
1750
  CC=$ac_ct_CC
 
1751
else
 
1752
  CC="$ac_cv_prog_CC"
 
1753
fi
 
1754
 
 
1755
if test -z "$CC"; then
 
1756
  if test -n "$ac_tool_prefix"; then
 
1757
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1758
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1759
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1761
if test "${ac_cv_prog_CC+set}" = set; then
 
1762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1763
else
 
1764
  if test -n "$CC"; then
 
1765
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1766
else
 
1767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1768
for as_dir in $PATH
 
1769
do
 
1770
  IFS=$as_save_IFS
 
1771
  test -z "$as_dir" && as_dir=.
 
1772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1773
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1774
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1776
    break 2
 
1777
  fi
 
1778
done
 
1779
done
 
1780
 
 
1781
fi
 
1782
fi
 
1783
CC=$ac_cv_prog_CC
 
1784
if test -n "$CC"; then
 
1785
  echo "$as_me:$LINENO: result: $CC" >&5
 
1786
echo "${ECHO_T}$CC" >&6
 
1787
else
 
1788
  echo "$as_me:$LINENO: result: no" >&5
 
1789
echo "${ECHO_T}no" >&6
 
1790
fi
 
1791
 
 
1792
fi
 
1793
if test -z "$ac_cv_prog_CC"; then
 
1794
  ac_ct_CC=$CC
 
1795
  # Extract the first word of "cc", so it can be a program name with args.
 
1796
set dummy cc; ac_word=$2
 
1797
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1799
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1801
else
 
1802
  if test -n "$ac_ct_CC"; then
 
1803
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1804
else
 
1805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1806
for as_dir in $PATH
 
1807
do
 
1808
  IFS=$as_save_IFS
 
1809
  test -z "$as_dir" && as_dir=.
 
1810
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1811
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1812
    ac_cv_prog_ac_ct_CC="cc"
 
1813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1814
    break 2
 
1815
  fi
 
1816
done
 
1817
done
 
1818
 
 
1819
fi
 
1820
fi
 
1821
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1822
if test -n "$ac_ct_CC"; then
 
1823
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1824
echo "${ECHO_T}$ac_ct_CC" >&6
 
1825
else
 
1826
  echo "$as_me:$LINENO: result: no" >&5
 
1827
echo "${ECHO_T}no" >&6
 
1828
fi
 
1829
 
 
1830
  CC=$ac_ct_CC
 
1831
else
 
1832
  CC="$ac_cv_prog_CC"
 
1833
fi
 
1834
 
 
1835
fi
 
1836
if test -z "$CC"; then
 
1837
  # Extract the first word of "cc", so it can be a program name with args.
 
1838
set dummy cc; ac_word=$2
 
1839
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1841
if test "${ac_cv_prog_CC+set}" = set; then
 
1842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1843
else
 
1844
  if test -n "$CC"; then
 
1845
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1846
else
 
1847
  ac_prog_rejected=no
 
1848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1849
for as_dir in $PATH
 
1850
do
 
1851
  IFS=$as_save_IFS
 
1852
  test -z "$as_dir" && as_dir=.
 
1853
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1854
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1855
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1856
       ac_prog_rejected=yes
 
1857
       continue
 
1858
     fi
 
1859
    ac_cv_prog_CC="cc"
 
1860
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1861
    break 2
 
1862
  fi
 
1863
done
 
1864
done
 
1865
 
 
1866
if test $ac_prog_rejected = yes; then
 
1867
  # We found a bogon in the path, so make sure we never use it.
 
1868
  set dummy $ac_cv_prog_CC
 
1869
  shift
 
1870
  if test $# != 0; then
 
1871
    # We chose a different compiler from the bogus one.
 
1872
    # However, it has the same basename, so the bogon will be chosen
 
1873
    # first if we set CC to just the basename; use the full file name.
 
1874
    shift
 
1875
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1876
  fi
 
1877
fi
 
1878
fi
 
1879
fi
 
1880
CC=$ac_cv_prog_CC
 
1881
if test -n "$CC"; then
 
1882
  echo "$as_me:$LINENO: result: $CC" >&5
 
1883
echo "${ECHO_T}$CC" >&6
 
1884
else
 
1885
  echo "$as_me:$LINENO: result: no" >&5
 
1886
echo "${ECHO_T}no" >&6
 
1887
fi
 
1888
 
 
1889
fi
 
1890
if test -z "$CC"; then
 
1891
  if test -n "$ac_tool_prefix"; then
 
1892
  for ac_prog in cl
 
1893
  do
 
1894
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1895
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1896
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1897
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1898
if test "${ac_cv_prog_CC+set}" = set; then
 
1899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1900
else
 
1901
  if test -n "$CC"; then
 
1902
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1903
else
 
1904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1905
for as_dir in $PATH
 
1906
do
 
1907
  IFS=$as_save_IFS
 
1908
  test -z "$as_dir" && as_dir=.
 
1909
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1910
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1911
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1912
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1913
    break 2
 
1914
  fi
 
1915
done
 
1916
done
 
1917
 
 
1918
fi
 
1919
fi
 
1920
CC=$ac_cv_prog_CC
 
1921
if test -n "$CC"; then
 
1922
  echo "$as_me:$LINENO: result: $CC" >&5
 
1923
echo "${ECHO_T}$CC" >&6
 
1924
else
 
1925
  echo "$as_me:$LINENO: result: no" >&5
 
1926
echo "${ECHO_T}no" >&6
 
1927
fi
 
1928
 
 
1929
    test -n "$CC" && break
 
1930
  done
 
1931
fi
 
1932
if test -z "$CC"; then
 
1933
  ac_ct_CC=$CC
 
1934
  for ac_prog in cl
 
1935
do
 
1936
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1937
set dummy $ac_prog; ac_word=$2
 
1938
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1940
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1942
else
 
1943
  if test -n "$ac_ct_CC"; then
 
1944
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1945
else
 
1946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1947
for as_dir in $PATH
 
1948
do
 
1949
  IFS=$as_save_IFS
 
1950
  test -z "$as_dir" && as_dir=.
 
1951
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1952
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1953
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1954
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1955
    break 2
 
1956
  fi
 
1957
done
 
1958
done
 
1959
 
 
1960
fi
 
1961
fi
 
1962
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1963
if test -n "$ac_ct_CC"; then
 
1964
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1965
echo "${ECHO_T}$ac_ct_CC" >&6
 
1966
else
 
1967
  echo "$as_me:$LINENO: result: no" >&5
 
1968
echo "${ECHO_T}no" >&6
 
1969
fi
 
1970
 
 
1971
  test -n "$ac_ct_CC" && break
 
1972
done
 
1973
 
 
1974
  CC=$ac_ct_CC
 
1975
fi
 
1976
 
 
1977
fi
 
1978
 
 
1979
 
 
1980
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1981
See \`config.log' for more details." >&5
 
1982
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1983
See \`config.log' for more details." >&2;}
 
1984
   { (exit 1); exit 1; }; }
 
1985
 
 
1986
# Provide some information about the compiler.
 
1987
echo "$as_me:$LINENO:" \
 
1988
     "checking for C compiler version" >&5
 
1989
ac_compiler=`set X $ac_compile; echo $2`
 
1990
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1991
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1992
  ac_status=$?
 
1993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1994
  (exit $ac_status); }
 
1995
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1996
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1997
  ac_status=$?
 
1998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1999
  (exit $ac_status); }
 
2000
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2001
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2002
  ac_status=$?
 
2003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2004
  (exit $ac_status); }
 
2005
 
 
2006
cat >conftest.$ac_ext <<_ACEOF
 
2007
/* confdefs.h.  */
 
2008
_ACEOF
 
2009
cat confdefs.h >>conftest.$ac_ext
 
2010
cat >>conftest.$ac_ext <<_ACEOF
 
2011
/* end confdefs.h.  */
 
2012
 
 
2013
int
 
2014
main ()
 
2015
{
 
2016
 
 
2017
  ;
 
2018
  return 0;
 
2019
}
 
2020
_ACEOF
 
2021
ac_clean_files_save=$ac_clean_files
 
2022
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2023
# Try to create an executable without -o first, disregard a.out.
 
2024
# It will help us diagnose broken compilers, and finding out an intuition
 
2025
# of exeext.
 
2026
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2027
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2028
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2029
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2030
  (eval $ac_link_default) 2>&5
 
2031
  ac_status=$?
 
2032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2033
  (exit $ac_status); }; then
 
2034
  # Find the output, starting from the most likely.  This scheme is
 
2035
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2036
# resort.
 
2037
 
 
2038
# Be careful to initialize this variable, since it used to be cached.
 
2039
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2040
ac_cv_exeext=
 
2041
# b.out is created by i960 compilers.
 
2042
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2043
do
 
2044
  test -f "$ac_file" || continue
 
2045
  case $ac_file in
 
2046
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2047
        ;;
 
2048
    conftest.$ac_ext )
 
2049
        # This is the source file.
 
2050
        ;;
 
2051
    [ab].out )
 
2052
        # We found the default executable, but exeext='' is most
 
2053
        # certainly right.
 
2054
        break;;
 
2055
    *.* )
 
2056
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2057
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2058
        # but it would be cool to find out if it's true.  Does anybody
 
2059
        # maintain Libtool? --akim.
 
2060
        export ac_cv_exeext
 
2061
        break;;
 
2062
    * )
 
2063
        break;;
 
2064
  esac
 
2065
done
 
2066
else
 
2067
  echo "$as_me: failed program was:" >&5
 
2068
sed 's/^/| /' conftest.$ac_ext >&5
 
2069
 
 
2070
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2071
See \`config.log' for more details." >&5
 
2072
echo "$as_me: error: C compiler cannot create executables
 
2073
See \`config.log' for more details." >&2;}
 
2074
   { (exit 77); exit 77; }; }
 
2075
fi
 
2076
 
 
2077
ac_exeext=$ac_cv_exeext
 
2078
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2079
echo "${ECHO_T}$ac_file" >&6
 
2080
 
 
2081
# Check the compiler produces executables we can run.  If not, either
 
2082
# the compiler is broken, or we cross compile.
 
2083
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2084
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2085
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2086
# If not cross compiling, check that we can run a simple program.
 
2087
if test "$cross_compiling" != yes; then
 
2088
  if { ac_try='./$ac_file'
 
2089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2090
  (eval $ac_try) 2>&5
 
2091
  ac_status=$?
 
2092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2093
  (exit $ac_status); }; }; then
 
2094
    cross_compiling=no
 
2095
  else
 
2096
    if test "$cross_compiling" = maybe; then
 
2097
        cross_compiling=yes
 
2098
    else
 
2099
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2100
If you meant to cross compile, use \`--host'.
 
2101
See \`config.log' for more details." >&5
 
2102
echo "$as_me: error: cannot run C compiled programs.
 
2103
If you meant to cross compile, use \`--host'.
 
2104
See \`config.log' for more details." >&2;}
 
2105
   { (exit 1); exit 1; }; }
 
2106
    fi
 
2107
  fi
 
2108
fi
 
2109
echo "$as_me:$LINENO: result: yes" >&5
 
2110
echo "${ECHO_T}yes" >&6
 
2111
 
 
2112
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2113
ac_clean_files=$ac_clean_files_save
 
2114
# Check the compiler produces executables we can run.  If not, either
 
2115
# the compiler is broken, or we cross compile.
 
2116
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2117
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2118
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2119
echo "${ECHO_T}$cross_compiling" >&6
 
2120
 
 
2121
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2122
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2124
  (eval $ac_link) 2>&5
 
2125
  ac_status=$?
 
2126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2127
  (exit $ac_status); }; then
 
2128
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2129
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2130
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2131
# `rm'.
 
2132
for ac_file in conftest.exe conftest conftest.*; do
 
2133
  test -f "$ac_file" || continue
 
2134
  case $ac_file in
 
2135
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2136
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2137
          export ac_cv_exeext
 
2138
          break;;
 
2139
    * ) break;;
 
2140
  esac
 
2141
done
 
2142
else
 
2143
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2144
See \`config.log' for more details." >&5
 
2145
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2146
See \`config.log' for more details." >&2;}
 
2147
   { (exit 1); exit 1; }; }
 
2148
fi
 
2149
 
 
2150
rm -f conftest$ac_cv_exeext
 
2151
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2152
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2153
 
 
2154
rm -f conftest.$ac_ext
 
2155
EXEEXT=$ac_cv_exeext
 
2156
ac_exeext=$EXEEXT
 
2157
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2158
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2159
if test "${ac_cv_objext+set}" = set; then
 
2160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2161
else
 
2162
  cat >conftest.$ac_ext <<_ACEOF
 
2163
/* confdefs.h.  */
 
2164
_ACEOF
 
2165
cat confdefs.h >>conftest.$ac_ext
 
2166
cat >>conftest.$ac_ext <<_ACEOF
 
2167
/* end confdefs.h.  */
 
2168
 
 
2169
int
 
2170
main ()
 
2171
{
 
2172
 
 
2173
  ;
 
2174
  return 0;
 
2175
}
 
2176
_ACEOF
 
2177
rm -f conftest.o conftest.obj
 
2178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2179
  (eval $ac_compile) 2>&5
 
2180
  ac_status=$?
 
2181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2182
  (exit $ac_status); }; then
 
2183
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2184
  case $ac_file in
 
2185
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2186
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2187
       break;;
 
2188
  esac
 
2189
done
 
2190
else
 
2191
  echo "$as_me: failed program was:" >&5
 
2192
sed 's/^/| /' conftest.$ac_ext >&5
 
2193
 
 
2194
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2195
See \`config.log' for more details." >&5
 
2196
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2197
See \`config.log' for more details." >&2;}
 
2198
   { (exit 1); exit 1; }; }
 
2199
fi
 
2200
 
 
2201
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2202
fi
 
2203
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2204
echo "${ECHO_T}$ac_cv_objext" >&6
 
2205
OBJEXT=$ac_cv_objext
 
2206
ac_objext=$OBJEXT
 
2207
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2208
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2209
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2211
else
 
2212
  cat >conftest.$ac_ext <<_ACEOF
 
2213
/* confdefs.h.  */
 
2214
_ACEOF
 
2215
cat confdefs.h >>conftest.$ac_ext
 
2216
cat >>conftest.$ac_ext <<_ACEOF
 
2217
/* end confdefs.h.  */
 
2218
 
 
2219
int
 
2220
main ()
 
2221
{
 
2222
#ifndef __GNUC__
 
2223
       choke me
 
2224
#endif
 
2225
 
 
2226
  ;
 
2227
  return 0;
 
2228
}
 
2229
_ACEOF
 
2230
rm -f conftest.$ac_objext
 
2231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2232
  (eval $ac_compile) 2>conftest.er1
 
2233
  ac_status=$?
 
2234
  grep -v '^ *+' conftest.er1 >conftest.err
 
2235
  rm -f conftest.er1
 
2236
  cat conftest.err >&5
 
2237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2238
  (exit $ac_status); } &&
 
2239
         { ac_try='test -z "$ac_c_werror_flag"
 
2240
                         || test ! -s conftest.err'
 
2241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2242
  (eval $ac_try) 2>&5
 
2243
  ac_status=$?
 
2244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2245
  (exit $ac_status); }; } &&
 
2246
         { ac_try='test -s conftest.$ac_objext'
 
2247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2248
  (eval $ac_try) 2>&5
 
2249
  ac_status=$?
 
2250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2251
  (exit $ac_status); }; }; then
 
2252
  ac_compiler_gnu=yes
 
2253
else
 
2254
  echo "$as_me: failed program was:" >&5
 
2255
sed 's/^/| /' conftest.$ac_ext >&5
 
2256
 
 
2257
ac_compiler_gnu=no
 
2258
fi
 
2259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2260
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2261
 
 
2262
fi
 
2263
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2264
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2265
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2266
ac_test_CFLAGS=${CFLAGS+set}
 
2267
ac_save_CFLAGS=$CFLAGS
 
2268
CFLAGS="-g"
 
2269
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2270
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2271
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2273
else
 
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
rm -f conftest.$ac_objext
 
2290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2291
  (eval $ac_compile) 2>conftest.er1
 
2292
  ac_status=$?
 
2293
  grep -v '^ *+' conftest.er1 >conftest.err
 
2294
  rm -f conftest.er1
 
2295
  cat conftest.err >&5
 
2296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2297
  (exit $ac_status); } &&
 
2298
         { ac_try='test -z "$ac_c_werror_flag"
 
2299
                         || test ! -s conftest.err'
 
2300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2301
  (eval $ac_try) 2>&5
 
2302
  ac_status=$?
 
2303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2304
  (exit $ac_status); }; } &&
 
2305
         { ac_try='test -s conftest.$ac_objext'
 
2306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2307
  (eval $ac_try) 2>&5
 
2308
  ac_status=$?
 
2309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2310
  (exit $ac_status); }; }; then
 
2311
  ac_cv_prog_cc_g=yes
 
2312
else
 
2313
  echo "$as_me: failed program was:" >&5
 
2314
sed 's/^/| /' conftest.$ac_ext >&5
 
2315
 
 
2316
ac_cv_prog_cc_g=no
 
2317
fi
 
2318
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2319
fi
 
2320
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2321
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2322
if test "$ac_test_CFLAGS" = set; then
 
2323
  CFLAGS=$ac_save_CFLAGS
 
2324
elif test $ac_cv_prog_cc_g = yes; then
 
2325
  if test "$GCC" = yes; then
 
2326
    CFLAGS="-g -O2"
 
2327
  else
 
2328
    CFLAGS="-g"
 
2329
  fi
 
2330
else
 
2331
  if test "$GCC" = yes; then
 
2332
    CFLAGS="-O2"
 
2333
  else
 
2334
    CFLAGS=
 
2335
  fi
 
2336
fi
 
2337
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2338
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2339
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2341
else
 
2342
  ac_cv_prog_cc_stdc=no
 
2343
ac_save_CC=$CC
 
2344
cat >conftest.$ac_ext <<_ACEOF
 
2345
/* confdefs.h.  */
 
2346
_ACEOF
 
2347
cat confdefs.h >>conftest.$ac_ext
 
2348
cat >>conftest.$ac_ext <<_ACEOF
 
2349
/* end confdefs.h.  */
 
2350
#include <stdarg.h>
 
2351
#include <stdio.h>
 
2352
#include <sys/types.h>
 
2353
#include <sys/stat.h>
 
2354
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2355
struct buf { int x; };
 
2356
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2357
static char *e (p, i)
 
2358
     char **p;
 
2359
     int i;
 
2360
{
 
2361
  return p[i];
 
2362
}
 
2363
static char *f (char * (*g) (char **, int), char **p, ...)
 
2364
{
 
2365
  char *s;
 
2366
  va_list v;
 
2367
  va_start (v,p);
 
2368
  s = g (p, va_arg (v,int));
 
2369
  va_end (v);
 
2370
  return s;
 
2371
}
 
2372
 
 
2373
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2374
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2375
   These don't provoke an error unfortunately, instead are silently treated
 
2376
   as 'x'.  The following induces an error, until -std1 is added to get
 
2377
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2378
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2379
   that's true only with -std1.  */
 
2380
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2381
 
 
2382
int test (int i, double x);
 
2383
struct s1 {int (*f) (int a);};
 
2384
struct s2 {int (*f) (double a);};
 
2385
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2386
int argc;
 
2387
char **argv;
 
2388
int
 
2389
main ()
 
2390
{
 
2391
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2392
  ;
 
2393
  return 0;
 
2394
}
 
2395
_ACEOF
 
2396
# Don't try gcc -ansi; that turns off useful extensions and
 
2397
# breaks some systems' header files.
 
2398
# AIX                   -qlanglvl=ansi
 
2399
# Ultrix and OSF/1      -std1
 
2400
# HP-UX 10.20 and later -Ae
 
2401
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2402
# SVR4                  -Xc -D__EXTENSIONS__
 
2403
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2404
do
 
2405
  CC="$ac_save_CC $ac_arg"
 
2406
  rm -f conftest.$ac_objext
 
2407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2408
  (eval $ac_compile) 2>conftest.er1
 
2409
  ac_status=$?
 
2410
  grep -v '^ *+' conftest.er1 >conftest.err
 
2411
  rm -f conftest.er1
 
2412
  cat conftest.err >&5
 
2413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2414
  (exit $ac_status); } &&
 
2415
         { ac_try='test -z "$ac_c_werror_flag"
 
2416
                         || test ! -s conftest.err'
 
2417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2418
  (eval $ac_try) 2>&5
 
2419
  ac_status=$?
 
2420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2421
  (exit $ac_status); }; } &&
 
2422
         { ac_try='test -s conftest.$ac_objext'
 
2423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2424
  (eval $ac_try) 2>&5
 
2425
  ac_status=$?
 
2426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2427
  (exit $ac_status); }; }; then
 
2428
  ac_cv_prog_cc_stdc=$ac_arg
 
2429
break
 
2430
else
 
2431
  echo "$as_me: failed program was:" >&5
 
2432
sed 's/^/| /' conftest.$ac_ext >&5
 
2433
 
 
2434
fi
 
2435
rm -f conftest.err conftest.$ac_objext
 
2436
done
 
2437
rm -f conftest.$ac_ext conftest.$ac_objext
 
2438
CC=$ac_save_CC
 
2439
 
 
2440
fi
 
2441
 
 
2442
case "x$ac_cv_prog_cc_stdc" in
 
2443
  x|xno)
 
2444
    echo "$as_me:$LINENO: result: none needed" >&5
 
2445
echo "${ECHO_T}none needed" >&6 ;;
 
2446
  *)
 
2447
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2448
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2449
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2450
esac
 
2451
 
 
2452
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2453
# in C++ we need to declare it.  In case someone uses the same compiler
 
2454
# for both compiling C and C++ we need to have the C++ compiler decide
 
2455
# the declaration of exit, since it's the most demanding environment.
 
2456
cat >conftest.$ac_ext <<_ACEOF
 
2457
#ifndef __cplusplus
 
2458
  choke me
 
2459
#endif
 
2460
_ACEOF
 
2461
rm -f conftest.$ac_objext
 
2462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2463
  (eval $ac_compile) 2>conftest.er1
 
2464
  ac_status=$?
 
2465
  grep -v '^ *+' conftest.er1 >conftest.err
 
2466
  rm -f conftest.er1
 
2467
  cat conftest.err >&5
 
2468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2469
  (exit $ac_status); } &&
 
2470
         { ac_try='test -z "$ac_c_werror_flag"
 
2471
                         || test ! -s conftest.err'
 
2472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2473
  (eval $ac_try) 2>&5
 
2474
  ac_status=$?
 
2475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2476
  (exit $ac_status); }; } &&
 
2477
         { ac_try='test -s conftest.$ac_objext'
 
2478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2479
  (eval $ac_try) 2>&5
 
2480
  ac_status=$?
 
2481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2482
  (exit $ac_status); }; }; then
 
2483
  for ac_declaration in \
 
2484
   '' \
 
2485
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2486
   'extern "C" void std::exit (int); using std::exit;' \
 
2487
   'extern "C" void exit (int) throw ();' \
 
2488
   'extern "C" void exit (int);' \
 
2489
   'void exit (int);'
 
2490
do
 
2491
  cat >conftest.$ac_ext <<_ACEOF
 
2492
/* confdefs.h.  */
 
2493
_ACEOF
 
2494
cat confdefs.h >>conftest.$ac_ext
 
2495
cat >>conftest.$ac_ext <<_ACEOF
 
2496
/* end confdefs.h.  */
 
2497
$ac_declaration
 
2498
#include <stdlib.h>
 
2499
int
 
2500
main ()
 
2501
{
 
2502
exit (42);
 
2503
  ;
 
2504
  return 0;
 
2505
}
 
2506
_ACEOF
 
2507
rm -f conftest.$ac_objext
 
2508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2509
  (eval $ac_compile) 2>conftest.er1
 
2510
  ac_status=$?
 
2511
  grep -v '^ *+' conftest.er1 >conftest.err
 
2512
  rm -f conftest.er1
 
2513
  cat conftest.err >&5
 
2514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2515
  (exit $ac_status); } &&
 
2516
         { ac_try='test -z "$ac_c_werror_flag"
 
2517
                         || test ! -s conftest.err'
 
2518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2519
  (eval $ac_try) 2>&5
 
2520
  ac_status=$?
 
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2522
  (exit $ac_status); }; } &&
 
2523
         { ac_try='test -s conftest.$ac_objext'
 
2524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2525
  (eval $ac_try) 2>&5
 
2526
  ac_status=$?
 
2527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2528
  (exit $ac_status); }; }; then
 
2529
  :
 
2530
else
 
2531
  echo "$as_me: failed program was:" >&5
 
2532
sed 's/^/| /' conftest.$ac_ext >&5
 
2533
 
 
2534
continue
 
2535
fi
 
2536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2537
  cat >conftest.$ac_ext <<_ACEOF
 
2538
/* confdefs.h.  */
 
2539
_ACEOF
 
2540
cat confdefs.h >>conftest.$ac_ext
 
2541
cat >>conftest.$ac_ext <<_ACEOF
 
2542
/* end confdefs.h.  */
 
2543
$ac_declaration
 
2544
int
 
2545
main ()
 
2546
{
 
2547
exit (42);
 
2548
  ;
 
2549
  return 0;
 
2550
}
 
2551
_ACEOF
 
2552
rm -f conftest.$ac_objext
 
2553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2554
  (eval $ac_compile) 2>conftest.er1
 
2555
  ac_status=$?
 
2556
  grep -v '^ *+' conftest.er1 >conftest.err
 
2557
  rm -f conftest.er1
 
2558
  cat conftest.err >&5
 
2559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2560
  (exit $ac_status); } &&
 
2561
         { ac_try='test -z "$ac_c_werror_flag"
 
2562
                         || test ! -s conftest.err'
 
2563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2564
  (eval $ac_try) 2>&5
 
2565
  ac_status=$?
 
2566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2567
  (exit $ac_status); }; } &&
 
2568
         { ac_try='test -s conftest.$ac_objext'
 
2569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2570
  (eval $ac_try) 2>&5
 
2571
  ac_status=$?
 
2572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2573
  (exit $ac_status); }; }; then
 
2574
  break
 
2575
else
 
2576
  echo "$as_me: failed program was:" >&5
 
2577
sed 's/^/| /' conftest.$ac_ext >&5
 
2578
 
 
2579
fi
 
2580
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2581
done
 
2582
rm -f conftest*
 
2583
if test -n "$ac_declaration"; then
 
2584
  echo '#ifdef __cplusplus' >>confdefs.h
 
2585
  echo $ac_declaration      >>confdefs.h
 
2586
  echo '#endif'             >>confdefs.h
 
2587
fi
 
2588
 
 
2589
else
 
2590
  echo "$as_me: failed program was:" >&5
 
2591
sed 's/^/| /' conftest.$ac_ext >&5
 
2592
 
 
2593
fi
 
2594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2595
ac_ext=c
 
2596
ac_cpp='$CPP $CPPFLAGS'
 
2597
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2598
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2599
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2600
 
 
2601
# Find a good install program.  We prefer a C program (faster),
 
2602
# so one script is as good as another.  But avoid the broken or
 
2603
# incompatible versions:
 
2604
# SysV /etc/install, /usr/sbin/install
 
2605
# SunOS /usr/etc/install
 
2606
# IRIX /sbin/install
 
2607
# AIX /bin/install
 
2608
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2609
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2610
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2611
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2612
# OS/2's system install, which has a completely different semantic
 
2613
# ./install, which can be erroneously created by make from ./install.sh.
 
2614
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2615
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2616
if test -z "$INSTALL"; then
 
2617
if test "${ac_cv_path_install+set}" = set; then
 
2618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2619
else
 
2620
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2621
for as_dir in $PATH
 
2622
do
 
2623
  IFS=$as_save_IFS
 
2624
  test -z "$as_dir" && as_dir=.
 
2625
  # Account for people who put trailing slashes in PATH elements.
 
2626
case $as_dir/ in
 
2627
  ./ | .// | /cC/* | \
 
2628
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2629
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2630
  /usr/ucb/* ) ;;
 
2631
  *)
 
2632
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2633
    # Don't use installbsd from OSF since it installs stuff as root
 
2634
    # by default.
 
2635
    for ac_prog in ginstall scoinst install; do
 
2636
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2637
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2638
          if test $ac_prog = install &&
 
2639
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2640
            # AIX install.  It has an incompatible calling convention.
 
2641
            :
 
2642
          elif test $ac_prog = install &&
 
2643
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2644
            # program-specific install script used by HP pwplus--don't use.
 
2645
            :
 
2646
          else
 
2647
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2648
            break 3
 
2649
          fi
 
2650
        fi
 
2651
      done
 
2652
    done
 
2653
    ;;
 
2654
esac
 
2655
done
 
2656
 
 
2657
 
 
2658
fi
 
2659
  if test "${ac_cv_path_install+set}" = set; then
 
2660
    INSTALL=$ac_cv_path_install
 
2661
  else
 
2662
    # As a last resort, use the slow shell script.  We don't cache a
 
2663
    # path for INSTALL within a source directory, because that will
 
2664
    # break other packages using the cache if that directory is
 
2665
    # removed, or if the path is relative.
 
2666
    INSTALL=$ac_install_sh
 
2667
  fi
 
2668
fi
 
2669
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2670
echo "${ECHO_T}$INSTALL" >&6
 
2671
 
 
2672
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2673
# It thinks the first close brace ends the variable substitution.
 
2674
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2675
 
 
2676
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2677
 
 
2678
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2679
 
 
2680
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2681
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2682
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
2683
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2685
else
 
2686
  cat >conftest.make <<\_ACEOF
 
2687
all:
 
2688
        @echo 'ac_maketemp="$(MAKE)"'
 
2689
_ACEOF
 
2690
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2691
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
2692
if test -n "$ac_maketemp"; then
 
2693
  eval ac_cv_prog_make_${ac_make}_set=yes
 
2694
else
 
2695
  eval ac_cv_prog_make_${ac_make}_set=no
 
2696
fi
 
2697
rm -f conftest.make
 
2698
fi
 
2699
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
2700
  echo "$as_me:$LINENO: result: yes" >&5
 
2701
echo "${ECHO_T}yes" >&6
 
2702
  SET_MAKE=
 
2703
else
 
2704
  echo "$as_me:$LINENO: result: no" >&5
 
2705
echo "${ECHO_T}no" >&6
 
2706
  SET_MAKE="MAKE=${MAKE-make}"
 
2707
fi
 
2708
 
 
2709
 
 
2710
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
2711
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
2712
if test "${ac_cv_c_bigendian+set}" = set; then
 
2713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2714
else
 
2715
  # See if sys/param.h defines the BYTE_ORDER macro.
 
2716
cat >conftest.$ac_ext <<_ACEOF
 
2717
/* confdefs.h.  */
 
2718
_ACEOF
 
2719
cat confdefs.h >>conftest.$ac_ext
 
2720
cat >>conftest.$ac_ext <<_ACEOF
 
2721
/* end confdefs.h.  */
 
2722
#include <sys/types.h>
 
2723
#include <sys/param.h>
 
2724
 
 
2725
int
 
2726
main ()
 
2727
{
 
2728
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
2729
 bogus endian macros
 
2730
#endif
 
2731
 
 
2732
  ;
 
2733
  return 0;
 
2734
}
 
2735
_ACEOF
 
2736
rm -f conftest.$ac_objext
 
2737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2738
  (eval $ac_compile) 2>conftest.er1
 
2739
  ac_status=$?
 
2740
  grep -v '^ *+' conftest.er1 >conftest.err
 
2741
  rm -f conftest.er1
 
2742
  cat conftest.err >&5
 
2743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2744
  (exit $ac_status); } &&
 
2745
         { ac_try='test -z "$ac_c_werror_flag"
 
2746
                         || test ! -s conftest.err'
 
2747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2748
  (eval $ac_try) 2>&5
 
2749
  ac_status=$?
 
2750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2751
  (exit $ac_status); }; } &&
 
2752
         { ac_try='test -s conftest.$ac_objext'
 
2753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2754
  (eval $ac_try) 2>&5
 
2755
  ac_status=$?
 
2756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2757
  (exit $ac_status); }; }; then
 
2758
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
2759
cat >conftest.$ac_ext <<_ACEOF
 
2760
/* confdefs.h.  */
 
2761
_ACEOF
 
2762
cat confdefs.h >>conftest.$ac_ext
 
2763
cat >>conftest.$ac_ext <<_ACEOF
 
2764
/* end confdefs.h.  */
 
2765
#include <sys/types.h>
 
2766
#include <sys/param.h>
 
2767
 
 
2768
int
 
2769
main ()
 
2770
{
 
2771
#if BYTE_ORDER != BIG_ENDIAN
 
2772
 not big endian
 
2773
#endif
 
2774
 
 
2775
  ;
 
2776
  return 0;
 
2777
}
 
2778
_ACEOF
 
2779
rm -f conftest.$ac_objext
 
2780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2781
  (eval $ac_compile) 2>conftest.er1
 
2782
  ac_status=$?
 
2783
  grep -v '^ *+' conftest.er1 >conftest.err
 
2784
  rm -f conftest.er1
 
2785
  cat conftest.err >&5
 
2786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2787
  (exit $ac_status); } &&
 
2788
         { ac_try='test -z "$ac_c_werror_flag"
 
2789
                         || test ! -s conftest.err'
 
2790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2791
  (eval $ac_try) 2>&5
 
2792
  ac_status=$?
 
2793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2794
  (exit $ac_status); }; } &&
 
2795
         { ac_try='test -s conftest.$ac_objext'
 
2796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2797
  (eval $ac_try) 2>&5
 
2798
  ac_status=$?
 
2799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2800
  (exit $ac_status); }; }; then
 
2801
  ac_cv_c_bigendian=yes
 
2802
else
 
2803
  echo "$as_me: failed program was:" >&5
 
2804
sed 's/^/| /' conftest.$ac_ext >&5
 
2805
 
 
2806
ac_cv_c_bigendian=no
 
2807
fi
 
2808
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2809
else
 
2810
  echo "$as_me: failed program was:" >&5
 
2811
sed 's/^/| /' conftest.$ac_ext >&5
 
2812
 
 
2813
# It does not; compile a test program.
 
2814
if test "$cross_compiling" = yes; then
 
2815
  # try to guess the endianness by grepping values into an object file
 
2816
  ac_cv_c_bigendian=unknown
 
2817
  cat >conftest.$ac_ext <<_ACEOF
 
2818
/* confdefs.h.  */
 
2819
_ACEOF
 
2820
cat confdefs.h >>conftest.$ac_ext
 
2821
cat >>conftest.$ac_ext <<_ACEOF
 
2822
/* end confdefs.h.  */
 
2823
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
2824
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
2825
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
2826
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
2827
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
2828
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
2829
int
 
2830
main ()
 
2831
{
 
2832
 _ascii (); _ebcdic ();
 
2833
  ;
 
2834
  return 0;
 
2835
}
 
2836
_ACEOF
 
2837
rm -f conftest.$ac_objext
 
2838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2839
  (eval $ac_compile) 2>conftest.er1
 
2840
  ac_status=$?
 
2841
  grep -v '^ *+' conftest.er1 >conftest.err
 
2842
  rm -f conftest.er1
 
2843
  cat conftest.err >&5
 
2844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2845
  (exit $ac_status); } &&
 
2846
         { ac_try='test -z "$ac_c_werror_flag"
 
2847
                         || test ! -s conftest.err'
 
2848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2849
  (eval $ac_try) 2>&5
 
2850
  ac_status=$?
 
2851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2852
  (exit $ac_status); }; } &&
 
2853
         { ac_try='test -s conftest.$ac_objext'
 
2854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2855
  (eval $ac_try) 2>&5
 
2856
  ac_status=$?
 
2857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2858
  (exit $ac_status); }; }; then
 
2859
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
2860
  ac_cv_c_bigendian=yes
 
2861
fi
 
2862
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
2863
  if test "$ac_cv_c_bigendian" = unknown; then
 
2864
    ac_cv_c_bigendian=no
 
2865
  else
 
2866
    # finding both strings is unlikely to happen, but who knows?
 
2867
    ac_cv_c_bigendian=unknown
 
2868
  fi
 
2869
fi
 
2870
else
 
2871
  echo "$as_me: failed program was:" >&5
 
2872
sed 's/^/| /' conftest.$ac_ext >&5
 
2873
 
 
2874
fi
 
2875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2876
else
 
2877
  cat >conftest.$ac_ext <<_ACEOF
 
2878
/* confdefs.h.  */
 
2879
_ACEOF
 
2880
cat confdefs.h >>conftest.$ac_ext
 
2881
cat >>conftest.$ac_ext <<_ACEOF
 
2882
/* end confdefs.h.  */
 
2883
int
 
2884
main ()
 
2885
{
 
2886
  /* Are we little or big endian?  From Harbison&Steele.  */
 
2887
  union
 
2888
  {
 
2889
    long l;
 
2890
    char c[sizeof (long)];
 
2891
  } u;
 
2892
  u.l = 1;
 
2893
  exit (u.c[sizeof (long) - 1] == 1);
 
2894
}
 
2895
_ACEOF
 
2896
rm -f conftest$ac_exeext
 
2897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2898
  (eval $ac_link) 2>&5
 
2899
  ac_status=$?
 
2900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2901
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2903
  (eval $ac_try) 2>&5
 
2904
  ac_status=$?
 
2905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2906
  (exit $ac_status); }; }; then
 
2907
  ac_cv_c_bigendian=no
 
2908
else
 
2909
  echo "$as_me: program exited with status $ac_status" >&5
 
2910
echo "$as_me: failed program was:" >&5
 
2911
sed 's/^/| /' conftest.$ac_ext >&5
 
2912
 
 
2913
( exit $ac_status )
 
2914
ac_cv_c_bigendian=yes
 
2915
fi
 
2916
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2917
fi
 
2918
fi
 
2919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2920
fi
 
2921
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
2922
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
2923
case $ac_cv_c_bigendian in
 
2924
  yes)
 
2925
 
 
2926
cat >>confdefs.h <<\_ACEOF
 
2927
#define WORDS_BIGENDIAN 1
 
2928
_ACEOF
 
2929
 ;;
 
2930
  no)
 
2931
     ;;
 
2932
  *)
 
2933
    { { echo "$as_me:$LINENO: error: unknown endianness
 
2934
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
2935
echo "$as_me: error: unknown endianness
 
2936
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
2937
   { (exit 1); exit 1; }; } ;;
 
2938
esac
 
2939
 
 
2940
 
 
2941
 
 
2942
ac_ext=c
 
2943
ac_cpp='$CPP $CPPFLAGS'
 
2944
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2945
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2946
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2947
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2948
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2949
# On Suns, sometimes $CPP names a directory.
 
2950
if test -n "$CPP" && test -d "$CPP"; then
 
2951
  CPP=
 
2952
fi
 
2953
if test -z "$CPP"; then
 
2954
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2956
else
 
2957
      # Double quotes because CPP needs to be expanded
 
2958
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2959
    do
 
2960
      ac_preproc_ok=false
 
2961
for ac_c_preproc_warn_flag in '' yes
 
2962
do
 
2963
  # Use a header file that comes with gcc, so configuring glibc
 
2964
  # with a fresh cross-compiler works.
 
2965
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2966
  # <limits.h> exists even on freestanding compilers.
 
2967
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2968
  # not just through cpp. "Syntax error" is here to catch this case.
 
2969
  cat >conftest.$ac_ext <<_ACEOF
 
2970
/* confdefs.h.  */
 
2971
_ACEOF
 
2972
cat confdefs.h >>conftest.$ac_ext
 
2973
cat >>conftest.$ac_ext <<_ACEOF
 
2974
/* end confdefs.h.  */
 
2975
#ifdef __STDC__
 
2976
# include <limits.h>
 
2977
#else
 
2978
# include <assert.h>
 
2979
#endif
 
2980
                     Syntax error
 
2981
_ACEOF
 
2982
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2983
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2984
  ac_status=$?
 
2985
  grep -v '^ *+' conftest.er1 >conftest.err
 
2986
  rm -f conftest.er1
 
2987
  cat conftest.err >&5
 
2988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2989
  (exit $ac_status); } >/dev/null; then
 
2990
  if test -s conftest.err; then
 
2991
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2992
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2993
  else
 
2994
    ac_cpp_err=
 
2995
  fi
 
2996
else
 
2997
  ac_cpp_err=yes
 
2998
fi
 
2999
if test -z "$ac_cpp_err"; then
 
3000
  :
 
3001
else
 
3002
  echo "$as_me: failed program was:" >&5
 
3003
sed 's/^/| /' conftest.$ac_ext >&5
 
3004
 
 
3005
  # Broken: fails on valid input.
 
3006
continue
 
3007
fi
 
3008
rm -f conftest.err conftest.$ac_ext
 
3009
 
 
3010
  # OK, works on sane cases.  Now check whether non-existent headers
 
3011
  # can be detected and how.
 
3012
  cat >conftest.$ac_ext <<_ACEOF
 
3013
/* confdefs.h.  */
 
3014
_ACEOF
 
3015
cat confdefs.h >>conftest.$ac_ext
 
3016
cat >>conftest.$ac_ext <<_ACEOF
 
3017
/* end confdefs.h.  */
 
3018
#include <ac_nonexistent.h>
 
3019
_ACEOF
 
3020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3021
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3022
  ac_status=$?
 
3023
  grep -v '^ *+' conftest.er1 >conftest.err
 
3024
  rm -f conftest.er1
 
3025
  cat conftest.err >&5
 
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); } >/dev/null; then
 
3028
  if test -s conftest.err; then
 
3029
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3030
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3031
  else
 
3032
    ac_cpp_err=
 
3033
  fi
 
3034
else
 
3035
  ac_cpp_err=yes
 
3036
fi
 
3037
if test -z "$ac_cpp_err"; then
 
3038
  # Broken: success on invalid input.
 
3039
continue
 
3040
else
 
3041
  echo "$as_me: failed program was:" >&5
 
3042
sed 's/^/| /' conftest.$ac_ext >&5
 
3043
 
 
3044
  # Passes both tests.
 
3045
ac_preproc_ok=:
 
3046
break
 
3047
fi
 
3048
rm -f conftest.err conftest.$ac_ext
 
3049
 
 
3050
done
 
3051
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3052
rm -f conftest.err conftest.$ac_ext
 
3053
if $ac_preproc_ok; then
 
3054
  break
 
3055
fi
 
3056
 
 
3057
    done
 
3058
    ac_cv_prog_CPP=$CPP
 
3059
 
 
3060
fi
 
3061
  CPP=$ac_cv_prog_CPP
 
3062
else
 
3063
  ac_cv_prog_CPP=$CPP
 
3064
fi
 
3065
echo "$as_me:$LINENO: result: $CPP" >&5
 
3066
echo "${ECHO_T}$CPP" >&6
 
3067
ac_preproc_ok=false
 
3068
for ac_c_preproc_warn_flag in '' yes
 
3069
do
 
3070
  # Use a header file that comes with gcc, so configuring glibc
 
3071
  # with a fresh cross-compiler works.
 
3072
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3073
  # <limits.h> exists even on freestanding compilers.
 
3074
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3075
  # not just through cpp. "Syntax error" is here to catch this case.
 
3076
  cat >conftest.$ac_ext <<_ACEOF
 
3077
/* confdefs.h.  */
 
3078
_ACEOF
 
3079
cat confdefs.h >>conftest.$ac_ext
 
3080
cat >>conftest.$ac_ext <<_ACEOF
 
3081
/* end confdefs.h.  */
 
3082
#ifdef __STDC__
 
3083
# include <limits.h>
 
3084
#else
 
3085
# include <assert.h>
 
3086
#endif
 
3087
                     Syntax error
 
3088
_ACEOF
 
3089
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3090
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3091
  ac_status=$?
 
3092
  grep -v '^ *+' conftest.er1 >conftest.err
 
3093
  rm -f conftest.er1
 
3094
  cat conftest.err >&5
 
3095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3096
  (exit $ac_status); } >/dev/null; then
 
3097
  if test -s conftest.err; then
 
3098
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3099
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3100
  else
 
3101
    ac_cpp_err=
 
3102
  fi
 
3103
else
 
3104
  ac_cpp_err=yes
 
3105
fi
 
3106
if test -z "$ac_cpp_err"; then
 
3107
  :
 
3108
else
 
3109
  echo "$as_me: failed program was:" >&5
 
3110
sed 's/^/| /' conftest.$ac_ext >&5
 
3111
 
 
3112
  # Broken: fails on valid input.
 
3113
continue
 
3114
fi
 
3115
rm -f conftest.err conftest.$ac_ext
 
3116
 
 
3117
  # OK, works on sane cases.  Now check whether non-existent headers
 
3118
  # can be detected and how.
 
3119
  cat >conftest.$ac_ext <<_ACEOF
 
3120
/* confdefs.h.  */
 
3121
_ACEOF
 
3122
cat confdefs.h >>conftest.$ac_ext
 
3123
cat >>conftest.$ac_ext <<_ACEOF
 
3124
/* end confdefs.h.  */
 
3125
#include <ac_nonexistent.h>
 
3126
_ACEOF
 
3127
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3128
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3129
  ac_status=$?
 
3130
  grep -v '^ *+' conftest.er1 >conftest.err
 
3131
  rm -f conftest.er1
 
3132
  cat conftest.err >&5
 
3133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3134
  (exit $ac_status); } >/dev/null; then
 
3135
  if test -s conftest.err; then
 
3136
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3137
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3138
  else
 
3139
    ac_cpp_err=
 
3140
  fi
 
3141
else
 
3142
  ac_cpp_err=yes
 
3143
fi
 
3144
if test -z "$ac_cpp_err"; then
 
3145
  # Broken: success on invalid input.
 
3146
continue
 
3147
else
 
3148
  echo "$as_me: failed program was:" >&5
 
3149
sed 's/^/| /' conftest.$ac_ext >&5
 
3150
 
 
3151
  # Passes both tests.
 
3152
ac_preproc_ok=:
 
3153
break
 
3154
fi
 
3155
rm -f conftest.err conftest.$ac_ext
 
3156
 
 
3157
done
 
3158
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3159
rm -f conftest.err conftest.$ac_ext
 
3160
if $ac_preproc_ok; then
 
3161
  :
 
3162
else
 
3163
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3164
See \`config.log' for more details." >&5
 
3165
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3166
See \`config.log' for more details." >&2;}
 
3167
   { (exit 1); exit 1; }; }
 
3168
fi
 
3169
 
 
3170
ac_ext=c
 
3171
ac_cpp='$CPP $CPPFLAGS'
 
3172
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3173
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3174
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3175
 
 
3176
 
 
3177
echo "$as_me:$LINENO: checking for X" >&5
 
3178
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
3179
 
 
3180
 
 
3181
# Check whether --with-x or --without-x was given.
 
3182
if test "${with_x+set}" = set; then
 
3183
  withval="$with_x"
 
3184
 
 
3185
fi;
 
3186
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
3187
if test "x$with_x" = xno; then
 
3188
  # The user explicitly disabled X.
 
3189
  have_x=disabled
 
3190
else
 
3191
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
3192
    # Both variables are already set.
 
3193
    have_x=yes
 
3194
  else
 
3195
    if test "${ac_cv_have_x+set}" = set; then
 
3196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3197
else
 
3198
  # One or both of the vars are not set, and there is no cached value.
 
3199
ac_x_includes=no ac_x_libraries=no
 
3200
rm -fr conftest.dir
 
3201
if mkdir conftest.dir; then
 
3202
  cd conftest.dir
 
3203
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
3204
  cat >Imakefile <<'_ACEOF'
 
3205
acfindx:
 
3206
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
3207
_ACEOF
 
3208
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
3209
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3210
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
3211
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
3212
    for ac_extension in a so sl; do
 
3213
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
3214
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
3215
        ac_im_usrlibdir=$ac_im_libdir; break
 
3216
      fi
 
3217
    done
 
3218
    # Screen out bogus values from the imake configuration.  They are
 
3219
    # bogus both because they are the default anyway, and because
 
3220
    # using them would break gcc on systems where it needs fixed includes.
 
3221
    case $ac_im_incroot in
 
3222
        /usr/include) ;;
 
3223
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
3224
    esac
 
3225
    case $ac_im_usrlibdir in
 
3226
        /usr/lib | /lib) ;;
 
3227
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
3228
    esac
 
3229
  fi
 
3230
  cd ..
 
3231
  rm -fr conftest.dir
 
3232
fi
 
3233
 
 
3234
# Standard set of common directories for X headers.
 
3235
# Check X11 before X11Rn because it is often a symlink to the current release.
 
3236
ac_x_header_dirs='
 
3237
/usr/X11/include
 
3238
/usr/X11R6/include
 
3239
/usr/X11R5/include
 
3240
/usr/X11R4/include
 
3241
 
 
3242
/usr/include/X11
 
3243
/usr/include/X11R6
 
3244
/usr/include/X11R5
 
3245
/usr/include/X11R4
 
3246
 
 
3247
/usr/local/X11/include
 
3248
/usr/local/X11R6/include
 
3249
/usr/local/X11R5/include
 
3250
/usr/local/X11R4/include
 
3251
 
 
3252
/usr/local/include/X11
 
3253
/usr/local/include/X11R6
 
3254
/usr/local/include/X11R5
 
3255
/usr/local/include/X11R4
 
3256
 
 
3257
/usr/X386/include
 
3258
/usr/x386/include
 
3259
/usr/XFree86/include/X11
 
3260
 
 
3261
/usr/include
 
3262
/usr/local/include
 
3263
/usr/unsupported/include
 
3264
/usr/athena/include
 
3265
/usr/local/x11r5/include
 
3266
/usr/lpp/Xamples/include
 
3267
 
 
3268
/usr/openwin/include
 
3269
/usr/openwin/share/include'
 
3270
 
 
3271
if test "$ac_x_includes" = no; then
 
3272
  # Guess where to find include files, by looking for Intrinsic.h.
 
3273
  # First, try using that file with no special directory specified.
 
3274
  cat >conftest.$ac_ext <<_ACEOF
 
3275
/* confdefs.h.  */
 
3276
_ACEOF
 
3277
cat confdefs.h >>conftest.$ac_ext
 
3278
cat >>conftest.$ac_ext <<_ACEOF
 
3279
/* end confdefs.h.  */
 
3280
#include <X11/Intrinsic.h>
 
3281
_ACEOF
 
3282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3283
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3284
  ac_status=$?
 
3285
  grep -v '^ *+' conftest.er1 >conftest.err
 
3286
  rm -f conftest.er1
 
3287
  cat conftest.err >&5
 
3288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3289
  (exit $ac_status); } >/dev/null; then
 
3290
  if test -s conftest.err; then
 
3291
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3292
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3293
  else
 
3294
    ac_cpp_err=
 
3295
  fi
 
3296
else
 
3297
  ac_cpp_err=yes
 
3298
fi
 
3299
if test -z "$ac_cpp_err"; then
 
3300
  # We can compile using X headers with no special include directory.
 
3301
ac_x_includes=
 
3302
else
 
3303
  echo "$as_me: failed program was:" >&5
 
3304
sed 's/^/| /' conftest.$ac_ext >&5
 
3305
 
 
3306
  for ac_dir in $ac_x_header_dirs; do
 
3307
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
3308
    ac_x_includes=$ac_dir
 
3309
    break
 
3310
  fi
 
3311
done
 
3312
fi
 
3313
rm -f conftest.err conftest.$ac_ext
 
3314
fi # $ac_x_includes = no
 
3315
 
 
3316
if test "$ac_x_libraries" = no; then
 
3317
  # Check for the libraries.
 
3318
  # See if we find them without any special options.
 
3319
  # Don't add to $LIBS permanently.
 
3320
  ac_save_LIBS=$LIBS
 
3321
  LIBS="-lXt $LIBS"
 
3322
  cat >conftest.$ac_ext <<_ACEOF
 
3323
/* confdefs.h.  */
 
3324
_ACEOF
 
3325
cat confdefs.h >>conftest.$ac_ext
 
3326
cat >>conftest.$ac_ext <<_ACEOF
 
3327
/* end confdefs.h.  */
 
3328
#include <X11/Intrinsic.h>
 
3329
int
 
3330
main ()
 
3331
{
 
3332
XtMalloc (0)
 
3333
  ;
 
3334
  return 0;
 
3335
}
 
3336
_ACEOF
 
3337
rm -f conftest.$ac_objext conftest$ac_exeext
 
3338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3339
  (eval $ac_link) 2>conftest.er1
 
3340
  ac_status=$?
 
3341
  grep -v '^ *+' conftest.er1 >conftest.err
 
3342
  rm -f conftest.er1
 
3343
  cat conftest.err >&5
 
3344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3345
  (exit $ac_status); } &&
 
3346
         { ac_try='test -z "$ac_c_werror_flag"
 
3347
                         || test ! -s conftest.err'
 
3348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3349
  (eval $ac_try) 2>&5
 
3350
  ac_status=$?
 
3351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3352
  (exit $ac_status); }; } &&
 
3353
         { ac_try='test -s conftest$ac_exeext'
 
3354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3355
  (eval $ac_try) 2>&5
 
3356
  ac_status=$?
 
3357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3358
  (exit $ac_status); }; }; then
 
3359
  LIBS=$ac_save_LIBS
 
3360
# We can link X programs with no special library path.
 
3361
ac_x_libraries=
 
3362
else
 
3363
  echo "$as_me: failed program was:" >&5
 
3364
sed 's/^/| /' conftest.$ac_ext >&5
 
3365
 
 
3366
LIBS=$ac_save_LIBS
 
3367
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
3368
do
 
3369
  # Don't even attempt the hair of trying to link an X program!
 
3370
  for ac_extension in a so sl; do
 
3371
    if test -r $ac_dir/libXt.$ac_extension; then
 
3372
      ac_x_libraries=$ac_dir
 
3373
      break 2
 
3374
    fi
 
3375
  done
 
3376
done
 
3377
fi
 
3378
rm -f conftest.err conftest.$ac_objext \
 
3379
      conftest$ac_exeext conftest.$ac_ext
 
3380
fi # $ac_x_libraries = no
 
3381
 
 
3382
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
3383
  # Didn't find X anywhere.  Cache the known absence of X.
 
3384
  ac_cv_have_x="have_x=no"
 
3385
else
 
3386
  # Record where we found X for the cache.
 
3387
  ac_cv_have_x="have_x=yes \
 
3388
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
3389
fi
 
3390
fi
 
3391
 
 
3392
  fi
 
3393
  eval "$ac_cv_have_x"
 
3394
fi # $with_x != no
 
3395
 
 
3396
if test "$have_x" != yes; then
 
3397
  echo "$as_me:$LINENO: result: $have_x" >&5
 
3398
echo "${ECHO_T}$have_x" >&6
 
3399
  no_x=yes
 
3400
else
 
3401
  # If each of the values was on the command line, it overrides each guess.
 
3402
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
3403
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
3404
  # Update the cache value to reflect the command line values.
 
3405
  ac_cv_have_x="have_x=yes \
 
3406
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
3407
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
3408
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
3409
fi
 
3410
 
 
3411
if test "$no_x" = yes; then
 
3412
  # Not all programs may use this symbol, but it does not hurt to define it.
 
3413
 
 
3414
cat >>confdefs.h <<\_ACEOF
 
3415
#define X_DISPLAY_MISSING 1
 
3416
_ACEOF
 
3417
 
 
3418
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
3419
else
 
3420
  if test -n "$x_includes"; then
 
3421
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
3422
  fi
 
3423
 
 
3424
  # It would also be nice to do this for all -L options, not just this one.
 
3425
  if test -n "$x_libraries"; then
 
3426
    X_LIBS="$X_LIBS -L$x_libraries"
 
3427
    # For Solaris; some versions of Sun CC require a space after -R and
 
3428
    # others require no space.  Words are not sufficient . . . .
 
3429
    case `(uname -sr) 2>/dev/null` in
 
3430
    "SunOS 5"*)
 
3431
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
3432
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
3433
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
3434
      cat >conftest.$ac_ext <<_ACEOF
 
3435
/* confdefs.h.  */
 
3436
_ACEOF
 
3437
cat confdefs.h >>conftest.$ac_ext
 
3438
cat >>conftest.$ac_ext <<_ACEOF
 
3439
/* end confdefs.h.  */
 
3440
 
 
3441
int
 
3442
main ()
 
3443
{
 
3444
 
 
3445
  ;
 
3446
  return 0;
 
3447
}
 
3448
_ACEOF
 
3449
rm -f conftest.$ac_objext conftest$ac_exeext
 
3450
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3451
  (eval $ac_link) 2>conftest.er1
 
3452
  ac_status=$?
 
3453
  grep -v '^ *+' conftest.er1 >conftest.err
 
3454
  rm -f conftest.er1
 
3455
  cat conftest.err >&5
 
3456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3457
  (exit $ac_status); } &&
 
3458
         { ac_try='test -z "$ac_c_werror_flag"
 
3459
                         || test ! -s conftest.err'
 
3460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3461
  (eval $ac_try) 2>&5
 
3462
  ac_status=$?
 
3463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3464
  (exit $ac_status); }; } &&
 
3465
         { ac_try='test -s conftest$ac_exeext'
 
3466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3467
  (eval $ac_try) 2>&5
 
3468
  ac_status=$?
 
3469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3470
  (exit $ac_status); }; }; then
 
3471
  ac_R_nospace=yes
 
3472
else
 
3473
  echo "$as_me: failed program was:" >&5
 
3474
sed 's/^/| /' conftest.$ac_ext >&5
 
3475
 
 
3476
ac_R_nospace=no
 
3477
fi
 
3478
rm -f conftest.err conftest.$ac_objext \
 
3479
      conftest$ac_exeext conftest.$ac_ext
 
3480
      if test $ac_R_nospace = yes; then
 
3481
        echo "$as_me:$LINENO: result: no" >&5
 
3482
echo "${ECHO_T}no" >&6
 
3483
        X_LIBS="$X_LIBS -R$x_libraries"
 
3484
      else
 
3485
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
3486
        cat >conftest.$ac_ext <<_ACEOF
 
3487
/* confdefs.h.  */
 
3488
_ACEOF
 
3489
cat confdefs.h >>conftest.$ac_ext
 
3490
cat >>conftest.$ac_ext <<_ACEOF
 
3491
/* end confdefs.h.  */
 
3492
 
 
3493
int
 
3494
main ()
 
3495
{
 
3496
 
 
3497
  ;
 
3498
  return 0;
 
3499
}
 
3500
_ACEOF
 
3501
rm -f conftest.$ac_objext conftest$ac_exeext
 
3502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3503
  (eval $ac_link) 2>conftest.er1
 
3504
  ac_status=$?
 
3505
  grep -v '^ *+' conftest.er1 >conftest.err
 
3506
  rm -f conftest.er1
 
3507
  cat conftest.err >&5
 
3508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3509
  (exit $ac_status); } &&
 
3510
         { ac_try='test -z "$ac_c_werror_flag"
 
3511
                         || test ! -s conftest.err'
 
3512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3513
  (eval $ac_try) 2>&5
 
3514
  ac_status=$?
 
3515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3516
  (exit $ac_status); }; } &&
 
3517
         { ac_try='test -s conftest$ac_exeext'
 
3518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3519
  (eval $ac_try) 2>&5
 
3520
  ac_status=$?
 
3521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3522
  (exit $ac_status); }; }; then
 
3523
  ac_R_space=yes
 
3524
else
 
3525
  echo "$as_me: failed program was:" >&5
 
3526
sed 's/^/| /' conftest.$ac_ext >&5
 
3527
 
 
3528
ac_R_space=no
 
3529
fi
 
3530
rm -f conftest.err conftest.$ac_objext \
 
3531
      conftest$ac_exeext conftest.$ac_ext
 
3532
        if test $ac_R_space = yes; then
 
3533
          echo "$as_me:$LINENO: result: yes" >&5
 
3534
echo "${ECHO_T}yes" >&6
 
3535
          X_LIBS="$X_LIBS -R $x_libraries"
 
3536
        else
 
3537
          echo "$as_me:$LINENO: result: neither works" >&5
 
3538
echo "${ECHO_T}neither works" >&6
 
3539
        fi
 
3540
      fi
 
3541
      LIBS=$ac_xsave_LIBS
 
3542
    esac
 
3543
  fi
 
3544
 
 
3545
  # Check for system-dependent libraries X programs must link with.
 
3546
  # Do this before checking for the system-independent R6 libraries
 
3547
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
3548
 
 
3549
  if test "$ISC" = yes; then
 
3550
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
3551
  else
 
3552
    # Martyn Johnson says this is needed for Ultrix, if the X
 
3553
    # libraries were built with DECnet support.  And Karl Berry says
 
3554
    # the Alpha needs dnet_stub (dnet does not exist).
 
3555
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
3556
    cat >conftest.$ac_ext <<_ACEOF
 
3557
/* confdefs.h.  */
 
3558
_ACEOF
 
3559
cat confdefs.h >>conftest.$ac_ext
 
3560
cat >>conftest.$ac_ext <<_ACEOF
 
3561
/* end confdefs.h.  */
 
3562
 
 
3563
/* Override any gcc2 internal prototype to avoid an error.  */
 
3564
#ifdef __cplusplus
 
3565
extern "C"
 
3566
#endif
 
3567
/* We use char because int might match the return type of a gcc2
 
3568
   builtin and then its argument prototype would still apply.  */
 
3569
char XOpenDisplay ();
 
3570
int
 
3571
main ()
 
3572
{
 
3573
XOpenDisplay ();
 
3574
  ;
 
3575
  return 0;
 
3576
}
 
3577
_ACEOF
 
3578
rm -f conftest.$ac_objext conftest$ac_exeext
 
3579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3580
  (eval $ac_link) 2>conftest.er1
 
3581
  ac_status=$?
 
3582
  grep -v '^ *+' conftest.er1 >conftest.err
 
3583
  rm -f conftest.er1
 
3584
  cat conftest.err >&5
 
3585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3586
  (exit $ac_status); } &&
 
3587
         { ac_try='test -z "$ac_c_werror_flag"
 
3588
                         || test ! -s conftest.err'
 
3589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3590
  (eval $ac_try) 2>&5
 
3591
  ac_status=$?
 
3592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3593
  (exit $ac_status); }; } &&
 
3594
         { ac_try='test -s conftest$ac_exeext'
 
3595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3596
  (eval $ac_try) 2>&5
 
3597
  ac_status=$?
 
3598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3599
  (exit $ac_status); }; }; then
 
3600
  :
 
3601
else
 
3602
  echo "$as_me: failed program was:" >&5
 
3603
sed 's/^/| /' conftest.$ac_ext >&5
 
3604
 
 
3605
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
3606
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
3607
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
3608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3609
else
 
3610
  ac_check_lib_save_LIBS=$LIBS
 
3611
LIBS="-ldnet  $LIBS"
 
3612
cat >conftest.$ac_ext <<_ACEOF
 
3613
/* confdefs.h.  */
 
3614
_ACEOF
 
3615
cat confdefs.h >>conftest.$ac_ext
 
3616
cat >>conftest.$ac_ext <<_ACEOF
 
3617
/* end confdefs.h.  */
 
3618
 
 
3619
/* Override any gcc2 internal prototype to avoid an error.  */
 
3620
#ifdef __cplusplus
 
3621
extern "C"
 
3622
#endif
 
3623
/* We use char because int might match the return type of a gcc2
 
3624
   builtin and then its argument prototype would still apply.  */
 
3625
char dnet_ntoa ();
 
3626
int
 
3627
main ()
 
3628
{
 
3629
dnet_ntoa ();
 
3630
  ;
 
3631
  return 0;
 
3632
}
 
3633
_ACEOF
 
3634
rm -f conftest.$ac_objext conftest$ac_exeext
 
3635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3636
  (eval $ac_link) 2>conftest.er1
 
3637
  ac_status=$?
 
3638
  grep -v '^ *+' conftest.er1 >conftest.err
 
3639
  rm -f conftest.er1
 
3640
  cat conftest.err >&5
 
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3642
  (exit $ac_status); } &&
 
3643
         { ac_try='test -z "$ac_c_werror_flag"
 
3644
                         || test ! -s conftest.err'
 
3645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3646
  (eval $ac_try) 2>&5
 
3647
  ac_status=$?
 
3648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3649
  (exit $ac_status); }; } &&
 
3650
         { ac_try='test -s conftest$ac_exeext'
 
3651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3652
  (eval $ac_try) 2>&5
 
3653
  ac_status=$?
 
3654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3655
  (exit $ac_status); }; }; then
 
3656
  ac_cv_lib_dnet_dnet_ntoa=yes
 
3657
else
 
3658
  echo "$as_me: failed program was:" >&5
 
3659
sed 's/^/| /' conftest.$ac_ext >&5
 
3660
 
 
3661
ac_cv_lib_dnet_dnet_ntoa=no
 
3662
fi
 
3663
rm -f conftest.err conftest.$ac_objext \
 
3664
      conftest$ac_exeext conftest.$ac_ext
 
3665
LIBS=$ac_check_lib_save_LIBS
 
3666
fi
 
3667
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
3668
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
3669
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
3670
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
3671
fi
 
3672
 
 
3673
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
3674
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
3675
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
3676
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
3677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3678
else
 
3679
  ac_check_lib_save_LIBS=$LIBS
 
3680
LIBS="-ldnet_stub  $LIBS"
 
3681
cat >conftest.$ac_ext <<_ACEOF
 
3682
/* confdefs.h.  */
 
3683
_ACEOF
 
3684
cat confdefs.h >>conftest.$ac_ext
 
3685
cat >>conftest.$ac_ext <<_ACEOF
 
3686
/* end confdefs.h.  */
 
3687
 
 
3688
/* Override any gcc2 internal prototype to avoid an error.  */
 
3689
#ifdef __cplusplus
 
3690
extern "C"
 
3691
#endif
 
3692
/* We use char because int might match the return type of a gcc2
 
3693
   builtin and then its argument prototype would still apply.  */
 
3694
char dnet_ntoa ();
 
3695
int
 
3696
main ()
 
3697
{
 
3698
dnet_ntoa ();
 
3699
  ;
 
3700
  return 0;
 
3701
}
 
3702
_ACEOF
 
3703
rm -f conftest.$ac_objext conftest$ac_exeext
 
3704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3705
  (eval $ac_link) 2>conftest.er1
 
3706
  ac_status=$?
 
3707
  grep -v '^ *+' conftest.er1 >conftest.err
 
3708
  rm -f conftest.er1
 
3709
  cat conftest.err >&5
 
3710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3711
  (exit $ac_status); } &&
 
3712
         { ac_try='test -z "$ac_c_werror_flag"
 
3713
                         || test ! -s conftest.err'
 
3714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3715
  (eval $ac_try) 2>&5
 
3716
  ac_status=$?
 
3717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3718
  (exit $ac_status); }; } &&
 
3719
         { ac_try='test -s conftest$ac_exeext'
 
3720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3721
  (eval $ac_try) 2>&5
 
3722
  ac_status=$?
 
3723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3724
  (exit $ac_status); }; }; then
 
3725
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
3726
else
 
3727
  echo "$as_me: failed program was:" >&5
 
3728
sed 's/^/| /' conftest.$ac_ext >&5
 
3729
 
 
3730
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
3731
fi
 
3732
rm -f conftest.err conftest.$ac_objext \
 
3733
      conftest$ac_exeext conftest.$ac_ext
 
3734
LIBS=$ac_check_lib_save_LIBS
 
3735
fi
 
3736
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
3737
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
3738
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
3739
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
3740
fi
 
3741
 
 
3742
    fi
 
3743
fi
 
3744
rm -f conftest.err conftest.$ac_objext \
 
3745
      conftest$ac_exeext conftest.$ac_ext
 
3746
    LIBS="$ac_xsave_LIBS"
 
3747
 
 
3748
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
3749
    # to get the SysV transport functions.
 
3750
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
3751
    # needs -lnsl.
 
3752
    # The nsl library prevents programs from opening the X display
 
3753
    # on Irix 5.2, according to T.E. Dickey.
 
3754
    # The functions gethostbyname, getservbyname, and inet_addr are
 
3755
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
3756
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
3757
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
3758
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
3759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3760
else
 
3761
  cat >conftest.$ac_ext <<_ACEOF
 
3762
/* confdefs.h.  */
 
3763
_ACEOF
 
3764
cat confdefs.h >>conftest.$ac_ext
 
3765
cat >>conftest.$ac_ext <<_ACEOF
 
3766
/* end confdefs.h.  */
 
3767
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
3768
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3769
#define gethostbyname innocuous_gethostbyname
 
3770
 
 
3771
/* System header to define __stub macros and hopefully few prototypes,
 
3772
    which can conflict with char gethostbyname (); below.
 
3773
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3774
    <limits.h> exists even on freestanding compilers.  */
 
3775
 
 
3776
#ifdef __STDC__
 
3777
# include <limits.h>
 
3778
#else
 
3779
# include <assert.h>
 
3780
#endif
 
3781
 
 
3782
#undef gethostbyname
 
3783
 
 
3784
/* Override any gcc2 internal prototype to avoid an error.  */
 
3785
#ifdef __cplusplus
 
3786
extern "C"
 
3787
{
 
3788
#endif
 
3789
/* We use char because int might match the return type of a gcc2
 
3790
   builtin and then its argument prototype would still apply.  */
 
3791
char gethostbyname ();
 
3792
/* The GNU C library defines this for functions which it implements
 
3793
    to always fail with ENOSYS.  Some functions are actually named
 
3794
    something starting with __ and the normal name is an alias.  */
 
3795
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
3796
choke me
 
3797
#else
 
3798
char (*f) () = gethostbyname;
 
3799
#endif
 
3800
#ifdef __cplusplus
 
3801
}
 
3802
#endif
 
3803
 
 
3804
int
 
3805
main ()
 
3806
{
 
3807
return f != gethostbyname;
 
3808
  ;
 
3809
  return 0;
 
3810
}
 
3811
_ACEOF
 
3812
rm -f conftest.$ac_objext conftest$ac_exeext
 
3813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3814
  (eval $ac_link) 2>conftest.er1
 
3815
  ac_status=$?
 
3816
  grep -v '^ *+' conftest.er1 >conftest.err
 
3817
  rm -f conftest.er1
 
3818
  cat conftest.err >&5
 
3819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3820
  (exit $ac_status); } &&
 
3821
         { ac_try='test -z "$ac_c_werror_flag"
 
3822
                         || test ! -s conftest.err'
 
3823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3824
  (eval $ac_try) 2>&5
 
3825
  ac_status=$?
 
3826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3827
  (exit $ac_status); }; } &&
 
3828
         { ac_try='test -s conftest$ac_exeext'
 
3829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3830
  (eval $ac_try) 2>&5
 
3831
  ac_status=$?
 
3832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3833
  (exit $ac_status); }; }; then
 
3834
  ac_cv_func_gethostbyname=yes
 
3835
else
 
3836
  echo "$as_me: failed program was:" >&5
 
3837
sed 's/^/| /' conftest.$ac_ext >&5
 
3838
 
 
3839
ac_cv_func_gethostbyname=no
 
3840
fi
 
3841
rm -f conftest.err conftest.$ac_objext \
 
3842
      conftest$ac_exeext conftest.$ac_ext
 
3843
fi
 
3844
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
3845
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
3846
 
 
3847
    if test $ac_cv_func_gethostbyname = no; then
 
3848
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
3849
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
3850
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
3851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3852
else
 
3853
  ac_check_lib_save_LIBS=$LIBS
 
3854
LIBS="-lnsl  $LIBS"
 
3855
cat >conftest.$ac_ext <<_ACEOF
 
3856
/* confdefs.h.  */
 
3857
_ACEOF
 
3858
cat confdefs.h >>conftest.$ac_ext
 
3859
cat >>conftest.$ac_ext <<_ACEOF
 
3860
/* end confdefs.h.  */
 
3861
 
 
3862
/* Override any gcc2 internal prototype to avoid an error.  */
 
3863
#ifdef __cplusplus
 
3864
extern "C"
 
3865
#endif
 
3866
/* We use char because int might match the return type of a gcc2
 
3867
   builtin and then its argument prototype would still apply.  */
 
3868
char gethostbyname ();
 
3869
int
 
3870
main ()
 
3871
{
 
3872
gethostbyname ();
 
3873
  ;
 
3874
  return 0;
 
3875
}
 
3876
_ACEOF
 
3877
rm -f conftest.$ac_objext conftest$ac_exeext
 
3878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3879
  (eval $ac_link) 2>conftest.er1
 
3880
  ac_status=$?
 
3881
  grep -v '^ *+' conftest.er1 >conftest.err
 
3882
  rm -f conftest.er1
 
3883
  cat conftest.err >&5
 
3884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3885
  (exit $ac_status); } &&
 
3886
         { ac_try='test -z "$ac_c_werror_flag"
 
3887
                         || test ! -s conftest.err'
 
3888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3889
  (eval $ac_try) 2>&5
 
3890
  ac_status=$?
 
3891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3892
  (exit $ac_status); }; } &&
 
3893
         { ac_try='test -s conftest$ac_exeext'
 
3894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3895
  (eval $ac_try) 2>&5
 
3896
  ac_status=$?
 
3897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3898
  (exit $ac_status); }; }; then
 
3899
  ac_cv_lib_nsl_gethostbyname=yes
 
3900
else
 
3901
  echo "$as_me: failed program was:" >&5
 
3902
sed 's/^/| /' conftest.$ac_ext >&5
 
3903
 
 
3904
ac_cv_lib_nsl_gethostbyname=no
 
3905
fi
 
3906
rm -f conftest.err conftest.$ac_objext \
 
3907
      conftest$ac_exeext conftest.$ac_ext
 
3908
LIBS=$ac_check_lib_save_LIBS
 
3909
fi
 
3910
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
3911
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
3912
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
3913
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
3914
fi
 
3915
 
 
3916
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
3917
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
3918
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
3919
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
3920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3921
else
 
3922
  ac_check_lib_save_LIBS=$LIBS
 
3923
LIBS="-lbsd  $LIBS"
 
3924
cat >conftest.$ac_ext <<_ACEOF
 
3925
/* confdefs.h.  */
 
3926
_ACEOF
 
3927
cat confdefs.h >>conftest.$ac_ext
 
3928
cat >>conftest.$ac_ext <<_ACEOF
 
3929
/* end confdefs.h.  */
 
3930
 
 
3931
/* Override any gcc2 internal prototype to avoid an error.  */
 
3932
#ifdef __cplusplus
 
3933
extern "C"
 
3934
#endif
 
3935
/* We use char because int might match the return type of a gcc2
 
3936
   builtin and then its argument prototype would still apply.  */
 
3937
char gethostbyname ();
 
3938
int
 
3939
main ()
 
3940
{
 
3941
gethostbyname ();
 
3942
  ;
 
3943
  return 0;
 
3944
}
 
3945
_ACEOF
 
3946
rm -f conftest.$ac_objext conftest$ac_exeext
 
3947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3948
  (eval $ac_link) 2>conftest.er1
 
3949
  ac_status=$?
 
3950
  grep -v '^ *+' conftest.er1 >conftest.err
 
3951
  rm -f conftest.er1
 
3952
  cat conftest.err >&5
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); } &&
 
3955
         { ac_try='test -z "$ac_c_werror_flag"
 
3956
                         || test ! -s conftest.err'
 
3957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3958
  (eval $ac_try) 2>&5
 
3959
  ac_status=$?
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); }; } &&
 
3962
         { ac_try='test -s conftest$ac_exeext'
 
3963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3964
  (eval $ac_try) 2>&5
 
3965
  ac_status=$?
 
3966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3967
  (exit $ac_status); }; }; then
 
3968
  ac_cv_lib_bsd_gethostbyname=yes
 
3969
else
 
3970
  echo "$as_me: failed program was:" >&5
 
3971
sed 's/^/| /' conftest.$ac_ext >&5
 
3972
 
 
3973
ac_cv_lib_bsd_gethostbyname=no
 
3974
fi
 
3975
rm -f conftest.err conftest.$ac_objext \
 
3976
      conftest$ac_exeext conftest.$ac_ext
 
3977
LIBS=$ac_check_lib_save_LIBS
 
3978
fi
 
3979
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
3980
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
3981
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
3982
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
3983
fi
 
3984
 
 
3985
      fi
 
3986
    fi
 
3987
 
 
3988
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
3989
    # socket/setsockopt and other routines are undefined under SCO ODT
 
3990
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
3991
    # on later versions), says Simon Leinen: it contains gethostby*
 
3992
    # variants that don't use the name server (or something).  -lsocket
 
3993
    # must be given before -lnsl if both are needed.  We assume that
 
3994
    # if connect needs -lnsl, so does gethostbyname.
 
3995
    echo "$as_me:$LINENO: checking for connect" >&5
 
3996
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
3997
if test "${ac_cv_func_connect+set}" = set; then
 
3998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3999
else
 
4000
  cat >conftest.$ac_ext <<_ACEOF
 
4001
/* confdefs.h.  */
 
4002
_ACEOF
 
4003
cat confdefs.h >>conftest.$ac_ext
 
4004
cat >>conftest.$ac_ext <<_ACEOF
 
4005
/* end confdefs.h.  */
 
4006
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
4007
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4008
#define connect innocuous_connect
 
4009
 
 
4010
/* System header to define __stub macros and hopefully few prototypes,
 
4011
    which can conflict with char connect (); below.
 
4012
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4013
    <limits.h> exists even on freestanding compilers.  */
 
4014
 
 
4015
#ifdef __STDC__
 
4016
# include <limits.h>
 
4017
#else
 
4018
# include <assert.h>
 
4019
#endif
 
4020
 
 
4021
#undef connect
 
4022
 
 
4023
/* Override any gcc2 internal prototype to avoid an error.  */
 
4024
#ifdef __cplusplus
 
4025
extern "C"
 
4026
{
 
4027
#endif
 
4028
/* We use char because int might match the return type of a gcc2
 
4029
   builtin and then its argument prototype would still apply.  */
 
4030
char connect ();
 
4031
/* The GNU C library defines this for functions which it implements
 
4032
    to always fail with ENOSYS.  Some functions are actually named
 
4033
    something starting with __ and the normal name is an alias.  */
 
4034
#if defined (__stub_connect) || defined (__stub___connect)
 
4035
choke me
 
4036
#else
 
4037
char (*f) () = connect;
 
4038
#endif
 
4039
#ifdef __cplusplus
 
4040
}
 
4041
#endif
 
4042
 
 
4043
int
 
4044
main ()
 
4045
{
 
4046
return f != connect;
 
4047
  ;
 
4048
  return 0;
 
4049
}
 
4050
_ACEOF
 
4051
rm -f conftest.$ac_objext conftest$ac_exeext
 
4052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4053
  (eval $ac_link) 2>conftest.er1
 
4054
  ac_status=$?
 
4055
  grep -v '^ *+' conftest.er1 >conftest.err
 
4056
  rm -f conftest.er1
 
4057
  cat conftest.err >&5
 
4058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4059
  (exit $ac_status); } &&
 
4060
         { ac_try='test -z "$ac_c_werror_flag"
 
4061
                         || test ! -s conftest.err'
 
4062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4063
  (eval $ac_try) 2>&5
 
4064
  ac_status=$?
 
4065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4066
  (exit $ac_status); }; } &&
 
4067
         { ac_try='test -s conftest$ac_exeext'
 
4068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4069
  (eval $ac_try) 2>&5
 
4070
  ac_status=$?
 
4071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4072
  (exit $ac_status); }; }; then
 
4073
  ac_cv_func_connect=yes
 
4074
else
 
4075
  echo "$as_me: failed program was:" >&5
 
4076
sed 's/^/| /' conftest.$ac_ext >&5
 
4077
 
 
4078
ac_cv_func_connect=no
 
4079
fi
 
4080
rm -f conftest.err conftest.$ac_objext \
 
4081
      conftest$ac_exeext conftest.$ac_ext
 
4082
fi
 
4083
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
4084
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
4085
 
 
4086
    if test $ac_cv_func_connect = no; then
 
4087
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
4088
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
4089
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
4090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4091
else
 
4092
  ac_check_lib_save_LIBS=$LIBS
 
4093
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
4094
cat >conftest.$ac_ext <<_ACEOF
 
4095
/* confdefs.h.  */
 
4096
_ACEOF
 
4097
cat confdefs.h >>conftest.$ac_ext
 
4098
cat >>conftest.$ac_ext <<_ACEOF
 
4099
/* end confdefs.h.  */
 
4100
 
 
4101
/* Override any gcc2 internal prototype to avoid an error.  */
 
4102
#ifdef __cplusplus
 
4103
extern "C"
 
4104
#endif
 
4105
/* We use char because int might match the return type of a gcc2
 
4106
   builtin and then its argument prototype would still apply.  */
 
4107
char connect ();
 
4108
int
 
4109
main ()
 
4110
{
 
4111
connect ();
 
4112
  ;
 
4113
  return 0;
 
4114
}
 
4115
_ACEOF
 
4116
rm -f conftest.$ac_objext conftest$ac_exeext
 
4117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4118
  (eval $ac_link) 2>conftest.er1
 
4119
  ac_status=$?
 
4120
  grep -v '^ *+' conftest.er1 >conftest.err
 
4121
  rm -f conftest.er1
 
4122
  cat conftest.err >&5
 
4123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4124
  (exit $ac_status); } &&
 
4125
         { ac_try='test -z "$ac_c_werror_flag"
 
4126
                         || test ! -s conftest.err'
 
4127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4128
  (eval $ac_try) 2>&5
 
4129
  ac_status=$?
 
4130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4131
  (exit $ac_status); }; } &&
 
4132
         { ac_try='test -s conftest$ac_exeext'
 
4133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4134
  (eval $ac_try) 2>&5
 
4135
  ac_status=$?
 
4136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4137
  (exit $ac_status); }; }; then
 
4138
  ac_cv_lib_socket_connect=yes
 
4139
else
 
4140
  echo "$as_me: failed program was:" >&5
 
4141
sed 's/^/| /' conftest.$ac_ext >&5
 
4142
 
 
4143
ac_cv_lib_socket_connect=no
 
4144
fi
 
4145
rm -f conftest.err conftest.$ac_objext \
 
4146
      conftest$ac_exeext conftest.$ac_ext
 
4147
LIBS=$ac_check_lib_save_LIBS
 
4148
fi
 
4149
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
4150
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
4151
if test $ac_cv_lib_socket_connect = yes; then
 
4152
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
4153
fi
 
4154
 
 
4155
    fi
 
4156
 
 
4157
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
4158
    echo "$as_me:$LINENO: checking for remove" >&5
 
4159
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
4160
if test "${ac_cv_func_remove+set}" = set; then
 
4161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4162
else
 
4163
  cat >conftest.$ac_ext <<_ACEOF
 
4164
/* confdefs.h.  */
 
4165
_ACEOF
 
4166
cat confdefs.h >>conftest.$ac_ext
 
4167
cat >>conftest.$ac_ext <<_ACEOF
 
4168
/* end confdefs.h.  */
 
4169
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
4170
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4171
#define remove innocuous_remove
 
4172
 
 
4173
/* System header to define __stub macros and hopefully few prototypes,
 
4174
    which can conflict with char remove (); below.
 
4175
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4176
    <limits.h> exists even on freestanding compilers.  */
 
4177
 
 
4178
#ifdef __STDC__
 
4179
# include <limits.h>
 
4180
#else
 
4181
# include <assert.h>
 
4182
#endif
 
4183
 
 
4184
#undef remove
 
4185
 
 
4186
/* Override any gcc2 internal prototype to avoid an error.  */
 
4187
#ifdef __cplusplus
 
4188
extern "C"
 
4189
{
 
4190
#endif
 
4191
/* We use char because int might match the return type of a gcc2
 
4192
   builtin and then its argument prototype would still apply.  */
 
4193
char remove ();
 
4194
/* The GNU C library defines this for functions which it implements
 
4195
    to always fail with ENOSYS.  Some functions are actually named
 
4196
    something starting with __ and the normal name is an alias.  */
 
4197
#if defined (__stub_remove) || defined (__stub___remove)
 
4198
choke me
 
4199
#else
 
4200
char (*f) () = remove;
 
4201
#endif
 
4202
#ifdef __cplusplus
 
4203
}
 
4204
#endif
 
4205
 
 
4206
int
 
4207
main ()
 
4208
{
 
4209
return f != remove;
 
4210
  ;
 
4211
  return 0;
 
4212
}
 
4213
_ACEOF
 
4214
rm -f conftest.$ac_objext conftest$ac_exeext
 
4215
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4216
  (eval $ac_link) 2>conftest.er1
 
4217
  ac_status=$?
 
4218
  grep -v '^ *+' conftest.er1 >conftest.err
 
4219
  rm -f conftest.er1
 
4220
  cat conftest.err >&5
 
4221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4222
  (exit $ac_status); } &&
 
4223
         { ac_try='test -z "$ac_c_werror_flag"
 
4224
                         || test ! -s conftest.err'
 
4225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4226
  (eval $ac_try) 2>&5
 
4227
  ac_status=$?
 
4228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4229
  (exit $ac_status); }; } &&
 
4230
         { ac_try='test -s conftest$ac_exeext'
 
4231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4232
  (eval $ac_try) 2>&5
 
4233
  ac_status=$?
 
4234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4235
  (exit $ac_status); }; }; then
 
4236
  ac_cv_func_remove=yes
 
4237
else
 
4238
  echo "$as_me: failed program was:" >&5
 
4239
sed 's/^/| /' conftest.$ac_ext >&5
 
4240
 
 
4241
ac_cv_func_remove=no
 
4242
fi
 
4243
rm -f conftest.err conftest.$ac_objext \
 
4244
      conftest$ac_exeext conftest.$ac_ext
 
4245
fi
 
4246
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
4247
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
4248
 
 
4249
    if test $ac_cv_func_remove = no; then
 
4250
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
4251
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
4252
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
4253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4254
else
 
4255
  ac_check_lib_save_LIBS=$LIBS
 
4256
LIBS="-lposix  $LIBS"
 
4257
cat >conftest.$ac_ext <<_ACEOF
 
4258
/* confdefs.h.  */
 
4259
_ACEOF
 
4260
cat confdefs.h >>conftest.$ac_ext
 
4261
cat >>conftest.$ac_ext <<_ACEOF
 
4262
/* end confdefs.h.  */
 
4263
 
 
4264
/* Override any gcc2 internal prototype to avoid an error.  */
 
4265
#ifdef __cplusplus
 
4266
extern "C"
 
4267
#endif
 
4268
/* We use char because int might match the return type of a gcc2
 
4269
   builtin and then its argument prototype would still apply.  */
 
4270
char remove ();
 
4271
int
 
4272
main ()
 
4273
{
 
4274
remove ();
 
4275
  ;
 
4276
  return 0;
 
4277
}
 
4278
_ACEOF
 
4279
rm -f conftest.$ac_objext conftest$ac_exeext
 
4280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4281
  (eval $ac_link) 2>conftest.er1
 
4282
  ac_status=$?
 
4283
  grep -v '^ *+' conftest.er1 >conftest.err
 
4284
  rm -f conftest.er1
 
4285
  cat conftest.err >&5
 
4286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4287
  (exit $ac_status); } &&
 
4288
         { ac_try='test -z "$ac_c_werror_flag"
 
4289
                         || test ! -s conftest.err'
 
4290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4291
  (eval $ac_try) 2>&5
 
4292
  ac_status=$?
 
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4294
  (exit $ac_status); }; } &&
 
4295
         { ac_try='test -s conftest$ac_exeext'
 
4296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4297
  (eval $ac_try) 2>&5
 
4298
  ac_status=$?
 
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4300
  (exit $ac_status); }; }; then
 
4301
  ac_cv_lib_posix_remove=yes
 
4302
else
 
4303
  echo "$as_me: failed program was:" >&5
 
4304
sed 's/^/| /' conftest.$ac_ext >&5
 
4305
 
 
4306
ac_cv_lib_posix_remove=no
 
4307
fi
 
4308
rm -f conftest.err conftest.$ac_objext \
 
4309
      conftest$ac_exeext conftest.$ac_ext
 
4310
LIBS=$ac_check_lib_save_LIBS
 
4311
fi
 
4312
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
4313
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
4314
if test $ac_cv_lib_posix_remove = yes; then
 
4315
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
4316
fi
 
4317
 
 
4318
    fi
 
4319
 
 
4320
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
4321
    echo "$as_me:$LINENO: checking for shmat" >&5
 
4322
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
4323
if test "${ac_cv_func_shmat+set}" = set; then
 
4324
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4325
else
 
4326
  cat >conftest.$ac_ext <<_ACEOF
 
4327
/* confdefs.h.  */
 
4328
_ACEOF
 
4329
cat confdefs.h >>conftest.$ac_ext
 
4330
cat >>conftest.$ac_ext <<_ACEOF
 
4331
/* end confdefs.h.  */
 
4332
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
4333
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4334
#define shmat innocuous_shmat
 
4335
 
 
4336
/* System header to define __stub macros and hopefully few prototypes,
 
4337
    which can conflict with char shmat (); below.
 
4338
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4339
    <limits.h> exists even on freestanding compilers.  */
 
4340
 
 
4341
#ifdef __STDC__
 
4342
# include <limits.h>
 
4343
#else
 
4344
# include <assert.h>
 
4345
#endif
 
4346
 
 
4347
#undef shmat
 
4348
 
 
4349
/* Override any gcc2 internal prototype to avoid an error.  */
 
4350
#ifdef __cplusplus
 
4351
extern "C"
 
4352
{
 
4353
#endif
 
4354
/* We use char because int might match the return type of a gcc2
 
4355
   builtin and then its argument prototype would still apply.  */
 
4356
char shmat ();
 
4357
/* The GNU C library defines this for functions which it implements
 
4358
    to always fail with ENOSYS.  Some functions are actually named
 
4359
    something starting with __ and the normal name is an alias.  */
 
4360
#if defined (__stub_shmat) || defined (__stub___shmat)
 
4361
choke me
 
4362
#else
 
4363
char (*f) () = shmat;
 
4364
#endif
 
4365
#ifdef __cplusplus
 
4366
}
 
4367
#endif
 
4368
 
 
4369
int
 
4370
main ()
 
4371
{
 
4372
return f != shmat;
 
4373
  ;
 
4374
  return 0;
 
4375
}
 
4376
_ACEOF
 
4377
rm -f conftest.$ac_objext conftest$ac_exeext
 
4378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4379
  (eval $ac_link) 2>conftest.er1
 
4380
  ac_status=$?
 
4381
  grep -v '^ *+' conftest.er1 >conftest.err
 
4382
  rm -f conftest.er1
 
4383
  cat conftest.err >&5
 
4384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4385
  (exit $ac_status); } &&
 
4386
         { ac_try='test -z "$ac_c_werror_flag"
 
4387
                         || test ! -s conftest.err'
 
4388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4389
  (eval $ac_try) 2>&5
 
4390
  ac_status=$?
 
4391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4392
  (exit $ac_status); }; } &&
 
4393
         { ac_try='test -s conftest$ac_exeext'
 
4394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4395
  (eval $ac_try) 2>&5
 
4396
  ac_status=$?
 
4397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4398
  (exit $ac_status); }; }; then
 
4399
  ac_cv_func_shmat=yes
 
4400
else
 
4401
  echo "$as_me: failed program was:" >&5
 
4402
sed 's/^/| /' conftest.$ac_ext >&5
 
4403
 
 
4404
ac_cv_func_shmat=no
 
4405
fi
 
4406
rm -f conftest.err conftest.$ac_objext \
 
4407
      conftest$ac_exeext conftest.$ac_ext
 
4408
fi
 
4409
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
4410
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
4411
 
 
4412
    if test $ac_cv_func_shmat = no; then
 
4413
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
4414
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
4415
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
4416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4417
else
 
4418
  ac_check_lib_save_LIBS=$LIBS
 
4419
LIBS="-lipc  $LIBS"
 
4420
cat >conftest.$ac_ext <<_ACEOF
 
4421
/* confdefs.h.  */
 
4422
_ACEOF
 
4423
cat confdefs.h >>conftest.$ac_ext
 
4424
cat >>conftest.$ac_ext <<_ACEOF
 
4425
/* end confdefs.h.  */
 
4426
 
 
4427
/* Override any gcc2 internal prototype to avoid an error.  */
 
4428
#ifdef __cplusplus
 
4429
extern "C"
 
4430
#endif
 
4431
/* We use char because int might match the return type of a gcc2
 
4432
   builtin and then its argument prototype would still apply.  */
 
4433
char shmat ();
 
4434
int
 
4435
main ()
 
4436
{
 
4437
shmat ();
 
4438
  ;
 
4439
  return 0;
 
4440
}
 
4441
_ACEOF
 
4442
rm -f conftest.$ac_objext conftest$ac_exeext
 
4443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4444
  (eval $ac_link) 2>conftest.er1
 
4445
  ac_status=$?
 
4446
  grep -v '^ *+' conftest.er1 >conftest.err
 
4447
  rm -f conftest.er1
 
4448
  cat conftest.err >&5
 
4449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4450
  (exit $ac_status); } &&
 
4451
         { ac_try='test -z "$ac_c_werror_flag"
 
4452
                         || test ! -s conftest.err'
 
4453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4454
  (eval $ac_try) 2>&5
 
4455
  ac_status=$?
 
4456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4457
  (exit $ac_status); }; } &&
 
4458
         { ac_try='test -s conftest$ac_exeext'
 
4459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4460
  (eval $ac_try) 2>&5
 
4461
  ac_status=$?
 
4462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4463
  (exit $ac_status); }; }; then
 
4464
  ac_cv_lib_ipc_shmat=yes
 
4465
else
 
4466
  echo "$as_me: failed program was:" >&5
 
4467
sed 's/^/| /' conftest.$ac_ext >&5
 
4468
 
 
4469
ac_cv_lib_ipc_shmat=no
 
4470
fi
 
4471
rm -f conftest.err conftest.$ac_objext \
 
4472
      conftest$ac_exeext conftest.$ac_ext
 
4473
LIBS=$ac_check_lib_save_LIBS
 
4474
fi
 
4475
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
4476
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
4477
if test $ac_cv_lib_ipc_shmat = yes; then
 
4478
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
4479
fi
 
4480
 
 
4481
    fi
 
4482
  fi
 
4483
 
 
4484
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
4485
  ac_save_LDFLAGS=$LDFLAGS
 
4486
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
4487
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
4488
  # check for ICE first), but we must link in the order -lSM -lICE or
 
4489
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
4490
  # These have to be linked with before -lX11, unlike the other
 
4491
  # libraries we check for below, so use a different variable.
 
4492
  # John Interrante, Karl Berry
 
4493
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
4494
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
4495
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
4496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4497
else
 
4498
  ac_check_lib_save_LIBS=$LIBS
 
4499
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
4500
cat >conftest.$ac_ext <<_ACEOF
 
4501
/* confdefs.h.  */
 
4502
_ACEOF
 
4503
cat confdefs.h >>conftest.$ac_ext
 
4504
cat >>conftest.$ac_ext <<_ACEOF
 
4505
/* end confdefs.h.  */
 
4506
 
 
4507
/* Override any gcc2 internal prototype to avoid an error.  */
 
4508
#ifdef __cplusplus
 
4509
extern "C"
 
4510
#endif
 
4511
/* We use char because int might match the return type of a gcc2
 
4512
   builtin and then its argument prototype would still apply.  */
 
4513
char IceConnectionNumber ();
 
4514
int
 
4515
main ()
 
4516
{
 
4517
IceConnectionNumber ();
 
4518
  ;
 
4519
  return 0;
 
4520
}
 
4521
_ACEOF
 
4522
rm -f conftest.$ac_objext conftest$ac_exeext
 
4523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4524
  (eval $ac_link) 2>conftest.er1
 
4525
  ac_status=$?
 
4526
  grep -v '^ *+' conftest.er1 >conftest.err
 
4527
  rm -f conftest.er1
 
4528
  cat conftest.err >&5
 
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4530
  (exit $ac_status); } &&
 
4531
         { ac_try='test -z "$ac_c_werror_flag"
 
4532
                         || test ! -s conftest.err'
 
4533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4534
  (eval $ac_try) 2>&5
 
4535
  ac_status=$?
 
4536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4537
  (exit $ac_status); }; } &&
 
4538
         { ac_try='test -s conftest$ac_exeext'
 
4539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4540
  (eval $ac_try) 2>&5
 
4541
  ac_status=$?
 
4542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4543
  (exit $ac_status); }; }; then
 
4544
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
4545
else
 
4546
  echo "$as_me: failed program was:" >&5
 
4547
sed 's/^/| /' conftest.$ac_ext >&5
 
4548
 
 
4549
ac_cv_lib_ICE_IceConnectionNumber=no
 
4550
fi
 
4551
rm -f conftest.err conftest.$ac_objext \
 
4552
      conftest$ac_exeext conftest.$ac_ext
 
4553
LIBS=$ac_check_lib_save_LIBS
 
4554
fi
 
4555
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
4556
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
4557
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
4558
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
4559
fi
 
4560
 
 
4561
  LDFLAGS=$ac_save_LDFLAGS
 
4562
 
 
4563
fi
 
4564
 
 
4565
 
 
4566
am__api_version="1.8"
 
4567
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
4568
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
4569
# Just in case
 
4570
sleep 1
 
4571
echo timestamp > conftest.file
 
4572
# Do `set' in a subshell so we don't clobber the current shell's
 
4573
# arguments.  Must try -L first in case configure is actually a
 
4574
# symlink; some systems play weird games with the mod time of symlinks
 
4575
# (eg FreeBSD returns the mod time of the symlink's containing
 
4576
# directory).
 
4577
if (
 
4578
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
4579
   if test "$*" = "X"; then
 
4580
      # -L didn't work.
 
4581
      set X `ls -t $srcdir/configure conftest.file`
 
4582
   fi
 
4583
   rm -f conftest.file
 
4584
   if test "$*" != "X $srcdir/configure conftest.file" \
 
4585
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
4586
 
 
4587
      # If neither matched, then we have a broken ls.  This can happen
 
4588
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
4589
      # broken ls alias from the environment.  This has actually
 
4590
      # happened.  Such a system could not be considered "sane".
 
4591
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
4592
alias in your environment" >&5
 
4593
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
4594
alias in your environment" >&2;}
 
4595
   { (exit 1); exit 1; }; }
 
4596
   fi
 
4597
 
 
4598
   test "$2" = conftest.file
 
4599
   )
 
4600
then
 
4601
   # Ok.
 
4602
   :
 
4603
else
 
4604
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
4605
Check your system clock" >&5
 
4606
echo "$as_me: error: newly created file is older than distributed files!
 
4607
Check your system clock" >&2;}
 
4608
   { (exit 1); exit 1; }; }
 
4609
fi
 
4610
echo "$as_me:$LINENO: result: yes" >&5
 
4611
echo "${ECHO_T}yes" >&6
 
4612
test "$program_prefix" != NONE &&
 
4613
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
4614
# Use a double $ so make ignores it.
 
4615
test "$program_suffix" != NONE &&
 
4616
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
4617
# Double any \ or $.  echo might interpret backslashes.
 
4618
# By default was `s,x,x', remove it if useless.
 
4619
cat <<\_ACEOF >conftest.sed
 
4620
s/[\\$]/&&/g;s/;s,x,x,$//
 
4621
_ACEOF
 
4622
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
4623
rm conftest.sed
 
4624
 
 
4625
# expand $ac_aux_dir to an absolute path
 
4626
am_aux_dir=`cd $ac_aux_dir && pwd`
 
4627
 
 
4628
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
4629
# Use eval to expand $SHELL
 
4630
if eval "$MISSING --run true"; then
 
4631
  am_missing_run="$MISSING --run "
 
4632
else
 
4633
  am_missing_run=
 
4634
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
4635
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
4636
fi
 
4637
 
 
4638
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
4639
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
4640
  # argument.  Indeed, we sometimes output rules like
 
4641
  #   $(mkdir_p) $(somedir)
 
4642
  # where $(somedir) is conditionally defined.
 
4643
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
4644
  # expensive solution, as it forces Make to start a sub-shell.)
 
4645
  mkdir_p='mkdir -p -- .'
 
4646
else
 
4647
  # On NextStep and OpenStep, the `mkdir' command does not
 
4648
  # recognize any option.  It will interpret all options as
 
4649
  # directories to create, and then abort because `.' already
 
4650
  # exists.
 
4651
  for d in ./-p ./--version;
 
4652
  do
 
4653
    test -d $d && rmdir $d
 
4654
  done
 
4655
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
4656
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
4657
    mkdir_p='$(mkinstalldirs)'
 
4658
  else
 
4659
    mkdir_p='$(install_sh) -d'
 
4660
  fi
 
4661
fi
 
4662
 
 
4663
for ac_prog in gawk mawk nawk awk
 
4664
do
 
4665
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4666
set dummy $ac_prog; ac_word=$2
 
4667
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4668
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4669
if test "${ac_cv_prog_AWK+set}" = set; then
 
4670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4671
else
 
4672
  if test -n "$AWK"; then
 
4673
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4674
else
 
4675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4676
for as_dir in $PATH
 
4677
do
 
4678
  IFS=$as_save_IFS
 
4679
  test -z "$as_dir" && as_dir=.
 
4680
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4681
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4682
    ac_cv_prog_AWK="$ac_prog"
 
4683
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4684
    break 2
 
4685
  fi
 
4686
done
 
4687
done
 
4688
 
 
4689
fi
 
4690
fi
 
4691
AWK=$ac_cv_prog_AWK
 
4692
if test -n "$AWK"; then
 
4693
  echo "$as_me:$LINENO: result: $AWK" >&5
 
4694
echo "${ECHO_T}$AWK" >&6
 
4695
else
 
4696
  echo "$as_me:$LINENO: result: no" >&5
 
4697
echo "${ECHO_T}no" >&6
 
4698
fi
 
4699
 
 
4700
  test -n "$AWK" && break
 
4701
done
 
4702
 
 
4703
rm -rf .tst 2>/dev/null
 
4704
mkdir .tst 2>/dev/null
 
4705
if test -d .tst; then
 
4706
  am__leading_dot=.
 
4707
else
 
4708
  am__leading_dot=_
 
4709
fi
 
4710
rmdir .tst 2>/dev/null
 
4711
 
 
4712
DEPDIR="${am__leading_dot}deps"
 
4713
 
 
4714
          ac_config_commands="$ac_config_commands depfiles"
 
4715
 
 
4716
 
 
4717
am_make=${MAKE-make}
 
4718
cat > confinc << 'END'
 
4719
am__doit:
 
4720
        @echo done
 
4721
.PHONY: am__doit
 
4722
END
 
4723
# If we don't find an include directive, just comment out the code.
 
4724
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
4725
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
4726
am__include="#"
 
4727
am__quote=
 
4728
_am_result=none
 
4729
# First try GNU make style include.
 
4730
echo "include confinc" > confmf
 
4731
# We grep out `Entering directory' and `Leaving directory'
 
4732
# messages which can occur if `w' ends up in MAKEFLAGS.
 
4733
# In particular we don't look at `^make:' because GNU make might
 
4734
# be invoked under some other name (usually "gmake"), in which
 
4735
# case it prints its new name instead of `make'.
 
4736
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
4737
   am__include=include
 
4738
   am__quote=
 
4739
   _am_result=GNU
 
4740
fi
 
4741
# Now try BSD make style include.
 
4742
if test "$am__include" = "#"; then
 
4743
   echo '.include "confinc"' > confmf
 
4744
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
4745
      am__include=.include
 
4746
      am__quote="\""
 
4747
      _am_result=BSD
 
4748
   fi
 
4749
fi
 
4750
 
 
4751
 
 
4752
echo "$as_me:$LINENO: result: $_am_result" >&5
 
4753
echo "${ECHO_T}$_am_result" >&6
 
4754
rm -f confinc confmf
 
4755
 
 
4756
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
4757
if test "${enable_dependency_tracking+set}" = set; then
 
4758
  enableval="$enable_dependency_tracking"
 
4759
 
 
4760
fi;
 
4761
if test "x$enable_dependency_tracking" != xno; then
 
4762
  am_depcomp="$ac_aux_dir/depcomp"
 
4763
  AMDEPBACKSLASH='\'
 
4764
fi
 
4765
 
 
4766
 
 
4767
if test "x$enable_dependency_tracking" != xno; then
 
4768
  AMDEP_TRUE=
 
4769
  AMDEP_FALSE='#'
 
4770
else
 
4771
  AMDEP_TRUE='#'
 
4772
  AMDEP_FALSE=
 
4773
fi
 
4774
 
 
4775
 
 
4776
 
 
4777
# test to see if srcdir already configured
 
4778
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
4779
   test -f $srcdir/config.status; then
 
4780
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
4781
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
4782
   { (exit 1); exit 1; }; }
 
4783
fi
 
4784
 
 
4785
# test whether we have cygpath
 
4786
if test -z "$CYGPATH_W"; then
 
4787
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
4788
    CYGPATH_W='cygpath -w'
 
4789
  else
 
4790
    CYGPATH_W=echo
 
4791
  fi
 
4792
fi
 
4793
 
 
4794
 
 
4795
# Define the identity of the package.
 
4796
 PACKAGE="DevIL"
 
4797
 VERSION=$DEVIL_MAJOR.$DEVIL_MINOR.$DEVIL_REVISION
 
4798
 
 
4799
 
 
4800
cat >>confdefs.h <<_ACEOF
 
4801
#define PACKAGE "$PACKAGE"
 
4802
_ACEOF
 
4803
 
 
4804
 
 
4805
cat >>confdefs.h <<_ACEOF
 
4806
#define VERSION "$VERSION"
 
4807
_ACEOF
 
4808
 
 
4809
# Some tools Automake needs.
 
4810
 
 
4811
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
4812
 
 
4813
 
 
4814
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
4815
 
 
4816
 
 
4817
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
4818
 
 
4819
 
 
4820
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
4821
 
 
4822
 
 
4823
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
4824
 
 
4825
 
 
4826
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
4827
 
 
4828
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
4829
 
 
4830
# Installed binaries are usually stripped using `strip' when the user
 
4831
# run `make install-strip'.  However `strip' might not be the right
 
4832
# tool to use in cross-compilation environments, therefore Automake
 
4833
# will honor the `STRIP' environment variable to overrule this program.
 
4834
if test "$cross_compiling" != no; then
 
4835
  if test -n "$ac_tool_prefix"; then
 
4836
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4837
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4838
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4839
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4840
if test "${ac_cv_prog_STRIP+set}" = set; then
 
4841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4842
else
 
4843
  if test -n "$STRIP"; then
 
4844
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4845
else
 
4846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4847
for as_dir in $PATH
 
4848
do
 
4849
  IFS=$as_save_IFS
 
4850
  test -z "$as_dir" && as_dir=.
 
4851
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4852
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4853
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4854
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4855
    break 2
 
4856
  fi
 
4857
done
 
4858
done
 
4859
 
 
4860
fi
 
4861
fi
 
4862
STRIP=$ac_cv_prog_STRIP
 
4863
if test -n "$STRIP"; then
 
4864
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
4865
echo "${ECHO_T}$STRIP" >&6
 
4866
else
 
4867
  echo "$as_me:$LINENO: result: no" >&5
 
4868
echo "${ECHO_T}no" >&6
 
4869
fi
 
4870
 
 
4871
fi
 
4872
if test -z "$ac_cv_prog_STRIP"; then
 
4873
  ac_ct_STRIP=$STRIP
 
4874
  # Extract the first word of "strip", so it can be a program name with args.
 
4875
set dummy strip; ac_word=$2
 
4876
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4878
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
4879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4880
else
 
4881
  if test -n "$ac_ct_STRIP"; then
 
4882
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4883
else
 
4884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4885
for as_dir in $PATH
 
4886
do
 
4887
  IFS=$as_save_IFS
 
4888
  test -z "$as_dir" && as_dir=.
 
4889
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4890
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4891
    ac_cv_prog_ac_ct_STRIP="strip"
 
4892
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4893
    break 2
 
4894
  fi
 
4895
done
 
4896
done
 
4897
 
 
4898
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
4899
fi
 
4900
fi
 
4901
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4902
if test -n "$ac_ct_STRIP"; then
 
4903
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
4904
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
4905
else
 
4906
  echo "$as_me:$LINENO: result: no" >&5
 
4907
echo "${ECHO_T}no" >&6
 
4908
fi
 
4909
 
 
4910
  STRIP=$ac_ct_STRIP
 
4911
else
 
4912
  STRIP="$ac_cv_prog_STRIP"
 
4913
fi
 
4914
 
 
4915
fi
 
4916
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
4917
 
 
4918
# We need awk for the "check" target.  The system "awk" is bad on
 
4919
# some platforms.
 
4920
 
 
4921
 
 
4922
depcc="$CC"   am_compiler_list=
 
4923
 
 
4924
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4925
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4926
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4928
else
 
4929
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4930
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4931
  # making bogus files that we don't know about and never remove.  For
 
4932
  # instance it was reported that on HP-UX the gcc test will end up
 
4933
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4934
  # in D'.
 
4935
  mkdir conftest.dir
 
4936
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4937
  # using a relative directory.
 
4938
  cp "$am_depcomp" conftest.dir
 
4939
  cd conftest.dir
 
4940
  # We will build objects and dependencies in a subdirectory because
 
4941
  # it helps to detect inapplicable dependency modes.  For instance
 
4942
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4943
  # side effect of compilation, but ICC will put the dependencies in
 
4944
  # the current directory while Tru64 will put them in the object
 
4945
  # directory.
 
4946
  mkdir sub
 
4947
 
 
4948
  am_cv_CC_dependencies_compiler_type=none
 
4949
  if test "$am_compiler_list" = ""; then
 
4950
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4951
  fi
 
4952
  for depmode in $am_compiler_list; do
 
4953
    # Setup a source with many dependencies, because some compilers
 
4954
    # like to wrap large dependency lists on column 80 (with \), and
 
4955
    # we should not choose a depcomp mode which is confused by this.
 
4956
    #
 
4957
    # We need to recreate these files for each test, as the compiler may
 
4958
    # overwrite some of them when testing with obscure command lines.
 
4959
    # This happens at least with the AIX C compiler.
 
4960
    : > sub/conftest.c
 
4961
    for i in 1 2 3 4 5 6; do
 
4962
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4963
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4964
      # Solaris 8's {/usr,}/bin/sh.
 
4965
      touch sub/conftst$i.h
 
4966
    done
 
4967
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4968
 
 
4969
    case $depmode in
 
4970
    nosideeffect)
 
4971
      # after this tag, mechanisms are not by side-effect, so they'll
 
4972
      # only be used when explicitly requested
 
4973
      if test "x$enable_dependency_tracking" = xyes; then
 
4974
        continue
 
4975
      else
 
4976
        break
 
4977
      fi
 
4978
      ;;
 
4979
    none) break ;;
 
4980
    esac
 
4981
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4982
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4983
    # handle `-M -o', and we need to detect this.
 
4984
    if depmode=$depmode \
 
4985
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4986
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4987
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4988
         >/dev/null 2>conftest.err &&
 
4989
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4990
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4991
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4992
      # icc doesn't choke on unknown options, it will just issue warnings
 
4993
      # (even with -Werror).  So we grep stderr for any message
 
4994
      # that says an option was ignored.
 
4995
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4996
        am_cv_CC_dependencies_compiler_type=$depmode
 
4997
        break
 
4998
      fi
 
4999
    fi
 
5000
  done
 
5001
 
 
5002
  cd ..
 
5003
  rm -rf conftest.dir
 
5004
else
 
5005
  am_cv_CC_dependencies_compiler_type=none
 
5006
fi
 
5007
 
 
5008
fi
 
5009
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5010
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
5011
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5012
 
 
5013
 
 
5014
 
 
5015
if
 
5016
  test "x$enable_dependency_tracking" != xno \
 
5017
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5018
  am__fastdepCC_TRUE=
 
5019
  am__fastdepCC_FALSE='#'
 
5020
else
 
5021
  am__fastdepCC_TRUE='#'
 
5022
  am__fastdepCC_FALSE=
 
5023
fi
 
5024
 
 
5025
 
 
5026
 
 
5027
          ac_config_headers="$ac_config_headers include/IL/config.h"
 
5028
 
 
5029
# Check whether --enable-static or --disable-static was given.
 
5030
if test "${enable_static+set}" = set; then
 
5031
  enableval="$enable_static"
 
5032
  p=${PACKAGE-default}
 
5033
    case $enableval in
 
5034
    yes) enable_static=yes ;;
 
5035
    no) enable_static=no ;;
 
5036
    *)
 
5037
     enable_static=no
 
5038
      # Look at the argument we got.  We use all the common list separators.
 
5039
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5040
      for pkg in $enableval; do
 
5041
        IFS="$lt_save_ifs"
 
5042
        if test "X$pkg" = "X$p"; then
 
5043
          enable_static=yes
 
5044
        fi
 
5045
      done
 
5046
      IFS="$lt_save_ifs"
 
5047
      ;;
 
5048
    esac
 
5049
else
 
5050
  enable_static=no
 
5051
fi;
 
5052
 
 
5053
 
 
5054
# Check whether --enable-shared or --disable-shared was given.
 
5055
if test "${enable_shared+set}" = set; then
 
5056
  enableval="$enable_shared"
 
5057
  p=${PACKAGE-default}
 
5058
    case $enableval in
 
5059
    yes) enable_shared=yes ;;
 
5060
    no) enable_shared=no ;;
 
5061
    *)
 
5062
      enable_shared=no
 
5063
      # Look at the argument we got.  We use all the common list separators.
 
5064
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5065
      for pkg in $enableval; do
 
5066
        IFS="$lt_save_ifs"
 
5067
        if test "X$pkg" = "X$p"; then
 
5068
          enable_shared=yes
 
5069
        fi
 
5070
      done
 
5071
      IFS="$lt_save_ifs"
 
5072
      ;;
 
5073
    esac
 
5074
else
 
5075
  enable_shared=yes
 
5076
fi;
 
5077
 
 
5078
# Check whether --enable-fast-install or --disable-fast-install was given.
 
5079
if test "${enable_fast_install+set}" = set; then
 
5080
  enableval="$enable_fast_install"
 
5081
  p=${PACKAGE-default}
 
5082
    case $enableval in
 
5083
    yes) enable_fast_install=yes ;;
 
5084
    no) enable_fast_install=no ;;
 
5085
    *)
 
5086
      enable_fast_install=no
 
5087
      # Look at the argument we got.  We use all the common list separators.
 
5088
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5089
      for pkg in $enableval; do
 
5090
        IFS="$lt_save_ifs"
 
5091
        if test "X$pkg" = "X$p"; then
 
5092
          enable_fast_install=yes
 
5093
        fi
 
5094
      done
 
5095
      IFS="$lt_save_ifs"
 
5096
      ;;
 
5097
    esac
 
5098
else
 
5099
  enable_fast_install=yes
 
5100
fi;
 
5101
 
 
5102
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5103
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
5104
if test "${lt_cv_path_SED+set}" = set; then
 
5105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5106
else
 
5107
  # Loop through the user's path and test for sed and gsed.
 
5108
# Then use that list of sed's as ones to test for truncation.
 
5109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5110
for as_dir in $PATH
 
5111
do
 
5112
  IFS=$as_save_IFS
 
5113
  test -z "$as_dir" && as_dir=.
 
5114
  for lt_ac_prog in sed gsed; do
 
5115
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5116
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
5117
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5118
      fi
 
5119
    done
 
5120
  done
 
5121
done
 
5122
lt_ac_max=0
 
5123
lt_ac_count=0
 
5124
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5125
# along with /bin/sed that truncates output.
 
5126
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5127
  test ! -f $lt_ac_sed && break
 
5128
  cat /dev/null > conftest.in
 
5129
  lt_ac_count=0
 
5130
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5131
  # Check for GNU sed and select it if it is found.
 
5132
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5133
    lt_cv_path_SED=$lt_ac_sed
 
5134
    break
 
5135
  fi
 
5136
  while true; do
 
5137
    cat conftest.in conftest.in >conftest.tmp
 
5138
    mv conftest.tmp conftest.in
 
5139
    cp conftest.in conftest.nl
 
5140
    echo >>conftest.nl
 
5141
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5142
    cmp -s conftest.out conftest.nl || break
 
5143
    # 10000 chars as input seems more than enough
 
5144
    test $lt_ac_count -gt 10 && break
 
5145
    lt_ac_count=`expr $lt_ac_count + 1`
 
5146
    if test $lt_ac_count -gt $lt_ac_max; then
 
5147
      lt_ac_max=$lt_ac_count
 
5148
      lt_cv_path_SED=$lt_ac_sed
 
5149
    fi
 
5150
  done
 
5151
done
 
5152
SED=$lt_cv_path_SED
 
5153
 
 
5154
fi
 
5155
 
 
5156
echo "$as_me:$LINENO: result: $SED" >&5
 
5157
echo "${ECHO_T}$SED" >&6
 
5158
 
 
5159
echo "$as_me:$LINENO: checking for egrep" >&5
 
5160
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
5161
if test "${ac_cv_prog_egrep+set}" = set; then
 
5162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5163
else
 
5164
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
5165
    then ac_cv_prog_egrep='grep -E'
 
5166
    else ac_cv_prog_egrep='egrep'
 
5167
    fi
 
5168
fi
 
5169
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
5170
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
5171
 EGREP=$ac_cv_prog_egrep
 
5172
 
 
5173
 
 
5174
 
 
5175
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
5176
if test "${with_gnu_ld+set}" = set; then
 
5177
  withval="$with_gnu_ld"
 
5178
  test "$withval" = no || with_gnu_ld=yes
 
5179
else
 
5180
  with_gnu_ld=no
 
5181
fi;
 
5182
ac_prog=ld
 
5183
if test "$GCC" = yes; then
 
5184
  # Check if gcc -print-prog-name=ld gives a path.
 
5185
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5186
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
5187
  case $host in
 
5188
  *-*-mingw*)
 
5189
    # gcc leaves a trailing carriage return which upsets mingw
 
5190
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5191
  *)
 
5192
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5193
  esac
 
5194
  case $ac_prog in
 
5195
    # Accept absolute paths.
 
5196
    [\\/]* | ?:[\\/]*)
 
5197
      re_direlt='/[^/][^/]*/\.\./'
 
5198
      # Canonicalize the path of ld
 
5199
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5200
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5201
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5202
      done
 
5203
      test -z "$LD" && LD="$ac_prog"
 
5204
      ;;
 
5205
  "")
 
5206
    # If it fails, then pretend we aren't using GCC.
 
5207
    ac_prog=ld
 
5208
    ;;
 
5209
  *)
 
5210
    # If it is relative, then search for the first ld in PATH.
 
5211
    with_gnu_ld=unknown
 
5212
    ;;
 
5213
  esac
 
5214
elif test "$with_gnu_ld" = yes; then
 
5215
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5216
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
5217
else
 
5218
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5219
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
5220
fi
 
5221
if test "${lt_cv_path_LD+set}" = set; then
 
5222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5223
else
 
5224
  if test -z "$LD"; then
 
5225
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5226
  for ac_dir in $PATH; do
 
5227
    IFS="$lt_save_ifs"
 
5228
    test -z "$ac_dir" && ac_dir=.
 
5229
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5230
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5231
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5232
      # but apparently some GNU ld's only accept -v.
 
5233
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5234
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5235
      *GNU* | *'with BFD'*)
 
5236
        test "$with_gnu_ld" != no && break
 
5237
        ;;
 
5238
      *)
 
5239
        test "$with_gnu_ld" != yes && break
 
5240
        ;;
 
5241
      esac
 
5242
    fi
 
5243
  done
 
5244
  IFS="$lt_save_ifs"
 
5245
else
 
5246
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5247
fi
 
5248
fi
 
5249
 
 
5250
LD="$lt_cv_path_LD"
 
5251
if test -n "$LD"; then
 
5252
  echo "$as_me:$LINENO: result: $LD" >&5
 
5253
echo "${ECHO_T}$LD" >&6
 
5254
else
 
5255
  echo "$as_me:$LINENO: result: no" >&5
 
5256
echo "${ECHO_T}no" >&6
 
5257
fi
 
5258
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5259
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5260
   { (exit 1); exit 1; }; }
 
5261
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5262
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
5263
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5265
else
 
5266
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
5267
case `"$LD" -v 2>&1 </dev/null` in
 
5268
*GNU* | *'with BFD'*)
 
5269
  lt_cv_prog_gnu_ld=yes
 
5270
  ;;
 
5271
*)
 
5272
  lt_cv_prog_gnu_ld=no
 
5273
  ;;
 
5274
esac
 
5275
fi
 
5276
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5277
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
5278
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5279
 
 
5280
 
 
5281
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5282
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
5283
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5285
else
 
5286
  lt_cv_ld_reload_flag='-r'
 
5287
fi
 
5288
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5289
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
5290
reload_flag=$lt_cv_ld_reload_flag
 
5291
case $reload_flag in
 
5292
"" | " "*) ;;
 
5293
*) reload_flag=" $reload_flag" ;;
 
5294
esac
 
5295
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5296
 
 
5297
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5298
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
5299
if test "${lt_cv_path_NM+set}" = set; then
 
5300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5301
else
 
5302
  if test -n "$NM"; then
 
5303
  # Let the user override the test.
 
5304
  lt_cv_path_NM="$NM"
 
5305
else
 
5306
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5307
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
5308
    IFS="$lt_save_ifs"
 
5309
    test -z "$ac_dir" && ac_dir=.
 
5310
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
5311
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5312
      # Check to see if the nm accepts a BSD-compat flag.
 
5313
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5314
      #   nm: unknown option "B" ignored
 
5315
      # Tru64's nm complains that /dev/null is an invalid object file
 
5316
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5317
      */dev/null* | *'Invalid file or object type'*)
 
5318
        lt_cv_path_NM="$tmp_nm -B"
 
5319
        break
 
5320
        ;;
 
5321
      *)
 
5322
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5323
        */dev/null*)
 
5324
          lt_cv_path_NM="$tmp_nm -p"
 
5325
          break
 
5326
          ;;
 
5327
        *)
 
5328
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5329
          continue # so that we can try to find one that supports BSD flags
 
5330
          ;;
 
5331
        esac
 
5332
      esac
 
5333
    fi
 
5334
  done
 
5335
  IFS="$lt_save_ifs"
 
5336
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5337
fi
 
5338
fi
 
5339
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5340
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
5341
NM="$lt_cv_path_NM"
 
5342
 
 
5343
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5344
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
5345
LN_S=$as_ln_s
 
5346
if test "$LN_S" = "ln -s"; then
 
5347
  echo "$as_me:$LINENO: result: yes" >&5
 
5348
echo "${ECHO_T}yes" >&6
 
5349
else
 
5350
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5351
echo "${ECHO_T}no, using $LN_S" >&6
 
5352
fi
 
5353
 
 
5354
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
5355
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
5356
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5358
else
 
5359
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5360
lt_cv_file_magic_test_file=
 
5361
lt_cv_deplibs_check_method='unknown'
 
5362
# Need to set the preceding variable on all platforms that support
 
5363
# interlibrary dependencies.
 
5364
# 'none' -- dependencies not supported.
 
5365
# `unknown' -- same as none, but documents that we really don't know.
 
5366
# 'pass_all' -- all dependencies passed with no checks.
 
5367
# 'test_compile' -- check by making test program.
 
5368
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5369
# which responds to the $file_magic_cmd with a given extended regex.
 
5370
# If you have `file' or equivalent on your system and you're not sure
 
5371
# whether `pass_all' will *always* work, you probably want this one.
 
5372
 
 
5373
case $host_os in
 
5374
aix4* | aix5*)
 
5375
  lt_cv_deplibs_check_method=pass_all
 
5376
  ;;
 
5377
 
 
5378
beos*)
 
5379
  lt_cv_deplibs_check_method=pass_all
 
5380
  ;;
 
5381
 
 
5382
bsdi4*)
 
5383
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5384
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5385
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5386
  ;;
 
5387
 
 
5388
cygwin* | mingw* | pw32*)
 
5389
  # win32_libid is a shell function defined in ltmain.sh
 
5390
  #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5391
  lt_cv_deplibs_check_method=pass_all
 
5392
  lt_cv_file_magic_cmd='win32_libid'
 
5393
  ;;
 
5394
 
 
5395
darwin* | rhapsody*)
 
5396
  # this will be overwritten by pass_all, but leave it in just in case
 
5397
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
5398
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5399
  case "$host_os" in
 
5400
  rhapsody* | darwin1.[012])
 
5401
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
5402
    ;;
 
5403
  *) # Darwin 1.3 on
 
5404
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
5405
    ;;
 
5406
  esac
 
5407
  lt_cv_deplibs_check_method=pass_all
 
5408
  ;;
 
5409
 
 
5410
freebsd*)
 
5411
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5412
    case $host_cpu in
 
5413
    i*86 )
 
5414
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5415
      # Let's accept both of them until this is cleared up.
 
5416
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
5417
      lt_cv_file_magic_cmd=/usr/bin/file
 
5418
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5419
      ;;
 
5420
    esac
 
5421
  else
 
5422
    lt_cv_deplibs_check_method=pass_all
 
5423
  fi
 
5424
  ;;
 
5425
 
 
5426
gnu*)
 
5427
  lt_cv_deplibs_check_method=pass_all
 
5428
  ;;
 
5429
 
 
5430
hpux10.20* | hpux11*)
 
5431
  lt_cv_file_magic_cmd=/usr/bin/file
 
5432
  case "$host_cpu" in
 
5433
  ia64*)
 
5434
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5435
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5436
    ;;
 
5437
  hppa*64*)
 
5438
    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]'
 
5439
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5440
    ;;
 
5441
  *)
 
5442
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5443
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5444
    ;;
 
5445
  esac
 
5446
  ;;
 
5447
 
 
5448
irix5* | irix6* | nonstopux*)
 
5449
  case $host_os in
 
5450
  irix5* | nonstopux*)
 
5451
    # this will be overridden with pass_all, but let us keep it just in case
 
5452
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
5453
    ;;
 
5454
  *)
 
5455
    case $LD in
 
5456
    *-32|*"-32 ") libmagic=32-bit;;
 
5457
    *-n32|*"-n32 ") libmagic=N32;;
 
5458
    *-64|*"-64 ") libmagic=64-bit;;
 
5459
    *) libmagic=never-match;;
 
5460
    esac
 
5461
    # this will be overridden with pass_all, but let us keep it just in case
 
5462
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
5463
    ;;
 
5464
  esac
 
5465
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
5466
  lt_cv_deplibs_check_method=pass_all
 
5467
  ;;
 
5468
 
 
5469
# This must be Linux ELF.
 
5470
linux*)
 
5471
  case $host_cpu in
 
5472
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
 
5473
    lt_cv_deplibs_check_method=pass_all ;;
 
5474
  *)
 
5475
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
5476
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
5477
  esac
 
5478
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
5479
  ;;
 
5480
 
 
5481
netbsd*)
 
5482
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5483
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5484
  else
 
5485
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5486
  fi
 
5487
  ;;
 
5488
 
 
5489
newos6*)
 
5490
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5491
  lt_cv_file_magic_cmd=/usr/bin/file
 
5492
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5493
  ;;
 
5494
 
 
5495
nto-qnx)
 
5496
  lt_cv_deplibs_check_method=unknown
 
5497
  ;;
 
5498
 
 
5499
openbsd*)
 
5500
  lt_cv_file_magic_cmd=/usr/bin/file
 
5501
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5502
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5503
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
5504
  else
 
5505
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
5506
  fi
 
5507
  ;;
 
5508
 
 
5509
osf3* | osf4* | osf5*)
 
5510
  # this will be overridden with pass_all, but let us keep it just in case
 
5511
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
5512
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5513
  lt_cv_deplibs_check_method=pass_all
 
5514
  ;;
 
5515
 
 
5516
sco3.2v5*)
 
5517
  lt_cv_deplibs_check_method=pass_all
 
5518
  ;;
 
5519
 
 
5520
solaris*)
 
5521
  lt_cv_deplibs_check_method=pass_all
 
5522
  lt_cv_file_magic_test_file=/lib/libc.so
 
5523
  ;;
 
5524
 
 
5525
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5526
  case $host_vendor in
 
5527
  motorola)
 
5528
    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]'
 
5529
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5530
    ;;
 
5531
  ncr)
 
5532
    lt_cv_deplibs_check_method=pass_all
 
5533
    ;;
 
5534
  sequent)
 
5535
    lt_cv_file_magic_cmd='/bin/file'
 
5536
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5537
    ;;
 
5538
  sni)
 
5539
    lt_cv_file_magic_cmd='/bin/file'
 
5540
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5541
    lt_cv_file_magic_test_file=/lib/libc.so
 
5542
    ;;
 
5543
  siemens)
 
5544
    lt_cv_deplibs_check_method=pass_all
 
5545
    ;;
 
5546
  esac
 
5547
  ;;
 
5548
 
 
5549
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5550
  lt_cv_deplibs_check_method=pass_all
 
5551
  ;;
 
5552
esac
 
5553
 
 
5554
fi
 
5555
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5556
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5557
file_magic_cmd=$lt_cv_file_magic_cmd
 
5558
deplibs_check_method=$lt_cv_deplibs_check_method
 
5559
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
# If no C compiler was specified, use CC.
 
5565
LTCC=${LTCC-"$CC"}
 
5566
 
 
5567
# Allow CC to be a program name with arguments.
 
5568
compiler=$CC
 
5569
 
 
5570
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5571
if test "${enable_libtool_lock+set}" = set; then
 
5572
  enableval="$enable_libtool_lock"
 
5573
 
 
5574
fi;
 
5575
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5576
 
 
5577
# Some flags need to be propagated to the compiler or linker for good
 
5578
# libtool support.
 
5579
case $host in
 
5580
ia64-*-hpux*)
 
5581
  # Find out which ABI we are using.
 
5582
  echo 'int i;' > conftest.$ac_ext
 
5583
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5584
  (eval $ac_compile) 2>&5
 
5585
  ac_status=$?
 
5586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5587
  (exit $ac_status); }; then
 
5588
    case `/usr/bin/file conftest.$ac_objext` in
 
5589
    *ELF-32*)
 
5590
      HPUX_IA64_MODE="32"
 
5591
      ;;
 
5592
    *ELF-64*)
 
5593
      HPUX_IA64_MODE="64"
 
5594
      ;;
 
5595
    esac
 
5596
  fi
 
5597
  rm -rf conftest*
 
5598
  ;;
 
5599
*-*-irix6*)
 
5600
  # Find out which ABI we are using.
 
5601
  echo '#line 5601 "configure"' > conftest.$ac_ext
 
5602
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5603
  (eval $ac_compile) 2>&5
 
5604
  ac_status=$?
 
5605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5606
  (exit $ac_status); }; then
 
5607
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5608
    case `/usr/bin/file conftest.$ac_objext` in
 
5609
    *32-bit*)
 
5610
      LD="${LD-ld} -melf32bsmip"
 
5611
      ;;
 
5612
    *N32*)
 
5613
      LD="${LD-ld} -melf32bmipn32"
 
5614
      ;;
 
5615
    *64-bit*)
 
5616
      LD="${LD-ld} -melf64bmip"
 
5617
      ;;
 
5618
    esac
 
5619
   else
 
5620
    case `/usr/bin/file conftest.$ac_objext` in
 
5621
    *32-bit*)
 
5622
      LD="${LD-ld} -32"
 
5623
      ;;
 
5624
    *N32*)
 
5625
      LD="${LD-ld} -n32"
 
5626
      ;;
 
5627
    *64-bit*)
 
5628
      LD="${LD-ld} -64"
 
5629
      ;;
 
5630
    esac
 
5631
   fi
 
5632
  fi
 
5633
  rm -rf conftest*
 
5634
  ;;
 
5635
 
 
5636
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5637
  # Find out which ABI we are using.
 
5638
  echo 'int i;' > conftest.$ac_ext
 
5639
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5640
  (eval $ac_compile) 2>&5
 
5641
  ac_status=$?
 
5642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5643
  (exit $ac_status); }; then
 
5644
    case "`/usr/bin/file conftest.o`" in
 
5645
    *32-bit*)
 
5646
      case $host in
 
5647
        x86_64-*linux*)
 
5648
          LD="${LD-ld} -m elf_i386"
 
5649
          ;;
 
5650
        ppc64-*linux*)
 
5651
          LD="${LD-ld} -m elf32ppclinux"
 
5652
          ;;
 
5653
        s390x-*linux*)
 
5654
          LD="${LD-ld} -m elf_s390"
 
5655
          ;;
 
5656
        sparc64-*linux*)
 
5657
          LD="${LD-ld} -m elf32_sparc"
 
5658
          ;;
 
5659
      esac
 
5660
      ;;
 
5661
    *64-bit*)
 
5662
      case $host in
 
5663
        x86_64-*linux*)
 
5664
          LD="${LD-ld} -m elf_x86_64"
 
5665
          ;;
 
5666
        ppc*-*linux*|powerpc*-*linux*)
 
5667
          LD="${LD-ld} -m elf64ppc"
 
5668
          ;;
 
5669
        s390*-*linux*)
 
5670
          LD="${LD-ld} -m elf64_s390"
 
5671
          ;;
 
5672
        sparc*-*linux*)
 
5673
          LD="${LD-ld} -m elf64_sparc"
 
5674
          ;;
 
5675
      esac
 
5676
      ;;
 
5677
    esac
 
5678
  fi
 
5679
  rm -rf conftest*
 
5680
  ;;
 
5681
 
 
5682
*-*-sco3.2v5*)
 
5683
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5684
  SAVE_CFLAGS="$CFLAGS"
 
5685
  CFLAGS="$CFLAGS -belf"
 
5686
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5687
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5688
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5690
else
 
5691
  ac_ext=c
 
5692
ac_cpp='$CPP $CPPFLAGS'
 
5693
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5694
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5695
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5696
 
 
5697
     cat >conftest.$ac_ext <<_ACEOF
 
5698
/* confdefs.h.  */
 
5699
_ACEOF
 
5700
cat confdefs.h >>conftest.$ac_ext
 
5701
cat >>conftest.$ac_ext <<_ACEOF
 
5702
/* end confdefs.h.  */
 
5703
 
 
5704
int
 
5705
main ()
 
5706
{
 
5707
 
 
5708
  ;
 
5709
  return 0;
 
5710
}
 
5711
_ACEOF
 
5712
rm -f conftest.$ac_objext conftest$ac_exeext
 
5713
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5714
  (eval $ac_link) 2>conftest.er1
 
5715
  ac_status=$?
 
5716
  grep -v '^ *+' conftest.er1 >conftest.err
 
5717
  rm -f conftest.er1
 
5718
  cat conftest.err >&5
 
5719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5720
  (exit $ac_status); } &&
 
5721
         { ac_try='test -z "$ac_c_werror_flag"
 
5722
                         || test ! -s conftest.err'
 
5723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5724
  (eval $ac_try) 2>&5
 
5725
  ac_status=$?
 
5726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5727
  (exit $ac_status); }; } &&
 
5728
         { ac_try='test -s conftest$ac_exeext'
 
5729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5730
  (eval $ac_try) 2>&5
 
5731
  ac_status=$?
 
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5733
  (exit $ac_status); }; }; then
 
5734
  lt_cv_cc_needs_belf=yes
 
5735
else
 
5736
  echo "$as_me: failed program was:" >&5
 
5737
sed 's/^/| /' conftest.$ac_ext >&5
 
5738
 
 
5739
lt_cv_cc_needs_belf=no
 
5740
fi
 
5741
rm -f conftest.err conftest.$ac_objext \
 
5742
      conftest$ac_exeext conftest.$ac_ext
 
5743
     ac_ext=c
 
5744
ac_cpp='$CPP $CPPFLAGS'
 
5745
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5746
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5747
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5748
 
 
5749
fi
 
5750
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5751
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5752
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5753
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5754
    CFLAGS="$SAVE_CFLAGS"
 
5755
  fi
 
5756
  ;;
 
5757
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
5758
  if test -n "$ac_tool_prefix"; then
 
5759
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5760
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5761
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5763
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
5764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5765
else
 
5766
  if test -n "$DLLTOOL"; then
 
5767
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5768
else
 
5769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5770
for as_dir in $PATH
 
5771
do
 
5772
  IFS=$as_save_IFS
 
5773
  test -z "$as_dir" && as_dir=.
 
5774
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5775
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5776
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5777
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5778
    break 2
 
5779
  fi
 
5780
done
 
5781
done
 
5782
 
 
5783
fi
 
5784
fi
 
5785
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5786
if test -n "$DLLTOOL"; then
 
5787
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
5788
echo "${ECHO_T}$DLLTOOL" >&6
 
5789
else
 
5790
  echo "$as_me:$LINENO: result: no" >&5
 
5791
echo "${ECHO_T}no" >&6
 
5792
fi
 
5793
 
 
5794
fi
 
5795
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5796
  ac_ct_DLLTOOL=$DLLTOOL
 
5797
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5798
set dummy dlltool; ac_word=$2
 
5799
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5801
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
5802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5803
else
 
5804
  if test -n "$ac_ct_DLLTOOL"; then
 
5805
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5806
else
 
5807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5808
for as_dir in $PATH
 
5809
do
 
5810
  IFS=$as_save_IFS
 
5811
  test -z "$as_dir" && as_dir=.
 
5812
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5813
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5814
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5815
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5816
    break 2
 
5817
  fi
 
5818
done
 
5819
done
 
5820
 
 
5821
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
5822
fi
 
5823
fi
 
5824
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5825
if test -n "$ac_ct_DLLTOOL"; then
 
5826
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
5827
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
5828
else
 
5829
  echo "$as_me:$LINENO: result: no" >&5
 
5830
echo "${ECHO_T}no" >&6
 
5831
fi
 
5832
 
 
5833
  DLLTOOL=$ac_ct_DLLTOOL
 
5834
else
 
5835
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5836
fi
 
5837
 
 
5838
  if test -n "$ac_tool_prefix"; then
 
5839
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
5840
set dummy ${ac_tool_prefix}as; ac_word=$2
 
5841
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5843
if test "${ac_cv_prog_AS+set}" = set; then
 
5844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5845
else
 
5846
  if test -n "$AS"; then
 
5847
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
5848
else
 
5849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5850
for as_dir in $PATH
 
5851
do
 
5852
  IFS=$as_save_IFS
 
5853
  test -z "$as_dir" && as_dir=.
 
5854
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5855
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5856
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
5857
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5858
    break 2
 
5859
  fi
 
5860
done
 
5861
done
 
5862
 
 
5863
fi
 
5864
fi
 
5865
AS=$ac_cv_prog_AS
 
5866
if test -n "$AS"; then
 
5867
  echo "$as_me:$LINENO: result: $AS" >&5
 
5868
echo "${ECHO_T}$AS" >&6
 
5869
else
 
5870
  echo "$as_me:$LINENO: result: no" >&5
 
5871
echo "${ECHO_T}no" >&6
 
5872
fi
 
5873
 
 
5874
fi
 
5875
if test -z "$ac_cv_prog_AS"; then
 
5876
  ac_ct_AS=$AS
 
5877
  # Extract the first word of "as", so it can be a program name with args.
 
5878
set dummy as; ac_word=$2
 
5879
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5881
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
5882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5883
else
 
5884
  if test -n "$ac_ct_AS"; then
 
5885
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
5886
else
 
5887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5888
for as_dir in $PATH
 
5889
do
 
5890
  IFS=$as_save_IFS
 
5891
  test -z "$as_dir" && as_dir=.
 
5892
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5893
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5894
    ac_cv_prog_ac_ct_AS="as"
 
5895
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5896
    break 2
 
5897
  fi
 
5898
done
 
5899
done
 
5900
 
 
5901
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
5902
fi
 
5903
fi
 
5904
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
5905
if test -n "$ac_ct_AS"; then
 
5906
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
5907
echo "${ECHO_T}$ac_ct_AS" >&6
 
5908
else
 
5909
  echo "$as_me:$LINENO: result: no" >&5
 
5910
echo "${ECHO_T}no" >&6
 
5911
fi
 
5912
 
 
5913
  AS=$ac_ct_AS
 
5914
else
 
5915
  AS="$ac_cv_prog_AS"
 
5916
fi
 
5917
 
 
5918
  if test -n "$ac_tool_prefix"; then
 
5919
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5920
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5921
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5923
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
5924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5925
else
 
5926
  if test -n "$OBJDUMP"; then
 
5927
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5928
else
 
5929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5930
for as_dir in $PATH
 
5931
do
 
5932
  IFS=$as_save_IFS
 
5933
  test -z "$as_dir" && as_dir=.
 
5934
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5935
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5936
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5937
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5938
    break 2
 
5939
  fi
 
5940
done
 
5941
done
 
5942
 
 
5943
fi
 
5944
fi
 
5945
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5946
if test -n "$OBJDUMP"; then
 
5947
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
5948
echo "${ECHO_T}$OBJDUMP" >&6
 
5949
else
 
5950
  echo "$as_me:$LINENO: result: no" >&5
 
5951
echo "${ECHO_T}no" >&6
 
5952
fi
 
5953
 
 
5954
fi
 
5955
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5956
  ac_ct_OBJDUMP=$OBJDUMP
 
5957
  # Extract the first word of "objdump", so it can be a program name with args.
 
5958
set dummy objdump; ac_word=$2
 
5959
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5961
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
5962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5963
else
 
5964
  if test -n "$ac_ct_OBJDUMP"; then
 
5965
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5966
else
 
5967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5968
for as_dir in $PATH
 
5969
do
 
5970
  IFS=$as_save_IFS
 
5971
  test -z "$as_dir" && as_dir=.
 
5972
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5973
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5974
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5975
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5976
    break 2
 
5977
  fi
 
5978
done
 
5979
done
 
5980
 
 
5981
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
5982
fi
 
5983
fi
 
5984
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5985
if test -n "$ac_ct_OBJDUMP"; then
 
5986
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
5987
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
5988
else
 
5989
  echo "$as_me:$LINENO: result: no" >&5
 
5990
echo "${ECHO_T}no" >&6
 
5991
fi
 
5992
 
 
5993
  OBJDUMP=$ac_ct_OBJDUMP
 
5994
else
 
5995
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5996
fi
 
5997
 
 
5998
  ;;
 
5999
 
 
6000
esac
 
6001
 
 
6002
need_locks="$enable_libtool_lock"
 
6003
 
 
6004
 
 
6005
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6006
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
6007
if test "${ac_cv_header_stdc+set}" = set; then
 
6008
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6009
else
 
6010
  cat >conftest.$ac_ext <<_ACEOF
 
6011
/* confdefs.h.  */
 
6012
_ACEOF
 
6013
cat confdefs.h >>conftest.$ac_ext
 
6014
cat >>conftest.$ac_ext <<_ACEOF
 
6015
/* end confdefs.h.  */
 
6016
#include <stdlib.h>
 
6017
#include <stdarg.h>
 
6018
#include <string.h>
 
6019
#include <float.h>
 
6020
 
 
6021
int
 
6022
main ()
 
6023
{
 
6024
 
 
6025
  ;
 
6026
  return 0;
 
6027
}
 
6028
_ACEOF
 
6029
rm -f conftest.$ac_objext
 
6030
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6031
  (eval $ac_compile) 2>conftest.er1
 
6032
  ac_status=$?
 
6033
  grep -v '^ *+' conftest.er1 >conftest.err
 
6034
  rm -f conftest.er1
 
6035
  cat conftest.err >&5
 
6036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6037
  (exit $ac_status); } &&
 
6038
         { ac_try='test -z "$ac_c_werror_flag"
 
6039
                         || test ! -s conftest.err'
 
6040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6041
  (eval $ac_try) 2>&5
 
6042
  ac_status=$?
 
6043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6044
  (exit $ac_status); }; } &&
 
6045
         { ac_try='test -s conftest.$ac_objext'
 
6046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6047
  (eval $ac_try) 2>&5
 
6048
  ac_status=$?
 
6049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6050
  (exit $ac_status); }; }; then
 
6051
  ac_cv_header_stdc=yes
 
6052
else
 
6053
  echo "$as_me: failed program was:" >&5
 
6054
sed 's/^/| /' conftest.$ac_ext >&5
 
6055
 
 
6056
ac_cv_header_stdc=no
 
6057
fi
 
6058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6059
 
 
6060
if test $ac_cv_header_stdc = yes; then
 
6061
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6062
  cat >conftest.$ac_ext <<_ACEOF
 
6063
/* confdefs.h.  */
 
6064
_ACEOF
 
6065
cat confdefs.h >>conftest.$ac_ext
 
6066
cat >>conftest.$ac_ext <<_ACEOF
 
6067
/* end confdefs.h.  */
 
6068
#include <string.h>
 
6069
 
 
6070
_ACEOF
 
6071
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6072
  $EGREP "memchr" >/dev/null 2>&1; then
 
6073
  :
 
6074
else
 
6075
  ac_cv_header_stdc=no
 
6076
fi
 
6077
rm -f conftest*
 
6078
 
 
6079
fi
 
6080
 
 
6081
if test $ac_cv_header_stdc = yes; then
 
6082
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6083
  cat >conftest.$ac_ext <<_ACEOF
 
6084
/* confdefs.h.  */
 
6085
_ACEOF
 
6086
cat confdefs.h >>conftest.$ac_ext
 
6087
cat >>conftest.$ac_ext <<_ACEOF
 
6088
/* end confdefs.h.  */
 
6089
#include <stdlib.h>
 
6090
 
 
6091
_ACEOF
 
6092
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6093
  $EGREP "free" >/dev/null 2>&1; then
 
6094
  :
 
6095
else
 
6096
  ac_cv_header_stdc=no
 
6097
fi
 
6098
rm -f conftest*
 
6099
 
 
6100
fi
 
6101
 
 
6102
if test $ac_cv_header_stdc = yes; then
 
6103
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6104
  if test "$cross_compiling" = yes; then
 
6105
  :
 
6106
else
 
6107
  cat >conftest.$ac_ext <<_ACEOF
 
6108
/* confdefs.h.  */
 
6109
_ACEOF
 
6110
cat confdefs.h >>conftest.$ac_ext
 
6111
cat >>conftest.$ac_ext <<_ACEOF
 
6112
/* end confdefs.h.  */
 
6113
#include <ctype.h>
 
6114
#if ((' ' & 0x0FF) == 0x020)
 
6115
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6116
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6117
#else
 
6118
# define ISLOWER(c) \
 
6119
                   (('a' <= (c) && (c) <= 'i') \
 
6120
                     || ('j' <= (c) && (c) <= 'r') \
 
6121
                     || ('s' <= (c) && (c) <= 'z'))
 
6122
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6123
#endif
 
6124
 
 
6125
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6126
int
 
6127
main ()
 
6128
{
 
6129
  int i;
 
6130
  for (i = 0; i < 256; i++)
 
6131
    if (XOR (islower (i), ISLOWER (i))
 
6132
        || toupper (i) != TOUPPER (i))
 
6133
      exit(2);
 
6134
  exit (0);
 
6135
}
 
6136
_ACEOF
 
6137
rm -f conftest$ac_exeext
 
6138
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6139
  (eval $ac_link) 2>&5
 
6140
  ac_status=$?
 
6141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6142
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6144
  (eval $ac_try) 2>&5
 
6145
  ac_status=$?
 
6146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6147
  (exit $ac_status); }; }; then
 
6148
  :
 
6149
else
 
6150
  echo "$as_me: program exited with status $ac_status" >&5
 
6151
echo "$as_me: failed program was:" >&5
 
6152
sed 's/^/| /' conftest.$ac_ext >&5
 
6153
 
 
6154
( exit $ac_status )
 
6155
ac_cv_header_stdc=no
 
6156
fi
 
6157
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6158
fi
 
6159
fi
 
6160
fi
 
6161
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6162
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
6163
if test $ac_cv_header_stdc = yes; then
 
6164
 
 
6165
cat >>confdefs.h <<\_ACEOF
 
6166
#define STDC_HEADERS 1
 
6167
_ACEOF
 
6168
 
 
6169
fi
 
6170
 
 
6171
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6172
 
 
6173
 
 
6174
 
 
6175
 
 
6176
 
 
6177
 
 
6178
 
 
6179
 
 
6180
 
 
6181
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6182
                  inttypes.h stdint.h unistd.h
 
6183
do
 
6184
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6185
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6186
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6187
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6189
else
 
6190
  cat >conftest.$ac_ext <<_ACEOF
 
6191
/* confdefs.h.  */
 
6192
_ACEOF
 
6193
cat confdefs.h >>conftest.$ac_ext
 
6194
cat >>conftest.$ac_ext <<_ACEOF
 
6195
/* end confdefs.h.  */
 
6196
$ac_includes_default
 
6197
 
 
6198
#include <$ac_header>
 
6199
_ACEOF
 
6200
rm -f conftest.$ac_objext
 
6201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6202
  (eval $ac_compile) 2>conftest.er1
 
6203
  ac_status=$?
 
6204
  grep -v '^ *+' conftest.er1 >conftest.err
 
6205
  rm -f conftest.er1
 
6206
  cat conftest.err >&5
 
6207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6208
  (exit $ac_status); } &&
 
6209
         { ac_try='test -z "$ac_c_werror_flag"
 
6210
                         || test ! -s conftest.err'
 
6211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6212
  (eval $ac_try) 2>&5
 
6213
  ac_status=$?
 
6214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6215
  (exit $ac_status); }; } &&
 
6216
         { ac_try='test -s conftest.$ac_objext'
 
6217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6218
  (eval $ac_try) 2>&5
 
6219
  ac_status=$?
 
6220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6221
  (exit $ac_status); }; }; then
 
6222
  eval "$as_ac_Header=yes"
 
6223
else
 
6224
  echo "$as_me: failed program was:" >&5
 
6225
sed 's/^/| /' conftest.$ac_ext >&5
 
6226
 
 
6227
eval "$as_ac_Header=no"
 
6228
fi
 
6229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6230
fi
 
6231
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6232
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6233
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6234
  cat >>confdefs.h <<_ACEOF
 
6235
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6236
_ACEOF
 
6237
 
 
6238
fi
 
6239
 
 
6240
done
 
6241
 
 
6242
 
 
6243
 
 
6244
for ac_header in dlfcn.h
 
6245
do
 
6246
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6247
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6248
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6249
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6250
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6252
fi
 
6253
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6254
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6255
else
 
6256
  # Is the header compilable?
 
6257
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6258
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6259
cat >conftest.$ac_ext <<_ACEOF
 
6260
/* confdefs.h.  */
 
6261
_ACEOF
 
6262
cat confdefs.h >>conftest.$ac_ext
 
6263
cat >>conftest.$ac_ext <<_ACEOF
 
6264
/* end confdefs.h.  */
 
6265
$ac_includes_default
 
6266
#include <$ac_header>
 
6267
_ACEOF
 
6268
rm -f conftest.$ac_objext
 
6269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6270
  (eval $ac_compile) 2>conftest.er1
 
6271
  ac_status=$?
 
6272
  grep -v '^ *+' conftest.er1 >conftest.err
 
6273
  rm -f conftest.er1
 
6274
  cat conftest.err >&5
 
6275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6276
  (exit $ac_status); } &&
 
6277
         { ac_try='test -z "$ac_c_werror_flag"
 
6278
                         || test ! -s conftest.err'
 
6279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6280
  (eval $ac_try) 2>&5
 
6281
  ac_status=$?
 
6282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6283
  (exit $ac_status); }; } &&
 
6284
         { ac_try='test -s conftest.$ac_objext'
 
6285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6286
  (eval $ac_try) 2>&5
 
6287
  ac_status=$?
 
6288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6289
  (exit $ac_status); }; }; then
 
6290
  ac_header_compiler=yes
 
6291
else
 
6292
  echo "$as_me: failed program was:" >&5
 
6293
sed 's/^/| /' conftest.$ac_ext >&5
 
6294
 
 
6295
ac_header_compiler=no
 
6296
fi
 
6297
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6298
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6299
echo "${ECHO_T}$ac_header_compiler" >&6
 
6300
 
 
6301
# Is the header present?
 
6302
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6304
cat >conftest.$ac_ext <<_ACEOF
 
6305
/* confdefs.h.  */
 
6306
_ACEOF
 
6307
cat confdefs.h >>conftest.$ac_ext
 
6308
cat >>conftest.$ac_ext <<_ACEOF
 
6309
/* end confdefs.h.  */
 
6310
#include <$ac_header>
 
6311
_ACEOF
 
6312
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6313
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6314
  ac_status=$?
 
6315
  grep -v '^ *+' conftest.er1 >conftest.err
 
6316
  rm -f conftest.er1
 
6317
  cat conftest.err >&5
 
6318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6319
  (exit $ac_status); } >/dev/null; then
 
6320
  if test -s conftest.err; then
 
6321
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6322
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6323
  else
 
6324
    ac_cpp_err=
 
6325
  fi
 
6326
else
 
6327
  ac_cpp_err=yes
 
6328
fi
 
6329
if test -z "$ac_cpp_err"; then
 
6330
  ac_header_preproc=yes
 
6331
else
 
6332
  echo "$as_me: failed program was:" >&5
 
6333
sed 's/^/| /' conftest.$ac_ext >&5
 
6334
 
 
6335
  ac_header_preproc=no
 
6336
fi
 
6337
rm -f conftest.err conftest.$ac_ext
 
6338
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6339
echo "${ECHO_T}$ac_header_preproc" >&6
 
6340
 
 
6341
# So?  What about this header?
 
6342
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6343
  yes:no: )
 
6344
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6345
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6346
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6347
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6348
    ac_header_preproc=yes
 
6349
    ;;
 
6350
  no:yes:* )
 
6351
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6352
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6353
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6354
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6355
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6356
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6357
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6358
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6359
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6361
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6362
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6363
    (
 
6364
      cat <<\_ASBOX
 
6365
## ------------------------------------------ ##
 
6366
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6367
## ------------------------------------------ ##
 
6368
_ASBOX
 
6369
    ) |
 
6370
      sed "s/^/$as_me: WARNING:     /" >&2
 
6371
    ;;
 
6372
esac
 
6373
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6375
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6377
else
 
6378
  eval "$as_ac_Header=\$ac_header_preproc"
 
6379
fi
 
6380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6382
 
 
6383
fi
 
6384
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6385
  cat >>confdefs.h <<_ACEOF
 
6386
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6387
_ACEOF
 
6388
 
 
6389
fi
 
6390
 
 
6391
done
 
6392
 
 
6393
ac_ext=cc
 
6394
ac_cpp='$CXXCPP $CPPFLAGS'
 
6395
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6396
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6397
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6398
if test -n "$ac_tool_prefix"; then
 
6399
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6400
  do
 
6401
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6402
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6403
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6405
if test "${ac_cv_prog_CXX+set}" = set; then
 
6406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6407
else
 
6408
  if test -n "$CXX"; then
 
6409
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6410
else
 
6411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6412
for as_dir in $PATH
 
6413
do
 
6414
  IFS=$as_save_IFS
 
6415
  test -z "$as_dir" && as_dir=.
 
6416
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6417
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6418
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6419
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6420
    break 2
 
6421
  fi
 
6422
done
 
6423
done
 
6424
 
 
6425
fi
 
6426
fi
 
6427
CXX=$ac_cv_prog_CXX
 
6428
if test -n "$CXX"; then
 
6429
  echo "$as_me:$LINENO: result: $CXX" >&5
 
6430
echo "${ECHO_T}$CXX" >&6
 
6431
else
 
6432
  echo "$as_me:$LINENO: result: no" >&5
 
6433
echo "${ECHO_T}no" >&6
 
6434
fi
 
6435
 
 
6436
    test -n "$CXX" && break
 
6437
  done
 
6438
fi
 
6439
if test -z "$CXX"; then
 
6440
  ac_ct_CXX=$CXX
 
6441
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6442
do
 
6443
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6444
set dummy $ac_prog; ac_word=$2
 
6445
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6447
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
6448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6449
else
 
6450
  if test -n "$ac_ct_CXX"; then
 
6451
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6452
else
 
6453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6454
for as_dir in $PATH
 
6455
do
 
6456
  IFS=$as_save_IFS
 
6457
  test -z "$as_dir" && as_dir=.
 
6458
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6459
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6460
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6461
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6462
    break 2
 
6463
  fi
 
6464
done
 
6465
done
 
6466
 
 
6467
fi
 
6468
fi
 
6469
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6470
if test -n "$ac_ct_CXX"; then
 
6471
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
6472
echo "${ECHO_T}$ac_ct_CXX" >&6
 
6473
else
 
6474
  echo "$as_me:$LINENO: result: no" >&5
 
6475
echo "${ECHO_T}no" >&6
 
6476
fi
 
6477
 
 
6478
  test -n "$ac_ct_CXX" && break
 
6479
done
 
6480
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
6481
 
 
6482
  CXX=$ac_ct_CXX
 
6483
fi
 
6484
 
 
6485
 
 
6486
# Provide some information about the compiler.
 
6487
echo "$as_me:$LINENO:" \
 
6488
     "checking for C++ compiler version" >&5
 
6489
ac_compiler=`set X $ac_compile; echo $2`
 
6490
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6491
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6492
  ac_status=$?
 
6493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6494
  (exit $ac_status); }
 
6495
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6496
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6497
  ac_status=$?
 
6498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6499
  (exit $ac_status); }
 
6500
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6501
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6502
  ac_status=$?
 
6503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6504
  (exit $ac_status); }
 
6505
 
 
6506
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
6507
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
6508
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6510
else
 
6511
  cat >conftest.$ac_ext <<_ACEOF
 
6512
/* confdefs.h.  */
 
6513
_ACEOF
 
6514
cat confdefs.h >>conftest.$ac_ext
 
6515
cat >>conftest.$ac_ext <<_ACEOF
 
6516
/* end confdefs.h.  */
 
6517
 
 
6518
int
 
6519
main ()
 
6520
{
 
6521
#ifndef __GNUC__
 
6522
       choke me
 
6523
#endif
 
6524
 
 
6525
  ;
 
6526
  return 0;
 
6527
}
 
6528
_ACEOF
 
6529
rm -f conftest.$ac_objext
 
6530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6531
  (eval $ac_compile) 2>conftest.er1
 
6532
  ac_status=$?
 
6533
  grep -v '^ *+' conftest.er1 >conftest.err
 
6534
  rm -f conftest.er1
 
6535
  cat conftest.err >&5
 
6536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6537
  (exit $ac_status); } &&
 
6538
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6539
                         || test ! -s conftest.err'
 
6540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6541
  (eval $ac_try) 2>&5
 
6542
  ac_status=$?
 
6543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6544
  (exit $ac_status); }; } &&
 
6545
         { ac_try='test -s conftest.$ac_objext'
 
6546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6547
  (eval $ac_try) 2>&5
 
6548
  ac_status=$?
 
6549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6550
  (exit $ac_status); }; }; then
 
6551
  ac_compiler_gnu=yes
 
6552
else
 
6553
  echo "$as_me: failed program was:" >&5
 
6554
sed 's/^/| /' conftest.$ac_ext >&5
 
6555
 
 
6556
ac_compiler_gnu=no
 
6557
fi
 
6558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6559
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6560
 
 
6561
fi
 
6562
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
6563
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
6564
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
6565
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6566
ac_save_CXXFLAGS=$CXXFLAGS
 
6567
CXXFLAGS="-g"
 
6568
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
6569
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
6570
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6572
else
 
6573
  cat >conftest.$ac_ext <<_ACEOF
 
6574
/* confdefs.h.  */
 
6575
_ACEOF
 
6576
cat confdefs.h >>conftest.$ac_ext
 
6577
cat >>conftest.$ac_ext <<_ACEOF
 
6578
/* end confdefs.h.  */
 
6579
 
 
6580
int
 
6581
main ()
 
6582
{
 
6583
 
 
6584
  ;
 
6585
  return 0;
 
6586
}
 
6587
_ACEOF
 
6588
rm -f conftest.$ac_objext
 
6589
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6590
  (eval $ac_compile) 2>conftest.er1
 
6591
  ac_status=$?
 
6592
  grep -v '^ *+' conftest.er1 >conftest.err
 
6593
  rm -f conftest.er1
 
6594
  cat conftest.err >&5
 
6595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6596
  (exit $ac_status); } &&
 
6597
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6598
                         || test ! -s conftest.err'
 
6599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6600
  (eval $ac_try) 2>&5
 
6601
  ac_status=$?
 
6602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6603
  (exit $ac_status); }; } &&
 
6604
         { ac_try='test -s conftest.$ac_objext'
 
6605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6606
  (eval $ac_try) 2>&5
 
6607
  ac_status=$?
 
6608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6609
  (exit $ac_status); }; }; then
 
6610
  ac_cv_prog_cxx_g=yes
 
6611
else
 
6612
  echo "$as_me: failed program was:" >&5
 
6613
sed 's/^/| /' conftest.$ac_ext >&5
 
6614
 
 
6615
ac_cv_prog_cxx_g=no
 
6616
fi
 
6617
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6618
fi
 
6619
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6620
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
6621
if test "$ac_test_CXXFLAGS" = set; then
 
6622
  CXXFLAGS=$ac_save_CXXFLAGS
 
6623
elif test $ac_cv_prog_cxx_g = yes; then
 
6624
  if test "$GXX" = yes; then
 
6625
    CXXFLAGS="-g -O2"
 
6626
  else
 
6627
    CXXFLAGS="-g"
 
6628
  fi
 
6629
else
 
6630
  if test "$GXX" = yes; then
 
6631
    CXXFLAGS="-O2"
 
6632
  else
 
6633
    CXXFLAGS=
 
6634
  fi
 
6635
fi
 
6636
for ac_declaration in \
 
6637
   '' \
 
6638
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
6639
   'extern "C" void std::exit (int); using std::exit;' \
 
6640
   'extern "C" void exit (int) throw ();' \
 
6641
   'extern "C" void exit (int);' \
 
6642
   'void exit (int);'
 
6643
do
 
6644
  cat >conftest.$ac_ext <<_ACEOF
 
6645
/* confdefs.h.  */
 
6646
_ACEOF
 
6647
cat confdefs.h >>conftest.$ac_ext
 
6648
cat >>conftest.$ac_ext <<_ACEOF
 
6649
/* end confdefs.h.  */
 
6650
$ac_declaration
 
6651
#include <stdlib.h>
 
6652
int
 
6653
main ()
 
6654
{
 
6655
exit (42);
 
6656
  ;
 
6657
  return 0;
 
6658
}
 
6659
_ACEOF
 
6660
rm -f conftest.$ac_objext
 
6661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6662
  (eval $ac_compile) 2>conftest.er1
 
6663
  ac_status=$?
 
6664
  grep -v '^ *+' conftest.er1 >conftest.err
 
6665
  rm -f conftest.er1
 
6666
  cat conftest.err >&5
 
6667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6668
  (exit $ac_status); } &&
 
6669
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6670
                         || test ! -s conftest.err'
 
6671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6672
  (eval $ac_try) 2>&5
 
6673
  ac_status=$?
 
6674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6675
  (exit $ac_status); }; } &&
 
6676
         { ac_try='test -s conftest.$ac_objext'
 
6677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6678
  (eval $ac_try) 2>&5
 
6679
  ac_status=$?
 
6680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6681
  (exit $ac_status); }; }; then
 
6682
  :
 
6683
else
 
6684
  echo "$as_me: failed program was:" >&5
 
6685
sed 's/^/| /' conftest.$ac_ext >&5
 
6686
 
 
6687
continue
 
6688
fi
 
6689
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6690
  cat >conftest.$ac_ext <<_ACEOF
 
6691
/* confdefs.h.  */
 
6692
_ACEOF
 
6693
cat confdefs.h >>conftest.$ac_ext
 
6694
cat >>conftest.$ac_ext <<_ACEOF
 
6695
/* end confdefs.h.  */
 
6696
$ac_declaration
 
6697
int
 
6698
main ()
 
6699
{
 
6700
exit (42);
 
6701
  ;
 
6702
  return 0;
 
6703
}
 
6704
_ACEOF
 
6705
rm -f conftest.$ac_objext
 
6706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6707
  (eval $ac_compile) 2>conftest.er1
 
6708
  ac_status=$?
 
6709
  grep -v '^ *+' conftest.er1 >conftest.err
 
6710
  rm -f conftest.er1
 
6711
  cat conftest.err >&5
 
6712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6713
  (exit $ac_status); } &&
 
6714
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6715
                         || test ! -s conftest.err'
 
6716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6717
  (eval $ac_try) 2>&5
 
6718
  ac_status=$?
 
6719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6720
  (exit $ac_status); }; } &&
 
6721
         { ac_try='test -s conftest.$ac_objext'
 
6722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6723
  (eval $ac_try) 2>&5
 
6724
  ac_status=$?
 
6725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6726
  (exit $ac_status); }; }; then
 
6727
  break
 
6728
else
 
6729
  echo "$as_me: failed program was:" >&5
 
6730
sed 's/^/| /' conftest.$ac_ext >&5
 
6731
 
 
6732
fi
 
6733
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6734
done
 
6735
rm -f conftest*
 
6736
if test -n "$ac_declaration"; then
 
6737
  echo '#ifdef __cplusplus' >>confdefs.h
 
6738
  echo $ac_declaration      >>confdefs.h
 
6739
  echo '#endif'             >>confdefs.h
 
6740
fi
 
6741
 
 
6742
ac_ext=cc
 
6743
ac_cpp='$CXXCPP $CPPFLAGS'
 
6744
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6745
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6746
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6747
 
 
6748
depcc="$CXX"  am_compiler_list=
 
6749
 
 
6750
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6751
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
6752
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6754
else
 
6755
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6756
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6757
  # making bogus files that we don't know about and never remove.  For
 
6758
  # instance it was reported that on HP-UX the gcc test will end up
 
6759
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6760
  # in D'.
 
6761
  mkdir conftest.dir
 
6762
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6763
  # using a relative directory.
 
6764
  cp "$am_depcomp" conftest.dir
 
6765
  cd conftest.dir
 
6766
  # We will build objects and dependencies in a subdirectory because
 
6767
  # it helps to detect inapplicable dependency modes.  For instance
 
6768
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6769
  # side effect of compilation, but ICC will put the dependencies in
 
6770
  # the current directory while Tru64 will put them in the object
 
6771
  # directory.
 
6772
  mkdir sub
 
6773
 
 
6774
  am_cv_CXX_dependencies_compiler_type=none
 
6775
  if test "$am_compiler_list" = ""; then
 
6776
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6777
  fi
 
6778
  for depmode in $am_compiler_list; do
 
6779
    # Setup a source with many dependencies, because some compilers
 
6780
    # like to wrap large dependency lists on column 80 (with \), and
 
6781
    # we should not choose a depcomp mode which is confused by this.
 
6782
    #
 
6783
    # We need to recreate these files for each test, as the compiler may
 
6784
    # overwrite some of them when testing with obscure command lines.
 
6785
    # This happens at least with the AIX C compiler.
 
6786
    : > sub/conftest.c
 
6787
    for i in 1 2 3 4 5 6; do
 
6788
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6789
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6790
      # Solaris 8's {/usr,}/bin/sh.
 
6791
      touch sub/conftst$i.h
 
6792
    done
 
6793
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6794
 
 
6795
    case $depmode in
 
6796
    nosideeffect)
 
6797
      # after this tag, mechanisms are not by side-effect, so they'll
 
6798
      # only be used when explicitly requested
 
6799
      if test "x$enable_dependency_tracking" = xyes; then
 
6800
        continue
 
6801
      else
 
6802
        break
 
6803
      fi
 
6804
      ;;
 
6805
    none) break ;;
 
6806
    esac
 
6807
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6808
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6809
    # handle `-M -o', and we need to detect this.
 
6810
    if depmode=$depmode \
 
6811
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6812
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6813
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6814
         >/dev/null 2>conftest.err &&
 
6815
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6816
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6817
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6818
      # icc doesn't choke on unknown options, it will just issue warnings
 
6819
      # (even with -Werror).  So we grep stderr for any message
 
6820
      # that says an option was ignored.
 
6821
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
6822
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6823
        break
 
6824
      fi
 
6825
    fi
 
6826
  done
 
6827
 
 
6828
  cd ..
 
6829
  rm -rf conftest.dir
 
6830
else
 
6831
  am_cv_CXX_dependencies_compiler_type=none
 
6832
fi
 
6833
 
 
6834
fi
 
6835
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6836
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6837
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6838
 
 
6839
 
 
6840
 
 
6841
if
 
6842
  test "x$enable_dependency_tracking" != xno \
 
6843
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6844
  am__fastdepCXX_TRUE=
 
6845
  am__fastdepCXX_FALSE='#'
 
6846
else
 
6847
  am__fastdepCXX_TRUE='#'
 
6848
  am__fastdepCXX_FALSE=
 
6849
fi
 
6850
 
 
6851
 
 
6852
ac_ext=cc
 
6853
ac_cpp='$CXXCPP $CPPFLAGS'
 
6854
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6855
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6856
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6857
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6858
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6859
if test -z "$CXXCPP"; then
 
6860
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6862
else
 
6863
      # Double quotes because CXXCPP needs to be expanded
 
6864
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6865
    do
 
6866
      ac_preproc_ok=false
 
6867
for ac_cxx_preproc_warn_flag in '' yes
 
6868
do
 
6869
  # Use a header file that comes with gcc, so configuring glibc
 
6870
  # with a fresh cross-compiler works.
 
6871
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6872
  # <limits.h> exists even on freestanding compilers.
 
6873
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6874
  # not just through cpp. "Syntax error" is here to catch this case.
 
6875
  cat >conftest.$ac_ext <<_ACEOF
 
6876
/* confdefs.h.  */
 
6877
_ACEOF
 
6878
cat confdefs.h >>conftest.$ac_ext
 
6879
cat >>conftest.$ac_ext <<_ACEOF
 
6880
/* end confdefs.h.  */
 
6881
#ifdef __STDC__
 
6882
# include <limits.h>
 
6883
#else
 
6884
# include <assert.h>
 
6885
#endif
 
6886
                     Syntax error
 
6887
_ACEOF
 
6888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6889
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6890
  ac_status=$?
 
6891
  grep -v '^ *+' conftest.er1 >conftest.err
 
6892
  rm -f conftest.er1
 
6893
  cat conftest.err >&5
 
6894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6895
  (exit $ac_status); } >/dev/null; then
 
6896
  if test -s conftest.err; then
 
6897
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6898
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6899
  else
 
6900
    ac_cpp_err=
 
6901
  fi
 
6902
else
 
6903
  ac_cpp_err=yes
 
6904
fi
 
6905
if test -z "$ac_cpp_err"; then
 
6906
  :
 
6907
else
 
6908
  echo "$as_me: failed program was:" >&5
 
6909
sed 's/^/| /' conftest.$ac_ext >&5
 
6910
 
 
6911
  # Broken: fails on valid input.
 
6912
continue
 
6913
fi
 
6914
rm -f conftest.err conftest.$ac_ext
 
6915
 
 
6916
  # OK, works on sane cases.  Now check whether non-existent headers
 
6917
  # can be detected and how.
 
6918
  cat >conftest.$ac_ext <<_ACEOF
 
6919
/* confdefs.h.  */
 
6920
_ACEOF
 
6921
cat confdefs.h >>conftest.$ac_ext
 
6922
cat >>conftest.$ac_ext <<_ACEOF
 
6923
/* end confdefs.h.  */
 
6924
#include <ac_nonexistent.h>
 
6925
_ACEOF
 
6926
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6927
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6928
  ac_status=$?
 
6929
  grep -v '^ *+' conftest.er1 >conftest.err
 
6930
  rm -f conftest.er1
 
6931
  cat conftest.err >&5
 
6932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6933
  (exit $ac_status); } >/dev/null; then
 
6934
  if test -s conftest.err; then
 
6935
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6936
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6937
  else
 
6938
    ac_cpp_err=
 
6939
  fi
 
6940
else
 
6941
  ac_cpp_err=yes
 
6942
fi
 
6943
if test -z "$ac_cpp_err"; then
 
6944
  # Broken: success on invalid input.
 
6945
continue
 
6946
else
 
6947
  echo "$as_me: failed program was:" >&5
 
6948
sed 's/^/| /' conftest.$ac_ext >&5
 
6949
 
 
6950
  # Passes both tests.
 
6951
ac_preproc_ok=:
 
6952
break
 
6953
fi
 
6954
rm -f conftest.err conftest.$ac_ext
 
6955
 
 
6956
done
 
6957
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6958
rm -f conftest.err conftest.$ac_ext
 
6959
if $ac_preproc_ok; then
 
6960
  break
 
6961
fi
 
6962
 
 
6963
    done
 
6964
    ac_cv_prog_CXXCPP=$CXXCPP
 
6965
 
 
6966
fi
 
6967
  CXXCPP=$ac_cv_prog_CXXCPP
 
6968
else
 
6969
  ac_cv_prog_CXXCPP=$CXXCPP
 
6970
fi
 
6971
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6972
echo "${ECHO_T}$CXXCPP" >&6
 
6973
ac_preproc_ok=false
 
6974
for ac_cxx_preproc_warn_flag in '' yes
 
6975
do
 
6976
  # Use a header file that comes with gcc, so configuring glibc
 
6977
  # with a fresh cross-compiler works.
 
6978
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6979
  # <limits.h> exists even on freestanding compilers.
 
6980
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6981
  # not just through cpp. "Syntax error" is here to catch this case.
 
6982
  cat >conftest.$ac_ext <<_ACEOF
 
6983
/* confdefs.h.  */
 
6984
_ACEOF
 
6985
cat confdefs.h >>conftest.$ac_ext
 
6986
cat >>conftest.$ac_ext <<_ACEOF
 
6987
/* end confdefs.h.  */
 
6988
#ifdef __STDC__
 
6989
# include <limits.h>
 
6990
#else
 
6991
# include <assert.h>
 
6992
#endif
 
6993
                     Syntax error
 
6994
_ACEOF
 
6995
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6996
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6997
  ac_status=$?
 
6998
  grep -v '^ *+' conftest.er1 >conftest.err
 
6999
  rm -f conftest.er1
 
7000
  cat conftest.err >&5
 
7001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7002
  (exit $ac_status); } >/dev/null; then
 
7003
  if test -s conftest.err; then
 
7004
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7005
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7006
  else
 
7007
    ac_cpp_err=
 
7008
  fi
 
7009
else
 
7010
  ac_cpp_err=yes
 
7011
fi
 
7012
if test -z "$ac_cpp_err"; then
 
7013
  :
 
7014
else
 
7015
  echo "$as_me: failed program was:" >&5
 
7016
sed 's/^/| /' conftest.$ac_ext >&5
 
7017
 
 
7018
  # Broken: fails on valid input.
 
7019
continue
 
7020
fi
 
7021
rm -f conftest.err conftest.$ac_ext
 
7022
 
 
7023
  # OK, works on sane cases.  Now check whether non-existent headers
 
7024
  # can be detected and how.
 
7025
  cat >conftest.$ac_ext <<_ACEOF
 
7026
/* confdefs.h.  */
 
7027
_ACEOF
 
7028
cat confdefs.h >>conftest.$ac_ext
 
7029
cat >>conftest.$ac_ext <<_ACEOF
 
7030
/* end confdefs.h.  */
 
7031
#include <ac_nonexistent.h>
 
7032
_ACEOF
 
7033
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7034
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7035
  ac_status=$?
 
7036
  grep -v '^ *+' conftest.er1 >conftest.err
 
7037
  rm -f conftest.er1
 
7038
  cat conftest.err >&5
 
7039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7040
  (exit $ac_status); } >/dev/null; then
 
7041
  if test -s conftest.err; then
 
7042
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7043
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7044
  else
 
7045
    ac_cpp_err=
 
7046
  fi
 
7047
else
 
7048
  ac_cpp_err=yes
 
7049
fi
 
7050
if test -z "$ac_cpp_err"; then
 
7051
  # Broken: success on invalid input.
 
7052
continue
 
7053
else
 
7054
  echo "$as_me: failed program was:" >&5
 
7055
sed 's/^/| /' conftest.$ac_ext >&5
 
7056
 
 
7057
  # Passes both tests.
 
7058
ac_preproc_ok=:
 
7059
break
 
7060
fi
 
7061
rm -f conftest.err conftest.$ac_ext
 
7062
 
 
7063
done
 
7064
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7065
rm -f conftest.err conftest.$ac_ext
 
7066
if $ac_preproc_ok; then
 
7067
  :
 
7068
else
 
7069
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7070
See \`config.log' for more details." >&5
 
7071
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7072
See \`config.log' for more details." >&2;}
 
7073
   { (exit 1); exit 1; }; }
 
7074
fi
 
7075
 
 
7076
ac_ext=cc
 
7077
ac_cpp='$CXXCPP $CPPFLAGS'
 
7078
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7079
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7080
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7081
 
 
7082
 
 
7083
ac_ext=f
 
7084
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7085
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7086
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7087
if test -n "$ac_tool_prefix"; then
 
7088
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7089
  do
 
7090
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7091
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7092
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7094
if test "${ac_cv_prog_F77+set}" = set; then
 
7095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7096
else
 
7097
  if test -n "$F77"; then
 
7098
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7099
else
 
7100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7101
for as_dir in $PATH
 
7102
do
 
7103
  IFS=$as_save_IFS
 
7104
  test -z "$as_dir" && as_dir=.
 
7105
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7106
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7107
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7108
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7109
    break 2
 
7110
  fi
 
7111
done
 
7112
done
 
7113
 
 
7114
fi
 
7115
fi
 
7116
F77=$ac_cv_prog_F77
 
7117
if test -n "$F77"; then
 
7118
  echo "$as_me:$LINENO: result: $F77" >&5
 
7119
echo "${ECHO_T}$F77" >&6
 
7120
else
 
7121
  echo "$as_me:$LINENO: result: no" >&5
 
7122
echo "${ECHO_T}no" >&6
 
7123
fi
 
7124
 
 
7125
    test -n "$F77" && break
 
7126
  done
 
7127
fi
 
7128
if test -z "$F77"; then
 
7129
  ac_ct_F77=$F77
 
7130
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7131
do
 
7132
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7133
set dummy $ac_prog; ac_word=$2
 
7134
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7135
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7136
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7138
else
 
7139
  if test -n "$ac_ct_F77"; then
 
7140
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7141
else
 
7142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7143
for as_dir in $PATH
 
7144
do
 
7145
  IFS=$as_save_IFS
 
7146
  test -z "$as_dir" && as_dir=.
 
7147
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7148
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7149
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7150
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7151
    break 2
 
7152
  fi
 
7153
done
 
7154
done
 
7155
 
 
7156
fi
 
7157
fi
 
7158
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7159
if test -n "$ac_ct_F77"; then
 
7160
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7161
echo "${ECHO_T}$ac_ct_F77" >&6
 
7162
else
 
7163
  echo "$as_me:$LINENO: result: no" >&5
 
7164
echo "${ECHO_T}no" >&6
 
7165
fi
 
7166
 
 
7167
  test -n "$ac_ct_F77" && break
 
7168
done
 
7169
 
 
7170
  F77=$ac_ct_F77
 
7171
fi
 
7172
 
 
7173
 
 
7174
# Provide some information about the compiler.
 
7175
echo "$as_me:7175:" \
 
7176
     "checking for Fortran 77 compiler version" >&5
 
7177
ac_compiler=`set X $ac_compile; echo $2`
 
7178
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7179
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7180
  ac_status=$?
 
7181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7182
  (exit $ac_status); }
 
7183
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7184
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7185
  ac_status=$?
 
7186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7187
  (exit $ac_status); }
 
7188
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7189
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7190
  ac_status=$?
 
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7192
  (exit $ac_status); }
 
7193
rm -f a.out
 
7194
 
 
7195
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7196
# input file.  (Note that this only needs to work for GNU compilers.)
 
7197
ac_save_ext=$ac_ext
 
7198
ac_ext=F
 
7199
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7200
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
7201
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7203
else
 
7204
  cat >conftest.$ac_ext <<_ACEOF
 
7205
      program main
 
7206
#ifndef __GNUC__
 
7207
       choke me
 
7208
#endif
 
7209
 
 
7210
      end
 
7211
_ACEOF
 
7212
rm -f conftest.$ac_objext
 
7213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7214
  (eval $ac_compile) 2>conftest.er1
 
7215
  ac_status=$?
 
7216
  grep -v '^ *+' conftest.er1 >conftest.err
 
7217
  rm -f conftest.er1
 
7218
  cat conftest.err >&5
 
7219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7220
  (exit $ac_status); } &&
 
7221
         { ac_try='test -z "$ac_f77_werror_flag"
 
7222
                         || test ! -s conftest.err'
 
7223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7224
  (eval $ac_try) 2>&5
 
7225
  ac_status=$?
 
7226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7227
  (exit $ac_status); }; } &&
 
7228
         { ac_try='test -s conftest.$ac_objext'
 
7229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7230
  (eval $ac_try) 2>&5
 
7231
  ac_status=$?
 
7232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7233
  (exit $ac_status); }; }; then
 
7234
  ac_compiler_gnu=yes
 
7235
else
 
7236
  echo "$as_me: failed program was:" >&5
 
7237
sed 's/^/| /' conftest.$ac_ext >&5
 
7238
 
 
7239
ac_compiler_gnu=no
 
7240
fi
 
7241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7242
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
7243
 
 
7244
fi
 
7245
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
7246
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
7247
ac_ext=$ac_save_ext
 
7248
ac_test_FFLAGS=${FFLAGS+set}
 
7249
ac_save_FFLAGS=$FFLAGS
 
7250
FFLAGS=
 
7251
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
7252
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
7253
if test "${ac_cv_prog_f77_g+set}" = set; then
 
7254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7255
else
 
7256
  FFLAGS=-g
 
7257
cat >conftest.$ac_ext <<_ACEOF
 
7258
      program main
 
7259
 
 
7260
      end
 
7261
_ACEOF
 
7262
rm -f conftest.$ac_objext
 
7263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7264
  (eval $ac_compile) 2>conftest.er1
 
7265
  ac_status=$?
 
7266
  grep -v '^ *+' conftest.er1 >conftest.err
 
7267
  rm -f conftest.er1
 
7268
  cat conftest.err >&5
 
7269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7270
  (exit $ac_status); } &&
 
7271
         { ac_try='test -z "$ac_f77_werror_flag"
 
7272
                         || test ! -s conftest.err'
 
7273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7274
  (eval $ac_try) 2>&5
 
7275
  ac_status=$?
 
7276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7277
  (exit $ac_status); }; } &&
 
7278
         { ac_try='test -s conftest.$ac_objext'
 
7279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7280
  (eval $ac_try) 2>&5
 
7281
  ac_status=$?
 
7282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7283
  (exit $ac_status); }; }; then
 
7284
  ac_cv_prog_f77_g=yes
 
7285
else
 
7286
  echo "$as_me: failed program was:" >&5
 
7287
sed 's/^/| /' conftest.$ac_ext >&5
 
7288
 
 
7289
ac_cv_prog_f77_g=no
 
7290
fi
 
7291
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7292
 
 
7293
fi
 
7294
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7295
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
7296
if test "$ac_test_FFLAGS" = set; then
 
7297
  FFLAGS=$ac_save_FFLAGS
 
7298
elif test $ac_cv_prog_f77_g = yes; then
 
7299
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7300
    FFLAGS="-g -O2"
 
7301
  else
 
7302
    FFLAGS="-g"
 
7303
  fi
 
7304
else
 
7305
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7306
    FFLAGS="-O2"
 
7307
  else
 
7308
    FFLAGS=
 
7309
  fi
 
7310
fi
 
7311
 
 
7312
G77=`test $ac_compiler_gnu = yes && echo yes`
 
7313
ac_ext=c
 
7314
ac_cpp='$CPP $CPPFLAGS'
 
7315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7318
 
 
7319
 
 
7320
 
 
7321
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
7322
 
 
7323
# find the maximum length of command line arguments
 
7324
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
7325
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
7326
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
7327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7328
else
 
7329
    i=0
 
7330
  testring="ABCD"
 
7331
 
 
7332
  case $build_os in
 
7333
  msdosdjgpp*)
 
7334
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
7335
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
7336
    # during glob expansion).  Even if it were fixed, the result of this
 
7337
    # check would be larger than it should be.
 
7338
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
7339
    ;;
 
7340
 
 
7341
  gnu*)
 
7342
    # Under GNU Hurd, this test is not required because there is
 
7343
    # no limit to the length of command line arguments.
 
7344
    # Libtool will interpret -1 as no limit whatsoever
 
7345
    lt_cv_sys_max_cmd_len=-1;
 
7346
    ;;
 
7347
 
 
7348
  cygwin* | mingw*)
 
7349
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7350
    # about 5 minutes as the teststring grows exponentially.
 
7351
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7352
    # you end up with a "frozen" computer, even though with patience
 
7353
    # the test eventually succeeds (with a max line length of 256k).
 
7354
    # Instead, let's just punt: use the minimum linelength reported by
 
7355
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7356
    lt_cv_sys_max_cmd_len=8192;
 
7357
    ;;
 
7358
 
 
7359
 *)
 
7360
    # If test is not a shell built-in, we'll probably end up computing a
 
7361
    # maximum length that is only half of the actual maximum length, but
 
7362
    # we can't tell.
 
7363
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
7364
               = "XX$testring") >/dev/null 2>&1 &&
 
7365
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
7366
            lt_cv_sys_max_cmd_len=$new_result &&
 
7367
            test $i != 17 # 1/2 MB should be enough
 
7368
    do
 
7369
      i=`expr $i + 1`
 
7370
      testring=$testring$testring
 
7371
    done
 
7372
    testring=
 
7373
    # Add a significant safety factor because C++ compilers can tack on massive
 
7374
    # amounts of additional arguments before passing them to the linker.
 
7375
    # It appears as though 1/2 is a usable value.
 
7376
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7377
    ;;
 
7378
  esac
 
7379
 
 
7380
fi
 
7381
 
 
7382
if test -n $lt_cv_sys_max_cmd_len ; then
 
7383
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
7384
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
7385
else
 
7386
  echo "$as_me:$LINENO: result: none" >&5
 
7387
echo "${ECHO_T}none" >&6
 
7388
fi
 
7389
 
 
7390
 
 
7391
 
 
7392
 
 
7393
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7394
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
7395
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
7396
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
7397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7398
else
 
7399
 
 
7400
# These are sane defaults that work on at least a few old systems.
 
7401
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7402
 
 
7403
# Character class describing NM global symbol codes.
 
7404
symcode='[BCDEGRST]'
 
7405
 
 
7406
# Regexp to match symbols that can be accessed directly from C.
 
7407
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7408
 
 
7409
# Transform the above into a raw symbol and a C symbol.
 
7410
symxfrm='\1 \2\3 \3'
 
7411
 
 
7412
# Transform an extracted symbol line into a proper C declaration
 
7413
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
7414
 
 
7415
# Transform an extracted symbol line into symbol name and symbol address
 
7416
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'"
 
7417
 
 
7418
# Define system-specific variables.
 
7419
case $host_os in
 
7420
aix*)
 
7421
  symcode='[BCDT]'
 
7422
  ;;
 
7423
cygwin* | mingw* | pw32*)
 
7424
  symcode='[ABCDGISTW]'
 
7425
  ;;
 
7426
hpux*) # Its linker distinguishes data from code symbols
 
7427
  if test "$host_cpu" = ia64; then
 
7428
    symcode='[ABCDEGRST]'
 
7429
  fi
 
7430
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7431
  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'"
 
7432
  ;;
 
7433
irix* | nonstopux*)
 
7434
  symcode='[BCDEGRST]'
 
7435
  ;;
 
7436
osf*)
 
7437
  symcode='[BCDEGQRST]'
 
7438
  ;;
 
7439
solaris* | sysv5*)
 
7440
  symcode='[BDT]'
 
7441
  ;;
 
7442
sysv4)
 
7443
  symcode='[DFNSTU]'
 
7444
  ;;
 
7445
esac
 
7446
 
 
7447
# Handle CRLF in mingw tool chain
 
7448
opt_cr=
 
7449
case $build_os in
 
7450
mingw*)
 
7451
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7452
  ;;
 
7453
esac
 
7454
 
 
7455
# If we're using GNU nm, then use its standard symbol codes.
 
7456
case `$NM -V 2>&1` in
 
7457
*GNU* | *'with BFD'*)
 
7458
  symcode='[ABCDGISTW]' ;;
 
7459
esac
 
7460
 
 
7461
# Try without a prefix undercore, then with it.
 
7462
for ac_symprfx in "" "_"; do
 
7463
 
 
7464
  # Write the raw and C identifiers.
 
7465
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
7466
 
 
7467
  # Check to see that the pipe works correctly.
 
7468
  pipe_works=no
 
7469
 
 
7470
  rm -f conftest*
 
7471
  cat > conftest.$ac_ext <<EOF
 
7472
#ifdef __cplusplus
 
7473
extern "C" {
 
7474
#endif
 
7475
char nm_test_var;
 
7476
void nm_test_func(){}
 
7477
#ifdef __cplusplus
 
7478
}
 
7479
#endif
 
7480
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7481
EOF
 
7482
 
 
7483
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7484
  (eval $ac_compile) 2>&5
 
7485
  ac_status=$?
 
7486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7487
  (exit $ac_status); }; then
 
7488
    # Now try to grab the symbols.
 
7489
    nlist=conftest.nm
 
7490
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7491
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7492
  ac_status=$?
 
7493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7494
  (exit $ac_status); } && test -s "$nlist"; then
 
7495
      # Try sorting and uniquifying the output.
 
7496
      if sort "$nlist" | uniq > "$nlist"T; then
 
7497
        mv -f "$nlist"T "$nlist"
 
7498
      else
 
7499
        rm -f "$nlist"T
 
7500
      fi
 
7501
 
 
7502
      # Make sure that we snagged all the symbols we need.
 
7503
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7504
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7505
          cat <<EOF > conftest.$ac_ext
 
7506
#ifdef __cplusplus
 
7507
extern "C" {
 
7508
#endif
 
7509
 
 
7510
EOF
 
7511
          # Now generate the symbol file.
 
7512
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7513
 
 
7514
          cat <<EOF >> conftest.$ac_ext
 
7515
#if defined (__STDC__) && __STDC__
 
7516
# define lt_ptr_t void *
 
7517
#else
 
7518
# define lt_ptr_t char *
 
7519
# define const
 
7520
#endif
 
7521
 
 
7522
/* The mapping between symbol names and symbols. */
 
7523
const struct {
 
7524
  const char *name;
 
7525
  lt_ptr_t address;
 
7526
}
 
7527
lt_preloaded_symbols[] =
 
7528
{
 
7529
EOF
 
7530
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7531
          cat <<\EOF >> conftest.$ac_ext
 
7532
  {0, (lt_ptr_t) 0}
 
7533
};
 
7534
 
 
7535
#ifdef __cplusplus
 
7536
}
 
7537
#endif
 
7538
EOF
 
7539
          # Now try linking the two files.
 
7540
          mv conftest.$ac_objext conftstm.$ac_objext
 
7541
          lt_save_LIBS="$LIBS"
 
7542
          lt_save_CFLAGS="$CFLAGS"
 
7543
          LIBS="conftstm.$ac_objext"
 
7544
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7545
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7546
  (eval $ac_link) 2>&5
 
7547
  ac_status=$?
 
7548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7549
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7550
            pipe_works=yes
 
7551
          fi
 
7552
          LIBS="$lt_save_LIBS"
 
7553
          CFLAGS="$lt_save_CFLAGS"
 
7554
        else
 
7555
          echo "cannot find nm_test_func in $nlist" >&5
 
7556
        fi
 
7557
      else
 
7558
        echo "cannot find nm_test_var in $nlist" >&5
 
7559
      fi
 
7560
    else
 
7561
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7562
    fi
 
7563
  else
 
7564
    echo "$progname: failed program was:" >&5
 
7565
    cat conftest.$ac_ext >&5
 
7566
  fi
 
7567
  rm -f conftest* conftst*
 
7568
 
 
7569
  # Do not use the global_symbol_pipe unless it works.
 
7570
  if test "$pipe_works" = yes; then
 
7571
    break
 
7572
  else
 
7573
    lt_cv_sys_global_symbol_pipe=
 
7574
  fi
 
7575
done
 
7576
 
 
7577
fi
 
7578
 
 
7579
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7580
  lt_cv_sys_global_symbol_to_cdecl=
 
7581
fi
 
7582
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7583
  echo "$as_me:$LINENO: result: failed" >&5
 
7584
echo "${ECHO_T}failed" >&6
 
7585
else
 
7586
  echo "$as_me:$LINENO: result: ok" >&5
 
7587
echo "${ECHO_T}ok" >&6
 
7588
fi
 
7589
 
 
7590
echo "$as_me:$LINENO: checking for objdir" >&5
 
7591
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
7592
if test "${lt_cv_objdir+set}" = set; then
 
7593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7594
else
 
7595
  rm -f .libs 2>/dev/null
 
7596
mkdir .libs 2>/dev/null
 
7597
if test -d .libs; then
 
7598
  lt_cv_objdir=.libs
 
7599
else
 
7600
  # MS-DOS does not allow filenames that begin with a dot.
 
7601
  lt_cv_objdir=_libs
 
7602
fi
 
7603
rmdir .libs 2>/dev/null
 
7604
fi
 
7605
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7606
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7607
objdir=$lt_cv_objdir
 
7608
 
 
7609
 
 
7610
 
 
7611
 
 
7612
 
 
7613
case $host_os in
 
7614
aix3*)
 
7615
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7616
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7617
  # vanish in a puff of smoke.
 
7618
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7619
    COLLECT_NAMES=
 
7620
    export COLLECT_NAMES
 
7621
  fi
 
7622
  ;;
 
7623
esac
 
7624
 
 
7625
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7626
# metacharacters that are still active within double-quoted strings.
 
7627
Xsed='sed -e s/^X//'
 
7628
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7629
 
 
7630
# Same as above, but do not quote variable references.
 
7631
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7632
 
 
7633
# Sed substitution to delay expansion of an escaped shell variable in a
 
7634
# double_quote_subst'ed string.
 
7635
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7636
 
 
7637
# Sed substitution to avoid accidental globbing in evaled expressions
 
7638
no_glob_subst='s/\*/\\\*/g'
 
7639
 
 
7640
# Constants:
 
7641
rm="rm -f"
 
7642
 
 
7643
# Global variables:
 
7644
default_ofile=libtool
 
7645
can_build_shared=yes
 
7646
 
 
7647
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7648
# which needs '.lib').
 
7649
libext=a
 
7650
ltmain="$ac_aux_dir/ltmain.sh"
 
7651
ofile="$default_ofile"
 
7652
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7653
 
 
7654
if test -n "$ac_tool_prefix"; then
 
7655
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7656
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7657
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7659
if test "${ac_cv_prog_AR+set}" = set; then
 
7660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7661
else
 
7662
  if test -n "$AR"; then
 
7663
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7664
else
 
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7666
for as_dir in $PATH
 
7667
do
 
7668
  IFS=$as_save_IFS
 
7669
  test -z "$as_dir" && as_dir=.
 
7670
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7671
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7672
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7674
    break 2
 
7675
  fi
 
7676
done
 
7677
done
 
7678
 
 
7679
fi
 
7680
fi
 
7681
AR=$ac_cv_prog_AR
 
7682
if test -n "$AR"; then
 
7683
  echo "$as_me:$LINENO: result: $AR" >&5
 
7684
echo "${ECHO_T}$AR" >&6
 
7685
else
 
7686
  echo "$as_me:$LINENO: result: no" >&5
 
7687
echo "${ECHO_T}no" >&6
 
7688
fi
 
7689
 
 
7690
fi
 
7691
if test -z "$ac_cv_prog_AR"; then
 
7692
  ac_ct_AR=$AR
 
7693
  # Extract the first word of "ar", so it can be a program name with args.
 
7694
set dummy ar; ac_word=$2
 
7695
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7697
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7699
else
 
7700
  if test -n "$ac_ct_AR"; then
 
7701
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7702
else
 
7703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7704
for as_dir in $PATH
 
7705
do
 
7706
  IFS=$as_save_IFS
 
7707
  test -z "$as_dir" && as_dir=.
 
7708
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7709
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7710
    ac_cv_prog_ac_ct_AR="ar"
 
7711
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7712
    break 2
 
7713
  fi
 
7714
done
 
7715
done
 
7716
 
 
7717
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
7718
fi
 
7719
fi
 
7720
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7721
if test -n "$ac_ct_AR"; then
 
7722
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7723
echo "${ECHO_T}$ac_ct_AR" >&6
 
7724
else
 
7725
  echo "$as_me:$LINENO: result: no" >&5
 
7726
echo "${ECHO_T}no" >&6
 
7727
fi
 
7728
 
 
7729
  AR=$ac_ct_AR
 
7730
else
 
7731
  AR="$ac_cv_prog_AR"
 
7732
fi
 
7733
 
 
7734
if test -n "$ac_tool_prefix"; then
 
7735
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7736
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7737
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7739
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7741
else
 
7742
  if test -n "$RANLIB"; then
 
7743
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7744
else
 
7745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7746
for as_dir in $PATH
 
7747
do
 
7748
  IFS=$as_save_IFS
 
7749
  test -z "$as_dir" && as_dir=.
 
7750
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7751
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7752
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7753
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7754
    break 2
 
7755
  fi
 
7756
done
 
7757
done
 
7758
 
 
7759
fi
 
7760
fi
 
7761
RANLIB=$ac_cv_prog_RANLIB
 
7762
if test -n "$RANLIB"; then
 
7763
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7764
echo "${ECHO_T}$RANLIB" >&6
 
7765
else
 
7766
  echo "$as_me:$LINENO: result: no" >&5
 
7767
echo "${ECHO_T}no" >&6
 
7768
fi
 
7769
 
 
7770
fi
 
7771
if test -z "$ac_cv_prog_RANLIB"; then
 
7772
  ac_ct_RANLIB=$RANLIB
 
7773
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7774
set dummy ranlib; ac_word=$2
 
7775
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7777
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7779
else
 
7780
  if test -n "$ac_ct_RANLIB"; then
 
7781
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7782
else
 
7783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7784
for as_dir in $PATH
 
7785
do
 
7786
  IFS=$as_save_IFS
 
7787
  test -z "$as_dir" && as_dir=.
 
7788
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7789
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7790
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7791
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7792
    break 2
 
7793
  fi
 
7794
done
 
7795
done
 
7796
 
 
7797
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7798
fi
 
7799
fi
 
7800
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7801
if test -n "$ac_ct_RANLIB"; then
 
7802
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7803
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7804
else
 
7805
  echo "$as_me:$LINENO: result: no" >&5
 
7806
echo "${ECHO_T}no" >&6
 
7807
fi
 
7808
 
 
7809
  RANLIB=$ac_ct_RANLIB
 
7810
else
 
7811
  RANLIB="$ac_cv_prog_RANLIB"
 
7812
fi
 
7813
 
 
7814
if test -n "$ac_tool_prefix"; then
 
7815
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7816
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7817
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7819
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7821
else
 
7822
  if test -n "$STRIP"; then
 
7823
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7824
else
 
7825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7826
for as_dir in $PATH
 
7827
do
 
7828
  IFS=$as_save_IFS
 
7829
  test -z "$as_dir" && as_dir=.
 
7830
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7831
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7832
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7833
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7834
    break 2
 
7835
  fi
 
7836
done
 
7837
done
 
7838
 
 
7839
fi
 
7840
fi
 
7841
STRIP=$ac_cv_prog_STRIP
 
7842
if test -n "$STRIP"; then
 
7843
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7844
echo "${ECHO_T}$STRIP" >&6
 
7845
else
 
7846
  echo "$as_me:$LINENO: result: no" >&5
 
7847
echo "${ECHO_T}no" >&6
 
7848
fi
 
7849
 
 
7850
fi
 
7851
if test -z "$ac_cv_prog_STRIP"; then
 
7852
  ac_ct_STRIP=$STRIP
 
7853
  # Extract the first word of "strip", so it can be a program name with args.
 
7854
set dummy strip; ac_word=$2
 
7855
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7856
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7857
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7859
else
 
7860
  if test -n "$ac_ct_STRIP"; then
 
7861
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7862
else
 
7863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7864
for as_dir in $PATH
 
7865
do
 
7866
  IFS=$as_save_IFS
 
7867
  test -z "$as_dir" && as_dir=.
 
7868
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7869
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7870
    ac_cv_prog_ac_ct_STRIP="strip"
 
7871
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7872
    break 2
 
7873
  fi
 
7874
done
 
7875
done
 
7876
 
 
7877
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7878
fi
 
7879
fi
 
7880
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7881
if test -n "$ac_ct_STRIP"; then
 
7882
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7883
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7884
else
 
7885
  echo "$as_me:$LINENO: result: no" >&5
 
7886
echo "${ECHO_T}no" >&6
 
7887
fi
 
7888
 
 
7889
  STRIP=$ac_ct_STRIP
 
7890
else
 
7891
  STRIP="$ac_cv_prog_STRIP"
 
7892
fi
 
7893
 
 
7894
 
 
7895
old_CC="$CC"
 
7896
old_CFLAGS="$CFLAGS"
 
7897
 
 
7898
# Set sane defaults for various variables
 
7899
test -z "$AR" && AR=ar
 
7900
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7901
test -z "$AS" && AS=as
 
7902
test -z "$CC" && CC=cc
 
7903
test -z "$LTCC" && LTCC=$CC
 
7904
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7905
test -z "$LD" && LD=ld
 
7906
test -z "$LN_S" && LN_S="ln -s"
 
7907
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7908
test -z "$NM" && NM=nm
 
7909
test -z "$SED" && SED=sed
 
7910
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7911
test -z "$RANLIB" && RANLIB=:
 
7912
test -z "$STRIP" && STRIP=:
 
7913
test -z "$ac_objext" && ac_objext=o
 
7914
 
 
7915
# Determine commands to create old-style static archives.
 
7916
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7917
old_postinstall_cmds='chmod 644 $oldlib'
 
7918
old_postuninstall_cmds=
 
7919
 
 
7920
if test -n "$RANLIB"; then
 
7921
  case $host_os in
 
7922
  openbsd*)
 
7923
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7924
    ;;
 
7925
  *)
 
7926
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7927
    ;;
 
7928
  esac
 
7929
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7930
fi
 
7931
 
 
7932
# Only perform the check for file, if the check method requires it
 
7933
case $deplibs_check_method in
 
7934
file_magic*)
 
7935
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7936
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7937
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7938
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7940
else
 
7941
  case $MAGIC_CMD in
 
7942
[\\/*] |  ?:[\\/]*)
 
7943
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7944
  ;;
 
7945
*)
 
7946
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7947
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7948
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7949
  for ac_dir in $ac_dummy; do
 
7950
    IFS="$lt_save_ifs"
 
7951
    test -z "$ac_dir" && ac_dir=.
 
7952
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7953
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7954
      if test -n "$file_magic_test_file"; then
 
7955
        case $deplibs_check_method in
 
7956
        "file_magic "*)
 
7957
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7958
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7959
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7960
            $EGREP "$file_magic_regex" > /dev/null; then
 
7961
            :
 
7962
          else
 
7963
            cat <<EOF 1>&2
 
7964
 
 
7965
*** Warning: the command libtool uses to detect shared libraries,
 
7966
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7967
*** The result is that libtool may fail to recognize shared libraries
 
7968
*** as such.  This will affect the creation of libtool libraries that
 
7969
*** depend on shared libraries, but programs linked with such libtool
 
7970
*** libraries will work regardless of this problem.  Nevertheless, you
 
7971
*** may want to report the problem to your system manager and/or to
 
7972
*** bug-libtool@gnu.org
 
7973
 
 
7974
EOF
 
7975
          fi ;;
 
7976
        esac
 
7977
      fi
 
7978
      break
 
7979
    fi
 
7980
  done
 
7981
  IFS="$lt_save_ifs"
 
7982
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7983
  ;;
 
7984
esac
 
7985
fi
 
7986
 
 
7987
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7988
if test -n "$MAGIC_CMD"; then
 
7989
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7990
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7991
else
 
7992
  echo "$as_me:$LINENO: result: no" >&5
 
7993
echo "${ECHO_T}no" >&6
 
7994
fi
 
7995
 
 
7996
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7997
  if test -n "$ac_tool_prefix"; then
 
7998
    echo "$as_me:$LINENO: checking for file" >&5
 
7999
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8000
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8002
else
 
8003
  case $MAGIC_CMD in
 
8004
[\\/*] |  ?:[\\/]*)
 
8005
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8006
  ;;
 
8007
*)
 
8008
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8009
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8010
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8011
  for ac_dir in $ac_dummy; do
 
8012
    IFS="$lt_save_ifs"
 
8013
    test -z "$ac_dir" && ac_dir=.
 
8014
    if test -f $ac_dir/file; then
 
8015
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8016
      if test -n "$file_magic_test_file"; then
 
8017
        case $deplibs_check_method in
 
8018
        "file_magic "*)
 
8019
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8020
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8021
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8022
            $EGREP "$file_magic_regex" > /dev/null; then
 
8023
            :
 
8024
          else
 
8025
            cat <<EOF 1>&2
 
8026
 
 
8027
*** Warning: the command libtool uses to detect shared libraries,
 
8028
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8029
*** The result is that libtool may fail to recognize shared libraries
 
8030
*** as such.  This will affect the creation of libtool libraries that
 
8031
*** depend on shared libraries, but programs linked with such libtool
 
8032
*** libraries will work regardless of this problem.  Nevertheless, you
 
8033
*** may want to report the problem to your system manager and/or to
 
8034
*** bug-libtool@gnu.org
 
8035
 
 
8036
EOF
 
8037
          fi ;;
 
8038
        esac
 
8039
      fi
 
8040
      break
 
8041
    fi
 
8042
  done
 
8043
  IFS="$lt_save_ifs"
 
8044
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8045
  ;;
 
8046
esac
 
8047
fi
 
8048
 
 
8049
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8050
if test -n "$MAGIC_CMD"; then
 
8051
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8052
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8053
else
 
8054
  echo "$as_me:$LINENO: result: no" >&5
 
8055
echo "${ECHO_T}no" >&6
 
8056
fi
 
8057
 
 
8058
  else
 
8059
    MAGIC_CMD=:
 
8060
  fi
 
8061
fi
 
8062
 
 
8063
  fi
 
8064
  ;;
 
8065
esac
 
8066
 
 
8067
enable_dlopen=no
 
8068
enable_win32_dll=yes
 
8069
 
 
8070
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8071
if test "${enable_libtool_lock+set}" = set; then
 
8072
  enableval="$enable_libtool_lock"
 
8073
 
 
8074
fi;
 
8075
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8076
 
 
8077
 
 
8078
# Check whether --with-pic or --without-pic was given.
 
8079
if test "${with_pic+set}" = set; then
 
8080
  withval="$with_pic"
 
8081
  pic_mode="$withval"
 
8082
else
 
8083
  pic_mode=default
 
8084
fi;
 
8085
test -z "$pic_mode" && pic_mode=default
 
8086
 
 
8087
# Use C for the default configuration in the libtool script
 
8088
tagname=
 
8089
lt_save_CC="$CC"
 
8090
ac_ext=c
 
8091
ac_cpp='$CPP $CPPFLAGS'
 
8092
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8093
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8094
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8095
 
 
8096
 
 
8097
# Source file extension for C test sources.
 
8098
ac_ext=c
 
8099
 
 
8100
# Object file extension for compiled C test sources.
 
8101
objext=o
 
8102
objext=$objext
 
8103
 
 
8104
# Code to be used in simple compile tests
 
8105
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8106
 
 
8107
# Code to be used in simple link tests
 
8108
lt_simple_link_test_code='int main(){return(0);}\n'
 
8109
 
 
8110
 
 
8111
# If no C compiler was specified, use CC.
 
8112
LTCC=${LTCC-"$CC"}
 
8113
 
 
8114
# Allow CC to be a program name with arguments.
 
8115
compiler=$CC
 
8116
 
 
8117
 
 
8118
#
 
8119
# Check for any special shared library compilation flags.
 
8120
#
 
8121
lt_prog_cc_shlib=
 
8122
if test "$GCC" = no; then
 
8123
  case $host_os in
 
8124
  sco3.2v5*)
 
8125
    lt_prog_cc_shlib='-belf'
 
8126
    ;;
 
8127
  esac
 
8128
fi
 
8129
if test -n "$lt_prog_cc_shlib"; then
 
8130
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8131
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8132
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8133
  else
 
8134
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8135
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8136
    lt_cv_prog_cc_can_build_shared=no
 
8137
  fi
 
8138
fi
 
8139
 
 
8140
 
 
8141
#
 
8142
# Check to make sure the static flag actually works.
 
8143
#
 
8144
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8145
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8146
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8148
else
 
8149
  lt_prog_compiler_static_works=no
 
8150
   save_LDFLAGS="$LDFLAGS"
 
8151
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8152
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8153
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8154
     # The compiler can only warn and ignore the option if not recognized
 
8155
     # So say no if there are warnings
 
8156
     if test -s conftest.err; then
 
8157
       # Append any errors to the config.log.
 
8158
       cat conftest.err 1>&5
 
8159
     else
 
8160
       lt_prog_compiler_static_works=yes
 
8161
     fi
 
8162
   fi
 
8163
   $rm conftest*
 
8164
   LDFLAGS="$save_LDFLAGS"
 
8165
 
 
8166
fi
 
8167
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8168
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8169
 
 
8170
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8171
    :
 
8172
else
 
8173
    lt_prog_compiler_static=
 
8174
fi
 
8175
 
 
8176
 
 
8177
 
 
8178
## CAVEAT EMPTOR:
 
8179
## There is no encapsulation within the following macros, do not change
 
8180
## the running order or otherwise move them around unless you know exactly
 
8181
## what you are doing...
 
8182
 
 
8183
lt_prog_compiler_no_builtin_flag=
 
8184
 
 
8185
if test "$GCC" = yes; then
 
8186
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8187
 
 
8188
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8189
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
8190
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
8191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8192
else
 
8193
  lt_cv_prog_compiler_rtti_exceptions=no
 
8194
  ac_outfile=conftest.$ac_objext
 
8195
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8196
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8197
   # Insert the option either (1) after the last *FLAGS variable, or
 
8198
   # (2) before a word containing "conftest.", or (3) at the end.
 
8199
   # Note that $ac_compile itself does not contain backslashes and begins
 
8200
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8201
   # The option is referenced via a variable to avoid confusing sed.
 
8202
   lt_compile=`echo "$ac_compile" | $SED \
 
8203
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8204
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8205
   -e 's:$: $lt_compiler_flag:'`
 
8206
   (eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
 
8207
   (eval "$lt_compile" 2>conftest.err)
 
8208
   ac_status=$?
 
8209
   cat conftest.err >&5
 
8210
   echo "$as_me:8210: \$? = $ac_status" >&5
 
8211
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8212
     # The compiler can only warn and ignore the option if not recognized
 
8213
     # So say no if there are warnings
 
8214
     if test ! -s conftest.err; then
 
8215
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8216
     fi
 
8217
   fi
 
8218
   $rm conftest*
 
8219
 
 
8220
fi
 
8221
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8222
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
8223
 
 
8224
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8225
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8226
else
 
8227
    :
 
8228
fi
 
8229
 
 
8230
fi
 
8231
 
 
8232
lt_prog_compiler_wl=
 
8233
lt_prog_compiler_pic=
 
8234
lt_prog_compiler_static=
 
8235
 
 
8236
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
8237
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
8238
 
 
8239
  if test "$GCC" = yes; then
 
8240
    lt_prog_compiler_wl='-Wl,'
 
8241
    lt_prog_compiler_static='-static'
 
8242
 
 
8243
    case $host_os in
 
8244
      aix*)
 
8245
      # All AIX code is PIC.
 
8246
      if test "$host_cpu" = ia64; then
 
8247
        # AIX 5 now supports IA64 processor
 
8248
        lt_prog_compiler_static='-Bstatic'
 
8249
      fi
 
8250
      ;;
 
8251
 
 
8252
    amigaos*)
 
8253
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8254
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8255
      # like `-m68040'.
 
8256
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8257
      ;;
 
8258
 
 
8259
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8260
      # PIC is the default for these OSes.
 
8261
      ;;
 
8262
 
 
8263
    mingw* | pw32* | os2*)
 
8264
      # This hack is so that the source file can tell whether it is being
 
8265
      # built for inclusion in a dll (and should export symbols for example).
 
8266
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8267
      ;;
 
8268
 
 
8269
    darwin* | rhapsody*)
 
8270
      # PIC is the default on this platform
 
8271
      # Common symbols not allowed in MH_DYLIB files
 
8272
      lt_prog_compiler_pic='-fno-common'
 
8273
      ;;
 
8274
 
 
8275
    msdosdjgpp*)
 
8276
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8277
      # on systems that don't support them.
 
8278
      lt_prog_compiler_can_build_shared=no
 
8279
      enable_shared=no
 
8280
      ;;
 
8281
 
 
8282
    sysv4*MP*)
 
8283
      if test -d /usr/nec; then
 
8284
        lt_prog_compiler_pic=-Kconform_pic
 
8285
      fi
 
8286
      ;;
 
8287
 
 
8288
    hpux*)
 
8289
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8290
      # not for PA HP-UX.
 
8291
      case "$host_cpu" in
 
8292
      hppa*64*|ia64*)
 
8293
        # +Z the default
 
8294
        ;;
 
8295
      *)
 
8296
        lt_prog_compiler_pic='-fPIC'
 
8297
        ;;
 
8298
      esac
 
8299
      ;;
 
8300
 
 
8301
    *)
 
8302
      lt_prog_compiler_pic='-fPIC'
 
8303
      ;;
 
8304
    esac
 
8305
  else
 
8306
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8307
    case $host_os in
 
8308
    aix*)
 
8309
      lt_prog_compiler_wl='-Wl,'
 
8310
      if test "$host_cpu" = ia64; then
 
8311
        # AIX 5 now supports IA64 processor
 
8312
        lt_prog_compiler_static='-Bstatic'
 
8313
      else
 
8314
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8315
      fi
 
8316
      ;;
 
8317
 
 
8318
    mingw* | pw32* | os2*)
 
8319
      # This hack is so that the source file can tell whether it is being
 
8320
      # built for inclusion in a dll (and should export symbols for example).
 
8321
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8322
      ;;
 
8323
 
 
8324
    hpux9* | hpux10* | hpux11*)
 
8325
      lt_prog_compiler_wl='-Wl,'
 
8326
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8327
      # not for PA HP-UX.
 
8328
      case "$host_cpu" in
 
8329
      hppa*64*|ia64*)
 
8330
        # +Z the default
 
8331
        ;;
 
8332
      *)
 
8333
        lt_prog_compiler_pic='+Z'
 
8334
        ;;
 
8335
      esac
 
8336
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8337
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8338
      ;;
 
8339
 
 
8340
    irix5* | irix6* | nonstopux*)
 
8341
      lt_prog_compiler_wl='-Wl,'
 
8342
      # PIC (with -KPIC) is the default.
 
8343
      lt_prog_compiler_static='-non_shared'
 
8344
      ;;
 
8345
 
 
8346
    newsos6)
 
8347
      lt_prog_compiler_pic='-KPIC'
 
8348
      lt_prog_compiler_static='-Bstatic'
 
8349
      ;;
 
8350
 
 
8351
    linux*)
 
8352
      case $CC in
 
8353
      icc|ecc)
 
8354
        lt_prog_compiler_wl='-Wl,'
 
8355
        lt_prog_compiler_pic='-KPIC'
 
8356
        lt_prog_compiler_static='-static'
 
8357
        ;;
 
8358
      ccc)
 
8359
        lt_prog_compiler_wl='-Wl,'
 
8360
        # All Alpha code is PIC.
 
8361
        lt_prog_compiler_static='-non_shared'
 
8362
        ;;
 
8363
      esac
 
8364
      ;;
 
8365
 
 
8366
    osf3* | osf4* | osf5*)
 
8367
      lt_prog_compiler_wl='-Wl,'
 
8368
      # All OSF/1 code is PIC.
 
8369
      lt_prog_compiler_static='-non_shared'
 
8370
      ;;
 
8371
 
 
8372
    sco3.2v5*)
 
8373
      lt_prog_compiler_pic='-Kpic'
 
8374
      lt_prog_compiler_static='-dn'
 
8375
      ;;
 
8376
 
 
8377
    solaris*)
 
8378
      lt_prog_compiler_wl='-Wl,'
 
8379
      lt_prog_compiler_pic='-KPIC'
 
8380
      lt_prog_compiler_static='-Bstatic'
 
8381
      ;;
 
8382
 
 
8383
    sunos4*)
 
8384
      lt_prog_compiler_wl='-Qoption ld '
 
8385
      lt_prog_compiler_pic='-PIC'
 
8386
      lt_prog_compiler_static='-Bstatic'
 
8387
      ;;
 
8388
 
 
8389
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8390
      lt_prog_compiler_wl='-Wl,'
 
8391
      lt_prog_compiler_pic='-KPIC'
 
8392
      lt_prog_compiler_static='-Bstatic'
 
8393
      ;;
 
8394
 
 
8395
    sysv4*MP*)
 
8396
      if test -d /usr/nec ;then
 
8397
        lt_prog_compiler_pic='-Kconform_pic'
 
8398
        lt_prog_compiler_static='-Bstatic'
 
8399
      fi
 
8400
      ;;
 
8401
 
 
8402
    uts4*)
 
8403
      lt_prog_compiler_pic='-pic'
 
8404
      lt_prog_compiler_static='-Bstatic'
 
8405
      ;;
 
8406
 
 
8407
    *)
 
8408
      lt_prog_compiler_can_build_shared=no
 
8409
      ;;
 
8410
    esac
 
8411
  fi
 
8412
 
 
8413
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8414
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
8415
 
 
8416
#
 
8417
# Check to make sure the PIC flag actually works.
 
8418
#
 
8419
if test -n "$lt_prog_compiler_pic"; then
 
8420
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8421
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
8422
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8424
else
 
8425
  lt_prog_compiler_pic_works=no
 
8426
  ac_outfile=conftest.$ac_objext
 
8427
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8428
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8429
   # Insert the option either (1) after the last *FLAGS variable, or
 
8430
   # (2) before a word containing "conftest.", or (3) at the end.
 
8431
   # Note that $ac_compile itself does not contain backslashes and begins
 
8432
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8433
   # The option is referenced via a variable to avoid confusing sed.
 
8434
   lt_compile=`echo "$ac_compile" | $SED \
 
8435
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8436
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8437
   -e 's:$: $lt_compiler_flag:'`
 
8438
   (eval echo "\"\$as_me:8438: $lt_compile\"" >&5)
 
8439
   (eval "$lt_compile" 2>conftest.err)
 
8440
   ac_status=$?
 
8441
   cat conftest.err >&5
 
8442
   echo "$as_me:8442: \$? = $ac_status" >&5
 
8443
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8444
     # The compiler can only warn and ignore the option if not recognized
 
8445
     # So say no if there are warnings
 
8446
     if test ! -s conftest.err; then
 
8447
       lt_prog_compiler_pic_works=yes
 
8448
     fi
 
8449
   fi
 
8450
   $rm conftest*
 
8451
 
 
8452
fi
 
8453
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
8454
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8455
 
 
8456
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8457
    case $lt_prog_compiler_pic in
 
8458
     "" | " "*) ;;
 
8459
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8460
     esac
 
8461
else
 
8462
    lt_prog_compiler_pic=
 
8463
     lt_prog_compiler_can_build_shared=no
 
8464
fi
 
8465
 
 
8466
fi
 
8467
case "$host_os" in
 
8468
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8469
  *djgpp*)
 
8470
    lt_prog_compiler_pic=
 
8471
    ;;
 
8472
  *)
 
8473
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8474
    ;;
 
8475
esac
 
8476
 
 
8477
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8478
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8479
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8481
else
 
8482
  lt_cv_prog_compiler_c_o=no
 
8483
   $rm -r conftest 2>/dev/null
 
8484
   mkdir conftest
 
8485
   cd conftest
 
8486
   mkdir out
 
8487
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8488
 
 
8489
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
8490
   # that will create temporary files in the current directory regardless of
 
8491
   # the output directory.  Thus, making CWD read-only will cause this test
 
8492
   # to fail, enabling locking or at least warning the user not to do parallel
 
8493
   # builds.
 
8494
   chmod -w .
 
8495
 
 
8496
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8497
   # Insert the option either (1) after the last *FLAGS variable, or
 
8498
   # (2) before a word containing "conftest.", or (3) at the end.
 
8499
   # Note that $ac_compile itself does not contain backslashes and begins
 
8500
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8501
   lt_compile=`echo "$ac_compile" | $SED \
 
8502
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8503
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8504
   -e 's:$: $lt_compiler_flag:'`
 
8505
   (eval echo "\"\$as_me:8505: $lt_compile\"" >&5)
 
8506
   (eval "$lt_compile" 2>out/conftest.err)
 
8507
   ac_status=$?
 
8508
   cat out/conftest.err >&5
 
8509
   echo "$as_me:8509: \$? = $ac_status" >&5
 
8510
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8511
   then
 
8512
     # The compiler can only warn and ignore the option if not recognized
 
8513
     # So say no if there are warnings
 
8514
     if test ! -s out/conftest.err; then
 
8515
       lt_cv_prog_compiler_c_o=yes
 
8516
     fi
 
8517
   fi
 
8518
   chmod u+w .
 
8519
   $rm conftest* out/*
 
8520
   rmdir out
 
8521
   cd ..
 
8522
   rmdir conftest
 
8523
   $rm conftest*
 
8524
 
 
8525
fi
 
8526
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8527
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8528
 
 
8529
 
 
8530
hard_links="nottested"
 
8531
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8532
  # do not overwrite the value of need_locks provided by the user
 
8533
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8534
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8535
  hard_links=yes
 
8536
  $rm conftest*
 
8537
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8538
  touch conftest.a
 
8539
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8540
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8541
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
8542
echo "${ECHO_T}$hard_links" >&6
 
8543
  if test "$hard_links" = no; then
 
8544
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8545
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8546
    need_locks=warn
 
8547
  fi
 
8548
else
 
8549
  need_locks=no
 
8550
fi
 
8551
 
 
8552
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8553
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8554
 
 
8555
  runpath_var=
 
8556
  allow_undefined_flag=
 
8557
  enable_shared_with_static_runtimes=no
 
8558
  archive_cmds=
 
8559
  archive_expsym_cmds=
 
8560
  old_archive_From_new_cmds=
 
8561
  old_archive_from_expsyms_cmds=
 
8562
  export_dynamic_flag_spec=
 
8563
  whole_archive_flag_spec=
 
8564
  thread_safe_flag_spec=
 
8565
  hardcode_libdir_flag_spec=
 
8566
  hardcode_libdir_flag_spec_ld=
 
8567
  hardcode_libdir_separator=
 
8568
  hardcode_direct=no
 
8569
  hardcode_minus_L=no
 
8570
  hardcode_shlibpath_var=unsupported
 
8571
  link_all_deplibs=unknown
 
8572
  hardcode_automatic=no
 
8573
  module_cmds=
 
8574
  module_expsym_cmds=
 
8575
  always_export_symbols=no
 
8576
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8577
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8578
  # included in the symbol list
 
8579
  include_expsyms=
 
8580
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8581
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8582
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8583
  # as well as any symbol that contains `d'.
 
8584
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8585
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8586
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8587
  # the symbol is explicitly referenced.  Since portable code cannot
 
8588
  # rely on this symbol name, it's probably fine to never include it in
 
8589
  # preloaded symbol tables.
 
8590
  extract_expsyms_cmds=
 
8591
 
 
8592
  case $host_os in
 
8593
  cygwin* | mingw* | pw32*)
 
8594
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8595
    # When not using gcc, we currently assume that we are using
 
8596
    # Microsoft Visual C++.
 
8597
    if test "$GCC" != yes; then
 
8598
      with_gnu_ld=no
 
8599
    fi
 
8600
    ;;
 
8601
  openbsd*)
 
8602
    with_gnu_ld=no
 
8603
    ;;
 
8604
  esac
 
8605
 
 
8606
  ld_shlibs=yes
 
8607
  if test "$with_gnu_ld" = yes; then
 
8608
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8609
    wlarc='${wl}'
 
8610
 
 
8611
    # See if GNU ld supports shared libraries.
 
8612
    case $host_os in
 
8613
    aix3* | aix4* | aix5*)
 
8614
      # On AIX/PPC, the GNU linker is very broken
 
8615
      if test "$host_cpu" != ia64; then
 
8616
        ld_shlibs=no
 
8617
        cat <<EOF 1>&2
 
8618
 
 
8619
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8620
*** to be unable to reliably create shared libraries on AIX.
 
8621
*** Therefore, libtool is disabling shared libraries support.  If you
 
8622
*** really care for shared libraries, you may want to modify your PATH
 
8623
*** so that a non-GNU linker is found, and then restart.
 
8624
 
 
8625
EOF
 
8626
      fi
 
8627
      ;;
 
8628
 
 
8629
    amigaos*)
 
8630
      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)'
 
8631
      hardcode_libdir_flag_spec='-L$libdir'
 
8632
      hardcode_minus_L=yes
 
8633
 
 
8634
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8635
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8636
      # to version 4, is to share data among multiple programs linked
 
8637
      # with the same dynamic library.  Since this doesn't match the
 
8638
      # behavior of shared libraries on other platforms, we can't use
 
8639
      # them.
 
8640
      ld_shlibs=no
 
8641
      ;;
 
8642
 
 
8643
    beos*)
 
8644
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8645
        allow_undefined_flag=unsupported
 
8646
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8647
        # support --undefined.  This deserves some investigation.  FIXME
 
8648
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8649
      else
 
8650
        ld_shlibs=no
 
8651
      fi
 
8652
      ;;
 
8653
 
 
8654
    cygwin* | mingw* | pw32*)
 
8655
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8656
      # as there is no search path for DLLs.
 
8657
      hardcode_libdir_flag_spec='-L$libdir'
 
8658
      allow_undefined_flag=unsupported
 
8659
      always_export_symbols=no
 
8660
      enable_shared_with_static_runtimes=yes
 
8661
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8662
 
 
8663
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8664
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
 
8665
        # If the export-symbols file already is a .def file (1st line
 
8666
        # is EXPORTS), use it as is; otherwise, prepend...
 
8667
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8668
          cp $export_symbols $output_objdir/$soname.def;
 
8669
        else
 
8670
          echo EXPORTS > $output_objdir/$soname.def;
 
8671
          cat $export_symbols >> $output_objdir/$soname.def;
 
8672
        fi~
 
8673
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base  ${wl}--out-implib,$lib'
 
8674
      else
 
8675
        ld_shlibs=no
 
8676
      fi
 
8677
      ;;
 
8678
 
 
8679
    netbsd*)
 
8680
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8681
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8682
        wlarc=
 
8683
      else
 
8684
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8685
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8686
      fi
 
8687
      ;;
 
8688
 
 
8689
    solaris* | sysv5*)
 
8690
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8691
        ld_shlibs=no
 
8692
        cat <<EOF 1>&2
 
8693
 
 
8694
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8695
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8696
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8697
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8698
*** your PATH or compiler configuration so that the native linker is
 
8699
*** used, and then restart.
 
8700
 
 
8701
EOF
 
8702
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8703
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8704
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8705
      else
 
8706
        ld_shlibs=no
 
8707
      fi
 
8708
      ;;
 
8709
 
 
8710
    sunos4*)
 
8711
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8712
      wlarc=
 
8713
      hardcode_direct=yes
 
8714
      hardcode_shlibpath_var=no
 
8715
      ;;
 
8716
 
 
8717
    *)
 
8718
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8719
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8720
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8721
      else
 
8722
        ld_shlibs=no
 
8723
      fi
 
8724
      ;;
 
8725
    esac
 
8726
 
 
8727
    if test "$ld_shlibs" = yes; then
 
8728
      runpath_var=LD_RUN_PATH
 
8729
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8730
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
8731
      # ancient GNU ld didn't support --whole-archive et. al.
 
8732
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8733
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8734
      else
 
8735
        whole_archive_flag_spec=
 
8736
      fi
 
8737
    fi
 
8738
  else
 
8739
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8740
    case $host_os in
 
8741
    aix3*)
 
8742
      allow_undefined_flag=unsupported
 
8743
      always_export_symbols=yes
 
8744
      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'
 
8745
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8746
      # are no directories specified by -L.
 
8747
      hardcode_minus_L=yes
 
8748
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8749
        # Neither direct hardcoding nor static linking is supported with a
 
8750
        # broken collect2.
 
8751
        hardcode_direct=unsupported
 
8752
      fi
 
8753
      ;;
 
8754
 
 
8755
    aix4* | aix5*)
 
8756
      if test "$host_cpu" = ia64; then
 
8757
        # On IA64, the linker does run time linking by default, so we don't
 
8758
        # have to do anything special.
 
8759
        aix_use_runtimelinking=no
 
8760
        exp_sym_flag='-Bexport'
 
8761
        no_entry_flag=""
 
8762
      else
 
8763
        # If we're using GNU nm, then we don't want the "-C" option.
 
8764
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8765
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8766
          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'
 
8767
        else
 
8768
          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'
 
8769
        fi
 
8770
        aix_use_runtimelinking=no
 
8771
 
 
8772
        # Test if we are trying to use run time linking or normal
 
8773
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8774
        # need to do runtime linking.
 
8775
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8776
          for ld_flag in $LDFLAGS; do
 
8777
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8778
            aix_use_runtimelinking=yes
 
8779
            break
 
8780
          fi
 
8781
          done
 
8782
        esac
 
8783
 
 
8784
        exp_sym_flag='-bexport'
 
8785
        no_entry_flag='-bnoentry'
 
8786
      fi
 
8787
 
 
8788
      # When large executables or shared objects are built, AIX ld can
 
8789
      # have problems creating the table of contents.  If linking a library
 
8790
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8791
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8792
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8793
 
 
8794
      archive_cmds=''
 
8795
      hardcode_direct=yes
 
8796
      hardcode_libdir_separator=':'
 
8797
      link_all_deplibs=yes
 
8798
 
 
8799
      if test "$GCC" = yes; then
 
8800
        case $host_os in aix4.012|aix4.012.*)
 
8801
        # We only want to do this on AIX 4.2 and lower, the check
 
8802
        # below for broken collect2 doesn't work under 4.3+
 
8803
          collect2name=`${CC} -print-prog-name=collect2`
 
8804
          if test -f "$collect2name" && \
 
8805
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8806
          then
 
8807
          # We have reworked collect2
 
8808
          hardcode_direct=yes
 
8809
          else
 
8810
          # We have old collect2
 
8811
          hardcode_direct=unsupported
 
8812
          # It fails to find uninstalled libraries when the uninstalled
 
8813
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8814
          # to unsupported forces relinking
 
8815
          hardcode_minus_L=yes
 
8816
          hardcode_libdir_flag_spec='-L$libdir'
 
8817
          hardcode_libdir_separator=
 
8818
          fi
 
8819
        esac
 
8820
        shared_flag='-shared'
 
8821
      else
 
8822
        # not using gcc
 
8823
        if test "$host_cpu" = ia64; then
 
8824
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8825
        # chokes on -Wl,-G. The following line is correct:
 
8826
          shared_flag='-G'
 
8827
        else
 
8828
        if test "$aix_use_runtimelinking" = yes; then
 
8829
            shared_flag='${wl}-G'
 
8830
          else
 
8831
            shared_flag='${wl}-bM:SRE'
 
8832
        fi
 
8833
        fi
 
8834
      fi
 
8835
 
 
8836
      # It seems that -bexpall does not export symbols beginning with
 
8837
      # underscore (_), so it is better to generate a list of symbols to export.
 
8838
      always_export_symbols=yes
 
8839
      if test "$aix_use_runtimelinking" = yes; then
 
8840
        # Warning - without using the other runtime loading flags (-brtl),
 
8841
        # -berok will link without error, but may produce a broken library.
 
8842
        allow_undefined_flag='-berok'
 
8843
       # Determine the default libpath from the value encoded in an empty executable.
 
8844
       cat >conftest.$ac_ext <<_ACEOF
 
8845
/* confdefs.h.  */
 
8846
_ACEOF
 
8847
cat confdefs.h >>conftest.$ac_ext
 
8848
cat >>conftest.$ac_ext <<_ACEOF
 
8849
/* end confdefs.h.  */
 
8850
 
 
8851
int
 
8852
main ()
 
8853
{
 
8854
 
 
8855
  ;
 
8856
  return 0;
 
8857
}
 
8858
_ACEOF
 
8859
rm -f conftest.$ac_objext conftest$ac_exeext
 
8860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8861
  (eval $ac_link) 2>conftest.er1
 
8862
  ac_status=$?
 
8863
  grep -v '^ *+' conftest.er1 >conftest.err
 
8864
  rm -f conftest.er1
 
8865
  cat conftest.err >&5
 
8866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8867
  (exit $ac_status); } &&
 
8868
         { ac_try='test -z "$ac_c_werror_flag"
 
8869
                         || test ! -s conftest.err'
 
8870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8871
  (eval $ac_try) 2>&5
 
8872
  ac_status=$?
 
8873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8874
  (exit $ac_status); }; } &&
 
8875
         { ac_try='test -s conftest$ac_exeext'
 
8876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8877
  (eval $ac_try) 2>&5
 
8878
  ac_status=$?
 
8879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8880
  (exit $ac_status); }; }; then
 
8881
 
 
8882
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8883
}'`
 
8884
# Check for a 64-bit object if we didn't find anything.
 
8885
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; }
 
8886
}'`; fi
 
8887
else
 
8888
  echo "$as_me: failed program was:" >&5
 
8889
sed 's/^/| /' conftest.$ac_ext >&5
 
8890
 
 
8891
fi
 
8892
rm -f conftest.err conftest.$ac_objext \
 
8893
      conftest$ac_exeext conftest.$ac_ext
 
8894
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8895
 
 
8896
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8897
        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"
 
8898
       else
 
8899
        if test "$host_cpu" = ia64; then
 
8900
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8901
          allow_undefined_flag="-z nodefs"
 
8902
          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"
 
8903
        else
 
8904
         # Determine the default libpath from the value encoded in an empty executable.
 
8905
         cat >conftest.$ac_ext <<_ACEOF
 
8906
/* confdefs.h.  */
 
8907
_ACEOF
 
8908
cat confdefs.h >>conftest.$ac_ext
 
8909
cat >>conftest.$ac_ext <<_ACEOF
 
8910
/* end confdefs.h.  */
 
8911
 
 
8912
int
 
8913
main ()
 
8914
{
 
8915
 
 
8916
  ;
 
8917
  return 0;
 
8918
}
 
8919
_ACEOF
 
8920
rm -f conftest.$ac_objext conftest$ac_exeext
 
8921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8922
  (eval $ac_link) 2>conftest.er1
 
8923
  ac_status=$?
 
8924
  grep -v '^ *+' conftest.er1 >conftest.err
 
8925
  rm -f conftest.er1
 
8926
  cat conftest.err >&5
 
8927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8928
  (exit $ac_status); } &&
 
8929
         { ac_try='test -z "$ac_c_werror_flag"
 
8930
                         || test ! -s conftest.err'
 
8931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8932
  (eval $ac_try) 2>&5
 
8933
  ac_status=$?
 
8934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8935
  (exit $ac_status); }; } &&
 
8936
         { ac_try='test -s conftest$ac_exeext'
 
8937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8938
  (eval $ac_try) 2>&5
 
8939
  ac_status=$?
 
8940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8941
  (exit $ac_status); }; }; then
 
8942
 
 
8943
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8944
}'`
 
8945
# Check for a 64-bit object if we didn't find anything.
 
8946
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; }
 
8947
}'`; fi
 
8948
else
 
8949
  echo "$as_me: failed program was:" >&5
 
8950
sed 's/^/| /' conftest.$ac_ext >&5
 
8951
 
 
8952
fi
 
8953
rm -f conftest.err conftest.$ac_objext \
 
8954
      conftest$ac_exeext conftest.$ac_ext
 
8955
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8956
 
 
8957
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8958
          # Warning - without using the other run time loading flags,
 
8959
          # -berok will link without error, but may produce a broken library.
 
8960
          no_undefined_flag=' ${wl}-bernotok'
 
8961
          allow_undefined_flag=' ${wl}-berok'
 
8962
          # -bexpall does not export symbols beginning with underscore (_)
 
8963
          always_export_symbols=yes
 
8964
          # Exported symbols can be pulled into shared objects from archives
 
8965
          whole_archive_flag_spec=' '
 
8966
          archive_cmds_need_lc=yes
 
8967
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8968
          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'
 
8969
        fi
 
8970
      fi
 
8971
      ;;
 
8972
 
 
8973
    amigaos*)
 
8974
      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)'
 
8975
      hardcode_libdir_flag_spec='-L$libdir'
 
8976
      hardcode_minus_L=yes
 
8977
      # see comment about different semantics on the GNU ld section
 
8978
      ld_shlibs=no
 
8979
      ;;
 
8980
 
 
8981
    bsdi4*)
 
8982
      export_dynamic_flag_spec=-rdynamic
 
8983
      ;;
 
8984
 
 
8985
    cygwin* | mingw* | pw32*)
 
8986
      # When not using gcc, we currently assume that we are using
 
8987
      # Microsoft Visual C++.
 
8988
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8989
      # no search path for DLLs.
 
8990
      hardcode_libdir_flag_spec=' '
 
8991
      allow_undefined_flag=unsupported
 
8992
      # Tell ltmain to make .lib files, not .a files.
 
8993
      libext=lib
 
8994
      # Tell ltmain to make .dll files, not .so files.
 
8995
      shrext=".dll"
 
8996
      # FIXME: Setting linknames here is a bad hack.
 
8997
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8998
      # The linker will automatically build a .lib file if we build a DLL.
 
8999
      old_archive_From_new_cmds='true'
 
9000
      # FIXME: Should let the user specify the lib program.
 
9001
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9002
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9003
      enable_shared_with_static_runtimes=yes
 
9004
      ;;
 
9005
 
 
9006
    darwin* | rhapsody*)
 
9007
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
9008
      archive_cmds_need_lc=no
 
9009
      case "$host_os" in
 
9010
      rhapsody* | darwin1.[012])
 
9011
        allow_undefined_flag='-undefined suppress'
 
9012
        ;;
 
9013
      *) # Darwin 1.3 on
 
9014
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
9015
        ;;
 
9016
      esac
 
9017
      # FIXME: Relying on posixy $() will cause problems for
 
9018
      #        cross-compilation, but unfortunately the echo tests do not
 
9019
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
9020
      #        `"' quotes if we put them in here... so don't!
 
9021
        lt_int_apple_cc_single_mod=no
 
9022
        output_verbose_link_cmd='echo'
 
9023
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9024
          lt_int_apple_cc_single_mod=yes
 
9025
        fi
 
9026
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9027
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9028
        else
 
9029
        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'
 
9030
      fi
 
9031
      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
9032
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9033
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9034
          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}'
 
9035
        else
 
9036
          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}'
 
9037
        fi
 
9038
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9039
      hardcode_direct=no
 
9040
      hardcode_automatic=yes
 
9041
      hardcode_shlibpath_var=unsupported
 
9042
      whole_archive_flag_spec='-all_load $convenience'
 
9043
      link_all_deplibs=yes
 
9044
    fi
 
9045
      ;;
 
9046
 
 
9047
    dgux*)
 
9048
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9049
      hardcode_libdir_flag_spec='-L$libdir'
 
9050
      hardcode_shlibpath_var=no
 
9051
      ;;
 
9052
 
 
9053
    freebsd1*)
 
9054
      ld_shlibs=no
 
9055
      ;;
 
9056
 
 
9057
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9058
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9059
    # does not break anything, and helps significantly (at the cost of a little
 
9060
    # extra space).
 
9061
    freebsd2.2*)
 
9062
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9063
      hardcode_libdir_flag_spec='-R$libdir'
 
9064
      hardcode_direct=yes
 
9065
      hardcode_shlibpath_var=no
 
9066
      ;;
 
9067
 
 
9068
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9069
    freebsd2*)
 
9070
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9071
      hardcode_direct=yes
 
9072
      hardcode_minus_L=yes
 
9073
      hardcode_shlibpath_var=no
 
9074
      ;;
 
9075
 
 
9076
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9077
    freebsd*)
 
9078
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9079
      hardcode_libdir_flag_spec='-R$libdir'
 
9080
      hardcode_direct=yes
 
9081
      hardcode_shlibpath_var=no
 
9082
      ;;
 
9083
 
 
9084
    hpux9*)
 
9085
      if test "$GCC" = yes; then
 
9086
        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'
 
9087
      else
 
9088
        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'
 
9089
      fi
 
9090
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9091
      hardcode_libdir_separator=:
 
9092
      hardcode_direct=yes
 
9093
 
 
9094
      # hardcode_minus_L: Not really in the search PATH,
 
9095
      # but as the default location of the library.
 
9096
      hardcode_minus_L=yes
 
9097
      export_dynamic_flag_spec='${wl}-E'
 
9098
      ;;
 
9099
 
 
9100
    hpux10* | hpux11*)
 
9101
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9102
        case "$host_cpu" in
 
9103
        hppa*64*|ia64*)
 
9104
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9105
          ;;
 
9106
        *)
 
9107
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9108
          ;;
 
9109
        esac
 
9110
      else
 
9111
        case "$host_cpu" in
 
9112
        hppa*64*|ia64*)
 
9113
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9114
          ;;
 
9115
        *)
 
9116
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9117
          ;;
 
9118
        esac
 
9119
      fi
 
9120
      if test "$with_gnu_ld" = no; then
 
9121
        case "$host_cpu" in
 
9122
        hppa*64*)
 
9123
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9124
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9125
          hardcode_libdir_separator=:
 
9126
          hardcode_direct=no
 
9127
          hardcode_shlibpath_var=no
 
9128
          ;;
 
9129
        ia64*)
 
9130
          hardcode_libdir_flag_spec='-L$libdir'
 
9131
          hardcode_direct=no
 
9132
          hardcode_shlibpath_var=no
 
9133
 
 
9134
          # hardcode_minus_L: Not really in the search PATH,
 
9135
          # but as the default location of the library.
 
9136
          hardcode_minus_L=yes
 
9137
          ;;
 
9138
        *)
 
9139
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9140
          hardcode_libdir_separator=:
 
9141
          hardcode_direct=yes
 
9142
          export_dynamic_flag_spec='${wl}-E'
 
9143
 
 
9144
          # hardcode_minus_L: Not really in the search PATH,
 
9145
          # but as the default location of the library.
 
9146
          hardcode_minus_L=yes
 
9147
          ;;
 
9148
        esac
 
9149
      fi
 
9150
      ;;
 
9151
 
 
9152
    irix5* | irix6* | nonstopux*)
 
9153
      if test "$GCC" = yes; then
 
9154
        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'
 
9155
      else
 
9156
        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'
 
9157
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9158
      fi
 
9159
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9160
      hardcode_libdir_separator=:
 
9161
      link_all_deplibs=yes
 
9162
      ;;
 
9163
 
 
9164
    netbsd*)
 
9165
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9166
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9167
      else
 
9168
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9169
      fi
 
9170
      hardcode_libdir_flag_spec='-R$libdir'
 
9171
      hardcode_direct=yes
 
9172
      hardcode_shlibpath_var=no
 
9173
      ;;
 
9174
 
 
9175
    newsos6)
 
9176
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9177
      hardcode_direct=yes
 
9178
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9179
      hardcode_libdir_separator=:
 
9180
      hardcode_shlibpath_var=no
 
9181
      ;;
 
9182
 
 
9183
    openbsd*)
 
9184
      hardcode_direct=yes
 
9185
      hardcode_shlibpath_var=no
 
9186
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9187
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9188
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9189
        export_dynamic_flag_spec='${wl}-E'
 
9190
      else
 
9191
       case $host_os in
 
9192
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9193
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9194
           hardcode_libdir_flag_spec='-R$libdir'
 
9195
           ;;
 
9196
         *)
 
9197
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9198
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9199
           ;;
 
9200
       esac
 
9201
      fi
 
9202
      ;;
 
9203
 
 
9204
    os2*)
 
9205
      hardcode_libdir_flag_spec='-L$libdir'
 
9206
      hardcode_minus_L=yes
 
9207
      allow_undefined_flag=unsupported
 
9208
      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'
 
9209
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9210
      ;;
 
9211
 
 
9212
    osf3*)
 
9213
      if test "$GCC" = yes; then
 
9214
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9215
        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'
 
9216
      else
 
9217
        allow_undefined_flag=' -expect_unresolved \*'
 
9218
        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'
 
9219
      fi
 
9220
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9221
      hardcode_libdir_separator=:
 
9222
      ;;
 
9223
 
 
9224
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9225
      if test "$GCC" = yes; then
 
9226
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9227
        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'
 
9228
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9229
      else
 
9230
        allow_undefined_flag=' -expect_unresolved \*'
 
9231
        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'
 
9232
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9233
        $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'
 
9234
 
 
9235
        # Both c and cxx compiler support -rpath directly
 
9236
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9237
      fi
 
9238
      hardcode_libdir_separator=:
 
9239
      ;;
 
9240
 
 
9241
    sco3.2v5*)
 
9242
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9243
      hardcode_shlibpath_var=no
 
9244
      export_dynamic_flag_spec='${wl}-Bexport'
 
9245
      runpath_var=LD_RUN_PATH
 
9246
      hardcode_runpath_var=yes
 
9247
      ;;
 
9248
 
 
9249
    solaris*)
 
9250
      no_undefined_flag=' -z text'
 
9251
      if test "$GCC" = yes; then
 
9252
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9253
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9254
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9255
      else
 
9256
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9257
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9258
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9259
      fi
 
9260
      hardcode_libdir_flag_spec='-R$libdir'
 
9261
      hardcode_shlibpath_var=no
 
9262
      case $host_os in
 
9263
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9264
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9265
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9266
      esac
 
9267
      link_all_deplibs=yes
 
9268
      ;;
 
9269
 
 
9270
    sunos4*)
 
9271
      if test "x$host_vendor" = xsequent; then
 
9272
        # Use $CC to link under sequent, because it throws in some extra .o
 
9273
        # files that make .init and .fini sections work.
 
9274
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9275
      else
 
9276
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9277
      fi
 
9278
      hardcode_libdir_flag_spec='-L$libdir'
 
9279
      hardcode_direct=yes
 
9280
      hardcode_minus_L=yes
 
9281
      hardcode_shlibpath_var=no
 
9282
      ;;
 
9283
 
 
9284
    sysv4)
 
9285
      case $host_vendor in
 
9286
        sni)
 
9287
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9288
          hardcode_direct=yes # is this really true???
 
9289
        ;;
 
9290
        siemens)
 
9291
          ## LD is ld it makes a PLAMLIB
 
9292
          ## CC just makes a GrossModule.
 
9293
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9294
          reload_cmds='$CC -r -o $output$reload_objs'
 
9295
          hardcode_direct=no
 
9296
        ;;
 
9297
        motorola)
 
9298
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9299
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9300
        ;;
 
9301
      esac
 
9302
      runpath_var='LD_RUN_PATH'
 
9303
      hardcode_shlibpath_var=no
 
9304
      ;;
 
9305
 
 
9306
    sysv4.3*)
 
9307
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9308
      hardcode_shlibpath_var=no
 
9309
      export_dynamic_flag_spec='-Bexport'
 
9310
      ;;
 
9311
 
 
9312
    sysv4*MP*)
 
9313
      if test -d /usr/nec; then
 
9314
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9315
        hardcode_shlibpath_var=no
 
9316
        runpath_var=LD_RUN_PATH
 
9317
        hardcode_runpath_var=yes
 
9318
        ld_shlibs=yes
 
9319
      fi
 
9320
      ;;
 
9321
 
 
9322
    sysv4.2uw2*)
 
9323
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9324
      hardcode_direct=yes
 
9325
      hardcode_minus_L=no
 
9326
      hardcode_shlibpath_var=no
 
9327
      hardcode_runpath_var=yes
 
9328
      runpath_var=LD_RUN_PATH
 
9329
      ;;
 
9330
 
 
9331
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
9332
      no_undefined_flag='${wl}-z ${wl}text'
 
9333
      if test "$GCC" = yes; then
 
9334
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9335
      else
 
9336
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9337
      fi
 
9338
      runpath_var='LD_RUN_PATH'
 
9339
      hardcode_shlibpath_var=no
 
9340
      ;;
 
9341
 
 
9342
    sysv5*)
 
9343
      no_undefined_flag=' -z text'
 
9344
      # $CC -shared without GNU ld will not create a library from C++
 
9345
      # object files and a static libstdc++, better avoid it by now
 
9346
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9347
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9348
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9349
      hardcode_libdir_flag_spec=
 
9350
      hardcode_shlibpath_var=no
 
9351
      runpath_var='LD_RUN_PATH'
 
9352
      ;;
 
9353
 
 
9354
    uts4*)
 
9355
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9356
      hardcode_libdir_flag_spec='-L$libdir'
 
9357
      hardcode_shlibpath_var=no
 
9358
      ;;
 
9359
 
 
9360
    *)
 
9361
      ld_shlibs=no
 
9362
      ;;
 
9363
    esac
 
9364
  fi
 
9365
 
 
9366
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9367
echo "${ECHO_T}$ld_shlibs" >&6
 
9368
test "$ld_shlibs" = no && can_build_shared=no
 
9369
 
 
9370
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9371
if test "$GCC" = yes; then
 
9372
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9373
fi
 
9374
 
 
9375
#
 
9376
# Do we need to explicitly link libc?
 
9377
#
 
9378
case "x$archive_cmds_need_lc" in
 
9379
x|xyes)
 
9380
  # Assume -lc should be added
 
9381
  archive_cmds_need_lc=yes
 
9382
 
 
9383
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9384
    case $archive_cmds in
 
9385
    *'~'*)
 
9386
      # FIXME: we may have to deal with multi-command sequences.
 
9387
      ;;
 
9388
    '$CC '*)
 
9389
      # Test whether the compiler implicitly links with -lc since on some
 
9390
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9391
      # to ld, don't add -lc before -lgcc.
 
9392
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9393
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
9394
      $rm conftest*
 
9395
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9396
 
 
9397
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9398
  (eval $ac_compile) 2>&5
 
9399
  ac_status=$?
 
9400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9401
  (exit $ac_status); } 2>conftest.err; then
 
9402
        soname=conftest
 
9403
        lib=conftest
 
9404
        libobjs=conftest.$ac_objext
 
9405
        deplibs=
 
9406
        wl=$lt_prog_compiler_wl
 
9407
        compiler_flags=-v
 
9408
        linker_flags=-v
 
9409
        verstring=
 
9410
        output_objdir=.
 
9411
        libname=conftest
 
9412
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9413
        allow_undefined_flag=
 
9414
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9415
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9416
  ac_status=$?
 
9417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9418
  (exit $ac_status); }
 
9419
        then
 
9420
          archive_cmds_need_lc=no
 
9421
        else
 
9422
          archive_cmds_need_lc=yes
 
9423
        fi
 
9424
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9425
      else
 
9426
        cat conftest.err 1>&5
 
9427
      fi
 
9428
      $rm conftest*
 
9429
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9430
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9431
      ;;
 
9432
    esac
 
9433
  fi
 
9434
  ;;
 
9435
esac
 
9436
 
 
9437
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9438
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9439
hardcode_action=
 
9440
if test -n "$hardcode_libdir_flag_spec" || \
 
9441
   test -n "$runpath_var " || \
 
9442
   test "X$hardcode_automatic"="Xyes" ; then
 
9443
 
 
9444
  # We can hardcode non-existant directories.
 
9445
  if test "$hardcode_direct" != no &&
 
9446
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9447
     # have to relink, otherwise we might link with an installed library
 
9448
     # when we should be linking with a yet-to-be-installed one
 
9449
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9450
     test "$hardcode_minus_L" != no; then
 
9451
    # Linking always hardcodes the temporary library directory.
 
9452
    hardcode_action=relink
 
9453
  else
 
9454
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9455
    hardcode_action=immediate
 
9456
  fi
 
9457
else
 
9458
  # We cannot hardcode anything, or else we can only hardcode existing
 
9459
  # directories.
 
9460
  hardcode_action=unsupported
 
9461
fi
 
9462
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9463
echo "${ECHO_T}$hardcode_action" >&6
 
9464
 
 
9465
if test "$hardcode_action" = relink; then
 
9466
  # Fast installation is not supported
 
9467
  enable_fast_install=no
 
9468
elif test "$shlibpath_overrides_runpath" = yes ||
 
9469
     test "$enable_shared" = no; then
 
9470
  # Fast installation is not necessary
 
9471
  enable_fast_install=needless
 
9472
fi
 
9473
 
 
9474
striplib=
 
9475
old_striplib=
 
9476
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9477
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9478
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9479
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9480
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9481
  echo "$as_me:$LINENO: result: yes" >&5
 
9482
echo "${ECHO_T}yes" >&6
 
9483
else
 
9484
# FIXME - insert some real tests, host_os isn't really good enough
 
9485
  case $host_os in
 
9486
   darwin*)
 
9487
       if test -n "$STRIP" ; then
 
9488
         striplib="$STRIP -x"
 
9489
         echo "$as_me:$LINENO: result: yes" >&5
 
9490
echo "${ECHO_T}yes" >&6
 
9491
       else
 
9492
  echo "$as_me:$LINENO: result: no" >&5
 
9493
echo "${ECHO_T}no" >&6
 
9494
fi
 
9495
       ;;
 
9496
   *)
 
9497
  echo "$as_me:$LINENO: result: no" >&5
 
9498
echo "${ECHO_T}no" >&6
 
9499
    ;;
 
9500
  esac
 
9501
fi
 
9502
 
 
9503
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9504
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9505
library_names_spec=
 
9506
libname_spec='lib$name'
 
9507
soname_spec=
 
9508
shrext=".so"
 
9509
postinstall_cmds=
 
9510
postuninstall_cmds=
 
9511
finish_cmds=
 
9512
finish_eval=
 
9513
shlibpath_var=
 
9514
shlibpath_overrides_runpath=unknown
 
9515
version_type=none
 
9516
dynamic_linker="$host_os ld.so"
 
9517
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9518
if test "$GCC" = yes; then
 
9519
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9520
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9521
    # if the path contains ";" then we assume it to be the separator
 
9522
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9523
    # assumed that no part of a normal pathname contains ";" but that should
 
9524
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9525
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9526
  else
 
9527
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9528
  fi
 
9529
else
 
9530
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9531
fi
 
9532
need_lib_prefix=unknown
 
9533
hardcode_into_libs=no
 
9534
 
 
9535
# when you set need_version to no, make sure it does not cause -set_version
 
9536
# flags to be left without arguments
 
9537
need_version=unknown
 
9538
 
 
9539
case $host_os in
 
9540
aix3*)
 
9541
  version_type=linux
 
9542
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9543
  shlibpath_var=LIBPATH
 
9544
 
 
9545
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9546
  soname_spec='${libname}${release}${shared_ext}$major'
 
9547
  ;;
 
9548
 
 
9549
aix4* | aix5*)
 
9550
  version_type=linux
 
9551
  need_lib_prefix=no
 
9552
  need_version=no
 
9553
  hardcode_into_libs=yes
 
9554
  if test "$host_cpu" = ia64; then
 
9555
    # AIX 5 supports IA64
 
9556
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9557
    shlibpath_var=LD_LIBRARY_PATH
 
9558
  else
 
9559
    # With GCC up to 2.95.x, collect2 would create an import file
 
9560
    # for dependence libraries.  The import file would start with
 
9561
    # the line `#! .'.  This would cause the generated library to
 
9562
    # depend on `.', always an invalid library.  This was fixed in
 
9563
    # development snapshots of GCC prior to 3.0.
 
9564
    case $host_os in
 
9565
      aix4 | aix4.[01] | aix4.[01].*)
 
9566
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9567
           echo ' yes '
 
9568
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9569
        :
 
9570
      else
 
9571
        can_build_shared=no
 
9572
      fi
 
9573
      ;;
 
9574
    esac
 
9575
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9576
    # soname into executable. Probably we can add versioning support to
 
9577
    # collect2, so additional links can be useful in future.
 
9578
    if test "$aix_use_runtimelinking" = yes; then
 
9579
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9580
      # instead of lib<name>.a to let people know that these are not
 
9581
      # typical AIX shared libraries.
 
9582
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9583
    else
 
9584
      # We preserve .a as extension for shared libraries through AIX4.2
 
9585
      # and later when we are not doing run time linking.
 
9586
      library_names_spec='${libname}${release}.a $libname.a'
 
9587
      soname_spec='${libname}${release}${shared_ext}$major'
 
9588
    fi
 
9589
    shlibpath_var=LIBPATH
 
9590
  fi
 
9591
  ;;
 
9592
 
 
9593
amigaos*)
 
9594
  library_names_spec='$libname.ixlibrary $libname.a'
 
9595
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9596
  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'
 
9597
  ;;
 
9598
 
 
9599
beos*)
 
9600
  library_names_spec='${libname}${shared_ext}'
 
9601
  dynamic_linker="$host_os ld.so"
 
9602
  shlibpath_var=LIBRARY_PATH
 
9603
  ;;
 
9604
 
 
9605
bsdi4*)
 
9606
  version_type=linux
 
9607
  need_version=no
 
9608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9609
  soname_spec='${libname}${release}${shared_ext}$major'
 
9610
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9611
  shlibpath_var=LD_LIBRARY_PATH
 
9612
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9613
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9614
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9615
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9616
  # libtool to hard-code these into programs
 
9617
  ;;
 
9618
 
 
9619
cygwin* | mingw* | pw32*)
 
9620
  version_type=windows
 
9621
  shrext=".dll"
 
9622
  need_version=no
 
9623
  need_lib_prefix=no
 
9624
 
 
9625
  case $GCC,$host_os in
 
9626
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9627
    library_names_spec='$libname.dll.a'
 
9628
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9629
    postinstall_cmds='base_file=`basename \${file}`~
 
9630
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9631
      dldir=$destdir/`dirname \$dlpath`~
 
9632
      test -d \$dldir || mkdir -p \$dldir~
 
9633
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9634
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9635
      dlpath=$dir/\$dldll~
 
9636
       $rm \$dlpath'
 
9637
    shlibpath_overrides_runpath=yes
 
9638
 
 
9639
    case $host_os in
 
9640
    cygwin*)
 
9641
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9642
      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
9643
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
9644
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9645
      ;;
 
9646
    mingw*)
 
9647
      # MinGW DLLs use traditional 'lib' prefix
 
9648
      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
9649
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
9650
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9651
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9652
        # It is most probably a Windows format PATH printed by
 
9653
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9654
        # path with ; separators, and with drive letters. We can handle the
 
9655
        # drive letters (cygwin fileutils understands them), so leave them,
 
9656
        # especially as we might pass files found there to a mingw objdump,
 
9657
        # which wouldn't understand a cygwinified path. Ahh.
 
9658
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9659
      else
 
9660
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9661
      fi
 
9662
      ;;
 
9663
    pw32*)
 
9664
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9665
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9666
      ;;
 
9667
    esac
 
9668
    ;;
 
9669
 
 
9670
  *)
 
9671
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9672
    ;;
 
9673
  esac
 
9674
  dynamic_linker='Win32 ld.exe'
 
9675
  # FIXME: first we should search . and the directory the executable is in
 
9676
  shlibpath_var=PATH
 
9677
  ;;
 
9678
 
 
9679
darwin* | rhapsody*)
 
9680
  dynamic_linker="$host_os dyld"
 
9681
  version_type=darwin
 
9682
  need_lib_prefix=no
 
9683
  need_version=no
 
9684
  # FIXME: Relying on posixy $() will cause problems for
 
9685
  #        cross-compilation, but unfortunately the echo tests do not
 
9686
  #        yet detect zsh echo's removal of \ escapes.
 
9687
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9688
  soname_spec='${libname}${release}${major}$shared_ext'
 
9689
  shlibpath_overrides_runpath=yes
 
9690
  shlibpath_var=DYLD_LIBRARY_PATH
 
9691
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
9692
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9693
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
9694
  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"`
 
9695
  fi
 
9696
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9697
  ;;
 
9698
 
 
9699
dgux*)
 
9700
  version_type=linux
 
9701
  need_lib_prefix=no
 
9702
  need_version=no
 
9703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9704
  soname_spec='${libname}${release}${shared_ext}$major'
 
9705
  shlibpath_var=LD_LIBRARY_PATH
 
9706
  ;;
 
9707
 
 
9708
freebsd1*)
 
9709
  dynamic_linker=no
 
9710
  ;;
 
9711
 
 
9712
freebsd*)
 
9713
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9714
  version_type=freebsd-$objformat
 
9715
  case $version_type in
 
9716
    freebsd-elf*)
 
9717
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9718
      need_version=no
 
9719
      need_lib_prefix=no
 
9720
      ;;
 
9721
    freebsd-*)
 
9722
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9723
      need_version=yes
 
9724
      ;;
 
9725
  esac
 
9726
  shlibpath_var=LD_LIBRARY_PATH
 
9727
  case $host_os in
 
9728
  freebsd2*)
 
9729
    shlibpath_overrides_runpath=yes
 
9730
    ;;
 
9731
  freebsd3.01* | freebsdelf3.01*)
 
9732
    shlibpath_overrides_runpath=yes
 
9733
    hardcode_into_libs=yes
 
9734
    ;;
 
9735
  *) # from 3.2 on
 
9736
    shlibpath_overrides_runpath=no
 
9737
    hardcode_into_libs=yes
 
9738
    ;;
 
9739
  esac
 
9740
  ;;
 
9741
 
 
9742
gnu*)
 
9743
  version_type=linux
 
9744
  need_lib_prefix=no
 
9745
  need_version=no
 
9746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9747
  soname_spec='${libname}${release}${shared_ext}$major'
 
9748
  shlibpath_var=LD_LIBRARY_PATH
 
9749
  hardcode_into_libs=yes
 
9750
  ;;
 
9751
 
 
9752
hpux9* | hpux10* | hpux11*)
 
9753
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9754
  # link against other versions.
 
9755
  version_type=sunos
 
9756
  need_lib_prefix=no
 
9757
  need_version=no
 
9758
  case "$host_cpu" in
 
9759
  ia64*)
 
9760
    shrext='.so'
 
9761
    hardcode_into_libs=yes
 
9762
    dynamic_linker="$host_os dld.so"
 
9763
    shlibpath_var=LD_LIBRARY_PATH
 
9764
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9765
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9766
    soname_spec='${libname}${release}${shared_ext}$major'
 
9767
    if test "X$HPUX_IA64_MODE" = X32; then
 
9768
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9769
    else
 
9770
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9771
    fi
 
9772
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9773
    ;;
 
9774
   hppa*64*)
 
9775
     shrext='.sl'
 
9776
     hardcode_into_libs=yes
 
9777
     dynamic_linker="$host_os dld.sl"
 
9778
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9779
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9780
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9781
     soname_spec='${libname}${release}${shared_ext}$major'
 
9782
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9783
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9784
     ;;
 
9785
   *)
 
9786
    shrext='.sl'
 
9787
    dynamic_linker="$host_os dld.sl"
 
9788
    shlibpath_var=SHLIB_PATH
 
9789
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9790
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9791
    soname_spec='${libname}${release}${shared_ext}$major'
 
9792
    ;;
 
9793
  esac
 
9794
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9795
  postinstall_cmds='chmod 555 $lib'
 
9796
  ;;
 
9797
 
 
9798
irix5* | irix6* | nonstopux*)
 
9799
  case $host_os in
 
9800
    nonstopux*) version_type=nonstopux ;;
 
9801
    *)
 
9802
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9803
                version_type=linux
 
9804
        else
 
9805
                version_type=irix
 
9806
        fi ;;
 
9807
  esac
 
9808
  need_lib_prefix=no
 
9809
  need_version=no
 
9810
  soname_spec='${libname}${release}${shared_ext}$major'
 
9811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9812
  case $host_os in
 
9813
  irix5* | nonstopux*)
 
9814
    libsuff= shlibsuff=
 
9815
    ;;
 
9816
  *)
 
9817
    case $LD in # libtool.m4 will add one of these switches to LD
 
9818
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9819
      libsuff= shlibsuff= libmagic=32-bit;;
 
9820
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9821
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9822
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9823
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9824
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9825
    esac
 
9826
    ;;
 
9827
  esac
 
9828
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9829
  shlibpath_overrides_runpath=no
 
9830
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9831
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9832
  hardcode_into_libs=yes
 
9833
  ;;
 
9834
 
 
9835
# No shared lib support for Linux oldld, aout, or coff.
 
9836
linux*oldld* | linux*aout* | linux*coff*)
 
9837
  dynamic_linker=no
 
9838
  ;;
 
9839
 
 
9840
# This must be Linux ELF.
 
9841
linux*)
 
9842
  version_type=linux
 
9843
  need_lib_prefix=no
 
9844
  need_version=no
 
9845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9846
  soname_spec='${libname}${release}${shared_ext}$major'
 
9847
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9848
  shlibpath_var=LD_LIBRARY_PATH
 
9849
  shlibpath_overrides_runpath=no
 
9850
  # This implies no fast_install, which is unacceptable.
 
9851
  # Some rework will be needed to allow for fast_install
 
9852
  # before this can be enabled.
 
9853
  hardcode_into_libs=yes
 
9854
 
 
9855
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9856
  # powerpc, because MkLinux only supported shared libraries with the
 
9857
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9858
  # most powerpc-linux boxes support dynamic linking these days and
 
9859
  # people can always --disable-shared, the test was removed, and we
 
9860
  # assume the GNU/Linux dynamic linker is in use.
 
9861
  dynamic_linker='GNU/Linux ld.so'
 
9862
  ;;
 
9863
 
 
9864
netbsd*)
 
9865
  version_type=sunos
 
9866
  need_lib_prefix=no
 
9867
  need_version=no
 
9868
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9869
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9870
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9871
    dynamic_linker='NetBSD (a.out) ld.so'
 
9872
  else
 
9873
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
9874
    soname_spec='${libname}${release}${shared_ext}$major'
 
9875
    dynamic_linker='NetBSD ld.elf_so'
 
9876
  fi
 
9877
  shlibpath_var=LD_LIBRARY_PATH
 
9878
  shlibpath_overrides_runpath=yes
 
9879
  hardcode_into_libs=yes
 
9880
  ;;
 
9881
 
 
9882
newsos6)
 
9883
  version_type=linux
 
9884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9885
  shlibpath_var=LD_LIBRARY_PATH
 
9886
  shlibpath_overrides_runpath=yes
 
9887
  ;;
 
9888
 
 
9889
nto-qnx)
 
9890
  version_type=linux
 
9891
  need_lib_prefix=no
 
9892
  need_version=no
 
9893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9894
  soname_spec='${libname}${release}${shared_ext}$major'
 
9895
  shlibpath_var=LD_LIBRARY_PATH
 
9896
  shlibpath_overrides_runpath=yes
 
9897
  ;;
 
9898
 
 
9899
openbsd*)
 
9900
  version_type=sunos
 
9901
  need_lib_prefix=no
 
9902
  need_version=no
 
9903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9904
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9905
  shlibpath_var=LD_LIBRARY_PATH
 
9906
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9907
    case $host_os in
 
9908
      openbsd2.[89] | openbsd2.[89].*)
 
9909
        shlibpath_overrides_runpath=no
 
9910
        ;;
 
9911
      *)
 
9912
        shlibpath_overrides_runpath=yes
 
9913
        ;;
 
9914
      esac
 
9915
  else
 
9916
    shlibpath_overrides_runpath=yes
 
9917
  fi
 
9918
  ;;
 
9919
 
 
9920
os2*)
 
9921
  libname_spec='$name'
 
9922
  shrext=".dll"
 
9923
  need_lib_prefix=no
 
9924
  library_names_spec='$libname${shared_ext} $libname.a'
 
9925
  dynamic_linker='OS/2 ld.exe'
 
9926
  shlibpath_var=LIBPATH
 
9927
  ;;
 
9928
 
 
9929
osf3* | osf4* | osf5*)
 
9930
  version_type=osf
 
9931
  need_lib_prefix=no
 
9932
  need_version=no
 
9933
  soname_spec='${libname}${release}${shared_ext}$major'
 
9934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9935
  shlibpath_var=LD_LIBRARY_PATH
 
9936
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9937
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9938
  ;;
 
9939
 
 
9940
sco3.2v5*)
 
9941
  version_type=osf
 
9942
  soname_spec='${libname}${release}${shared_ext}$major'
 
9943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9944
  shlibpath_var=LD_LIBRARY_PATH
 
9945
  ;;
 
9946
 
 
9947
solaris*)
 
9948
  version_type=linux
 
9949
  need_lib_prefix=no
 
9950
  need_version=no
 
9951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9952
  soname_spec='${libname}${release}${shared_ext}$major'
 
9953
  shlibpath_var=LD_LIBRARY_PATH
 
9954
  shlibpath_overrides_runpath=yes
 
9955
  hardcode_into_libs=yes
 
9956
  # ldd complains unless libraries are executable
 
9957
  postinstall_cmds='chmod +x $lib'
 
9958
  ;;
 
9959
 
 
9960
sunos4*)
 
9961
  version_type=sunos
 
9962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9963
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9964
  shlibpath_var=LD_LIBRARY_PATH
 
9965
  shlibpath_overrides_runpath=yes
 
9966
  if test "$with_gnu_ld" = yes; then
 
9967
    need_lib_prefix=no
 
9968
  fi
 
9969
  need_version=yes
 
9970
  ;;
 
9971
 
 
9972
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9973
  version_type=linux
 
9974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9975
  soname_spec='${libname}${release}${shared_ext}$major'
 
9976
  shlibpath_var=LD_LIBRARY_PATH
 
9977
  case $host_vendor in
 
9978
    sni)
 
9979
      shlibpath_overrides_runpath=no
 
9980
      need_lib_prefix=no
 
9981
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9982
      runpath_var=LD_RUN_PATH
 
9983
      ;;
 
9984
    siemens)
 
9985
      need_lib_prefix=no
 
9986
      ;;
 
9987
    motorola)
 
9988
      need_lib_prefix=no
 
9989
      need_version=no
 
9990
      shlibpath_overrides_runpath=no
 
9991
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9992
      ;;
 
9993
  esac
 
9994
  ;;
 
9995
 
 
9996
sysv4*MP*)
 
9997
  if test -d /usr/nec ;then
 
9998
    version_type=linux
 
9999
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10000
    soname_spec='$libname${shared_ext}.$major'
 
10001
    shlibpath_var=LD_LIBRARY_PATH
 
10002
  fi
 
10003
  ;;
 
10004
 
 
10005
uts4*)
 
10006
  version_type=linux
 
10007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10008
  soname_spec='${libname}${release}${shared_ext}$major'
 
10009
  shlibpath_var=LD_LIBRARY_PATH
 
10010
  ;;
 
10011
 
 
10012
*)
 
10013
  dynamic_linker=no
 
10014
  ;;
 
10015
esac
 
10016
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10017
echo "${ECHO_T}$dynamic_linker" >&6
 
10018
test "$dynamic_linker" = no && can_build_shared=no
 
10019
 
 
10020
if test "x$enable_dlopen" != xyes; then
 
10021
  enable_dlopen=unknown
 
10022
  enable_dlopen_self=unknown
 
10023
  enable_dlopen_self_static=unknown
 
10024
else
 
10025
  lt_cv_dlopen=no
 
10026
  lt_cv_dlopen_libs=
 
10027
 
 
10028
  case $host_os in
 
10029
  beos*)
 
10030
    lt_cv_dlopen="load_add_on"
 
10031
    lt_cv_dlopen_libs=
 
10032
    lt_cv_dlopen_self=yes
 
10033
    ;;
 
10034
 
 
10035
  mingw* | pw32*)
 
10036
    lt_cv_dlopen="LoadLibrary"
 
10037
    lt_cv_dlopen_libs=
 
10038
   ;;
 
10039
 
 
10040
  cygwin*)
 
10041
    lt_cv_dlopen="dlopen"
 
10042
    lt_cv_dlopen_libs=
 
10043
   ;;
 
10044
 
 
10045
  darwin*)
 
10046
  # if libdl is installed we need to link against it
 
10047
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10048
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10049
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10051
else
 
10052
  ac_check_lib_save_LIBS=$LIBS
 
10053
LIBS="-ldl  $LIBS"
 
10054
cat >conftest.$ac_ext <<_ACEOF
 
10055
/* confdefs.h.  */
 
10056
_ACEOF
 
10057
cat confdefs.h >>conftest.$ac_ext
 
10058
cat >>conftest.$ac_ext <<_ACEOF
 
10059
/* end confdefs.h.  */
 
10060
 
 
10061
/* Override any gcc2 internal prototype to avoid an error.  */
 
10062
#ifdef __cplusplus
 
10063
extern "C"
 
10064
#endif
 
10065
/* We use char because int might match the return type of a gcc2
 
10066
   builtin and then its argument prototype would still apply.  */
 
10067
char dlopen ();
 
10068
int
 
10069
main ()
 
10070
{
 
10071
dlopen ();
 
10072
  ;
 
10073
  return 0;
 
10074
}
 
10075
_ACEOF
 
10076
rm -f conftest.$ac_objext conftest$ac_exeext
 
10077
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10078
  (eval $ac_link) 2>conftest.er1
 
10079
  ac_status=$?
 
10080
  grep -v '^ *+' conftest.er1 >conftest.err
 
10081
  rm -f conftest.er1
 
10082
  cat conftest.err >&5
 
10083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10084
  (exit $ac_status); } &&
 
10085
         { ac_try='test -z "$ac_c_werror_flag"
 
10086
                         || test ! -s conftest.err'
 
10087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10088
  (eval $ac_try) 2>&5
 
10089
  ac_status=$?
 
10090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10091
  (exit $ac_status); }; } &&
 
10092
         { ac_try='test -s conftest$ac_exeext'
 
10093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10094
  (eval $ac_try) 2>&5
 
10095
  ac_status=$?
 
10096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10097
  (exit $ac_status); }; }; then
 
10098
  ac_cv_lib_dl_dlopen=yes
 
10099
else
 
10100
  echo "$as_me: failed program was:" >&5
 
10101
sed 's/^/| /' conftest.$ac_ext >&5
 
10102
 
 
10103
ac_cv_lib_dl_dlopen=no
 
10104
fi
 
10105
rm -f conftest.err conftest.$ac_objext \
 
10106
      conftest$ac_exeext conftest.$ac_ext
 
10107
LIBS=$ac_check_lib_save_LIBS
 
10108
fi
 
10109
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10110
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10111
if test $ac_cv_lib_dl_dlopen = yes; then
 
10112
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10113
else
 
10114
 
 
10115
    lt_cv_dlopen="dyld"
 
10116
    lt_cv_dlopen_libs=
 
10117
    lt_cv_dlopen_self=yes
 
10118
 
 
10119
fi
 
10120
 
 
10121
   ;;
 
10122
 
 
10123
  *)
 
10124
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
10125
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
10126
if test "${ac_cv_func_shl_load+set}" = set; then
 
10127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10128
else
 
10129
  cat >conftest.$ac_ext <<_ACEOF
 
10130
/* confdefs.h.  */
 
10131
_ACEOF
 
10132
cat confdefs.h >>conftest.$ac_ext
 
10133
cat >>conftest.$ac_ext <<_ACEOF
 
10134
/* end confdefs.h.  */
 
10135
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10136
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10137
#define shl_load innocuous_shl_load
 
10138
 
 
10139
/* System header to define __stub macros and hopefully few prototypes,
 
10140
    which can conflict with char shl_load (); below.
 
10141
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10142
    <limits.h> exists even on freestanding compilers.  */
 
10143
 
 
10144
#ifdef __STDC__
 
10145
# include <limits.h>
 
10146
#else
 
10147
# include <assert.h>
 
10148
#endif
 
10149
 
 
10150
#undef shl_load
 
10151
 
 
10152
/* Override any gcc2 internal prototype to avoid an error.  */
 
10153
#ifdef __cplusplus
 
10154
extern "C"
 
10155
{
 
10156
#endif
 
10157
/* We use char because int might match the return type of a gcc2
 
10158
   builtin and then its argument prototype would still apply.  */
 
10159
char shl_load ();
 
10160
/* The GNU C library defines this for functions which it implements
 
10161
    to always fail with ENOSYS.  Some functions are actually named
 
10162
    something starting with __ and the normal name is an alias.  */
 
10163
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
10164
choke me
 
10165
#else
 
10166
char (*f) () = shl_load;
 
10167
#endif
 
10168
#ifdef __cplusplus
 
10169
}
 
10170
#endif
 
10171
 
 
10172
int
 
10173
main ()
 
10174
{
 
10175
return f != shl_load;
 
10176
  ;
 
10177
  return 0;
 
10178
}
 
10179
_ACEOF
 
10180
rm -f conftest.$ac_objext conftest$ac_exeext
 
10181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10182
  (eval $ac_link) 2>conftest.er1
 
10183
  ac_status=$?
 
10184
  grep -v '^ *+' conftest.er1 >conftest.err
 
10185
  rm -f conftest.er1
 
10186
  cat conftest.err >&5
 
10187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10188
  (exit $ac_status); } &&
 
10189
         { ac_try='test -z "$ac_c_werror_flag"
 
10190
                         || test ! -s conftest.err'
 
10191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10192
  (eval $ac_try) 2>&5
 
10193
  ac_status=$?
 
10194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10195
  (exit $ac_status); }; } &&
 
10196
         { ac_try='test -s conftest$ac_exeext'
 
10197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10198
  (eval $ac_try) 2>&5
 
10199
  ac_status=$?
 
10200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10201
  (exit $ac_status); }; }; then
 
10202
  ac_cv_func_shl_load=yes
 
10203
else
 
10204
  echo "$as_me: failed program was:" >&5
 
10205
sed 's/^/| /' conftest.$ac_ext >&5
 
10206
 
 
10207
ac_cv_func_shl_load=no
 
10208
fi
 
10209
rm -f conftest.err conftest.$ac_objext \
 
10210
      conftest$ac_exeext conftest.$ac_ext
 
10211
fi
 
10212
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10213
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
10214
if test $ac_cv_func_shl_load = yes; then
 
10215
  lt_cv_dlopen="shl_load"
 
10216
else
 
10217
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10218
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
10219
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10221
else
 
10222
  ac_check_lib_save_LIBS=$LIBS
 
10223
LIBS="-ldld  $LIBS"
 
10224
cat >conftest.$ac_ext <<_ACEOF
 
10225
/* confdefs.h.  */
 
10226
_ACEOF
 
10227
cat confdefs.h >>conftest.$ac_ext
 
10228
cat >>conftest.$ac_ext <<_ACEOF
 
10229
/* end confdefs.h.  */
 
10230
 
 
10231
/* Override any gcc2 internal prototype to avoid an error.  */
 
10232
#ifdef __cplusplus
 
10233
extern "C"
 
10234
#endif
 
10235
/* We use char because int might match the return type of a gcc2
 
10236
   builtin and then its argument prototype would still apply.  */
 
10237
char shl_load ();
 
10238
int
 
10239
main ()
 
10240
{
 
10241
shl_load ();
 
10242
  ;
 
10243
  return 0;
 
10244
}
 
10245
_ACEOF
 
10246
rm -f conftest.$ac_objext conftest$ac_exeext
 
10247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10248
  (eval $ac_link) 2>conftest.er1
 
10249
  ac_status=$?
 
10250
  grep -v '^ *+' conftest.er1 >conftest.err
 
10251
  rm -f conftest.er1
 
10252
  cat conftest.err >&5
 
10253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10254
  (exit $ac_status); } &&
 
10255
         { ac_try='test -z "$ac_c_werror_flag"
 
10256
                         || test ! -s conftest.err'
 
10257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10258
  (eval $ac_try) 2>&5
 
10259
  ac_status=$?
 
10260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10261
  (exit $ac_status); }; } &&
 
10262
         { ac_try='test -s conftest$ac_exeext'
 
10263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10264
  (eval $ac_try) 2>&5
 
10265
  ac_status=$?
 
10266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10267
  (exit $ac_status); }; }; then
 
10268
  ac_cv_lib_dld_shl_load=yes
 
10269
else
 
10270
  echo "$as_me: failed program was:" >&5
 
10271
sed 's/^/| /' conftest.$ac_ext >&5
 
10272
 
 
10273
ac_cv_lib_dld_shl_load=no
 
10274
fi
 
10275
rm -f conftest.err conftest.$ac_objext \
 
10276
      conftest$ac_exeext conftest.$ac_ext
 
10277
LIBS=$ac_check_lib_save_LIBS
 
10278
fi
 
10279
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10280
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
10281
if test $ac_cv_lib_dld_shl_load = yes; then
 
10282
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10283
else
 
10284
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
10285
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
10286
if test "${ac_cv_func_dlopen+set}" = set; then
 
10287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10288
else
 
10289
  cat >conftest.$ac_ext <<_ACEOF
 
10290
/* confdefs.h.  */
 
10291
_ACEOF
 
10292
cat confdefs.h >>conftest.$ac_ext
 
10293
cat >>conftest.$ac_ext <<_ACEOF
 
10294
/* end confdefs.h.  */
 
10295
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10296
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10297
#define dlopen innocuous_dlopen
 
10298
 
 
10299
/* System header to define __stub macros and hopefully few prototypes,
 
10300
    which can conflict with char dlopen (); below.
 
10301
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10302
    <limits.h> exists even on freestanding compilers.  */
 
10303
 
 
10304
#ifdef __STDC__
 
10305
# include <limits.h>
 
10306
#else
 
10307
# include <assert.h>
 
10308
#endif
 
10309
 
 
10310
#undef dlopen
 
10311
 
 
10312
/* Override any gcc2 internal prototype to avoid an error.  */
 
10313
#ifdef __cplusplus
 
10314
extern "C"
 
10315
{
 
10316
#endif
 
10317
/* We use char because int might match the return type of a gcc2
 
10318
   builtin and then its argument prototype would still apply.  */
 
10319
char dlopen ();
 
10320
/* The GNU C library defines this for functions which it implements
 
10321
    to always fail with ENOSYS.  Some functions are actually named
 
10322
    something starting with __ and the normal name is an alias.  */
 
10323
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
10324
choke me
 
10325
#else
 
10326
char (*f) () = dlopen;
 
10327
#endif
 
10328
#ifdef __cplusplus
 
10329
}
 
10330
#endif
 
10331
 
 
10332
int
 
10333
main ()
 
10334
{
 
10335
return f != dlopen;
 
10336
  ;
 
10337
  return 0;
 
10338
}
 
10339
_ACEOF
 
10340
rm -f conftest.$ac_objext conftest$ac_exeext
 
10341
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10342
  (eval $ac_link) 2>conftest.er1
 
10343
  ac_status=$?
 
10344
  grep -v '^ *+' conftest.er1 >conftest.err
 
10345
  rm -f conftest.er1
 
10346
  cat conftest.err >&5
 
10347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10348
  (exit $ac_status); } &&
 
10349
         { ac_try='test -z "$ac_c_werror_flag"
 
10350
                         || test ! -s conftest.err'
 
10351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10352
  (eval $ac_try) 2>&5
 
10353
  ac_status=$?
 
10354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10355
  (exit $ac_status); }; } &&
 
10356
         { ac_try='test -s conftest$ac_exeext'
 
10357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10358
  (eval $ac_try) 2>&5
 
10359
  ac_status=$?
 
10360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10361
  (exit $ac_status); }; }; then
 
10362
  ac_cv_func_dlopen=yes
 
10363
else
 
10364
  echo "$as_me: failed program was:" >&5
 
10365
sed 's/^/| /' conftest.$ac_ext >&5
 
10366
 
 
10367
ac_cv_func_dlopen=no
 
10368
fi
 
10369
rm -f conftest.err conftest.$ac_objext \
 
10370
      conftest$ac_exeext conftest.$ac_ext
 
10371
fi
 
10372
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10373
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
10374
if test $ac_cv_func_dlopen = yes; then
 
10375
  lt_cv_dlopen="dlopen"
 
10376
else
 
10377
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10378
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10379
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10381
else
 
10382
  ac_check_lib_save_LIBS=$LIBS
 
10383
LIBS="-ldl  $LIBS"
 
10384
cat >conftest.$ac_ext <<_ACEOF
 
10385
/* confdefs.h.  */
 
10386
_ACEOF
 
10387
cat confdefs.h >>conftest.$ac_ext
 
10388
cat >>conftest.$ac_ext <<_ACEOF
 
10389
/* end confdefs.h.  */
 
10390
 
 
10391
/* Override any gcc2 internal prototype to avoid an error.  */
 
10392
#ifdef __cplusplus
 
10393
extern "C"
 
10394
#endif
 
10395
/* We use char because int might match the return type of a gcc2
 
10396
   builtin and then its argument prototype would still apply.  */
 
10397
char dlopen ();
 
10398
int
 
10399
main ()
 
10400
{
 
10401
dlopen ();
 
10402
  ;
 
10403
  return 0;
 
10404
}
 
10405
_ACEOF
 
10406
rm -f conftest.$ac_objext conftest$ac_exeext
 
10407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10408
  (eval $ac_link) 2>conftest.er1
 
10409
  ac_status=$?
 
10410
  grep -v '^ *+' conftest.er1 >conftest.err
 
10411
  rm -f conftest.er1
 
10412
  cat conftest.err >&5
 
10413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10414
  (exit $ac_status); } &&
 
10415
         { ac_try='test -z "$ac_c_werror_flag"
 
10416
                         || test ! -s conftest.err'
 
10417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10418
  (eval $ac_try) 2>&5
 
10419
  ac_status=$?
 
10420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10421
  (exit $ac_status); }; } &&
 
10422
         { ac_try='test -s conftest$ac_exeext'
 
10423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10424
  (eval $ac_try) 2>&5
 
10425
  ac_status=$?
 
10426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10427
  (exit $ac_status); }; }; then
 
10428
  ac_cv_lib_dl_dlopen=yes
 
10429
else
 
10430
  echo "$as_me: failed program was:" >&5
 
10431
sed 's/^/| /' conftest.$ac_ext >&5
 
10432
 
 
10433
ac_cv_lib_dl_dlopen=no
 
10434
fi
 
10435
rm -f conftest.err conftest.$ac_objext \
 
10436
      conftest$ac_exeext conftest.$ac_ext
 
10437
LIBS=$ac_check_lib_save_LIBS
 
10438
fi
 
10439
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10440
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10441
if test $ac_cv_lib_dl_dlopen = yes; then
 
10442
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10443
else
 
10444
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10445
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
10446
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10448
else
 
10449
  ac_check_lib_save_LIBS=$LIBS
 
10450
LIBS="-lsvld  $LIBS"
 
10451
cat >conftest.$ac_ext <<_ACEOF
 
10452
/* confdefs.h.  */
 
10453
_ACEOF
 
10454
cat confdefs.h >>conftest.$ac_ext
 
10455
cat >>conftest.$ac_ext <<_ACEOF
 
10456
/* end confdefs.h.  */
 
10457
 
 
10458
/* Override any gcc2 internal prototype to avoid an error.  */
 
10459
#ifdef __cplusplus
 
10460
extern "C"
 
10461
#endif
 
10462
/* We use char because int might match the return type of a gcc2
 
10463
   builtin and then its argument prototype would still apply.  */
 
10464
char dlopen ();
 
10465
int
 
10466
main ()
 
10467
{
 
10468
dlopen ();
 
10469
  ;
 
10470
  return 0;
 
10471
}
 
10472
_ACEOF
 
10473
rm -f conftest.$ac_objext conftest$ac_exeext
 
10474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10475
  (eval $ac_link) 2>conftest.er1
 
10476
  ac_status=$?
 
10477
  grep -v '^ *+' conftest.er1 >conftest.err
 
10478
  rm -f conftest.er1
 
10479
  cat conftest.err >&5
 
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10481
  (exit $ac_status); } &&
 
10482
         { ac_try='test -z "$ac_c_werror_flag"
 
10483
                         || test ! -s conftest.err'
 
10484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10485
  (eval $ac_try) 2>&5
 
10486
  ac_status=$?
 
10487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10488
  (exit $ac_status); }; } &&
 
10489
         { ac_try='test -s conftest$ac_exeext'
 
10490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10491
  (eval $ac_try) 2>&5
 
10492
  ac_status=$?
 
10493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10494
  (exit $ac_status); }; }; then
 
10495
  ac_cv_lib_svld_dlopen=yes
 
10496
else
 
10497
  echo "$as_me: failed program was:" >&5
 
10498
sed 's/^/| /' conftest.$ac_ext >&5
 
10499
 
 
10500
ac_cv_lib_svld_dlopen=no
 
10501
fi
 
10502
rm -f conftest.err conftest.$ac_objext \
 
10503
      conftest$ac_exeext conftest.$ac_ext
 
10504
LIBS=$ac_check_lib_save_LIBS
 
10505
fi
 
10506
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10507
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
10508
if test $ac_cv_lib_svld_dlopen = yes; then
 
10509
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10510
else
 
10511
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10512
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10513
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10515
else
 
10516
  ac_check_lib_save_LIBS=$LIBS
 
10517
LIBS="-ldld  $LIBS"
 
10518
cat >conftest.$ac_ext <<_ACEOF
 
10519
/* confdefs.h.  */
 
10520
_ACEOF
 
10521
cat confdefs.h >>conftest.$ac_ext
 
10522
cat >>conftest.$ac_ext <<_ACEOF
 
10523
/* end confdefs.h.  */
 
10524
 
 
10525
/* Override any gcc2 internal prototype to avoid an error.  */
 
10526
#ifdef __cplusplus
 
10527
extern "C"
 
10528
#endif
 
10529
/* We use char because int might match the return type of a gcc2
 
10530
   builtin and then its argument prototype would still apply.  */
 
10531
char dld_link ();
 
10532
int
 
10533
main ()
 
10534
{
 
10535
dld_link ();
 
10536
  ;
 
10537
  return 0;
 
10538
}
 
10539
_ACEOF
 
10540
rm -f conftest.$ac_objext conftest$ac_exeext
 
10541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10542
  (eval $ac_link) 2>conftest.er1
 
10543
  ac_status=$?
 
10544
  grep -v '^ *+' conftest.er1 >conftest.err
 
10545
  rm -f conftest.er1
 
10546
  cat conftest.err >&5
 
10547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10548
  (exit $ac_status); } &&
 
10549
         { ac_try='test -z "$ac_c_werror_flag"
 
10550
                         || test ! -s conftest.err'
 
10551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10552
  (eval $ac_try) 2>&5
 
10553
  ac_status=$?
 
10554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10555
  (exit $ac_status); }; } &&
 
10556
         { ac_try='test -s conftest$ac_exeext'
 
10557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10558
  (eval $ac_try) 2>&5
 
10559
  ac_status=$?
 
10560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10561
  (exit $ac_status); }; }; then
 
10562
  ac_cv_lib_dld_dld_link=yes
 
10563
else
 
10564
  echo "$as_me: failed program was:" >&5
 
10565
sed 's/^/| /' conftest.$ac_ext >&5
 
10566
 
 
10567
ac_cv_lib_dld_dld_link=no
 
10568
fi
 
10569
rm -f conftest.err conftest.$ac_objext \
 
10570
      conftest$ac_exeext conftest.$ac_ext
 
10571
LIBS=$ac_check_lib_save_LIBS
 
10572
fi
 
10573
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10574
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10575
if test $ac_cv_lib_dld_dld_link = yes; then
 
10576
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10577
fi
 
10578
 
 
10579
 
 
10580
fi
 
10581
 
 
10582
 
 
10583
fi
 
10584
 
 
10585
 
 
10586
fi
 
10587
 
 
10588
 
 
10589
fi
 
10590
 
 
10591
 
 
10592
fi
 
10593
 
 
10594
    ;;
 
10595
  esac
 
10596
 
 
10597
  if test "x$lt_cv_dlopen" != xno; then
 
10598
    enable_dlopen=yes
 
10599
  else
 
10600
    enable_dlopen=no
 
10601
  fi
 
10602
 
 
10603
  case $lt_cv_dlopen in
 
10604
  dlopen)
 
10605
    save_CPPFLAGS="$CPPFLAGS"
 
10606
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10607
 
 
10608
    save_LDFLAGS="$LDFLAGS"
 
10609
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10610
 
 
10611
    save_LIBS="$LIBS"
 
10612
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10613
 
 
10614
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10615
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10616
if test "${lt_cv_dlopen_self+set}" = set; then
 
10617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10618
else
 
10619
          if test "$cross_compiling" = yes; then :
 
10620
  lt_cv_dlopen_self=cross
 
10621
else
 
10622
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10623
  lt_status=$lt_dlunknown
 
10624
  cat > conftest.$ac_ext <<EOF
 
10625
#line 10625 "configure"
 
10626
#include "confdefs.h"
 
10627
 
 
10628
#if HAVE_DLFCN_H
 
10629
#include <dlfcn.h>
 
10630
#endif
 
10631
 
 
10632
#include <stdio.h>
 
10633
 
 
10634
#ifdef RTLD_GLOBAL
 
10635
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10636
#else
 
10637
#  ifdef DL_GLOBAL
 
10638
#    define LT_DLGLOBAL         DL_GLOBAL
 
10639
#  else
 
10640
#    define LT_DLGLOBAL         0
 
10641
#  endif
 
10642
#endif
 
10643
 
 
10644
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10645
   find out it does not work in some platform. */
 
10646
#ifndef LT_DLLAZY_OR_NOW
 
10647
#  ifdef RTLD_LAZY
 
10648
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10649
#  else
 
10650
#    ifdef DL_LAZY
 
10651
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10652
#    else
 
10653
#      ifdef RTLD_NOW
 
10654
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10655
#      else
 
10656
#        ifdef DL_NOW
 
10657
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10658
#        else
 
10659
#          define LT_DLLAZY_OR_NOW      0
 
10660
#        endif
 
10661
#      endif
 
10662
#    endif
 
10663
#  endif
 
10664
#endif
 
10665
 
 
10666
#ifdef __cplusplus
 
10667
extern "C" void exit (int);
 
10668
#endif
 
10669
 
 
10670
void fnord() { int i=42;}
 
10671
int main ()
 
10672
{
 
10673
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10674
  int status = $lt_dlunknown;
 
10675
 
 
10676
  if (self)
 
10677
    {
 
10678
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10679
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10680
      /* dlclose (self); */
 
10681
    }
 
10682
 
 
10683
    exit (status);
 
10684
}
 
10685
EOF
 
10686
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10687
  (eval $ac_link) 2>&5
 
10688
  ac_status=$?
 
10689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10690
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10691
    (./conftest; exit; ) 2>/dev/null
 
10692
    lt_status=$?
 
10693
    case x$lt_status in
 
10694
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10695
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10696
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10697
    esac
 
10698
  else :
 
10699
    # compilation failed
 
10700
    lt_cv_dlopen_self=no
 
10701
  fi
 
10702
fi
 
10703
rm -fr conftest*
 
10704
 
 
10705
 
 
10706
fi
 
10707
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10708
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10709
 
 
10710
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10711
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10712
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10713
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10714
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10716
else
 
10717
          if test "$cross_compiling" = yes; then :
 
10718
  lt_cv_dlopen_self_static=cross
 
10719
else
 
10720
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10721
  lt_status=$lt_dlunknown
 
10722
  cat > conftest.$ac_ext <<EOF
 
10723
#line 10723 "configure"
 
10724
#include "confdefs.h"
 
10725
 
 
10726
#if HAVE_DLFCN_H
 
10727
#include <dlfcn.h>
 
10728
#endif
 
10729
 
 
10730
#include <stdio.h>
 
10731
 
 
10732
#ifdef RTLD_GLOBAL
 
10733
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10734
#else
 
10735
#  ifdef DL_GLOBAL
 
10736
#    define LT_DLGLOBAL         DL_GLOBAL
 
10737
#  else
 
10738
#    define LT_DLGLOBAL         0
 
10739
#  endif
 
10740
#endif
 
10741
 
 
10742
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10743
   find out it does not work in some platform. */
 
10744
#ifndef LT_DLLAZY_OR_NOW
 
10745
#  ifdef RTLD_LAZY
 
10746
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10747
#  else
 
10748
#    ifdef DL_LAZY
 
10749
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10750
#    else
 
10751
#      ifdef RTLD_NOW
 
10752
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10753
#      else
 
10754
#        ifdef DL_NOW
 
10755
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10756
#        else
 
10757
#          define LT_DLLAZY_OR_NOW      0
 
10758
#        endif
 
10759
#      endif
 
10760
#    endif
 
10761
#  endif
 
10762
#endif
 
10763
 
 
10764
#ifdef __cplusplus
 
10765
extern "C" void exit (int);
 
10766
#endif
 
10767
 
 
10768
void fnord() { int i=42;}
 
10769
int main ()
 
10770
{
 
10771
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10772
  int status = $lt_dlunknown;
 
10773
 
 
10774
  if (self)
 
10775
    {
 
10776
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10777
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10778
      /* dlclose (self); */
 
10779
    }
 
10780
 
 
10781
    exit (status);
 
10782
}
 
10783
EOF
 
10784
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10785
  (eval $ac_link) 2>&5
 
10786
  ac_status=$?
 
10787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10788
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10789
    (./conftest; exit; ) 2>/dev/null
 
10790
    lt_status=$?
 
10791
    case x$lt_status in
 
10792
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10793
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10794
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10795
    esac
 
10796
  else :
 
10797
    # compilation failed
 
10798
    lt_cv_dlopen_self_static=no
 
10799
  fi
 
10800
fi
 
10801
rm -fr conftest*
 
10802
 
 
10803
 
 
10804
fi
 
10805
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10806
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10807
    fi
 
10808
 
 
10809
    CPPFLAGS="$save_CPPFLAGS"
 
10810
    LDFLAGS="$save_LDFLAGS"
 
10811
    LIBS="$save_LIBS"
 
10812
    ;;
 
10813
  esac
 
10814
 
 
10815
  case $lt_cv_dlopen_self in
 
10816
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10817
  *) enable_dlopen_self=unknown ;;
 
10818
  esac
 
10819
 
 
10820
  case $lt_cv_dlopen_self_static in
 
10821
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10822
  *) enable_dlopen_self_static=unknown ;;
 
10823
  esac
 
10824
fi
 
10825
 
 
10826
 
 
10827
# Report which librarie types wil actually be built
 
10828
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10829
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10830
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10831
echo "${ECHO_T}$can_build_shared" >&6
 
10832
 
 
10833
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10834
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10835
test "$can_build_shared" = "no" && enable_shared=no
 
10836
 
 
10837
# On AIX, shared libraries and static libraries use the same namespace, and
 
10838
# are all built from PIC.
 
10839
case "$host_os" in
 
10840
aix3*)
 
10841
  test "$enable_shared" = yes && enable_static=no
 
10842
  if test -n "$RANLIB"; then
 
10843
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10844
    postinstall_cmds='$RANLIB $lib'
 
10845
  fi
 
10846
  ;;
 
10847
 
 
10848
aix4*)
 
10849
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10850
    test "$enable_shared" = yes && enable_static=no
 
10851
  fi
 
10852
  ;;
 
10853
  darwin* | rhapsody*)
 
10854
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
10855
    archive_cmds_need_lc=no
 
10856
    case "$host_os" in
 
10857
    rhapsody* | darwin1.[012])
 
10858
      allow_undefined_flag='-undefined suppress'
 
10859
      ;;
 
10860
    *) # Darwin 1.3 on
 
10861
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
10862
      ;;
 
10863
    esac
 
10864
    # FIXME: Relying on posixy $() will cause problems for
 
10865
    #        cross-compilation, but unfortunately the echo tests do not
 
10866
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
10867
    #          `"' quotes if we put them in here... so don't!
 
10868
                output_verbose_link_cmd='echo'
 
10869
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
10870
    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
10871
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10872
                  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}'
 
10873
                  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10874
    hardcode_direct=no
 
10875
    hardcode_automatic=yes
 
10876
    hardcode_shlibpath_var=unsupported
 
10877
    whole_archive_flag_spec='-all_load $convenience'
 
10878
    link_all_deplibs=yes
 
10879
    fi
 
10880
    ;;
 
10881
esac
 
10882
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10883
echo "${ECHO_T}$enable_shared" >&6
 
10884
 
 
10885
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10886
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10887
# Make sure either enable_shared or enable_static is yes.
 
10888
test "$enable_shared" = yes || enable_static=yes
 
10889
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10890
echo "${ECHO_T}$enable_static" >&6
 
10891
 
 
10892
# The else clause should only fire when bootstrapping the
 
10893
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10894
# with your package, and you will get complaints that there are
 
10895
# no rules to generate ltmain.sh.
 
10896
if test -f "$ltmain"; then
 
10897
  # See if we are running on zsh, and set the options which allow our commands through
 
10898
  # without removal of \ escapes.
 
10899
  if test -n "${ZSH_VERSION+set}" ; then
 
10900
    setopt NO_GLOB_SUBST
 
10901
  fi
 
10902
  # Now quote all the things that may contain metacharacters while being
 
10903
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10904
  # variables and quote the copies for generation of the libtool script.
 
10905
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
10906
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10907
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10908
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10909
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10910
    lt_cv_sys_global_symbol_to_c_name_address \
 
10911
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10912
    old_postinstall_cmds old_postuninstall_cmds \
 
10913
    compiler \
 
10914
    CC \
 
10915
    LD \
 
10916
    lt_prog_compiler_wl \
 
10917
    lt_prog_compiler_pic \
 
10918
    lt_prog_compiler_static \
 
10919
    lt_prog_compiler_no_builtin_flag \
 
10920
    export_dynamic_flag_spec \
 
10921
    thread_safe_flag_spec \
 
10922
    whole_archive_flag_spec \
 
10923
    enable_shared_with_static_runtimes \
 
10924
    old_archive_cmds \
 
10925
    old_archive_from_new_cmds \
 
10926
    predep_objects \
 
10927
    postdep_objects \
 
10928
    predeps \
 
10929
    postdeps \
 
10930
    compiler_lib_search_path \
 
10931
    archive_cmds \
 
10932
    archive_expsym_cmds \
 
10933
    postinstall_cmds \
 
10934
    postuninstall_cmds \
 
10935
    old_archive_from_expsyms_cmds \
 
10936
    allow_undefined_flag \
 
10937
    no_undefined_flag \
 
10938
    export_symbols_cmds \
 
10939
    hardcode_libdir_flag_spec \
 
10940
    hardcode_libdir_flag_spec_ld \
 
10941
    hardcode_libdir_separator \
 
10942
    hardcode_automatic \
 
10943
    module_cmds \
 
10944
    module_expsym_cmds \
 
10945
    lt_cv_prog_compiler_c_o \
 
10946
    exclude_expsyms \
 
10947
    include_expsyms; do
 
10948
 
 
10949
    case $var in
 
10950
    old_archive_cmds | \
 
10951
    old_archive_from_new_cmds | \
 
10952
    archive_cmds | \
 
10953
    archive_expsym_cmds | \
 
10954
    module_cmds | \
 
10955
    module_expsym_cmds | \
 
10956
    old_archive_from_expsyms_cmds | \
 
10957
    export_symbols_cmds | \
 
10958
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10959
    postinstall_cmds | postuninstall_cmds | \
 
10960
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10961
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10962
      # Double-quote double-evaled strings.
 
10963
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10964
      ;;
 
10965
    *)
 
10966
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10967
      ;;
 
10968
    esac
 
10969
  done
 
10970
 
 
10971
  case $lt_echo in
 
10972
  *'\$0 --fallback-echo"')
 
10973
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10974
    ;;
 
10975
  esac
 
10976
 
 
10977
cfgfile="${ofile}T"
 
10978
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10979
  $rm -f "$cfgfile"
 
10980
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10981
echo "$as_me: creating $ofile" >&6;}
 
10982
 
 
10983
  cat <<__EOF__ >> "$cfgfile"
 
10984
#! $SHELL
 
10985
 
 
10986
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10987
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10988
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10989
#
 
10990
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10991
# Free Software Foundation, Inc.
 
10992
#
 
10993
# This file is part of GNU Libtool:
 
10994
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10995
#
 
10996
# This program is free software; you can redistribute it and/or modify
 
10997
# it under the terms of the GNU General Public License as published by
 
10998
# the Free Software Foundation; either version 2 of the License, or
 
10999
# (at your option) any later version.
 
11000
#
 
11001
# This program is distributed in the hope that it will be useful, but
 
11002
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11003
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11004
# General Public License for more details.
 
11005
#
 
11006
# You should have received a copy of the GNU General Public License
 
11007
# along with this program; if not, write to the Free Software
 
11008
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11009
#
 
11010
# As a special exception to the GNU General Public License, if you
 
11011
# distribute this file as part of a program that contains a
 
11012
# configuration script generated by Autoconf, you may include it under
 
11013
# the same distribution terms that you use for the rest of that program.
 
11014
 
 
11015
# A sed program that does not truncate output.
 
11016
SED=$lt_SED
 
11017
 
 
11018
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11019
Xsed="$SED -e s/^X//"
 
11020
 
 
11021
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11022
# if CDPATH is set.
 
11023
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11024
 
 
11025
# The names of the tagged configurations supported by this script.
 
11026
available_tags=
 
11027
 
 
11028
# ### BEGIN LIBTOOL CONFIG
 
11029
 
 
11030
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11031
 
 
11032
# Shell to use when invoking shell scripts.
 
11033
SHELL=$lt_SHELL
 
11034
 
 
11035
# Whether or not to build shared libraries.
 
11036
build_libtool_libs=$enable_shared
 
11037
 
 
11038
# Whether or not to build static libraries.
 
11039
build_old_libs=$enable_static
 
11040
 
 
11041
# Whether or not to add -lc for building shared libraries.
 
11042
build_libtool_need_lc=$archive_cmds_need_lc
 
11043
 
 
11044
# Whether or not to disallow shared libs when runtime libs are static
 
11045
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11046
 
 
11047
# Whether or not to optimize for fast installation.
 
11048
fast_install=$enable_fast_install
 
11049
 
 
11050
# The host system.
 
11051
host_alias=$host_alias
 
11052
host=$host
 
11053
 
 
11054
# An echo program that does not interpret backslashes.
 
11055
echo=$lt_echo
 
11056
 
 
11057
# The archiver.
 
11058
AR=$lt_AR
 
11059
AR_FLAGS=$lt_AR_FLAGS
 
11060
 
 
11061
# A C compiler.
 
11062
LTCC=$lt_LTCC
 
11063
 
 
11064
# A language-specific compiler.
 
11065
CC=$lt_compiler
 
11066
 
 
11067
# Is the compiler the GNU C compiler?
 
11068
with_gcc=$GCC
 
11069
 
 
11070
# An ERE matcher.
 
11071
EGREP=$lt_EGREP
 
11072
 
 
11073
# The linker used to build libraries.
 
11074
LD=$lt_LD
 
11075
 
 
11076
# Whether we need hard or soft links.
 
11077
LN_S=$lt_LN_S
 
11078
 
 
11079
# A BSD-compatible nm program.
 
11080
NM=$lt_NM
 
11081
 
 
11082
# A symbol stripping program
 
11083
STRIP=$STRIP
 
11084
 
 
11085
# Used to examine libraries when file_magic_cmd begins "file"
 
11086
MAGIC_CMD=$MAGIC_CMD
 
11087
 
 
11088
# Used on cygwin: DLL creation program.
 
11089
DLLTOOL="$DLLTOOL"
 
11090
 
 
11091
# Used on cygwin: object dumper.
 
11092
OBJDUMP="$OBJDUMP"
 
11093
 
 
11094
# Used on cygwin: assembler.
 
11095
AS="$AS"
 
11096
 
 
11097
# The name of the directory that contains temporary libtool files.
 
11098
objdir=$objdir
 
11099
 
 
11100
# How to create reloadable object files.
 
11101
reload_flag=$lt_reload_flag
 
11102
reload_cmds=$lt_reload_cmds
 
11103
 
 
11104
# How to pass a linker flag through the compiler.
 
11105
wl=$lt_lt_prog_compiler_wl
 
11106
 
 
11107
# Object file suffix (normally "o").
 
11108
objext="$ac_objext"
 
11109
 
 
11110
# Old archive suffix (normally "a").
 
11111
libext="$libext"
 
11112
 
 
11113
# Shared library suffix (normally ".so").
 
11114
shrext='$shrext'
 
11115
 
 
11116
# Executable file suffix (normally "").
 
11117
exeext="$exeext"
 
11118
 
 
11119
# Additional compiler flags for building library objects.
 
11120
pic_flag=$lt_lt_prog_compiler_pic
 
11121
pic_mode=$pic_mode
 
11122
 
 
11123
# What is the maximum length of a command?
 
11124
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11125
 
 
11126
# Does compiler simultaneously support -c and -o options?
 
11127
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11128
 
 
11129
# Must we lock files when doing compilation ?
 
11130
need_locks=$lt_need_locks
 
11131
 
 
11132
# Do we need the lib prefix for modules?
 
11133
need_lib_prefix=$need_lib_prefix
 
11134
 
 
11135
# Do we need a version for libraries?
 
11136
need_version=$need_version
 
11137
 
 
11138
# Whether dlopen is supported.
 
11139
dlopen_support=$enable_dlopen
 
11140
 
 
11141
# Whether dlopen of programs is supported.
 
11142
dlopen_self=$enable_dlopen_self
 
11143
 
 
11144
# Whether dlopen of statically linked programs is supported.
 
11145
dlopen_self_static=$enable_dlopen_self_static
 
11146
 
 
11147
# Compiler flag to prevent dynamic linking.
 
11148
link_static_flag=$lt_lt_prog_compiler_static
 
11149
 
 
11150
# Compiler flag to turn off builtin functions.
 
11151
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11152
 
 
11153
# Compiler flag to allow reflexive dlopens.
 
11154
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11155
 
 
11156
# Compiler flag to generate shared objects directly from archives.
 
11157
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11158
 
 
11159
# Compiler flag to generate thread-safe objects.
 
11160
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11161
 
 
11162
# Library versioning type.
 
11163
version_type=$version_type
 
11164
 
 
11165
# Format of library name prefix.
 
11166
libname_spec=$lt_libname_spec
 
11167
 
 
11168
# List of archive names.  First name is the real one, the rest are links.
 
11169
# The last name is the one that the linker finds with -lNAME.
 
11170
library_names_spec=$lt_library_names_spec
 
11171
 
 
11172
# The coded name of the library, if different from the real name.
 
11173
soname_spec=$lt_soname_spec
 
11174
 
 
11175
# Commands used to build and install an old-style archive.
 
11176
RANLIB=$lt_RANLIB
 
11177
old_archive_cmds=$lt_old_archive_cmds
 
11178
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11179
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11180
 
 
11181
# Create an old-style archive from a shared archive.
 
11182
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11183
 
 
11184
# Create a temporary old-style archive to link instead of a shared archive.
 
11185
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11186
 
 
11187
# Commands used to build and install a shared archive.
 
11188
archive_cmds=$lt_archive_cmds
 
11189
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11190
postinstall_cmds=$lt_postinstall_cmds
 
11191
postuninstall_cmds=$lt_postuninstall_cmds
 
11192
 
 
11193
# Commands used to build a loadable module (assumed same as above if empty)
 
11194
module_cmds=$lt_module_cmds
 
11195
module_expsym_cmds=$lt_module_expsym_cmds
 
11196
 
 
11197
# Commands to strip libraries.
 
11198
old_striplib=$lt_old_striplib
 
11199
striplib=$lt_striplib
 
11200
 
 
11201
# Dependencies to place before the objects being linked to create a
 
11202
# shared library.
 
11203
predep_objects=$lt_predep_objects
 
11204
 
 
11205
# Dependencies to place after the objects being linked to create a
 
11206
# shared library.
 
11207
postdep_objects=$lt_postdep_objects
 
11208
 
 
11209
# Dependencies to place before the objects being linked to create a
 
11210
# shared library.
 
11211
predeps=$lt_predeps
 
11212
 
 
11213
# Dependencies to place after the objects being linked to create a
 
11214
# shared library.
 
11215
postdeps=$lt_postdeps
 
11216
 
 
11217
# The library search path used internally by the compiler when linking
 
11218
# a shared library.
 
11219
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11220
 
 
11221
# Method to check whether dependent libraries are shared objects.
 
11222
deplibs_check_method=$lt_deplibs_check_method
 
11223
 
 
11224
# Command to use when deplibs_check_method == file_magic.
 
11225
file_magic_cmd=$lt_file_magic_cmd
 
11226
 
 
11227
# Flag that allows shared libraries with undefined symbols to be built.
 
11228
allow_undefined_flag=$lt_allow_undefined_flag
 
11229
 
 
11230
# Flag that forces no undefined symbols.
 
11231
no_undefined_flag=$lt_no_undefined_flag
 
11232
 
 
11233
# Commands used to finish a libtool library installation in a directory.
 
11234
finish_cmds=$lt_finish_cmds
 
11235
 
 
11236
# Same as above, but a single script fragment to be evaled but not shown.
 
11237
finish_eval=$lt_finish_eval
 
11238
 
 
11239
# Take the output of nm and produce a listing of raw symbols and C names.
 
11240
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11241
 
 
11242
# Transform the output of nm in a proper C declaration
 
11243
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11244
 
 
11245
# Transform the output of nm in a C name address pair
 
11246
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11247
 
 
11248
# This is the shared library runtime path variable.
 
11249
runpath_var=$runpath_var
 
11250
 
 
11251
# This is the shared library path variable.
 
11252
shlibpath_var=$shlibpath_var
 
11253
 
 
11254
# Is shlibpath searched before the hard-coded library search path?
 
11255
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11256
 
 
11257
# How to hardcode a shared library path into an executable.
 
11258
hardcode_action=$hardcode_action
 
11259
 
 
11260
# Whether we should hardcode library paths into libraries.
 
11261
hardcode_into_libs=$hardcode_into_libs
 
11262
 
 
11263
# Flag to hardcode \$libdir into a binary during linking.
 
11264
# This must work even if \$libdir does not exist.
 
11265
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11266
 
 
11267
# If ld is used when linking, flag to hardcode \$libdir into
 
11268
# a binary during linking. This must work even if \$libdir does
 
11269
# not exist.
 
11270
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11271
 
 
11272
# Whether we need a single -rpath flag with a separated argument.
 
11273
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11274
 
 
11275
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11276
# resulting binary.
 
11277
hardcode_direct=$hardcode_direct
 
11278
 
 
11279
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11280
# resulting binary.
 
11281
hardcode_minus_L=$hardcode_minus_L
 
11282
 
 
11283
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11284
# the resulting binary.
 
11285
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11286
 
 
11287
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11288
# and all subsequent libraries and executables linked against it.
 
11289
hardcode_automatic=$hardcode_automatic
 
11290
 
 
11291
# Variables whose values should be saved in libtool wrapper scripts and
 
11292
# restored at relink time.
 
11293
variables_saved_for_relink="$variables_saved_for_relink"
 
11294
 
 
11295
# Whether libtool must link a program against all its dependency libraries.
 
11296
link_all_deplibs=$link_all_deplibs
 
11297
 
 
11298
# Compile-time system search path for libraries
 
11299
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11300
 
 
11301
# Run-time system search path for libraries
 
11302
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11303
 
 
11304
# Fix the shell variable \$srcfile for the compiler.
 
11305
fix_srcfile_path="$fix_srcfile_path"
 
11306
 
 
11307
# Set to yes if exported symbols are required.
 
11308
always_export_symbols=$always_export_symbols
 
11309
 
 
11310
# The commands to list exported symbols.
 
11311
export_symbols_cmds=$lt_export_symbols_cmds
 
11312
 
 
11313
# The commands to extract the exported symbol list from a shared archive.
 
11314
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11315
 
 
11316
# Symbols that should not be listed in the preloaded symbols.
 
11317
exclude_expsyms=$lt_exclude_expsyms
 
11318
 
 
11319
# Symbols that must always be exported.
 
11320
include_expsyms=$lt_include_expsyms
 
11321
 
 
11322
# ### END LIBTOOL CONFIG
 
11323
 
 
11324
__EOF__
 
11325
 
 
11326
 
 
11327
  case $host_os in
 
11328
  aix3*)
 
11329
    cat <<\EOF >> "$cfgfile"
 
11330
 
 
11331
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11332
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11333
# vanish in a puff of smoke.
 
11334
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11335
  COLLECT_NAMES=
 
11336
  export COLLECT_NAMES
 
11337
fi
 
11338
EOF
 
11339
    ;;
 
11340
  esac
 
11341
 
 
11342
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11343
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11344
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11345
  # is reportedly fixed, but why not run on old versions too?
 
11346
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11347
 
 
11348
  mv -f "$cfgfile" "$ofile" || \
 
11349
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11350
  chmod +x "$ofile"
 
11351
 
 
11352
else
 
11353
  # If there is no Makefile yet, we rely on a make rule to execute
 
11354
  # `config.status --recheck' to rerun these tests and create the
 
11355
  # libtool script then.
 
11356
  test -f Makefile && make "$ltmain"
 
11357
fi
 
11358
 
 
11359
 
 
11360
ac_ext=c
 
11361
ac_cpp='$CPP $CPPFLAGS'
 
11362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11365
 
 
11366
CC="$lt_save_CC"
 
11367
 
 
11368
 
 
11369
# Check whether --with-tags or --without-tags was given.
 
11370
if test "${with_tags+set}" = set; then
 
11371
  withval="$with_tags"
 
11372
  tagnames="$withval"
 
11373
fi;
 
11374
 
 
11375
if test -f "$ltmain" && test -n "$tagnames"; then
 
11376
  if test ! -f "${ofile}"; then
 
11377
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11378
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11379
  fi
 
11380
 
 
11381
  if test -z "$LTCC"; then
 
11382
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11383
    if test -z "$LTCC"; then
 
11384
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11385
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11386
    else
 
11387
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11388
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11389
    fi
 
11390
  fi
 
11391
 
 
11392
  # Extract list of available tagged configurations in $ofile.
 
11393
  # Note that this assumes the entire list is on one line.
 
11394
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11395
 
 
11396
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11397
  for tagname in $tagnames; do
 
11398
    IFS="$lt_save_ifs"
 
11399
    # Check whether tagname contains only valid characters
 
11400
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11401
    "") ;;
 
11402
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11403
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11404
   { (exit 1); exit 1; }; }
 
11405
        ;;
 
11406
    esac
 
11407
 
 
11408
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11409
    then
 
11410
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11411
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11412
   { (exit 1); exit 1; }; }
 
11413
    fi
 
11414
 
 
11415
    # Update the list of available tags.
 
11416
    if test -n "$tagname"; then
 
11417
      echo appending configuration tag \"$tagname\" to $ofile
 
11418
 
 
11419
      case $tagname in
 
11420
      CXX)
 
11421
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
11422
          ac_ext=cc
 
11423
ac_cpp='$CXXCPP $CPPFLAGS'
 
11424
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11425
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11426
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11427
 
 
11428
 
 
11429
 
 
11430
 
 
11431
archive_cmds_need_lc_CXX=no
 
11432
allow_undefined_flag_CXX=
 
11433
always_export_symbols_CXX=no
 
11434
archive_expsym_cmds_CXX=
 
11435
export_dynamic_flag_spec_CXX=
 
11436
hardcode_direct_CXX=no
 
11437
hardcode_libdir_flag_spec_CXX=
 
11438
hardcode_libdir_flag_spec_ld_CXX=
 
11439
hardcode_libdir_separator_CXX=
 
11440
hardcode_minus_L_CXX=no
 
11441
hardcode_automatic_CXX=no
 
11442
module_cmds_CXX=
 
11443
module_expsym_cmds_CXX=
 
11444
link_all_deplibs_CXX=unknown
 
11445
old_archive_cmds_CXX=$old_archive_cmds
 
11446
no_undefined_flag_CXX=
 
11447
whole_archive_flag_spec_CXX=
 
11448
enable_shared_with_static_runtimes_CXX=no
 
11449
 
 
11450
# Dependencies to place before and after the object being linked:
 
11451
predep_objects_CXX=
 
11452
postdep_objects_CXX=
 
11453
predeps_CXX=
 
11454
postdeps_CXX=
 
11455
compiler_lib_search_path_CXX=
 
11456
 
 
11457
# Source file extension for C++ test sources.
 
11458
ac_ext=cc
 
11459
 
 
11460
# Object file extension for compiled C++ test sources.
 
11461
objext=o
 
11462
objext_CXX=$objext
 
11463
 
 
11464
# Code to be used in simple compile tests
 
11465
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11466
 
 
11467
# Code to be used in simple link tests
 
11468
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11469
 
 
11470
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11471
 
 
11472
# If no C compiler was specified, use CC.
 
11473
LTCC=${LTCC-"$CC"}
 
11474
 
 
11475
# Allow CC to be a program name with arguments.
 
11476
compiler=$CC
 
11477
 
 
11478
 
 
11479
# Allow CC to be a program name with arguments.
 
11480
lt_save_CC=$CC
 
11481
lt_save_LD=$LD
 
11482
lt_save_GCC=$GCC
 
11483
GCC=$GXX
 
11484
lt_save_with_gnu_ld=$with_gnu_ld
 
11485
lt_save_path_LD=$lt_cv_path_LD
 
11486
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11487
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11488
else
 
11489
  unset lt_cv_prog_gnu_ld
 
11490
fi
 
11491
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11492
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11493
else
 
11494
  unset lt_cv_path_LD
 
11495
fi
 
11496
test -z "${LDCXX+set}" || LD=$LDCXX
 
11497
CC=${CXX-"c++"}
 
11498
compiler=$CC
 
11499
compiler_CXX=$CC
 
11500
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11501
 
 
11502
# We don't want -fno-exception wen compiling C++ code, so set the
 
11503
# no_builtin_flag separately
 
11504
if test "$GXX" = yes; then
 
11505
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11506
else
 
11507
  lt_prog_compiler_no_builtin_flag_CXX=
 
11508
fi
 
11509
 
 
11510
if test "$GXX" = yes; then
 
11511
  # Set up default GNU C++ configuration
 
11512
 
 
11513
 
 
11514
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11515
if test "${with_gnu_ld+set}" = set; then
 
11516
  withval="$with_gnu_ld"
 
11517
  test "$withval" = no || with_gnu_ld=yes
 
11518
else
 
11519
  with_gnu_ld=no
 
11520
fi;
 
11521
ac_prog=ld
 
11522
if test "$GCC" = yes; then
 
11523
  # Check if gcc -print-prog-name=ld gives a path.
 
11524
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11525
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11526
  case $host in
 
11527
  *-*-mingw*)
 
11528
    # gcc leaves a trailing carriage return which upsets mingw
 
11529
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11530
  *)
 
11531
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11532
  esac
 
11533
  case $ac_prog in
 
11534
    # Accept absolute paths.
 
11535
    [\\/]* | ?:[\\/]*)
 
11536
      re_direlt='/[^/][^/]*/\.\./'
 
11537
      # Canonicalize the path of ld
 
11538
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11539
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11540
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11541
      done
 
11542
      test -z "$LD" && LD="$ac_prog"
 
11543
      ;;
 
11544
  "")
 
11545
    # If it fails, then pretend we aren't using GCC.
 
11546
    ac_prog=ld
 
11547
    ;;
 
11548
  *)
 
11549
    # If it is relative, then search for the first ld in PATH.
 
11550
    with_gnu_ld=unknown
 
11551
    ;;
 
11552
  esac
 
11553
elif test "$with_gnu_ld" = yes; then
 
11554
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11555
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11556
else
 
11557
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11558
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11559
fi
 
11560
if test "${lt_cv_path_LD+set}" = set; then
 
11561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11562
else
 
11563
  if test -z "$LD"; then
 
11564
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11565
  for ac_dir in $PATH; do
 
11566
    IFS="$lt_save_ifs"
 
11567
    test -z "$ac_dir" && ac_dir=.
 
11568
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11569
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11570
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11571
      # but apparently some GNU ld's only accept -v.
 
11572
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11573
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11574
      *GNU* | *'with BFD'*)
 
11575
        test "$with_gnu_ld" != no && break
 
11576
        ;;
 
11577
      *)
 
11578
        test "$with_gnu_ld" != yes && break
 
11579
        ;;
 
11580
      esac
 
11581
    fi
 
11582
  done
 
11583
  IFS="$lt_save_ifs"
 
11584
else
 
11585
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11586
fi
 
11587
fi
 
11588
 
 
11589
LD="$lt_cv_path_LD"
 
11590
if test -n "$LD"; then
 
11591
  echo "$as_me:$LINENO: result: $LD" >&5
 
11592
echo "${ECHO_T}$LD" >&6
 
11593
else
 
11594
  echo "$as_me:$LINENO: result: no" >&5
 
11595
echo "${ECHO_T}no" >&6
 
11596
fi
 
11597
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11598
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11599
   { (exit 1); exit 1; }; }
 
11600
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11601
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11602
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11604
else
 
11605
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11606
case `"$LD" -v 2>&1 </dev/null` in
 
11607
*GNU* | *'with BFD'*)
 
11608
  lt_cv_prog_gnu_ld=yes
 
11609
  ;;
 
11610
*)
 
11611
  lt_cv_prog_gnu_ld=no
 
11612
  ;;
 
11613
esac
 
11614
fi
 
11615
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11616
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11617
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11618
 
 
11619
 
 
11620
 
 
11621
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11622
  # archiving commands below assume that GNU ld is being used.
 
11623
  if test "$with_gnu_ld" = yes; then
 
11624
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11625
    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'
 
11626
 
 
11627
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11628
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11629
 
 
11630
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11631
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11632
    #     investigate it a little bit more. (MM)
 
11633
    wlarc='${wl}'
 
11634
 
 
11635
    # ancient GNU ld didn't support --whole-archive et. al.
 
11636
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11637
        grep 'no-whole-archive' > /dev/null; then
 
11638
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11639
    else
 
11640
      whole_archive_flag_spec_CXX=
 
11641
    fi
 
11642
  else
 
11643
    with_gnu_ld=no
 
11644
    wlarc=
 
11645
 
 
11646
    # A generic and very simple default shared library creation
 
11647
    # command for GNU C++ for the case where it uses the native
 
11648
    # linker, instead of GNU ld.  If possible, this setting should
 
11649
    # overridden to take advantage of the native linker features on
 
11650
    # the platform it is being used on.
 
11651
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11652
  fi
 
11653
 
 
11654
  # Commands to make compiler produce verbose output that lists
 
11655
  # what "hidden" libraries, object files and flags are used when
 
11656
  # linking a shared library.
 
11657
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11658
 
 
11659
else
 
11660
  GXX=no
 
11661
  with_gnu_ld=no
 
11662
  wlarc=
 
11663
fi
 
11664
 
 
11665
# PORTME: fill in a description of your system's C++ link characteristics
 
11666
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11667
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11668
ld_shlibs_CXX=yes
 
11669
case $host_os in
 
11670
  aix3*)
 
11671
    # FIXME: insert proper C++ library support
 
11672
    ld_shlibs_CXX=no
 
11673
    ;;
 
11674
  aix4* | aix5*)
 
11675
    if test "$host_cpu" = ia64; then
 
11676
      # On IA64, the linker does run time linking by default, so we don't
 
11677
      # have to do anything special.
 
11678
      aix_use_runtimelinking=no
 
11679
      exp_sym_flag='-Bexport'
 
11680
      no_entry_flag=""
 
11681
    else
 
11682
      aix_use_runtimelinking=no
 
11683
 
 
11684
      # Test if we are trying to use run time linking or normal
 
11685
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11686
      # need to do runtime linking.
 
11687
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11688
        for ld_flag in $LDFLAGS; do
 
11689
          case $ld_flag in
 
11690
          *-brtl*)
 
11691
            aix_use_runtimelinking=yes
 
11692
            break
 
11693
            ;;
 
11694
          esac
 
11695
        done
 
11696
      esac
 
11697
 
 
11698
      exp_sym_flag='-bexport'
 
11699
      no_entry_flag='-bnoentry'
 
11700
    fi
 
11701
 
 
11702
    # When large executables or shared objects are built, AIX ld can
 
11703
    # have problems creating the table of contents.  If linking a library
 
11704
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11705
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11706
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11707
 
 
11708
    archive_cmds_CXX=''
 
11709
    hardcode_direct_CXX=yes
 
11710
    hardcode_libdir_separator_CXX=':'
 
11711
    link_all_deplibs_CXX=yes
 
11712
 
 
11713
    if test "$GXX" = yes; then
 
11714
      case $host_os in aix4.012|aix4.012.*)
 
11715
      # We only want to do this on AIX 4.2 and lower, the check
 
11716
      # below for broken collect2 doesn't work under 4.3+
 
11717
        collect2name=`${CC} -print-prog-name=collect2`
 
11718
        if test -f "$collect2name" && \
 
11719
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11720
        then
 
11721
          # We have reworked collect2
 
11722
          hardcode_direct_CXX=yes
 
11723
        else
 
11724
          # We have old collect2
 
11725
          hardcode_direct_CXX=unsupported
 
11726
          # It fails to find uninstalled libraries when the uninstalled
 
11727
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11728
          # to unsupported forces relinking
 
11729
          hardcode_minus_L_CXX=yes
 
11730
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11731
          hardcode_libdir_separator_CXX=
 
11732
        fi
 
11733
      esac
 
11734
      shared_flag='-shared'
 
11735
    else
 
11736
      # not using gcc
 
11737
      if test "$host_cpu" = ia64; then
 
11738
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11739
        # chokes on -Wl,-G. The following line is correct:
 
11740
        shared_flag='-G'
 
11741
      else
 
11742
        if test "$aix_use_runtimelinking" = yes; then
 
11743
          shared_flag='${wl}-G'
 
11744
        else
 
11745
          shared_flag='${wl}-bM:SRE'
 
11746
        fi
 
11747
      fi
 
11748
    fi
 
11749
 
 
11750
    # It seems that -bexpall does not export symbols beginning with
 
11751
    # underscore (_), so it is better to generate a list of symbols to export.
 
11752
    always_export_symbols_CXX=yes
 
11753
    if test "$aix_use_runtimelinking" = yes; then
 
11754
      # Warning - without using the other runtime loading flags (-brtl),
 
11755
      # -berok will link without error, but may produce a broken library.
 
11756
      allow_undefined_flag_CXX='-berok'
 
11757
      # Determine the default libpath from the value encoded in an empty executable.
 
11758
      cat >conftest.$ac_ext <<_ACEOF
 
11759
/* confdefs.h.  */
 
11760
_ACEOF
 
11761
cat confdefs.h >>conftest.$ac_ext
 
11762
cat >>conftest.$ac_ext <<_ACEOF
 
11763
/* end confdefs.h.  */
 
11764
 
 
11765
int
 
11766
main ()
 
11767
{
 
11768
 
 
11769
  ;
 
11770
  return 0;
 
11771
}
 
11772
_ACEOF
 
11773
rm -f conftest.$ac_objext conftest$ac_exeext
 
11774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11775
  (eval $ac_link) 2>conftest.er1
 
11776
  ac_status=$?
 
11777
  grep -v '^ *+' conftest.er1 >conftest.err
 
11778
  rm -f conftest.er1
 
11779
  cat conftest.err >&5
 
11780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11781
  (exit $ac_status); } &&
 
11782
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11783
                         || test ! -s conftest.err'
 
11784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11785
  (eval $ac_try) 2>&5
 
11786
  ac_status=$?
 
11787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11788
  (exit $ac_status); }; } &&
 
11789
         { ac_try='test -s conftest$ac_exeext'
 
11790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11791
  (eval $ac_try) 2>&5
 
11792
  ac_status=$?
 
11793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11794
  (exit $ac_status); }; }; then
 
11795
 
 
11796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11797
}'`
 
11798
# Check for a 64-bit object if we didn't find anything.
 
11799
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; }
 
11800
}'`; fi
 
11801
else
 
11802
  echo "$as_me: failed program was:" >&5
 
11803
sed 's/^/| /' conftest.$ac_ext >&5
 
11804
 
 
11805
fi
 
11806
rm -f conftest.err conftest.$ac_objext \
 
11807
      conftest$ac_exeext conftest.$ac_ext
 
11808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11809
 
 
11810
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11811
 
 
11812
      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"
 
11813
     else
 
11814
      if test "$host_cpu" = ia64; then
 
11815
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11816
        allow_undefined_flag_CXX="-z nodefs"
 
11817
        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"
 
11818
      else
 
11819
        # Determine the default libpath from the value encoded in an empty executable.
 
11820
        cat >conftest.$ac_ext <<_ACEOF
 
11821
/* confdefs.h.  */
 
11822
_ACEOF
 
11823
cat confdefs.h >>conftest.$ac_ext
 
11824
cat >>conftest.$ac_ext <<_ACEOF
 
11825
/* end confdefs.h.  */
 
11826
 
 
11827
int
 
11828
main ()
 
11829
{
 
11830
 
 
11831
  ;
 
11832
  return 0;
 
11833
}
 
11834
_ACEOF
 
11835
rm -f conftest.$ac_objext conftest$ac_exeext
 
11836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11837
  (eval $ac_link) 2>conftest.er1
 
11838
  ac_status=$?
 
11839
  grep -v '^ *+' conftest.er1 >conftest.err
 
11840
  rm -f conftest.er1
 
11841
  cat conftest.err >&5
 
11842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11843
  (exit $ac_status); } &&
 
11844
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11845
                         || test ! -s conftest.err'
 
11846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11847
  (eval $ac_try) 2>&5
 
11848
  ac_status=$?
 
11849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11850
  (exit $ac_status); }; } &&
 
11851
         { ac_try='test -s conftest$ac_exeext'
 
11852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11853
  (eval $ac_try) 2>&5
 
11854
  ac_status=$?
 
11855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11856
  (exit $ac_status); }; }; then
 
11857
 
 
11858
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11859
}'`
 
11860
# Check for a 64-bit object if we didn't find anything.
 
11861
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; }
 
11862
}'`; fi
 
11863
else
 
11864
  echo "$as_me: failed program was:" >&5
 
11865
sed 's/^/| /' conftest.$ac_ext >&5
 
11866
 
 
11867
fi
 
11868
rm -f conftest.err conftest.$ac_objext \
 
11869
      conftest$ac_exeext conftest.$ac_ext
 
11870
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11871
 
 
11872
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11873
        # Warning - without using the other run time loading flags,
 
11874
        # -berok will link without error, but may produce a broken library.
 
11875
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11876
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11877
        # -bexpall does not export symbols beginning with underscore (_)
 
11878
        always_export_symbols_CXX=yes
 
11879
        # Exported symbols can be pulled into shared objects from archives
 
11880
        whole_archive_flag_spec_CXX=' '
 
11881
        archive_cmds_need_lc_CXX=yes
 
11882
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11883
        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'
 
11884
      fi
 
11885
    fi
 
11886
    ;;
 
11887
  chorus*)
 
11888
    case $cc_basename in
 
11889
      *)
 
11890
        # FIXME: insert proper C++ library support
 
11891
        ld_shlibs_CXX=no
 
11892
        ;;
 
11893
    esac
 
11894
    ;;
 
11895
 
 
11896
  cygwin* | mingw* | pw32*)
 
11897
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11898
    # as there is no search path for DLLs.
 
11899
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11900
    allow_undefined_flag_CXX=unsupported
 
11901
    always_export_symbols_CXX=no
 
11902
    enable_shared_with_static_runtimes_CXX=yes
 
11903
 
 
11904
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11905
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
 
11906
      # If the export-symbols file already is a .def file (1st line
 
11907
      # is EXPORTS), use it as is; otherwise, prepend...
 
11908
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11909
        cp $export_symbols $output_objdir/$soname.def;
 
11910
      else
 
11911
        echo EXPORTS > $output_objdir/$soname.def;
 
11912
        cat $export_symbols >> $output_objdir/$soname.def;
 
11913
      fi~
 
11914
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
 
11915
    else
 
11916
      ld_shlibs_CXX=no
 
11917
    fi
 
11918
  ;;
 
11919
 
 
11920
  darwin* | rhapsody*)
 
11921
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
11922
    archive_cmds_need_lc_CXX=no
 
11923
    case "$host_os" in
 
11924
    rhapsody* | darwin1.[012])
 
11925
      allow_undefined_flag_CXX='-undefined suppress'
 
11926
      ;;
 
11927
    *) # Darwin 1.3 on
 
11928
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11929
      ;;
 
11930
    esac
 
11931
        lt_int_apple_cc_single_mod=no
 
11932
        output_verbose_link_cmd='echo'
 
11933
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
11934
          lt_int_apple_cc_single_mod=yes
 
11935
        fi
 
11936
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11937
          archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11938
        else
 
11939
        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'
 
11940
      fi
 
11941
      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
11942
 
 
11943
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11944
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11945
        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}'
 
11946
      else
 
11947
        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}'
 
11948
      fi
 
11949
        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11950
    hardcode_direct_CXX=no
 
11951
    hardcode_automatic_CXX=yes
 
11952
    hardcode_shlibpath_var_CXX=unsupported
 
11953
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
11954
    link_all_deplibs_CXX=yes
 
11955
   fi
 
11956
    ;;
 
11957
 
 
11958
  dgux*)
 
11959
    case $cc_basename in
 
11960
      ec++)
 
11961
        # FIXME: insert proper C++ library support
 
11962
        ld_shlibs_CXX=no
 
11963
        ;;
 
11964
      ghcx)
 
11965
        # Green Hills C++ Compiler
 
11966
        # FIXME: insert proper C++ library support
 
11967
        ld_shlibs_CXX=no
 
11968
        ;;
 
11969
      *)
 
11970
        # FIXME: insert proper C++ library support
 
11971
        ld_shlibs_CXX=no
 
11972
        ;;
 
11973
    esac
 
11974
    ;;
 
11975
  freebsd12*)
 
11976
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11977
    ld_shlibs_CXX=no
 
11978
    ;;
 
11979
  freebsd-elf*)
 
11980
    archive_cmds_need_lc_CXX=no
 
11981
    ;;
 
11982
  freebsd*)
 
11983
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11984
    # conventions
 
11985
    ld_shlibs_CXX=yes
 
11986
    ;;
 
11987
  gnu*)
 
11988
    ;;
 
11989
  hpux9*)
 
11990
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11991
    hardcode_libdir_separator_CXX=:
 
11992
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11993
    hardcode_direct_CXX=yes
 
11994
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11995
                                # but as the default
 
11996
                                # location of the library.
 
11997
 
 
11998
    case $cc_basename in
 
11999
    CC)
 
12000
      # FIXME: insert proper C++ library support
 
12001
      ld_shlibs_CXX=no
 
12002
      ;;
 
12003
    aCC)
 
12004
      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'
 
12005
      # Commands to make compiler produce verbose output that lists
 
12006
      # what "hidden" libraries, object files and flags are used when
 
12007
      # linking a shared library.
 
12008
      #
 
12009
      # There doesn't appear to be a way to prevent this compiler from
 
12010
      # explicitly linking system object files so we need to strip them
 
12011
      # from the output so that they don't get included in the library
 
12012
      # dependencies.
 
12013
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12014
      ;;
 
12015
    *)
 
12016
      if test "$GXX" = yes; then
 
12017
        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'
 
12018
      else
 
12019
        # FIXME: insert proper C++ library support
 
12020
        ld_shlibs_CXX=no
 
12021
      fi
 
12022
      ;;
 
12023
    esac
 
12024
    ;;
 
12025
  hpux10*|hpux11*)
 
12026
    if test $with_gnu_ld = no; then
 
12027
      case "$host_cpu" in
 
12028
      hppa*64*)
 
12029
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12030
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12031
        hardcode_libdir_separator_CXX=:
 
12032
        ;;
 
12033
      ia64*)
 
12034
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12035
        ;;
 
12036
      *)
 
12037
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12038
        hardcode_libdir_separator_CXX=:
 
12039
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12040
        ;;
 
12041
      esac
 
12042
    fi
 
12043
    case "$host_cpu" in
 
12044
    hppa*64*)
 
12045
      hardcode_direct_CXX=no
 
12046
      hardcode_shlibpath_var_CXX=no
 
12047
      ;;
 
12048
    ia64*)
 
12049
      hardcode_direct_CXX=no
 
12050
      hardcode_shlibpath_var_CXX=no
 
12051
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12052
                                              # but as the default
 
12053
                                              # location of the library.
 
12054
      ;;
 
12055
    *)
 
12056
      hardcode_direct_CXX=yes
 
12057
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12058
                                              # but as the default
 
12059
                                              # location of the library.
 
12060
      ;;
 
12061
    esac
 
12062
 
 
12063
    case $cc_basename in
 
12064
      CC)
 
12065
        # FIXME: insert proper C++ library support
 
12066
        ld_shlibs_CXX=no
 
12067
        ;;
 
12068
      aCC)
 
12069
        case "$host_cpu" in
 
12070
        hppa*64*|ia64*)
 
12071
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12072
          ;;
 
12073
        *)
 
12074
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12075
          ;;
 
12076
        esac
 
12077
        # Commands to make compiler produce verbose output that lists
 
12078
        # what "hidden" libraries, object files and flags are used when
 
12079
        # linking a shared library.
 
12080
        #
 
12081
        # There doesn't appear to be a way to prevent this compiler from
 
12082
        # explicitly linking system object files so we need to strip them
 
12083
        # from the output so that they don't get included in the library
 
12084
        # dependencies.
 
12085
        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'
 
12086
        ;;
 
12087
      *)
 
12088
        if test "$GXX" = yes; then
 
12089
          if test $with_gnu_ld = no; then
 
12090
            case "$host_cpu" in
 
12091
            ia64*|hppa*64*)
 
12092
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12093
              ;;
 
12094
            *)
 
12095
              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'
 
12096
              ;;
 
12097
            esac
 
12098
          fi
 
12099
        else
 
12100
          # FIXME: insert proper C++ library support
 
12101
          ld_shlibs_CXX=no
 
12102
        fi
 
12103
        ;;
 
12104
    esac
 
12105
    ;;
 
12106
  irix5* | irix6*)
 
12107
    case $cc_basename in
 
12108
      CC)
 
12109
        # SGI C++
 
12110
        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'
 
12111
 
 
12112
        # Archives containing C++ object files must be created using
 
12113
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12114
        # necessary to make sure instantiated templates are included
 
12115
        # in the archive.
 
12116
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12117
        ;;
 
12118
      *)
 
12119
        if test "$GXX" = yes; then
 
12120
          if test "$with_gnu_ld" = no; then
 
12121
            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'
 
12122
          else
 
12123
            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'
 
12124
          fi
 
12125
        fi
 
12126
        link_all_deplibs_CXX=yes
 
12127
        ;;
 
12128
    esac
 
12129
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12130
    hardcode_libdir_separator_CXX=:
 
12131
    ;;
 
12132
  linux*)
 
12133
    case $cc_basename in
 
12134
      KCC)
 
12135
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12136
 
 
12137
        # KCC will only create a shared library if the output file
 
12138
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12139
        # to its proper name (with version) after linking.
 
12140
        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'
 
12141
        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'
 
12142
        # Commands to make compiler produce verbose output that lists
 
12143
        # what "hidden" libraries, object files and flags are used when
 
12144
        # linking a shared library.
 
12145
        #
 
12146
        # There doesn't appear to be a way to prevent this compiler from
 
12147
        # explicitly linking system object files so we need to strip them
 
12148
        # from the output so that they don't get included in the library
 
12149
        # dependencies.
 
12150
        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'
 
12151
 
 
12152
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12153
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12154
 
 
12155
        # Archives containing C++ object files must be created using
 
12156
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12157
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12158
        ;;
 
12159
      icpc)
 
12160
        # Intel C++
 
12161
        with_gnu_ld=yes
 
12162
        archive_cmds_need_lc_CXX=no
 
12163
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12164
        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'
 
12165
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12166
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12167
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12168
        ;;
 
12169
      cxx)
 
12170
        # Compaq C++
 
12171
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12172
        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'
 
12173
 
 
12174
        runpath_var=LD_RUN_PATH
 
12175
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12176
        hardcode_libdir_separator_CXX=:
 
12177
 
 
12178
        # Commands to make compiler produce verbose output that lists
 
12179
        # what "hidden" libraries, object files and flags are used when
 
12180
        # linking a shared library.
 
12181
        #
 
12182
        # There doesn't appear to be a way to prevent this compiler from
 
12183
        # explicitly linking system object files so we need to strip them
 
12184
        # from the output so that they don't get included in the library
 
12185
        # dependencies.
 
12186
        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'
 
12187
        ;;
 
12188
    esac
 
12189
    ;;
 
12190
  lynxos*)
 
12191
    # FIXME: insert proper C++ library support
 
12192
    ld_shlibs_CXX=no
 
12193
    ;;
 
12194
  m88k*)
 
12195
    # FIXME: insert proper C++ library support
 
12196
    ld_shlibs_CXX=no
 
12197
    ;;
 
12198
  mvs*)
 
12199
    case $cc_basename in
 
12200
      cxx)
 
12201
        # FIXME: insert proper C++ library support
 
12202
        ld_shlibs_CXX=no
 
12203
        ;;
 
12204
      *)
 
12205
        # FIXME: insert proper C++ library support
 
12206
        ld_shlibs_CXX=no
 
12207
        ;;
 
12208
    esac
 
12209
    ;;
 
12210
  netbsd*)
 
12211
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12212
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12213
      wlarc=
 
12214
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12215
      hardcode_direct_CXX=yes
 
12216
      hardcode_shlibpath_var_CXX=no
 
12217
    fi
 
12218
    # Workaround some broken pre-1.5 toolchains
 
12219
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12220
    ;;
 
12221
  osf3*)
 
12222
    case $cc_basename in
 
12223
      KCC)
 
12224
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12225
 
 
12226
        # KCC will only create a shared library if the output file
 
12227
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12228
        # to its proper name (with version) after linking.
 
12229
        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'
 
12230
 
 
12231
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12232
        hardcode_libdir_separator_CXX=:
 
12233
 
 
12234
        # Archives containing C++ object files must be created using
 
12235
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12236
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12237
 
 
12238
        ;;
 
12239
      RCC)
 
12240
        # Rational C++ 2.4.1
 
12241
        # FIXME: insert proper C++ library support
 
12242
        ld_shlibs_CXX=no
 
12243
        ;;
 
12244
      cxx)
 
12245
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12246
        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'
 
12247
 
 
12248
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12249
        hardcode_libdir_separator_CXX=:
 
12250
 
 
12251
        # Commands to make compiler produce verbose output that lists
 
12252
        # what "hidden" libraries, object files and flags are used when
 
12253
        # linking a shared library.
 
12254
        #
 
12255
        # There doesn't appear to be a way to prevent this compiler from
 
12256
        # explicitly linking system object files so we need to strip them
 
12257
        # from the output so that they don't get included in the library
 
12258
        # dependencies.
 
12259
        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'
 
12260
        ;;
 
12261
      *)
 
12262
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12263
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12264
          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'
 
12265
 
 
12266
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12267
          hardcode_libdir_separator_CXX=:
 
12268
 
 
12269
          # Commands to make compiler produce verbose output that lists
 
12270
          # what "hidden" libraries, object files and flags are used when
 
12271
          # linking a shared library.
 
12272
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12273
 
 
12274
        else
 
12275
          # FIXME: insert proper C++ library support
 
12276
          ld_shlibs_CXX=no
 
12277
        fi
 
12278
        ;;
 
12279
    esac
 
12280
    ;;
 
12281
  osf4* | osf5*)
 
12282
    case $cc_basename in
 
12283
      KCC)
 
12284
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12285
 
 
12286
        # KCC will only create a shared library if the output file
 
12287
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12288
        # to its proper name (with version) after linking.
 
12289
        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'
 
12290
 
 
12291
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12292
        hardcode_libdir_separator_CXX=:
 
12293
 
 
12294
        # Archives containing C++ object files must be created using
 
12295
        # the KAI C++ compiler.
 
12296
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12297
        ;;
 
12298
      RCC)
 
12299
        # Rational C++ 2.4.1
 
12300
        # FIXME: insert proper C++ library support
 
12301
        ld_shlibs_CXX=no
 
12302
        ;;
 
12303
      cxx)
 
12304
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12305
        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'
 
12306
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12307
          echo "-hidden">> $lib.exp~
 
12308
          $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~
 
12309
          $rm $lib.exp'
 
12310
 
 
12311
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12312
        hardcode_libdir_separator_CXX=:
 
12313
 
 
12314
        # Commands to make compiler produce verbose output that lists
 
12315
        # what "hidden" libraries, object files and flags are used when
 
12316
        # linking a shared library.
 
12317
        #
 
12318
        # There doesn't appear to be a way to prevent this compiler from
 
12319
        # explicitly linking system object files so we need to strip them
 
12320
        # from the output so that they don't get included in the library
 
12321
        # dependencies.
 
12322
        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'
 
12323
        ;;
 
12324
      *)
 
12325
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12326
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12327
         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'
 
12328
 
 
12329
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12330
          hardcode_libdir_separator_CXX=:
 
12331
 
 
12332
          # Commands to make compiler produce verbose output that lists
 
12333
          # what "hidden" libraries, object files and flags are used when
 
12334
          # linking a shared library.
 
12335
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12336
 
 
12337
        else
 
12338
          # FIXME: insert proper C++ library support
 
12339
          ld_shlibs_CXX=no
 
12340
        fi
 
12341
        ;;
 
12342
    esac
 
12343
    ;;
 
12344
  psos*)
 
12345
    # FIXME: insert proper C++ library support
 
12346
    ld_shlibs_CXX=no
 
12347
    ;;
 
12348
  sco*)
 
12349
    archive_cmds_need_lc_CXX=no
 
12350
    case $cc_basename in
 
12351
      CC)
 
12352
        # FIXME: insert proper C++ library support
 
12353
        ld_shlibs_CXX=no
 
12354
        ;;
 
12355
      *)
 
12356
        # FIXME: insert proper C++ library support
 
12357
        ld_shlibs_CXX=no
 
12358
        ;;
 
12359
    esac
 
12360
    ;;
 
12361
  sunos4*)
 
12362
    case $cc_basename in
 
12363
      CC)
 
12364
        # Sun C++ 4.x
 
12365
        # FIXME: insert proper C++ library support
 
12366
        ld_shlibs_CXX=no
 
12367
        ;;
 
12368
      lcc)
 
12369
        # Lucid
 
12370
        # FIXME: insert proper C++ library support
 
12371
        ld_shlibs_CXX=no
 
12372
        ;;
 
12373
      *)
 
12374
        # FIXME: insert proper C++ library support
 
12375
        ld_shlibs_CXX=no
 
12376
        ;;
 
12377
    esac
 
12378
    ;;
 
12379
  solaris*)
 
12380
    case $cc_basename in
 
12381
      CC)
 
12382
        # Sun C++ 4.2, 5.x and Centerline C++
 
12383
        no_undefined_flag_CXX=' -zdefs'
 
12384
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12385
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12386
        $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'
 
12387
 
 
12388
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12389
        hardcode_shlibpath_var_CXX=no
 
12390
        case $host_os in
 
12391
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12392
          *)
 
12393
            # The C++ compiler is used as linker so we must use $wl
 
12394
            # flag to pass the commands to the underlying system
 
12395
            # linker.
 
12396
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12397
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12398
            ;;
 
12399
        esac
 
12400
        link_all_deplibs_CXX=yes
 
12401
 
 
12402
        # Commands to make compiler produce verbose output that lists
 
12403
        # what "hidden" libraries, object files and flags are used when
 
12404
        # linking a shared library.
 
12405
        #
 
12406
        # There doesn't appear to be a way to prevent this compiler from
 
12407
        # explicitly linking system object files so we need to strip them
 
12408
        # from the output so that they don't get included in the library
 
12409
        # dependencies.
 
12410
        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'
 
12411
 
 
12412
        # Archives containing C++ object files must be created using
 
12413
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12414
        # necessary to make sure instantiated templates are included
 
12415
        # in the archive.
 
12416
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12417
        ;;
 
12418
      gcx)
 
12419
        # Green Hills C++ Compiler
 
12420
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12421
 
 
12422
        # The C++ compiler must be used to create the archive.
 
12423
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12424
        ;;
 
12425
      *)
 
12426
        # GNU C++ compiler with Solaris linker
 
12427
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12428
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12429
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12430
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12431
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12432
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12433
 
 
12434
            # Commands to make compiler produce verbose output that lists
 
12435
            # what "hidden" libraries, object files and flags are used when
 
12436
            # linking a shared library.
 
12437
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12438
          else
 
12439
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12440
            # platform.
 
12441
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12442
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12443
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12444
 
 
12445
            # Commands to make compiler produce verbose output that lists
 
12446
            # what "hidden" libraries, object files and flags are used when
 
12447
            # linking a shared library.
 
12448
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12449
          fi
 
12450
 
 
12451
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12452
        fi
 
12453
        ;;
 
12454
    esac
 
12455
    ;;
 
12456
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
12457
    archive_cmds_need_lc_CXX=no
 
12458
    ;;
 
12459
  tandem*)
 
12460
    case $cc_basename in
 
12461
      NCC)
 
12462
        # NonStop-UX NCC 3.20
 
12463
        # FIXME: insert proper C++ library support
 
12464
        ld_shlibs_CXX=no
 
12465
        ;;
 
12466
      *)
 
12467
        # FIXME: insert proper C++ library support
 
12468
        ld_shlibs_CXX=no
 
12469
        ;;
 
12470
    esac
 
12471
    ;;
 
12472
  vxworks*)
 
12473
    # FIXME: insert proper C++ library support
 
12474
    ld_shlibs_CXX=no
 
12475
    ;;
 
12476
  *)
 
12477
    # FIXME: insert proper C++ library support
 
12478
    ld_shlibs_CXX=no
 
12479
    ;;
 
12480
esac
 
12481
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12482
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12483
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12484
 
 
12485
GCC_CXX="$GXX"
 
12486
LD_CXX="$LD"
 
12487
 
 
12488
## CAVEAT EMPTOR:
 
12489
## There is no encapsulation within the following macros, do not change
 
12490
## the running order or otherwise move them around unless you know exactly
 
12491
## what you are doing...
 
12492
 
 
12493
cat > conftest.$ac_ext <<EOF
 
12494
class Foo
 
12495
{
 
12496
public:
 
12497
  Foo (void) { a = 0; }
 
12498
private:
 
12499
  int a;
 
12500
};
 
12501
EOF
 
12502
 
 
12503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12504
  (eval $ac_compile) 2>&5
 
12505
  ac_status=$?
 
12506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12507
  (exit $ac_status); }; then
 
12508
  # Parse the compiler output and extract the necessary
 
12509
  # objects, libraries and library flags.
 
12510
 
 
12511
  # Sentinel used to keep track of whether or not we are before
 
12512
  # the conftest object file.
 
12513
  pre_test_object_deps_done=no
 
12514
 
 
12515
  # The `*' in the case matches for architectures that use `case' in
 
12516
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12517
  # eval without this substitution.
 
12518
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12519
 
 
12520
  for p in `eval $output_verbose_link_cmd`; do
 
12521
    case $p in
 
12522
 
 
12523
    -L* | -R* | -l*)
 
12524
       # Some compilers place space between "-{L,R}" and the path.
 
12525
       # Remove the space.
 
12526
       if test $p = "-L" \
 
12527
          || test $p = "-R"; then
 
12528
         prev=$p
 
12529
         continue
 
12530
       else
 
12531
         prev=
 
12532
       fi
 
12533
 
 
12534
       if test "$pre_test_object_deps_done" = no; then
 
12535
         case $p in
 
12536
         -L* | -R*)
 
12537
           # Internal compiler library paths should come after those
 
12538
           # provided the user.  The postdeps already come after the
 
12539
           # user supplied libs so there is no need to process them.
 
12540
           if test -z "$compiler_lib_search_path_CXX"; then
 
12541
             compiler_lib_search_path_CXX="${prev}${p}"
 
12542
           else
 
12543
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12544
           fi
 
12545
           ;;
 
12546
         # The "-l" case would never come before the object being
 
12547
         # linked, so don't bother handling this case.
 
12548
         esac
 
12549
       else
 
12550
         if test -z "$postdeps_CXX"; then
 
12551
           postdeps_CXX="${prev}${p}"
 
12552
         else
 
12553
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12554
         fi
 
12555
       fi
 
12556
       ;;
 
12557
 
 
12558
    *.$objext)
 
12559
       # This assumes that the test object file only shows up
 
12560
       # once in the compiler output.
 
12561
       if test "$p" = "conftest.$objext"; then
 
12562
         pre_test_object_deps_done=yes
 
12563
         continue
 
12564
       fi
 
12565
 
 
12566
       if test "$pre_test_object_deps_done" = no; then
 
12567
         if test -z "$predep_objects_CXX"; then
 
12568
           predep_objects_CXX="$p"
 
12569
         else
 
12570
           predep_objects_CXX="$predep_objects_CXX $p"
 
12571
         fi
 
12572
       else
 
12573
         if test -z "$postdep_objects_CXX"; then
 
12574
           postdep_objects_CXX="$p"
 
12575
         else
 
12576
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12577
         fi
 
12578
       fi
 
12579
       ;;
 
12580
 
 
12581
    *) ;; # Ignore the rest.
 
12582
 
 
12583
    esac
 
12584
  done
 
12585
 
 
12586
  # Clean up.
 
12587
  rm -f a.out a.exe
 
12588
else
 
12589
  echo "libtool.m4: error: problem compiling CXX test program"
 
12590
fi
 
12591
 
 
12592
$rm -f confest.$objext
 
12593
 
 
12594
case " $postdeps_CXX " in
 
12595
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12596
esac
 
12597
 
 
12598
lt_prog_compiler_wl_CXX=
 
12599
lt_prog_compiler_pic_CXX=
 
12600
lt_prog_compiler_static_CXX=
 
12601
 
 
12602
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12603
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12604
 
 
12605
  # C++ specific cases for pic, static, wl, etc.
 
12606
  if test "$GXX" = yes; then
 
12607
    lt_prog_compiler_wl_CXX='-Wl,'
 
12608
    lt_prog_compiler_static_CXX='-static'
 
12609
 
 
12610
    case $host_os in
 
12611
    aix*)
 
12612
      # All AIX code is PIC.
 
12613
      if test "$host_cpu" = ia64; then
 
12614
        # AIX 5 now supports IA64 processor
 
12615
        lt_prog_compiler_static_CXX='-Bstatic'
 
12616
      fi
 
12617
      ;;
 
12618
    amigaos*)
 
12619
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12620
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12621
      # like `-m68040'.
 
12622
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12623
      ;;
 
12624
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12625
      # PIC is the default for these OSes.
 
12626
      ;;
 
12627
    mingw* | os2* | pw32*)
 
12628
      # This hack is so that the source file can tell whether it is being
 
12629
      # built for inclusion in a dll (and should export symbols for example).
 
12630
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12631
      ;;
 
12632
    darwin* | rhapsody*)
 
12633
      # PIC is the default on this platform
 
12634
      # Common symbols not allowed in MH_DYLIB files
 
12635
      lt_prog_compiler_pic_CXX='-fno-common'
 
12636
      ;;
 
12637
    *djgpp*)
 
12638
      # DJGPP does not support shared libraries at all
 
12639
      lt_prog_compiler_pic_CXX=
 
12640
      ;;
 
12641
    sysv4*MP*)
 
12642
      if test -d /usr/nec; then
 
12643
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12644
      fi
 
12645
      ;;
 
12646
    hpux*)
 
12647
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12648
      # not for PA HP-UX.
 
12649
      case "$host_cpu" in
 
12650
      hppa*64*|ia64*)
 
12651
        ;;
 
12652
      *)
 
12653
        lt_prog_compiler_pic_CXX='-fPIC'
 
12654
        ;;
 
12655
      esac
 
12656
      ;;
 
12657
    *)
 
12658
      lt_prog_compiler_pic_CXX='-fPIC'
 
12659
      ;;
 
12660
    esac
 
12661
  else
 
12662
    case $host_os in
 
12663
      aix4* | aix5*)
 
12664
        # All AIX code is PIC.
 
12665
        if test "$host_cpu" = ia64; then
 
12666
          # AIX 5 now supports IA64 processor
 
12667
          lt_prog_compiler_static_CXX='-Bstatic'
 
12668
        else
 
12669
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12670
        fi
 
12671
        ;;
 
12672
      chorus*)
 
12673
        case $cc_basename in
 
12674
        cxch68)
 
12675
          # Green Hills C++ Compiler
 
12676
          # _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"
 
12677
          ;;
 
12678
        esac
 
12679
        ;;
 
12680
      dgux*)
 
12681
        case $cc_basename in
 
12682
          ec++)
 
12683
            lt_prog_compiler_pic_CXX='-KPIC'
 
12684
            ;;
 
12685
          ghcx)
 
12686
            # Green Hills C++ Compiler
 
12687
            lt_prog_compiler_pic_CXX='-pic'
 
12688
            ;;
 
12689
          *)
 
12690
            ;;
 
12691
        esac
 
12692
        ;;
 
12693
      freebsd*)
 
12694
        # FreeBSD uses GNU C++
 
12695
        ;;
 
12696
      hpux9* | hpux10* | hpux11*)
 
12697
        case $cc_basename in
 
12698
          CC)
 
12699
            lt_prog_compiler_wl_CXX='-Wl,'
 
12700
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12701
            if test "$host_cpu" != ia64; then
 
12702
              lt_prog_compiler_pic_CXX='+Z'
 
12703
            fi
 
12704
            ;;
 
12705
          aCC)
 
12706
            lt_prog_compiler_wl_CXX='-Wl,'
 
12707
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12708
            case "$host_cpu" in
 
12709
            hppa*64*|ia64*)
 
12710
              # +Z the default
 
12711
              ;;
 
12712
            *)
 
12713
              lt_prog_compiler_pic_CXX='+Z'
 
12714
              ;;
 
12715
            esac
 
12716
            ;;
 
12717
          *)
 
12718
            ;;
 
12719
        esac
 
12720
        ;;
 
12721
      irix5* | irix6* | nonstopux*)
 
12722
        case $cc_basename in
 
12723
          CC)
 
12724
            lt_prog_compiler_wl_CXX='-Wl,'
 
12725
            lt_prog_compiler_static_CXX='-non_shared'
 
12726
            # CC pic flag -KPIC is the default.
 
12727
            ;;
 
12728
          *)
 
12729
            ;;
 
12730
        esac
 
12731
        ;;
 
12732
      linux*)
 
12733
        case $cc_basename in
 
12734
          KCC)
 
12735
            # KAI C++ Compiler
 
12736
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12737
            lt_prog_compiler_pic_CXX='-fPIC'
 
12738
            ;;
 
12739
          icpc)
 
12740
            # Intel C++
 
12741
            lt_prog_compiler_wl_CXX='-Wl,'
 
12742
            lt_prog_compiler_pic_CXX='-KPIC'
 
12743
            lt_prog_compiler_static_CXX='-static'
 
12744
            ;;
 
12745
          cxx)
 
12746
            # Compaq C++
 
12747
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12748
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12749
            lt_prog_compiler_pic_CXX=
 
12750
            lt_prog_compiler_static_CXX='-non_shared'
 
12751
            ;;
 
12752
          *)
 
12753
            ;;
 
12754
        esac
 
12755
        ;;
 
12756
      lynxos*)
 
12757
        ;;
 
12758
      m88k*)
 
12759
        ;;
 
12760
      mvs*)
 
12761
        case $cc_basename in
 
12762
          cxx)
 
12763
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12764
            ;;
 
12765
          *)
 
12766
            ;;
 
12767
        esac
 
12768
        ;;
 
12769
      netbsd*)
 
12770
        ;;
 
12771
      osf3* | osf4* | osf5*)
 
12772
        case $cc_basename in
 
12773
          KCC)
 
12774
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12775
            ;;
 
12776
          RCC)
 
12777
            # Rational C++ 2.4.1
 
12778
            lt_prog_compiler_pic_CXX='-pic'
 
12779
            ;;
 
12780
          cxx)
 
12781
            # Digital/Compaq C++
 
12782
            lt_prog_compiler_wl_CXX='-Wl,'
 
12783
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12784
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12785
            lt_prog_compiler_pic_CXX=
 
12786
            lt_prog_compiler_static_CXX='-non_shared'
 
12787
            ;;
 
12788
          *)
 
12789
            ;;
 
12790
        esac
 
12791
        ;;
 
12792
      psos*)
 
12793
        ;;
 
12794
      sco*)
 
12795
        case $cc_basename in
 
12796
          CC)
 
12797
            lt_prog_compiler_pic_CXX='-fPIC'
 
12798
            ;;
 
12799
          *)
 
12800
            ;;
 
12801
        esac
 
12802
        ;;
 
12803
      solaris*)
 
12804
        case $cc_basename in
 
12805
          CC)
 
12806
            # Sun C++ 4.2, 5.x and Centerline C++
 
12807
            lt_prog_compiler_pic_CXX='-KPIC'
 
12808
            lt_prog_compiler_static_CXX='-Bstatic'
 
12809
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12810
            ;;
 
12811
          gcx)
 
12812
            # Green Hills C++ Compiler
 
12813
            lt_prog_compiler_pic_CXX='-PIC'
 
12814
            ;;
 
12815
          *)
 
12816
            ;;
 
12817
        esac
 
12818
        ;;
 
12819
      sunos4*)
 
12820
        case $cc_basename in
 
12821
          CC)
 
12822
            # Sun C++ 4.x
 
12823
            lt_prog_compiler_pic_CXX='-pic'
 
12824
            lt_prog_compiler_static_CXX='-Bstatic'
 
12825
            ;;
 
12826
          lcc)
 
12827
            # Lucid
 
12828
            lt_prog_compiler_pic_CXX='-pic'
 
12829
            ;;
 
12830
          *)
 
12831
            ;;
 
12832
        esac
 
12833
        ;;
 
12834
      tandem*)
 
12835
        case $cc_basename in
 
12836
          NCC)
 
12837
            # NonStop-UX NCC 3.20
 
12838
            lt_prog_compiler_pic_CXX='-KPIC'
 
12839
            ;;
 
12840
          *)
 
12841
            ;;
 
12842
        esac
 
12843
        ;;
 
12844
      unixware*)
 
12845
        ;;
 
12846
      vxworks*)
 
12847
        ;;
 
12848
      *)
 
12849
        lt_prog_compiler_can_build_shared_CXX=no
 
12850
        ;;
 
12851
    esac
 
12852
  fi
 
12853
 
 
12854
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12855
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12856
 
 
12857
#
 
12858
# Check to make sure the PIC flag actually works.
 
12859
#
 
12860
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12861
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12862
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12863
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12865
else
 
12866
  lt_prog_compiler_pic_works_CXX=no
 
12867
  ac_outfile=conftest.$ac_objext
 
12868
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12869
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12870
   # Insert the option either (1) after the last *FLAGS variable, or
 
12871
   # (2) before a word containing "conftest.", or (3) at the end.
 
12872
   # Note that $ac_compile itself does not contain backslashes and begins
 
12873
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12874
   # The option is referenced via a variable to avoid confusing sed.
 
12875
   lt_compile=`echo "$ac_compile" | $SED \
 
12876
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12877
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12878
   -e 's:$: $lt_compiler_flag:'`
 
12879
   (eval echo "\"\$as_me:12879: $lt_compile\"" >&5)
 
12880
   (eval "$lt_compile" 2>conftest.err)
 
12881
   ac_status=$?
 
12882
   cat conftest.err >&5
 
12883
   echo "$as_me:12883: \$? = $ac_status" >&5
 
12884
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12885
     # The compiler can only warn and ignore the option if not recognized
 
12886
     # So say no if there are warnings
 
12887
     if test ! -s conftest.err; then
 
12888
       lt_prog_compiler_pic_works_CXX=yes
 
12889
     fi
 
12890
   fi
 
12891
   $rm conftest*
 
12892
 
 
12893
fi
 
12894
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12895
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12896
 
 
12897
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12898
    case $lt_prog_compiler_pic_CXX in
 
12899
     "" | " "*) ;;
 
12900
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12901
     esac
 
12902
else
 
12903
    lt_prog_compiler_pic_CXX=
 
12904
     lt_prog_compiler_can_build_shared_CXX=no
 
12905
fi
 
12906
 
 
12907
fi
 
12908
case "$host_os" in
 
12909
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12910
  *djgpp*)
 
12911
    lt_prog_compiler_pic_CXX=
 
12912
    ;;
 
12913
  *)
 
12914
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12915
    ;;
 
12916
esac
 
12917
 
 
12918
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12919
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12920
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12922
else
 
12923
  lt_cv_prog_compiler_c_o_CXX=no
 
12924
   $rm -r conftest 2>/dev/null
 
12925
   mkdir conftest
 
12926
   cd conftest
 
12927
   mkdir out
 
12928
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12929
 
 
12930
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
12931
   # that will create temporary files in the current directory regardless of
 
12932
   # the output directory.  Thus, making CWD read-only will cause this test
 
12933
   # to fail, enabling locking or at least warning the user not to do parallel
 
12934
   # builds.
 
12935
   chmod -w .
 
12936
 
 
12937
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12938
   # Insert the option either (1) after the last *FLAGS variable, or
 
12939
   # (2) before a word containing "conftest.", or (3) at the end.
 
12940
   # Note that $ac_compile itself does not contain backslashes and begins
 
12941
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12942
   lt_compile=`echo "$ac_compile" | $SED \
 
12943
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12944
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12945
   -e 's:$: $lt_compiler_flag:'`
 
12946
   (eval echo "\"\$as_me:12946: $lt_compile\"" >&5)
 
12947
   (eval "$lt_compile" 2>out/conftest.err)
 
12948
   ac_status=$?
 
12949
   cat out/conftest.err >&5
 
12950
   echo "$as_me:12950: \$? = $ac_status" >&5
 
12951
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12952
   then
 
12953
     # The compiler can only warn and ignore the option if not recognized
 
12954
     # So say no if there are warnings
 
12955
     if test ! -s out/conftest.err; then
 
12956
       lt_cv_prog_compiler_c_o_CXX=yes
 
12957
     fi
 
12958
   fi
 
12959
   chmod u+w .
 
12960
   $rm conftest* out/*
 
12961
   rmdir out
 
12962
   cd ..
 
12963
   rmdir conftest
 
12964
   $rm conftest*
 
12965
 
 
12966
fi
 
12967
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12968
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12969
 
 
12970
 
 
12971
hard_links="nottested"
 
12972
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12973
  # do not overwrite the value of need_locks provided by the user
 
12974
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12975
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12976
  hard_links=yes
 
12977
  $rm conftest*
 
12978
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12979
  touch conftest.a
 
12980
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12981
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12982
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12983
echo "${ECHO_T}$hard_links" >&6
 
12984
  if test "$hard_links" = no; then
 
12985
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12986
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12987
    need_locks=warn
 
12988
  fi
 
12989
else
 
12990
  need_locks=no
 
12991
fi
 
12992
 
 
12993
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12994
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12995
 
 
12996
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12997
  case $host_os in
 
12998
  aix4* | aix5*)
 
12999
    # If we're using GNU nm, then we don't want the "-C" option.
 
13000
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13001
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13002
      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'
 
13003
    else
 
13004
      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'
 
13005
    fi
 
13006
    ;;
 
13007
  pw32*)
 
13008
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13009
  ;;
 
13010
  cygwin* | mingw*)
 
13011
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13012
  ;;
 
13013
  *)
 
13014
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13015
  ;;
 
13016
  esac
 
13017
 
 
13018
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13019
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13020
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13021
 
 
13022
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13023
if test "$GCC" = yes; then
 
13024
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13025
fi
 
13026
 
 
13027
#
 
13028
# Do we need to explicitly link libc?
 
13029
#
 
13030
case "x$archive_cmds_need_lc_CXX" in
 
13031
x|xyes)
 
13032
  # Assume -lc should be added
 
13033
  archive_cmds_need_lc_CXX=yes
 
13034
 
 
13035
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13036
    case $archive_cmds_CXX in
 
13037
    *'~'*)
 
13038
      # FIXME: we may have to deal with multi-command sequences.
 
13039
      ;;
 
13040
    '$CC '*)
 
13041
      # Test whether the compiler implicitly links with -lc since on some
 
13042
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13043
      # to ld, don't add -lc before -lgcc.
 
13044
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13045
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13046
      $rm conftest*
 
13047
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13048
 
 
13049
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13050
  (eval $ac_compile) 2>&5
 
13051
  ac_status=$?
 
13052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13053
  (exit $ac_status); } 2>conftest.err; then
 
13054
        soname=conftest
 
13055
        lib=conftest
 
13056
        libobjs=conftest.$ac_objext
 
13057
        deplibs=
 
13058
        wl=$lt_prog_compiler_wl_CXX
 
13059
        compiler_flags=-v
 
13060
        linker_flags=-v
 
13061
        verstring=
 
13062
        output_objdir=.
 
13063
        libname=conftest
 
13064
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13065
        allow_undefined_flag_CXX=
 
13066
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13067
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13068
  ac_status=$?
 
13069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13070
  (exit $ac_status); }
 
13071
        then
 
13072
          archive_cmds_need_lc_CXX=no
 
13073
        else
 
13074
          archive_cmds_need_lc_CXX=yes
 
13075
        fi
 
13076
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13077
      else
 
13078
        cat conftest.err 1>&5
 
13079
      fi
 
13080
      $rm conftest*
 
13081
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13082
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13083
      ;;
 
13084
    esac
 
13085
  fi
 
13086
  ;;
 
13087
esac
 
13088
 
 
13089
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13090
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13091
hardcode_action_CXX=
 
13092
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13093
   test -n "$runpath_var CXX" || \
 
13094
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13095
 
 
13096
  # We can hardcode non-existant directories.
 
13097
  if test "$hardcode_direct_CXX" != no &&
 
13098
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13099
     # have to relink, otherwise we might link with an installed library
 
13100
     # when we should be linking with a yet-to-be-installed one
 
13101
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13102
     test "$hardcode_minus_L_CXX" != no; then
 
13103
    # Linking always hardcodes the temporary library directory.
 
13104
    hardcode_action_CXX=relink
 
13105
  else
 
13106
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13107
    hardcode_action_CXX=immediate
 
13108
  fi
 
13109
else
 
13110
  # We cannot hardcode anything, or else we can only hardcode existing
 
13111
  # directories.
 
13112
  hardcode_action_CXX=unsupported
 
13113
fi
 
13114
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13115
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13116
 
 
13117
if test "$hardcode_action_CXX" = relink; then
 
13118
  # Fast installation is not supported
 
13119
  enable_fast_install=no
 
13120
elif test "$shlibpath_overrides_runpath" = yes ||
 
13121
     test "$enable_shared" = no; then
 
13122
  # Fast installation is not necessary
 
13123
  enable_fast_install=needless
 
13124
fi
 
13125
 
 
13126
striplib=
 
13127
old_striplib=
 
13128
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13129
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13130
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13131
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13132
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13133
  echo "$as_me:$LINENO: result: yes" >&5
 
13134
echo "${ECHO_T}yes" >&6
 
13135
else
 
13136
# FIXME - insert some real tests, host_os isn't really good enough
 
13137
  case $host_os in
 
13138
   darwin*)
 
13139
       if test -n "$STRIP" ; then
 
13140
         striplib="$STRIP -x"
 
13141
         echo "$as_me:$LINENO: result: yes" >&5
 
13142
echo "${ECHO_T}yes" >&6
 
13143
       else
 
13144
  echo "$as_me:$LINENO: result: no" >&5
 
13145
echo "${ECHO_T}no" >&6
 
13146
fi
 
13147
       ;;
 
13148
   *)
 
13149
  echo "$as_me:$LINENO: result: no" >&5
 
13150
echo "${ECHO_T}no" >&6
 
13151
    ;;
 
13152
  esac
 
13153
fi
 
13154
 
 
13155
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13156
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13157
library_names_spec=
 
13158
libname_spec='lib$name'
 
13159
soname_spec=
 
13160
shrext=".so"
 
13161
postinstall_cmds=
 
13162
postuninstall_cmds=
 
13163
finish_cmds=
 
13164
finish_eval=
 
13165
shlibpath_var=
 
13166
shlibpath_overrides_runpath=unknown
 
13167
version_type=none
 
13168
dynamic_linker="$host_os ld.so"
 
13169
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13170
if test "$GCC" = yes; then
 
13171
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13172
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13173
    # if the path contains ";" then we assume it to be the separator
 
13174
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13175
    # assumed that no part of a normal pathname contains ";" but that should
 
13176
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13177
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13178
  else
 
13179
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13180
  fi
 
13181
else
 
13182
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13183
fi
 
13184
need_lib_prefix=unknown
 
13185
hardcode_into_libs=no
 
13186
 
 
13187
# when you set need_version to no, make sure it does not cause -set_version
 
13188
# flags to be left without arguments
 
13189
need_version=unknown
 
13190
 
 
13191
case $host_os in
 
13192
aix3*)
 
13193
  version_type=linux
 
13194
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13195
  shlibpath_var=LIBPATH
 
13196
 
 
13197
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13198
  soname_spec='${libname}${release}${shared_ext}$major'
 
13199
  ;;
 
13200
 
 
13201
aix4* | aix5*)
 
13202
  version_type=linux
 
13203
  need_lib_prefix=no
 
13204
  need_version=no
 
13205
  hardcode_into_libs=yes
 
13206
  if test "$host_cpu" = ia64; then
 
13207
    # AIX 5 supports IA64
 
13208
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13209
    shlibpath_var=LD_LIBRARY_PATH
 
13210
  else
 
13211
    # With GCC up to 2.95.x, collect2 would create an import file
 
13212
    # for dependence libraries.  The import file would start with
 
13213
    # the line `#! .'.  This would cause the generated library to
 
13214
    # depend on `.', always an invalid library.  This was fixed in
 
13215
    # development snapshots of GCC prior to 3.0.
 
13216
    case $host_os in
 
13217
      aix4 | aix4.[01] | aix4.[01].*)
 
13218
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13219
           echo ' yes '
 
13220
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13221
        :
 
13222
      else
 
13223
        can_build_shared=no
 
13224
      fi
 
13225
      ;;
 
13226
    esac
 
13227
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13228
    # soname into executable. Probably we can add versioning support to
 
13229
    # collect2, so additional links can be useful in future.
 
13230
    if test "$aix_use_runtimelinking" = yes; then
 
13231
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13232
      # instead of lib<name>.a to let people know that these are not
 
13233
      # typical AIX shared libraries.
 
13234
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13235
    else
 
13236
      # We preserve .a as extension for shared libraries through AIX4.2
 
13237
      # and later when we are not doing run time linking.
 
13238
      library_names_spec='${libname}${release}.a $libname.a'
 
13239
      soname_spec='${libname}${release}${shared_ext}$major'
 
13240
    fi
 
13241
    shlibpath_var=LIBPATH
 
13242
  fi
 
13243
  ;;
 
13244
 
 
13245
amigaos*)
 
13246
  library_names_spec='$libname.ixlibrary $libname.a'
 
13247
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13248
  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'
 
13249
  ;;
 
13250
 
 
13251
beos*)
 
13252
  library_names_spec='${libname}${shared_ext}'
 
13253
  dynamic_linker="$host_os ld.so"
 
13254
  shlibpath_var=LIBRARY_PATH
 
13255
  ;;
 
13256
 
 
13257
bsdi4*)
 
13258
  version_type=linux
 
13259
  need_version=no
 
13260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13261
  soname_spec='${libname}${release}${shared_ext}$major'
 
13262
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13263
  shlibpath_var=LD_LIBRARY_PATH
 
13264
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13265
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13266
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13267
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13268
  # libtool to hard-code these into programs
 
13269
  ;;
 
13270
 
 
13271
cygwin* | mingw* | pw32*)
 
13272
  version_type=windows
 
13273
  shrext=".dll"
 
13274
  need_version=no
 
13275
  need_lib_prefix=no
 
13276
 
 
13277
  case $GCC,$host_os in
 
13278
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13279
    library_names_spec='$libname.dll.a'
 
13280
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13281
    postinstall_cmds='base_file=`basename \${file}`~
 
13282
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13283
      dldir=$destdir/`dirname \$dlpath`~
 
13284
      test -d \$dldir || mkdir -p \$dldir~
 
13285
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13286
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13287
      dlpath=$dir/\$dldll~
 
13288
       $rm \$dlpath'
 
13289
    shlibpath_overrides_runpath=yes
 
13290
 
 
13291
    case $host_os in
 
13292
    cygwin*)
 
13293
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13294
      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
13295
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
13296
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13297
      ;;
 
13298
    mingw*)
 
13299
      # MinGW DLLs use traditional 'lib' prefix
 
13300
      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
13301
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
13302
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13303
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13304
        # It is most probably a Windows format PATH printed by
 
13305
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13306
        # path with ; separators, and with drive letters. We can handle the
 
13307
        # drive letters (cygwin fileutils understands them), so leave them,
 
13308
        # especially as we might pass files found there to a mingw objdump,
 
13309
        # which wouldn't understand a cygwinified path. Ahh.
 
13310
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13311
      else
 
13312
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13313
      fi
 
13314
      ;;
 
13315
    pw32*)
 
13316
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13317
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13318
      ;;
 
13319
    esac
 
13320
    ;;
 
13321
 
 
13322
  *)
 
13323
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13324
    ;;
 
13325
  esac
 
13326
  dynamic_linker='Win32 ld.exe'
 
13327
  # FIXME: first we should search . and the directory the executable is in
 
13328
  shlibpath_var=PATH
 
13329
  ;;
 
13330
 
 
13331
darwin* | rhapsody*)
 
13332
  dynamic_linker="$host_os dyld"
 
13333
  version_type=darwin
 
13334
  need_lib_prefix=no
 
13335
  need_version=no
 
13336
  # FIXME: Relying on posixy $() will cause problems for
 
13337
  #        cross-compilation, but unfortunately the echo tests do not
 
13338
  #        yet detect zsh echo's removal of \ escapes.
 
13339
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13340
  soname_spec='${libname}${release}${major}$shared_ext'
 
13341
  shlibpath_overrides_runpath=yes
 
13342
  shlibpath_var=DYLD_LIBRARY_PATH
 
13343
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
13344
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13345
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
13346
  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"`
 
13347
  fi
 
13348
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13349
  ;;
 
13350
 
 
13351
dgux*)
 
13352
  version_type=linux
 
13353
  need_lib_prefix=no
 
13354
  need_version=no
 
13355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13356
  soname_spec='${libname}${release}${shared_ext}$major'
 
13357
  shlibpath_var=LD_LIBRARY_PATH
 
13358
  ;;
 
13359
 
 
13360
freebsd1*)
 
13361
  dynamic_linker=no
 
13362
  ;;
 
13363
 
 
13364
freebsd*)
 
13365
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13366
  version_type=freebsd-$objformat
 
13367
  case $version_type in
 
13368
    freebsd-elf*)
 
13369
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13370
      need_version=no
 
13371
      need_lib_prefix=no
 
13372
      ;;
 
13373
    freebsd-*)
 
13374
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13375
      need_version=yes
 
13376
      ;;
 
13377
  esac
 
13378
  shlibpath_var=LD_LIBRARY_PATH
 
13379
  case $host_os in
 
13380
  freebsd2*)
 
13381
    shlibpath_overrides_runpath=yes
 
13382
    ;;
 
13383
  freebsd3.01* | freebsdelf3.01*)
 
13384
    shlibpath_overrides_runpath=yes
 
13385
    hardcode_into_libs=yes
 
13386
    ;;
 
13387
  *) # from 3.2 on
 
13388
    shlibpath_overrides_runpath=no
 
13389
    hardcode_into_libs=yes
 
13390
    ;;
 
13391
  esac
 
13392
  ;;
 
13393
 
 
13394
gnu*)
 
13395
  version_type=linux
 
13396
  need_lib_prefix=no
 
13397
  need_version=no
 
13398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13399
  soname_spec='${libname}${release}${shared_ext}$major'
 
13400
  shlibpath_var=LD_LIBRARY_PATH
 
13401
  hardcode_into_libs=yes
 
13402
  ;;
 
13403
 
 
13404
hpux9* | hpux10* | hpux11*)
 
13405
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13406
  # link against other versions.
 
13407
  version_type=sunos
 
13408
  need_lib_prefix=no
 
13409
  need_version=no
 
13410
  case "$host_cpu" in
 
13411
  ia64*)
 
13412
    shrext='.so'
 
13413
    hardcode_into_libs=yes
 
13414
    dynamic_linker="$host_os dld.so"
 
13415
    shlibpath_var=LD_LIBRARY_PATH
 
13416
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13417
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13418
    soname_spec='${libname}${release}${shared_ext}$major'
 
13419
    if test "X$HPUX_IA64_MODE" = X32; then
 
13420
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13421
    else
 
13422
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13423
    fi
 
13424
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13425
    ;;
 
13426
   hppa*64*)
 
13427
     shrext='.sl'
 
13428
     hardcode_into_libs=yes
 
13429
     dynamic_linker="$host_os dld.sl"
 
13430
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13431
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13432
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13433
     soname_spec='${libname}${release}${shared_ext}$major'
 
13434
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13435
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13436
     ;;
 
13437
   *)
 
13438
    shrext='.sl'
 
13439
    dynamic_linker="$host_os dld.sl"
 
13440
    shlibpath_var=SHLIB_PATH
 
13441
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13442
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13443
    soname_spec='${libname}${release}${shared_ext}$major'
 
13444
    ;;
 
13445
  esac
 
13446
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13447
  postinstall_cmds='chmod 555 $lib'
 
13448
  ;;
 
13449
 
 
13450
irix5* | irix6* | nonstopux*)
 
13451
  case $host_os in
 
13452
    nonstopux*) version_type=nonstopux ;;
 
13453
    *)
 
13454
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13455
                version_type=linux
 
13456
        else
 
13457
                version_type=irix
 
13458
        fi ;;
 
13459
  esac
 
13460
  need_lib_prefix=no
 
13461
  need_version=no
 
13462
  soname_spec='${libname}${release}${shared_ext}$major'
 
13463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13464
  case $host_os in
 
13465
  irix5* | nonstopux*)
 
13466
    libsuff= shlibsuff=
 
13467
    ;;
 
13468
  *)
 
13469
    case $LD in # libtool.m4 will add one of these switches to LD
 
13470
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13471
      libsuff= shlibsuff= libmagic=32-bit;;
 
13472
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13473
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13474
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13475
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13476
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13477
    esac
 
13478
    ;;
 
13479
  esac
 
13480
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13481
  shlibpath_overrides_runpath=no
 
13482
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13483
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13484
  hardcode_into_libs=yes
 
13485
  ;;
 
13486
 
 
13487
# No shared lib support for Linux oldld, aout, or coff.
 
13488
linux*oldld* | linux*aout* | linux*coff*)
 
13489
  dynamic_linker=no
 
13490
  ;;
 
13491
 
 
13492
# This must be Linux ELF.
 
13493
linux*)
 
13494
  version_type=linux
 
13495
  need_lib_prefix=no
 
13496
  need_version=no
 
13497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13498
  soname_spec='${libname}${release}${shared_ext}$major'
 
13499
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13500
  shlibpath_var=LD_LIBRARY_PATH
 
13501
  shlibpath_overrides_runpath=no
 
13502
  # This implies no fast_install, which is unacceptable.
 
13503
  # Some rework will be needed to allow for fast_install
 
13504
  # before this can be enabled.
 
13505
  hardcode_into_libs=yes
 
13506
 
 
13507
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13508
  # powerpc, because MkLinux only supported shared libraries with the
 
13509
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13510
  # most powerpc-linux boxes support dynamic linking these days and
 
13511
  # people can always --disable-shared, the test was removed, and we
 
13512
  # assume the GNU/Linux dynamic linker is in use.
 
13513
  dynamic_linker='GNU/Linux ld.so'
 
13514
  ;;
 
13515
 
 
13516
netbsd*)
 
13517
  version_type=sunos
 
13518
  need_lib_prefix=no
 
13519
  need_version=no
 
13520
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13521
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13522
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13523
    dynamic_linker='NetBSD (a.out) ld.so'
 
13524
  else
 
13525
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
13526
    soname_spec='${libname}${release}${shared_ext}$major'
 
13527
    dynamic_linker='NetBSD ld.elf_so'
 
13528
  fi
 
13529
  shlibpath_var=LD_LIBRARY_PATH
 
13530
  shlibpath_overrides_runpath=yes
 
13531
  hardcode_into_libs=yes
 
13532
  ;;
 
13533
 
 
13534
newsos6)
 
13535
  version_type=linux
 
13536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13537
  shlibpath_var=LD_LIBRARY_PATH
 
13538
  shlibpath_overrides_runpath=yes
 
13539
  ;;
 
13540
 
 
13541
nto-qnx)
 
13542
  version_type=linux
 
13543
  need_lib_prefix=no
 
13544
  need_version=no
 
13545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13546
  soname_spec='${libname}${release}${shared_ext}$major'
 
13547
  shlibpath_var=LD_LIBRARY_PATH
 
13548
  shlibpath_overrides_runpath=yes
 
13549
  ;;
 
13550
 
 
13551
openbsd*)
 
13552
  version_type=sunos
 
13553
  need_lib_prefix=no
 
13554
  need_version=no
 
13555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13556
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13557
  shlibpath_var=LD_LIBRARY_PATH
 
13558
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13559
    case $host_os in
 
13560
      openbsd2.[89] | openbsd2.[89].*)
 
13561
        shlibpath_overrides_runpath=no
 
13562
        ;;
 
13563
      *)
 
13564
        shlibpath_overrides_runpath=yes
 
13565
        ;;
 
13566
      esac
 
13567
  else
 
13568
    shlibpath_overrides_runpath=yes
 
13569
  fi
 
13570
  ;;
 
13571
 
 
13572
os2*)
 
13573
  libname_spec='$name'
 
13574
  shrext=".dll"
 
13575
  need_lib_prefix=no
 
13576
  library_names_spec='$libname${shared_ext} $libname.a'
 
13577
  dynamic_linker='OS/2 ld.exe'
 
13578
  shlibpath_var=LIBPATH
 
13579
  ;;
 
13580
 
 
13581
osf3* | osf4* | osf5*)
 
13582
  version_type=osf
 
13583
  need_lib_prefix=no
 
13584
  need_version=no
 
13585
  soname_spec='${libname}${release}${shared_ext}$major'
 
13586
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13587
  shlibpath_var=LD_LIBRARY_PATH
 
13588
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13589
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13590
  ;;
 
13591
 
 
13592
sco3.2v5*)
 
13593
  version_type=osf
 
13594
  soname_spec='${libname}${release}${shared_ext}$major'
 
13595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13596
  shlibpath_var=LD_LIBRARY_PATH
 
13597
  ;;
 
13598
 
 
13599
solaris*)
 
13600
  version_type=linux
 
13601
  need_lib_prefix=no
 
13602
  need_version=no
 
13603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13604
  soname_spec='${libname}${release}${shared_ext}$major'
 
13605
  shlibpath_var=LD_LIBRARY_PATH
 
13606
  shlibpath_overrides_runpath=yes
 
13607
  hardcode_into_libs=yes
 
13608
  # ldd complains unless libraries are executable
 
13609
  postinstall_cmds='chmod +x $lib'
 
13610
  ;;
 
13611
 
 
13612
sunos4*)
 
13613
  version_type=sunos
 
13614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13615
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13616
  shlibpath_var=LD_LIBRARY_PATH
 
13617
  shlibpath_overrides_runpath=yes
 
13618
  if test "$with_gnu_ld" = yes; then
 
13619
    need_lib_prefix=no
 
13620
  fi
 
13621
  need_version=yes
 
13622
  ;;
 
13623
 
 
13624
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13625
  version_type=linux
 
13626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13627
  soname_spec='${libname}${release}${shared_ext}$major'
 
13628
  shlibpath_var=LD_LIBRARY_PATH
 
13629
  case $host_vendor in
 
13630
    sni)
 
13631
      shlibpath_overrides_runpath=no
 
13632
      need_lib_prefix=no
 
13633
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13634
      runpath_var=LD_RUN_PATH
 
13635
      ;;
 
13636
    siemens)
 
13637
      need_lib_prefix=no
 
13638
      ;;
 
13639
    motorola)
 
13640
      need_lib_prefix=no
 
13641
      need_version=no
 
13642
      shlibpath_overrides_runpath=no
 
13643
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13644
      ;;
 
13645
  esac
 
13646
  ;;
 
13647
 
 
13648
sysv4*MP*)
 
13649
  if test -d /usr/nec ;then
 
13650
    version_type=linux
 
13651
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13652
    soname_spec='$libname${shared_ext}.$major'
 
13653
    shlibpath_var=LD_LIBRARY_PATH
 
13654
  fi
 
13655
  ;;
 
13656
 
 
13657
uts4*)
 
13658
  version_type=linux
 
13659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13660
  soname_spec='${libname}${release}${shared_ext}$major'
 
13661
  shlibpath_var=LD_LIBRARY_PATH
 
13662
  ;;
 
13663
 
 
13664
*)
 
13665
  dynamic_linker=no
 
13666
  ;;
 
13667
esac
 
13668
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13669
echo "${ECHO_T}$dynamic_linker" >&6
 
13670
test "$dynamic_linker" = no && can_build_shared=no
 
13671
 
 
13672
if test "x$enable_dlopen" != xyes; then
 
13673
  enable_dlopen=unknown
 
13674
  enable_dlopen_self=unknown
 
13675
  enable_dlopen_self_static=unknown
 
13676
else
 
13677
  lt_cv_dlopen=no
 
13678
  lt_cv_dlopen_libs=
 
13679
 
 
13680
  case $host_os in
 
13681
  beos*)
 
13682
    lt_cv_dlopen="load_add_on"
 
13683
    lt_cv_dlopen_libs=
 
13684
    lt_cv_dlopen_self=yes
 
13685
    ;;
 
13686
 
 
13687
  mingw* | pw32*)
 
13688
    lt_cv_dlopen="LoadLibrary"
 
13689
    lt_cv_dlopen_libs=
 
13690
   ;;
 
13691
 
 
13692
  cygwin*)
 
13693
    lt_cv_dlopen="dlopen"
 
13694
    lt_cv_dlopen_libs=
 
13695
   ;;
 
13696
 
 
13697
  darwin*)
 
13698
  # if libdl is installed we need to link against it
 
13699
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13700
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13701
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13703
else
 
13704
  ac_check_lib_save_LIBS=$LIBS
 
13705
LIBS="-ldl  $LIBS"
 
13706
cat >conftest.$ac_ext <<_ACEOF
 
13707
/* confdefs.h.  */
 
13708
_ACEOF
 
13709
cat confdefs.h >>conftest.$ac_ext
 
13710
cat >>conftest.$ac_ext <<_ACEOF
 
13711
/* end confdefs.h.  */
 
13712
 
 
13713
/* Override any gcc2 internal prototype to avoid an error.  */
 
13714
#ifdef __cplusplus
 
13715
extern "C"
 
13716
#endif
 
13717
/* We use char because int might match the return type of a gcc2
 
13718
   builtin and then its argument prototype would still apply.  */
 
13719
char dlopen ();
 
13720
int
 
13721
main ()
 
13722
{
 
13723
dlopen ();
 
13724
  ;
 
13725
  return 0;
 
13726
}
 
13727
_ACEOF
 
13728
rm -f conftest.$ac_objext conftest$ac_exeext
 
13729
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13730
  (eval $ac_link) 2>conftest.er1
 
13731
  ac_status=$?
 
13732
  grep -v '^ *+' conftest.er1 >conftest.err
 
13733
  rm -f conftest.er1
 
13734
  cat conftest.err >&5
 
13735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13736
  (exit $ac_status); } &&
 
13737
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13738
                         || test ! -s conftest.err'
 
13739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13740
  (eval $ac_try) 2>&5
 
13741
  ac_status=$?
 
13742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13743
  (exit $ac_status); }; } &&
 
13744
         { ac_try='test -s conftest$ac_exeext'
 
13745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13746
  (eval $ac_try) 2>&5
 
13747
  ac_status=$?
 
13748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13749
  (exit $ac_status); }; }; then
 
13750
  ac_cv_lib_dl_dlopen=yes
 
13751
else
 
13752
  echo "$as_me: failed program was:" >&5
 
13753
sed 's/^/| /' conftest.$ac_ext >&5
 
13754
 
 
13755
ac_cv_lib_dl_dlopen=no
 
13756
fi
 
13757
rm -f conftest.err conftest.$ac_objext \
 
13758
      conftest$ac_exeext conftest.$ac_ext
 
13759
LIBS=$ac_check_lib_save_LIBS
 
13760
fi
 
13761
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13762
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13763
if test $ac_cv_lib_dl_dlopen = yes; then
 
13764
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13765
else
 
13766
 
 
13767
    lt_cv_dlopen="dyld"
 
13768
    lt_cv_dlopen_libs=
 
13769
    lt_cv_dlopen_self=yes
 
13770
 
 
13771
fi
 
13772
 
 
13773
   ;;
 
13774
 
 
13775
  *)
 
13776
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13777
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13778
if test "${ac_cv_func_shl_load+set}" = set; then
 
13779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13780
else
 
13781
  cat >conftest.$ac_ext <<_ACEOF
 
13782
/* confdefs.h.  */
 
13783
_ACEOF
 
13784
cat confdefs.h >>conftest.$ac_ext
 
13785
cat >>conftest.$ac_ext <<_ACEOF
 
13786
/* end confdefs.h.  */
 
13787
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13788
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13789
#define shl_load innocuous_shl_load
 
13790
 
 
13791
/* System header to define __stub macros and hopefully few prototypes,
 
13792
    which can conflict with char shl_load (); below.
 
13793
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13794
    <limits.h> exists even on freestanding compilers.  */
 
13795
 
 
13796
#ifdef __STDC__
 
13797
# include <limits.h>
 
13798
#else
 
13799
# include <assert.h>
 
13800
#endif
 
13801
 
 
13802
#undef shl_load
 
13803
 
 
13804
/* Override any gcc2 internal prototype to avoid an error.  */
 
13805
#ifdef __cplusplus
 
13806
extern "C"
 
13807
{
 
13808
#endif
 
13809
/* We use char because int might match the return type of a gcc2
 
13810
   builtin and then its argument prototype would still apply.  */
 
13811
char shl_load ();
 
13812
/* The GNU C library defines this for functions which it implements
 
13813
    to always fail with ENOSYS.  Some functions are actually named
 
13814
    something starting with __ and the normal name is an alias.  */
 
13815
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13816
choke me
 
13817
#else
 
13818
char (*f) () = shl_load;
 
13819
#endif
 
13820
#ifdef __cplusplus
 
13821
}
 
13822
#endif
 
13823
 
 
13824
int
 
13825
main ()
 
13826
{
 
13827
return f != shl_load;
 
13828
  ;
 
13829
  return 0;
 
13830
}
 
13831
_ACEOF
 
13832
rm -f conftest.$ac_objext conftest$ac_exeext
 
13833
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13834
  (eval $ac_link) 2>conftest.er1
 
13835
  ac_status=$?
 
13836
  grep -v '^ *+' conftest.er1 >conftest.err
 
13837
  rm -f conftest.er1
 
13838
  cat conftest.err >&5
 
13839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13840
  (exit $ac_status); } &&
 
13841
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13842
                         || test ! -s conftest.err'
 
13843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13844
  (eval $ac_try) 2>&5
 
13845
  ac_status=$?
 
13846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13847
  (exit $ac_status); }; } &&
 
13848
         { ac_try='test -s conftest$ac_exeext'
 
13849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13850
  (eval $ac_try) 2>&5
 
13851
  ac_status=$?
 
13852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13853
  (exit $ac_status); }; }; then
 
13854
  ac_cv_func_shl_load=yes
 
13855
else
 
13856
  echo "$as_me: failed program was:" >&5
 
13857
sed 's/^/| /' conftest.$ac_ext >&5
 
13858
 
 
13859
ac_cv_func_shl_load=no
 
13860
fi
 
13861
rm -f conftest.err conftest.$ac_objext \
 
13862
      conftest$ac_exeext conftest.$ac_ext
 
13863
fi
 
13864
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13865
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13866
if test $ac_cv_func_shl_load = yes; then
 
13867
  lt_cv_dlopen="shl_load"
 
13868
else
 
13869
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13870
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
13871
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13873
else
 
13874
  ac_check_lib_save_LIBS=$LIBS
 
13875
LIBS="-ldld  $LIBS"
 
13876
cat >conftest.$ac_ext <<_ACEOF
 
13877
/* confdefs.h.  */
 
13878
_ACEOF
 
13879
cat confdefs.h >>conftest.$ac_ext
 
13880
cat >>conftest.$ac_ext <<_ACEOF
 
13881
/* end confdefs.h.  */
 
13882
 
 
13883
/* Override any gcc2 internal prototype to avoid an error.  */
 
13884
#ifdef __cplusplus
 
13885
extern "C"
 
13886
#endif
 
13887
/* We use char because int might match the return type of a gcc2
 
13888
   builtin and then its argument prototype would still apply.  */
 
13889
char shl_load ();
 
13890
int
 
13891
main ()
 
13892
{
 
13893
shl_load ();
 
13894
  ;
 
13895
  return 0;
 
13896
}
 
13897
_ACEOF
 
13898
rm -f conftest.$ac_objext conftest$ac_exeext
 
13899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13900
  (eval $ac_link) 2>conftest.er1
 
13901
  ac_status=$?
 
13902
  grep -v '^ *+' conftest.er1 >conftest.err
 
13903
  rm -f conftest.er1
 
13904
  cat conftest.err >&5
 
13905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13906
  (exit $ac_status); } &&
 
13907
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13908
                         || test ! -s conftest.err'
 
13909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13910
  (eval $ac_try) 2>&5
 
13911
  ac_status=$?
 
13912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13913
  (exit $ac_status); }; } &&
 
13914
         { ac_try='test -s conftest$ac_exeext'
 
13915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13916
  (eval $ac_try) 2>&5
 
13917
  ac_status=$?
 
13918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13919
  (exit $ac_status); }; }; then
 
13920
  ac_cv_lib_dld_shl_load=yes
 
13921
else
 
13922
  echo "$as_me: failed program was:" >&5
 
13923
sed 's/^/| /' conftest.$ac_ext >&5
 
13924
 
 
13925
ac_cv_lib_dld_shl_load=no
 
13926
fi
 
13927
rm -f conftest.err conftest.$ac_objext \
 
13928
      conftest$ac_exeext conftest.$ac_ext
 
13929
LIBS=$ac_check_lib_save_LIBS
 
13930
fi
 
13931
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13932
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13933
if test $ac_cv_lib_dld_shl_load = yes; then
 
13934
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13935
else
 
13936
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13937
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13938
if test "${ac_cv_func_dlopen+set}" = set; then
 
13939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13940
else
 
13941
  cat >conftest.$ac_ext <<_ACEOF
 
13942
/* confdefs.h.  */
 
13943
_ACEOF
 
13944
cat confdefs.h >>conftest.$ac_ext
 
13945
cat >>conftest.$ac_ext <<_ACEOF
 
13946
/* end confdefs.h.  */
 
13947
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13948
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13949
#define dlopen innocuous_dlopen
 
13950
 
 
13951
/* System header to define __stub macros and hopefully few prototypes,
 
13952
    which can conflict with char dlopen (); below.
 
13953
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13954
    <limits.h> exists even on freestanding compilers.  */
 
13955
 
 
13956
#ifdef __STDC__
 
13957
# include <limits.h>
 
13958
#else
 
13959
# include <assert.h>
 
13960
#endif
 
13961
 
 
13962
#undef dlopen
 
13963
 
 
13964
/* Override any gcc2 internal prototype to avoid an error.  */
 
13965
#ifdef __cplusplus
 
13966
extern "C"
 
13967
{
 
13968
#endif
 
13969
/* We use char because int might match the return type of a gcc2
 
13970
   builtin and then its argument prototype would still apply.  */
 
13971
char dlopen ();
 
13972
/* The GNU C library defines this for functions which it implements
 
13973
    to always fail with ENOSYS.  Some functions are actually named
 
13974
    something starting with __ and the normal name is an alias.  */
 
13975
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13976
choke me
 
13977
#else
 
13978
char (*f) () = dlopen;
 
13979
#endif
 
13980
#ifdef __cplusplus
 
13981
}
 
13982
#endif
 
13983
 
 
13984
int
 
13985
main ()
 
13986
{
 
13987
return f != dlopen;
 
13988
  ;
 
13989
  return 0;
 
13990
}
 
13991
_ACEOF
 
13992
rm -f conftest.$ac_objext conftest$ac_exeext
 
13993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13994
  (eval $ac_link) 2>conftest.er1
 
13995
  ac_status=$?
 
13996
  grep -v '^ *+' conftest.er1 >conftest.err
 
13997
  rm -f conftest.er1
 
13998
  cat conftest.err >&5
 
13999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14000
  (exit $ac_status); } &&
 
14001
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14002
                         || test ! -s conftest.err'
 
14003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14004
  (eval $ac_try) 2>&5
 
14005
  ac_status=$?
 
14006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14007
  (exit $ac_status); }; } &&
 
14008
         { ac_try='test -s conftest$ac_exeext'
 
14009
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14010
  (eval $ac_try) 2>&5
 
14011
  ac_status=$?
 
14012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14013
  (exit $ac_status); }; }; then
 
14014
  ac_cv_func_dlopen=yes
 
14015
else
 
14016
  echo "$as_me: failed program was:" >&5
 
14017
sed 's/^/| /' conftest.$ac_ext >&5
 
14018
 
 
14019
ac_cv_func_dlopen=no
 
14020
fi
 
14021
rm -f conftest.err conftest.$ac_objext \
 
14022
      conftest$ac_exeext conftest.$ac_ext
 
14023
fi
 
14024
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14025
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14026
if test $ac_cv_func_dlopen = yes; then
 
14027
  lt_cv_dlopen="dlopen"
 
14028
else
 
14029
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14030
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14031
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14033
else
 
14034
  ac_check_lib_save_LIBS=$LIBS
 
14035
LIBS="-ldl  $LIBS"
 
14036
cat >conftest.$ac_ext <<_ACEOF
 
14037
/* confdefs.h.  */
 
14038
_ACEOF
 
14039
cat confdefs.h >>conftest.$ac_ext
 
14040
cat >>conftest.$ac_ext <<_ACEOF
 
14041
/* end confdefs.h.  */
 
14042
 
 
14043
/* Override any gcc2 internal prototype to avoid an error.  */
 
14044
#ifdef __cplusplus
 
14045
extern "C"
 
14046
#endif
 
14047
/* We use char because int might match the return type of a gcc2
 
14048
   builtin and then its argument prototype would still apply.  */
 
14049
char dlopen ();
 
14050
int
 
14051
main ()
 
14052
{
 
14053
dlopen ();
 
14054
  ;
 
14055
  return 0;
 
14056
}
 
14057
_ACEOF
 
14058
rm -f conftest.$ac_objext conftest$ac_exeext
 
14059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14060
  (eval $ac_link) 2>conftest.er1
 
14061
  ac_status=$?
 
14062
  grep -v '^ *+' conftest.er1 >conftest.err
 
14063
  rm -f conftest.er1
 
14064
  cat conftest.err >&5
 
14065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14066
  (exit $ac_status); } &&
 
14067
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14068
                         || test ! -s conftest.err'
 
14069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14070
  (eval $ac_try) 2>&5
 
14071
  ac_status=$?
 
14072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14073
  (exit $ac_status); }; } &&
 
14074
         { ac_try='test -s conftest$ac_exeext'
 
14075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14076
  (eval $ac_try) 2>&5
 
14077
  ac_status=$?
 
14078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14079
  (exit $ac_status); }; }; then
 
14080
  ac_cv_lib_dl_dlopen=yes
 
14081
else
 
14082
  echo "$as_me: failed program was:" >&5
 
14083
sed 's/^/| /' conftest.$ac_ext >&5
 
14084
 
 
14085
ac_cv_lib_dl_dlopen=no
 
14086
fi
 
14087
rm -f conftest.err conftest.$ac_objext \
 
14088
      conftest$ac_exeext conftest.$ac_ext
 
14089
LIBS=$ac_check_lib_save_LIBS
 
14090
fi
 
14091
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14092
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14093
if test $ac_cv_lib_dl_dlopen = yes; then
 
14094
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14095
else
 
14096
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
14097
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
14098
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
14099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14100
else
 
14101
  ac_check_lib_save_LIBS=$LIBS
 
14102
LIBS="-lsvld  $LIBS"
 
14103
cat >conftest.$ac_ext <<_ACEOF
 
14104
/* confdefs.h.  */
 
14105
_ACEOF
 
14106
cat confdefs.h >>conftest.$ac_ext
 
14107
cat >>conftest.$ac_ext <<_ACEOF
 
14108
/* end confdefs.h.  */
 
14109
 
 
14110
/* Override any gcc2 internal prototype to avoid an error.  */
 
14111
#ifdef __cplusplus
 
14112
extern "C"
 
14113
#endif
 
14114
/* We use char because int might match the return type of a gcc2
 
14115
   builtin and then its argument prototype would still apply.  */
 
14116
char dlopen ();
 
14117
int
 
14118
main ()
 
14119
{
 
14120
dlopen ();
 
14121
  ;
 
14122
  return 0;
 
14123
}
 
14124
_ACEOF
 
14125
rm -f conftest.$ac_objext conftest$ac_exeext
 
14126
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14127
  (eval $ac_link) 2>conftest.er1
 
14128
  ac_status=$?
 
14129
  grep -v '^ *+' conftest.er1 >conftest.err
 
14130
  rm -f conftest.er1
 
14131
  cat conftest.err >&5
 
14132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14133
  (exit $ac_status); } &&
 
14134
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14135
                         || test ! -s conftest.err'
 
14136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14137
  (eval $ac_try) 2>&5
 
14138
  ac_status=$?
 
14139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14140
  (exit $ac_status); }; } &&
 
14141
         { ac_try='test -s conftest$ac_exeext'
 
14142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14143
  (eval $ac_try) 2>&5
 
14144
  ac_status=$?
 
14145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14146
  (exit $ac_status); }; }; then
 
14147
  ac_cv_lib_svld_dlopen=yes
 
14148
else
 
14149
  echo "$as_me: failed program was:" >&5
 
14150
sed 's/^/| /' conftest.$ac_ext >&5
 
14151
 
 
14152
ac_cv_lib_svld_dlopen=no
 
14153
fi
 
14154
rm -f conftest.err conftest.$ac_objext \
 
14155
      conftest$ac_exeext conftest.$ac_ext
 
14156
LIBS=$ac_check_lib_save_LIBS
 
14157
fi
 
14158
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14159
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
14160
if test $ac_cv_lib_svld_dlopen = yes; then
 
14161
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
14162
else
 
14163
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14164
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
14165
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14167
else
 
14168
  ac_check_lib_save_LIBS=$LIBS
 
14169
LIBS="-ldld  $LIBS"
 
14170
cat >conftest.$ac_ext <<_ACEOF
 
14171
/* confdefs.h.  */
 
14172
_ACEOF
 
14173
cat confdefs.h >>conftest.$ac_ext
 
14174
cat >>conftest.$ac_ext <<_ACEOF
 
14175
/* end confdefs.h.  */
 
14176
 
 
14177
/* Override any gcc2 internal prototype to avoid an error.  */
 
14178
#ifdef __cplusplus
 
14179
extern "C"
 
14180
#endif
 
14181
/* We use char because int might match the return type of a gcc2
 
14182
   builtin and then its argument prototype would still apply.  */
 
14183
char dld_link ();
 
14184
int
 
14185
main ()
 
14186
{
 
14187
dld_link ();
 
14188
  ;
 
14189
  return 0;
 
14190
}
 
14191
_ACEOF
 
14192
rm -f conftest.$ac_objext conftest$ac_exeext
 
14193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14194
  (eval $ac_link) 2>conftest.er1
 
14195
  ac_status=$?
 
14196
  grep -v '^ *+' conftest.er1 >conftest.err
 
14197
  rm -f conftest.er1
 
14198
  cat conftest.err >&5
 
14199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14200
  (exit $ac_status); } &&
 
14201
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14202
                         || test ! -s conftest.err'
 
14203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14204
  (eval $ac_try) 2>&5
 
14205
  ac_status=$?
 
14206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14207
  (exit $ac_status); }; } &&
 
14208
         { ac_try='test -s conftest$ac_exeext'
 
14209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14210
  (eval $ac_try) 2>&5
 
14211
  ac_status=$?
 
14212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14213
  (exit $ac_status); }; }; then
 
14214
  ac_cv_lib_dld_dld_link=yes
 
14215
else
 
14216
  echo "$as_me: failed program was:" >&5
 
14217
sed 's/^/| /' conftest.$ac_ext >&5
 
14218
 
 
14219
ac_cv_lib_dld_dld_link=no
 
14220
fi
 
14221
rm -f conftest.err conftest.$ac_objext \
 
14222
      conftest$ac_exeext conftest.$ac_ext
 
14223
LIBS=$ac_check_lib_save_LIBS
 
14224
fi
 
14225
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14226
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
14227
if test $ac_cv_lib_dld_dld_link = yes; then
 
14228
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
14229
fi
 
14230
 
 
14231
 
 
14232
fi
 
14233
 
 
14234
 
 
14235
fi
 
14236
 
 
14237
 
 
14238
fi
 
14239
 
 
14240
 
 
14241
fi
 
14242
 
 
14243
 
 
14244
fi
 
14245
 
 
14246
    ;;
 
14247
  esac
 
14248
 
 
14249
  if test "x$lt_cv_dlopen" != xno; then
 
14250
    enable_dlopen=yes
 
14251
  else
 
14252
    enable_dlopen=no
 
14253
  fi
 
14254
 
 
14255
  case $lt_cv_dlopen in
 
14256
  dlopen)
 
14257
    save_CPPFLAGS="$CPPFLAGS"
 
14258
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
14259
 
 
14260
    save_LDFLAGS="$LDFLAGS"
 
14261
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
14262
 
 
14263
    save_LIBS="$LIBS"
 
14264
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
14265
 
 
14266
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
14267
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
14268
if test "${lt_cv_dlopen_self+set}" = set; then
 
14269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14270
else
 
14271
          if test "$cross_compiling" = yes; then :
 
14272
  lt_cv_dlopen_self=cross
 
14273
else
 
14274
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14275
  lt_status=$lt_dlunknown
 
14276
  cat > conftest.$ac_ext <<EOF
 
14277
#line 14277 "configure"
 
14278
#include "confdefs.h"
 
14279
 
 
14280
#if HAVE_DLFCN_H
 
14281
#include <dlfcn.h>
 
14282
#endif
 
14283
 
 
14284
#include <stdio.h>
 
14285
 
 
14286
#ifdef RTLD_GLOBAL
 
14287
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14288
#else
 
14289
#  ifdef DL_GLOBAL
 
14290
#    define LT_DLGLOBAL         DL_GLOBAL
 
14291
#  else
 
14292
#    define LT_DLGLOBAL         0
 
14293
#  endif
 
14294
#endif
 
14295
 
 
14296
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14297
   find out it does not work in some platform. */
 
14298
#ifndef LT_DLLAZY_OR_NOW
 
14299
#  ifdef RTLD_LAZY
 
14300
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14301
#  else
 
14302
#    ifdef DL_LAZY
 
14303
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14304
#    else
 
14305
#      ifdef RTLD_NOW
 
14306
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14307
#      else
 
14308
#        ifdef DL_NOW
 
14309
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14310
#        else
 
14311
#          define LT_DLLAZY_OR_NOW      0
 
14312
#        endif
 
14313
#      endif
 
14314
#    endif
 
14315
#  endif
 
14316
#endif
 
14317
 
 
14318
#ifdef __cplusplus
 
14319
extern "C" void exit (int);
 
14320
#endif
 
14321
 
 
14322
void fnord() { int i=42;}
 
14323
int main ()
 
14324
{
 
14325
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14326
  int status = $lt_dlunknown;
 
14327
 
 
14328
  if (self)
 
14329
    {
 
14330
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14331
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14332
      /* dlclose (self); */
 
14333
    }
 
14334
 
 
14335
    exit (status);
 
14336
}
 
14337
EOF
 
14338
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14339
  (eval $ac_link) 2>&5
 
14340
  ac_status=$?
 
14341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14342
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14343
    (./conftest; exit; ) 2>/dev/null
 
14344
    lt_status=$?
 
14345
    case x$lt_status in
 
14346
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
14347
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
14348
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
14349
    esac
 
14350
  else :
 
14351
    # compilation failed
 
14352
    lt_cv_dlopen_self=no
 
14353
  fi
 
14354
fi
 
14355
rm -fr conftest*
 
14356
 
 
14357
 
 
14358
fi
 
14359
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14360
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
14361
 
 
14362
    if test "x$lt_cv_dlopen_self" = xyes; then
 
14363
      LDFLAGS="$LDFLAGS $link_static_flag"
 
14364
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14365
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
14366
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14368
else
 
14369
          if test "$cross_compiling" = yes; then :
 
14370
  lt_cv_dlopen_self_static=cross
 
14371
else
 
14372
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14373
  lt_status=$lt_dlunknown
 
14374
  cat > conftest.$ac_ext <<EOF
 
14375
#line 14375 "configure"
 
14376
#include "confdefs.h"
 
14377
 
 
14378
#if HAVE_DLFCN_H
 
14379
#include <dlfcn.h>
 
14380
#endif
 
14381
 
 
14382
#include <stdio.h>
 
14383
 
 
14384
#ifdef RTLD_GLOBAL
 
14385
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14386
#else
 
14387
#  ifdef DL_GLOBAL
 
14388
#    define LT_DLGLOBAL         DL_GLOBAL
 
14389
#  else
 
14390
#    define LT_DLGLOBAL         0
 
14391
#  endif
 
14392
#endif
 
14393
 
 
14394
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14395
   find out it does not work in some platform. */
 
14396
#ifndef LT_DLLAZY_OR_NOW
 
14397
#  ifdef RTLD_LAZY
 
14398
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14399
#  else
 
14400
#    ifdef DL_LAZY
 
14401
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14402
#    else
 
14403
#      ifdef RTLD_NOW
 
14404
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14405
#      else
 
14406
#        ifdef DL_NOW
 
14407
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14408
#        else
 
14409
#          define LT_DLLAZY_OR_NOW      0
 
14410
#        endif
 
14411
#      endif
 
14412
#    endif
 
14413
#  endif
 
14414
#endif
 
14415
 
 
14416
#ifdef __cplusplus
 
14417
extern "C" void exit (int);
 
14418
#endif
 
14419
 
 
14420
void fnord() { int i=42;}
 
14421
int main ()
 
14422
{
 
14423
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14424
  int status = $lt_dlunknown;
 
14425
 
 
14426
  if (self)
 
14427
    {
 
14428
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14429
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14430
      /* dlclose (self); */
 
14431
    }
 
14432
 
 
14433
    exit (status);
 
14434
}
 
14435
EOF
 
14436
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14437
  (eval $ac_link) 2>&5
 
14438
  ac_status=$?
 
14439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14440
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14441
    (./conftest; exit; ) 2>/dev/null
 
14442
    lt_status=$?
 
14443
    case x$lt_status in
 
14444
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
14445
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
14446
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
14447
    esac
 
14448
  else :
 
14449
    # compilation failed
 
14450
    lt_cv_dlopen_self_static=no
 
14451
  fi
 
14452
fi
 
14453
rm -fr conftest*
 
14454
 
 
14455
 
 
14456
fi
 
14457
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
14458
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
14459
    fi
 
14460
 
 
14461
    CPPFLAGS="$save_CPPFLAGS"
 
14462
    LDFLAGS="$save_LDFLAGS"
 
14463
    LIBS="$save_LIBS"
 
14464
    ;;
 
14465
  esac
 
14466
 
 
14467
  case $lt_cv_dlopen_self in
 
14468
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
14469
  *) enable_dlopen_self=unknown ;;
 
14470
  esac
 
14471
 
 
14472
  case $lt_cv_dlopen_self_static in
 
14473
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
14474
  *) enable_dlopen_self_static=unknown ;;
 
14475
  esac
 
14476
fi
 
14477
 
 
14478
 
 
14479
# The else clause should only fire when bootstrapping the
 
14480
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14481
# with your package, and you will get complaints that there are
 
14482
# no rules to generate ltmain.sh.
 
14483
if test -f "$ltmain"; then
 
14484
  # See if we are running on zsh, and set the options which allow our commands through
 
14485
  # without removal of \ escapes.
 
14486
  if test -n "${ZSH_VERSION+set}" ; then
 
14487
    setopt NO_GLOB_SUBST
 
14488
  fi
 
14489
  # Now quote all the things that may contain metacharacters while being
 
14490
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14491
  # variables and quote the copies for generation of the libtool script.
 
14492
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
14493
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14494
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14495
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14496
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14497
    lt_cv_sys_global_symbol_to_c_name_address \
 
14498
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14499
    old_postinstall_cmds old_postuninstall_cmds \
 
14500
    compiler_CXX \
 
14501
    CC_CXX \
 
14502
    LD_CXX \
 
14503
    lt_prog_compiler_wl_CXX \
 
14504
    lt_prog_compiler_pic_CXX \
 
14505
    lt_prog_compiler_static_CXX \
 
14506
    lt_prog_compiler_no_builtin_flag_CXX \
 
14507
    export_dynamic_flag_spec_CXX \
 
14508
    thread_safe_flag_spec_CXX \
 
14509
    whole_archive_flag_spec_CXX \
 
14510
    enable_shared_with_static_runtimes_CXX \
 
14511
    old_archive_cmds_CXX \
 
14512
    old_archive_from_new_cmds_CXX \
 
14513
    predep_objects_CXX \
 
14514
    postdep_objects_CXX \
 
14515
    predeps_CXX \
 
14516
    postdeps_CXX \
 
14517
    compiler_lib_search_path_CXX \
 
14518
    archive_cmds_CXX \
 
14519
    archive_expsym_cmds_CXX \
 
14520
    postinstall_cmds_CXX \
 
14521
    postuninstall_cmds_CXX \
 
14522
    old_archive_from_expsyms_cmds_CXX \
 
14523
    allow_undefined_flag_CXX \
 
14524
    no_undefined_flag_CXX \
 
14525
    export_symbols_cmds_CXX \
 
14526
    hardcode_libdir_flag_spec_CXX \
 
14527
    hardcode_libdir_flag_spec_ld_CXX \
 
14528
    hardcode_libdir_separator_CXX \
 
14529
    hardcode_automatic_CXX \
 
14530
    module_cmds_CXX \
 
14531
    module_expsym_cmds_CXX \
 
14532
    lt_cv_prog_compiler_c_o_CXX \
 
14533
    exclude_expsyms_CXX \
 
14534
    include_expsyms_CXX; do
 
14535
 
 
14536
    case $var in
 
14537
    old_archive_cmds_CXX | \
 
14538
    old_archive_from_new_cmds_CXX | \
 
14539
    archive_cmds_CXX | \
 
14540
    archive_expsym_cmds_CXX | \
 
14541
    module_cmds_CXX | \
 
14542
    module_expsym_cmds_CXX | \
 
14543
    old_archive_from_expsyms_cmds_CXX | \
 
14544
    export_symbols_cmds_CXX | \
 
14545
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14546
    postinstall_cmds | postuninstall_cmds | \
 
14547
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14548
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14549
      # Double-quote double-evaled strings.
 
14550
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14551
      ;;
 
14552
    *)
 
14553
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14554
      ;;
 
14555
    esac
 
14556
  done
 
14557
 
 
14558
  case $lt_echo in
 
14559
  *'\$0 --fallback-echo"')
 
14560
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14561
    ;;
 
14562
  esac
 
14563
 
 
14564
cfgfile="$ofile"
 
14565
 
 
14566
  cat <<__EOF__ >> "$cfgfile"
 
14567
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14568
 
 
14569
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14570
 
 
14571
# Shell to use when invoking shell scripts.
 
14572
SHELL=$lt_SHELL
 
14573
 
 
14574
# Whether or not to build shared libraries.
 
14575
build_libtool_libs=$enable_shared
 
14576
 
 
14577
# Whether or not to build static libraries.
 
14578
build_old_libs=$enable_static
 
14579
 
 
14580
# Whether or not to add -lc for building shared libraries.
 
14581
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14582
 
 
14583
# Whether or not to disallow shared libs when runtime libs are static
 
14584
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14585
 
 
14586
# Whether or not to optimize for fast installation.
 
14587
fast_install=$enable_fast_install
 
14588
 
 
14589
# The host system.
 
14590
host_alias=$host_alias
 
14591
host=$host
 
14592
 
 
14593
# An echo program that does not interpret backslashes.
 
14594
echo=$lt_echo
 
14595
 
 
14596
# The archiver.
 
14597
AR=$lt_AR
 
14598
AR_FLAGS=$lt_AR_FLAGS
 
14599
 
 
14600
# A C compiler.
 
14601
LTCC=$lt_LTCC
 
14602
 
 
14603
# A language-specific compiler.
 
14604
CC=$lt_compiler_CXX
 
14605
 
 
14606
# Is the compiler the GNU C compiler?
 
14607
with_gcc=$GCC_CXX
 
14608
 
 
14609
# An ERE matcher.
 
14610
EGREP=$lt_EGREP
 
14611
 
 
14612
# The linker used to build libraries.
 
14613
LD=$lt_LD_CXX
 
14614
 
 
14615
# Whether we need hard or soft links.
 
14616
LN_S=$lt_LN_S
 
14617
 
 
14618
# A BSD-compatible nm program.
 
14619
NM=$lt_NM
 
14620
 
 
14621
# A symbol stripping program
 
14622
STRIP=$STRIP
 
14623
 
 
14624
# Used to examine libraries when file_magic_cmd begins "file"
 
14625
MAGIC_CMD=$MAGIC_CMD
 
14626
 
 
14627
# Used on cygwin: DLL creation program.
 
14628
DLLTOOL="$DLLTOOL"
 
14629
 
 
14630
# Used on cygwin: object dumper.
 
14631
OBJDUMP="$OBJDUMP"
 
14632
 
 
14633
# Used on cygwin: assembler.
 
14634
AS="$AS"
 
14635
 
 
14636
# The name of the directory that contains temporary libtool files.
 
14637
objdir=$objdir
 
14638
 
 
14639
# How to create reloadable object files.
 
14640
reload_flag=$lt_reload_flag
 
14641
reload_cmds=$lt_reload_cmds
 
14642
 
 
14643
# How to pass a linker flag through the compiler.
 
14644
wl=$lt_lt_prog_compiler_wl_CXX
 
14645
 
 
14646
# Object file suffix (normally "o").
 
14647
objext="$ac_objext"
 
14648
 
 
14649
# Old archive suffix (normally "a").
 
14650
libext="$libext"
 
14651
 
 
14652
# Shared library suffix (normally ".so").
 
14653
shrext='$shrext'
 
14654
 
 
14655
# Executable file suffix (normally "").
 
14656
exeext="$exeext"
 
14657
 
 
14658
# Additional compiler flags for building library objects.
 
14659
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14660
pic_mode=$pic_mode
 
14661
 
 
14662
# What is the maximum length of a command?
 
14663
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14664
 
 
14665
# Does compiler simultaneously support -c and -o options?
 
14666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14667
 
 
14668
# Must we lock files when doing compilation ?
 
14669
need_locks=$lt_need_locks
 
14670
 
 
14671
# Do we need the lib prefix for modules?
 
14672
need_lib_prefix=$need_lib_prefix
 
14673
 
 
14674
# Do we need a version for libraries?
 
14675
need_version=$need_version
 
14676
 
 
14677
# Whether dlopen is supported.
 
14678
dlopen_support=$enable_dlopen
 
14679
 
 
14680
# Whether dlopen of programs is supported.
 
14681
dlopen_self=$enable_dlopen_self
 
14682
 
 
14683
# Whether dlopen of statically linked programs is supported.
 
14684
dlopen_self_static=$enable_dlopen_self_static
 
14685
 
 
14686
# Compiler flag to prevent dynamic linking.
 
14687
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14688
 
 
14689
# Compiler flag to turn off builtin functions.
 
14690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14691
 
 
14692
# Compiler flag to allow reflexive dlopens.
 
14693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14694
 
 
14695
# Compiler flag to generate shared objects directly from archives.
 
14696
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14697
 
 
14698
# Compiler flag to generate thread-safe objects.
 
14699
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14700
 
 
14701
# Library versioning type.
 
14702
version_type=$version_type
 
14703
 
 
14704
# Format of library name prefix.
 
14705
libname_spec=$lt_libname_spec
 
14706
 
 
14707
# List of archive names.  First name is the real one, the rest are links.
 
14708
# The last name is the one that the linker finds with -lNAME.
 
14709
library_names_spec=$lt_library_names_spec
 
14710
 
 
14711
# The coded name of the library, if different from the real name.
 
14712
soname_spec=$lt_soname_spec
 
14713
 
 
14714
# Commands used to build and install an old-style archive.
 
14715
RANLIB=$lt_RANLIB
 
14716
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14717
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14719
 
 
14720
# Create an old-style archive from a shared archive.
 
14721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14722
 
 
14723
# Create a temporary old-style archive to link instead of a shared archive.
 
14724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14725
 
 
14726
# Commands used to build and install a shared archive.
 
14727
archive_cmds=$lt_archive_cmds_CXX
 
14728
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14729
postinstall_cmds=$lt_postinstall_cmds
 
14730
postuninstall_cmds=$lt_postuninstall_cmds
 
14731
 
 
14732
# Commands used to build a loadable module (assumed same as above if empty)
 
14733
module_cmds=$lt_module_cmds_CXX
 
14734
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14735
 
 
14736
# Commands to strip libraries.
 
14737
old_striplib=$lt_old_striplib
 
14738
striplib=$lt_striplib
 
14739
 
 
14740
# Dependencies to place before the objects being linked to create a
 
14741
# shared library.
 
14742
predep_objects=$lt_predep_objects_CXX
 
14743
 
 
14744
# Dependencies to place after the objects being linked to create a
 
14745
# shared library.
 
14746
postdep_objects=$lt_postdep_objects_CXX
 
14747
 
 
14748
# Dependencies to place before the objects being linked to create a
 
14749
# shared library.
 
14750
predeps=$lt_predeps_CXX
 
14751
 
 
14752
# Dependencies to place after the objects being linked to create a
 
14753
# shared library.
 
14754
postdeps=$lt_postdeps_CXX
 
14755
 
 
14756
# The library search path used internally by the compiler when linking
 
14757
# a shared library.
 
14758
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14759
 
 
14760
# Method to check whether dependent libraries are shared objects.
 
14761
deplibs_check_method=$lt_deplibs_check_method
 
14762
 
 
14763
# Command to use when deplibs_check_method == file_magic.
 
14764
file_magic_cmd=$lt_file_magic_cmd
 
14765
 
 
14766
# Flag that allows shared libraries with undefined symbols to be built.
 
14767
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14768
 
 
14769
# Flag that forces no undefined symbols.
 
14770
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14771
 
 
14772
# Commands used to finish a libtool library installation in a directory.
 
14773
finish_cmds=$lt_finish_cmds
 
14774
 
 
14775
# Same as above, but a single script fragment to be evaled but not shown.
 
14776
finish_eval=$lt_finish_eval
 
14777
 
 
14778
# Take the output of nm and produce a listing of raw symbols and C names.
 
14779
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14780
 
 
14781
# Transform the output of nm in a proper C declaration
 
14782
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14783
 
 
14784
# Transform the output of nm in a C name address pair
 
14785
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14786
 
 
14787
# This is the shared library runtime path variable.
 
14788
runpath_var=$runpath_var
 
14789
 
 
14790
# This is the shared library path variable.
 
14791
shlibpath_var=$shlibpath_var
 
14792
 
 
14793
# Is shlibpath searched before the hard-coded library search path?
 
14794
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14795
 
 
14796
# How to hardcode a shared library path into an executable.
 
14797
hardcode_action=$hardcode_action_CXX
 
14798
 
 
14799
# Whether we should hardcode library paths into libraries.
 
14800
hardcode_into_libs=$hardcode_into_libs
 
14801
 
 
14802
# Flag to hardcode \$libdir into a binary during linking.
 
14803
# This must work even if \$libdir does not exist.
 
14804
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14805
 
 
14806
# If ld is used when linking, flag to hardcode \$libdir into
 
14807
# a binary during linking. This must work even if \$libdir does
 
14808
# not exist.
 
14809
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14810
 
 
14811
# Whether we need a single -rpath flag with a separated argument.
 
14812
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14813
 
 
14814
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14815
# resulting binary.
 
14816
hardcode_direct=$hardcode_direct_CXX
 
14817
 
 
14818
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14819
# resulting binary.
 
14820
hardcode_minus_L=$hardcode_minus_L_CXX
 
14821
 
 
14822
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14823
# the resulting binary.
 
14824
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14825
 
 
14826
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14827
# and all subsequent libraries and executables linked against it.
 
14828
hardcode_automatic=$hardcode_automatic_CXX
 
14829
 
 
14830
# Variables whose values should be saved in libtool wrapper scripts and
 
14831
# restored at relink time.
 
14832
variables_saved_for_relink="$variables_saved_for_relink"
 
14833
 
 
14834
# Whether libtool must link a program against all its dependency libraries.
 
14835
link_all_deplibs=$link_all_deplibs_CXX
 
14836
 
 
14837
# Compile-time system search path for libraries
 
14838
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14839
 
 
14840
# Run-time system search path for libraries
 
14841
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14842
 
 
14843
# Fix the shell variable \$srcfile for the compiler.
 
14844
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14845
 
 
14846
# Set to yes if exported symbols are required.
 
14847
always_export_symbols=$always_export_symbols_CXX
 
14848
 
 
14849
# The commands to list exported symbols.
 
14850
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14851
 
 
14852
# The commands to extract the exported symbol list from a shared archive.
 
14853
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14854
 
 
14855
# Symbols that should not be listed in the preloaded symbols.
 
14856
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14857
 
 
14858
# Symbols that must always be exported.
 
14859
include_expsyms=$lt_include_expsyms_CXX
 
14860
 
 
14861
# ### END LIBTOOL TAG CONFIG: $tagname
 
14862
 
 
14863
__EOF__
 
14864
 
 
14865
 
 
14866
else
 
14867
  # If there is no Makefile yet, we rely on a make rule to execute
 
14868
  # `config.status --recheck' to rerun these tests and create the
 
14869
  # libtool script then.
 
14870
  test -f Makefile && make "$ltmain"
 
14871
fi
 
14872
 
 
14873
 
 
14874
ac_ext=c
 
14875
ac_cpp='$CPP $CPPFLAGS'
 
14876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14879
 
 
14880
CC=$lt_save_CC
 
14881
LDCXX=$LD
 
14882
LD=$lt_save_LD
 
14883
GCC=$lt_save_GCC
 
14884
with_gnu_ldcxx=$with_gnu_ld
 
14885
with_gnu_ld=$lt_save_with_gnu_ld
 
14886
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14887
lt_cv_path_LD=$lt_save_path_LD
 
14888
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14889
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14890
 
 
14891
        else
 
14892
          tagname=""
 
14893
        fi
 
14894
        ;;
 
14895
 
 
14896
      F77)
 
14897
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14898
 
 
14899
ac_ext=f
 
14900
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14901
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14902
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14903
 
 
14904
 
 
14905
archive_cmds_need_lc_F77=no
 
14906
allow_undefined_flag_F77=
 
14907
always_export_symbols_F77=no
 
14908
archive_expsym_cmds_F77=
 
14909
export_dynamic_flag_spec_F77=
 
14910
hardcode_direct_F77=no
 
14911
hardcode_libdir_flag_spec_F77=
 
14912
hardcode_libdir_flag_spec_ld_F77=
 
14913
hardcode_libdir_separator_F77=
 
14914
hardcode_minus_L_F77=no
 
14915
hardcode_automatic_F77=no
 
14916
module_cmds_F77=
 
14917
module_expsym_cmds_F77=
 
14918
link_all_deplibs_F77=unknown
 
14919
old_archive_cmds_F77=$old_archive_cmds
 
14920
no_undefined_flag_F77=
 
14921
whole_archive_flag_spec_F77=
 
14922
enable_shared_with_static_runtimes_F77=no
 
14923
 
 
14924
# Source file extension for f77 test sources.
 
14925
ac_ext=f
 
14926
 
 
14927
# Object file extension for compiled f77 test sources.
 
14928
objext=o
 
14929
objext_F77=$objext
 
14930
 
 
14931
# Code to be used in simple compile tests
 
14932
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14933
 
 
14934
# Code to be used in simple link tests
 
14935
lt_simple_link_test_code="      program t\n      end\n"
 
14936
 
 
14937
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14938
 
 
14939
# If no C compiler was specified, use CC.
 
14940
LTCC=${LTCC-"$CC"}
 
14941
 
 
14942
# Allow CC to be a program name with arguments.
 
14943
compiler=$CC
 
14944
 
 
14945
 
 
14946
# Allow CC to be a program name with arguments.
 
14947
lt_save_CC="$CC"
 
14948
CC=${F77-"f77"}
 
14949
compiler=$CC
 
14950
compiler_F77=$CC
 
14951
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
14952
 
 
14953
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14954
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14955
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14956
echo "${ECHO_T}$can_build_shared" >&6
 
14957
 
 
14958
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14959
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14960
test "$can_build_shared" = "no" && enable_shared=no
 
14961
 
 
14962
# On AIX, shared libraries and static libraries use the same namespace, and
 
14963
# are all built from PIC.
 
14964
case "$host_os" in
 
14965
aix3*)
 
14966
  test "$enable_shared" = yes && enable_static=no
 
14967
  if test -n "$RANLIB"; then
 
14968
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14969
    postinstall_cmds='$RANLIB $lib'
 
14970
  fi
 
14971
  ;;
 
14972
aix4*)
 
14973
  test "$enable_shared" = yes && enable_static=no
 
14974
  ;;
 
14975
esac
 
14976
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14977
echo "${ECHO_T}$enable_shared" >&6
 
14978
 
 
14979
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14980
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14981
# Make sure either enable_shared or enable_static is yes.
 
14982
test "$enable_shared" = yes || enable_static=yes
 
14983
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14984
echo "${ECHO_T}$enable_static" >&6
 
14985
 
 
14986
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14987
 
 
14988
GCC_F77="$G77"
 
14989
LD_F77="$LD"
 
14990
 
 
14991
lt_prog_compiler_wl_F77=
 
14992
lt_prog_compiler_pic_F77=
 
14993
lt_prog_compiler_static_F77=
 
14994
 
 
14995
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14996
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14997
 
 
14998
  if test "$GCC" = yes; then
 
14999
    lt_prog_compiler_wl_F77='-Wl,'
 
15000
    lt_prog_compiler_static_F77='-static'
 
15001
 
 
15002
    case $host_os in
 
15003
      aix*)
 
15004
      # All AIX code is PIC.
 
15005
      if test "$host_cpu" = ia64; then
 
15006
        # AIX 5 now supports IA64 processor
 
15007
        lt_prog_compiler_static_F77='-Bstatic'
 
15008
      fi
 
15009
      ;;
 
15010
 
 
15011
    amigaos*)
 
15012
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15013
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15014
      # like `-m68040'.
 
15015
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15016
      ;;
 
15017
 
 
15018
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15019
      # PIC is the default for these OSes.
 
15020
      ;;
 
15021
 
 
15022
    mingw* | pw32* | os2*)
 
15023
      # This hack is so that the source file can tell whether it is being
 
15024
      # built for inclusion in a dll (and should export symbols for example).
 
15025
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15026
      ;;
 
15027
 
 
15028
    darwin* | rhapsody*)
 
15029
      # PIC is the default on this platform
 
15030
      # Common symbols not allowed in MH_DYLIB files
 
15031
      lt_prog_compiler_pic_F77='-fno-common'
 
15032
      ;;
 
15033
 
 
15034
    msdosdjgpp*)
 
15035
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15036
      # on systems that don't support them.
 
15037
      lt_prog_compiler_can_build_shared_F77=no
 
15038
      enable_shared=no
 
15039
      ;;
 
15040
 
 
15041
    sysv4*MP*)
 
15042
      if test -d /usr/nec; then
 
15043
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15044
      fi
 
15045
      ;;
 
15046
 
 
15047
    hpux*)
 
15048
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15049
      # not for PA HP-UX.
 
15050
      case "$host_cpu" in
 
15051
      hppa*64*|ia64*)
 
15052
        # +Z the default
 
15053
        ;;
 
15054
      *)
 
15055
        lt_prog_compiler_pic_F77='-fPIC'
 
15056
        ;;
 
15057
      esac
 
15058
      ;;
 
15059
 
 
15060
    *)
 
15061
      lt_prog_compiler_pic_F77='-fPIC'
 
15062
      ;;
 
15063
    esac
 
15064
  else
 
15065
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15066
    case $host_os in
 
15067
    aix*)
 
15068
      lt_prog_compiler_wl_F77='-Wl,'
 
15069
      if test "$host_cpu" = ia64; then
 
15070
        # AIX 5 now supports IA64 processor
 
15071
        lt_prog_compiler_static_F77='-Bstatic'
 
15072
      else
 
15073
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15074
      fi
 
15075
      ;;
 
15076
 
 
15077
    mingw* | pw32* | os2*)
 
15078
      # This hack is so that the source file can tell whether it is being
 
15079
      # built for inclusion in a dll (and should export symbols for example).
 
15080
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15081
      ;;
 
15082
 
 
15083
    hpux9* | hpux10* | hpux11*)
 
15084
      lt_prog_compiler_wl_F77='-Wl,'
 
15085
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15086
      # not for PA HP-UX.
 
15087
      case "$host_cpu" in
 
15088
      hppa*64*|ia64*)
 
15089
        # +Z the default
 
15090
        ;;
 
15091
      *)
 
15092
        lt_prog_compiler_pic_F77='+Z'
 
15093
        ;;
 
15094
      esac
 
15095
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15096
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15097
      ;;
 
15098
 
 
15099
    irix5* | irix6* | nonstopux*)
 
15100
      lt_prog_compiler_wl_F77='-Wl,'
 
15101
      # PIC (with -KPIC) is the default.
 
15102
      lt_prog_compiler_static_F77='-non_shared'
 
15103
      ;;
 
15104
 
 
15105
    newsos6)
 
15106
      lt_prog_compiler_pic_F77='-KPIC'
 
15107
      lt_prog_compiler_static_F77='-Bstatic'
 
15108
      ;;
 
15109
 
 
15110
    linux*)
 
15111
      case $CC in
 
15112
      icc|ecc)
 
15113
        lt_prog_compiler_wl_F77='-Wl,'
 
15114
        lt_prog_compiler_pic_F77='-KPIC'
 
15115
        lt_prog_compiler_static_F77='-static'
 
15116
        ;;
 
15117
      ccc)
 
15118
        lt_prog_compiler_wl_F77='-Wl,'
 
15119
        # All Alpha code is PIC.
 
15120
        lt_prog_compiler_static_F77='-non_shared'
 
15121
        ;;
 
15122
      esac
 
15123
      ;;
 
15124
 
 
15125
    osf3* | osf4* | osf5*)
 
15126
      lt_prog_compiler_wl_F77='-Wl,'
 
15127
      # All OSF/1 code is PIC.
 
15128
      lt_prog_compiler_static_F77='-non_shared'
 
15129
      ;;
 
15130
 
 
15131
    sco3.2v5*)
 
15132
      lt_prog_compiler_pic_F77='-Kpic'
 
15133
      lt_prog_compiler_static_F77='-dn'
 
15134
      ;;
 
15135
 
 
15136
    solaris*)
 
15137
      lt_prog_compiler_wl_F77='-Wl,'
 
15138
      lt_prog_compiler_pic_F77='-KPIC'
 
15139
      lt_prog_compiler_static_F77='-Bstatic'
 
15140
      ;;
 
15141
 
 
15142
    sunos4*)
 
15143
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15144
      lt_prog_compiler_pic_F77='-PIC'
 
15145
      lt_prog_compiler_static_F77='-Bstatic'
 
15146
      ;;
 
15147
 
 
15148
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15149
      lt_prog_compiler_wl_F77='-Wl,'
 
15150
      lt_prog_compiler_pic_F77='-KPIC'
 
15151
      lt_prog_compiler_static_F77='-Bstatic'
 
15152
      ;;
 
15153
 
 
15154
    sysv4*MP*)
 
15155
      if test -d /usr/nec ;then
 
15156
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15157
        lt_prog_compiler_static_F77='-Bstatic'
 
15158
      fi
 
15159
      ;;
 
15160
 
 
15161
    uts4*)
 
15162
      lt_prog_compiler_pic_F77='-pic'
 
15163
      lt_prog_compiler_static_F77='-Bstatic'
 
15164
      ;;
 
15165
 
 
15166
    *)
 
15167
      lt_prog_compiler_can_build_shared_F77=no
 
15168
      ;;
 
15169
    esac
 
15170
  fi
 
15171
 
 
15172
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15173
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
15174
 
 
15175
#
 
15176
# Check to make sure the PIC flag actually works.
 
15177
#
 
15178
if test -n "$lt_prog_compiler_pic_F77"; then
 
15179
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15180
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
15181
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
15182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15183
else
 
15184
  lt_prog_compiler_pic_works_F77=no
 
15185
  ac_outfile=conftest.$ac_objext
 
15186
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15187
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15188
   # Insert the option either (1) after the last *FLAGS variable, or
 
15189
   # (2) before a word containing "conftest.", or (3) at the end.
 
15190
   # Note that $ac_compile itself does not contain backslashes and begins
 
15191
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15192
   # The option is referenced via a variable to avoid confusing sed.
 
15193
   lt_compile=`echo "$ac_compile" | $SED \
 
15194
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15195
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15196
   -e 's:$: $lt_compiler_flag:'`
 
15197
   (eval echo "\"\$as_me:15197: $lt_compile\"" >&5)
 
15198
   (eval "$lt_compile" 2>conftest.err)
 
15199
   ac_status=$?
 
15200
   cat conftest.err >&5
 
15201
   echo "$as_me:15201: \$? = $ac_status" >&5
 
15202
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15203
     # The compiler can only warn and ignore the option if not recognized
 
15204
     # So say no if there are warnings
 
15205
     if test ! -s conftest.err; then
 
15206
       lt_prog_compiler_pic_works_F77=yes
 
15207
     fi
 
15208
   fi
 
15209
   $rm conftest*
 
15210
 
 
15211
fi
 
15212
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
15213
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
15214
 
 
15215
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
15216
    case $lt_prog_compiler_pic_F77 in
 
15217
     "" | " "*) ;;
 
15218
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15219
     esac
 
15220
else
 
15221
    lt_prog_compiler_pic_F77=
 
15222
     lt_prog_compiler_can_build_shared_F77=no
 
15223
fi
 
15224
 
 
15225
fi
 
15226
case "$host_os" in
 
15227
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15228
  *djgpp*)
 
15229
    lt_prog_compiler_pic_F77=
 
15230
    ;;
 
15231
  *)
 
15232
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15233
    ;;
 
15234
esac
 
15235
 
 
15236
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15237
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15238
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15240
else
 
15241
  lt_cv_prog_compiler_c_o_F77=no
 
15242
   $rm -r conftest 2>/dev/null
 
15243
   mkdir conftest
 
15244
   cd conftest
 
15245
   mkdir out
 
15246
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15247
 
 
15248
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
15249
   # that will create temporary files in the current directory regardless of
 
15250
   # the output directory.  Thus, making CWD read-only will cause this test
 
15251
   # to fail, enabling locking or at least warning the user not to do parallel
 
15252
   # builds.
 
15253
   chmod -w .
 
15254
 
 
15255
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15256
   # Insert the option either (1) after the last *FLAGS variable, or
 
15257
   # (2) before a word containing "conftest.", or (3) at the end.
 
15258
   # Note that $ac_compile itself does not contain backslashes and begins
 
15259
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15260
   lt_compile=`echo "$ac_compile" | $SED \
 
15261
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15262
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15263
   -e 's:$: $lt_compiler_flag:'`
 
15264
   (eval echo "\"\$as_me:15264: $lt_compile\"" >&5)
 
15265
   (eval "$lt_compile" 2>out/conftest.err)
 
15266
   ac_status=$?
 
15267
   cat out/conftest.err >&5
 
15268
   echo "$as_me:15268: \$? = $ac_status" >&5
 
15269
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15270
   then
 
15271
     # The compiler can only warn and ignore the option if not recognized
 
15272
     # So say no if there are warnings
 
15273
     if test ! -s out/conftest.err; then
 
15274
       lt_cv_prog_compiler_c_o_F77=yes
 
15275
     fi
 
15276
   fi
 
15277
   chmod u+w .
 
15278
   $rm conftest* out/*
 
15279
   rmdir out
 
15280
   cd ..
 
15281
   rmdir conftest
 
15282
   $rm conftest*
 
15283
 
 
15284
fi
 
15285
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15286
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
15287
 
 
15288
 
 
15289
hard_links="nottested"
 
15290
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15291
  # do not overwrite the value of need_locks provided by the user
 
15292
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15293
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15294
  hard_links=yes
 
15295
  $rm conftest*
 
15296
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15297
  touch conftest.a
 
15298
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15299
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15300
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15301
echo "${ECHO_T}$hard_links" >&6
 
15302
  if test "$hard_links" = no; then
 
15303
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15304
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15305
    need_locks=warn
 
15306
  fi
 
15307
else
 
15308
  need_locks=no
 
15309
fi
 
15310
 
 
15311
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15312
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15313
 
 
15314
  runpath_var=
 
15315
  allow_undefined_flag_F77=
 
15316
  enable_shared_with_static_runtimes_F77=no
 
15317
  archive_cmds_F77=
 
15318
  archive_expsym_cmds_F77=
 
15319
  old_archive_From_new_cmds_F77=
 
15320
  old_archive_from_expsyms_cmds_F77=
 
15321
  export_dynamic_flag_spec_F77=
 
15322
  whole_archive_flag_spec_F77=
 
15323
  thread_safe_flag_spec_F77=
 
15324
  hardcode_libdir_flag_spec_F77=
 
15325
  hardcode_libdir_flag_spec_ld_F77=
 
15326
  hardcode_libdir_separator_F77=
 
15327
  hardcode_direct_F77=no
 
15328
  hardcode_minus_L_F77=no
 
15329
  hardcode_shlibpath_var_F77=unsupported
 
15330
  link_all_deplibs_F77=unknown
 
15331
  hardcode_automatic_F77=no
 
15332
  module_cmds_F77=
 
15333
  module_expsym_cmds_F77=
 
15334
  always_export_symbols_F77=no
 
15335
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15336
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15337
  # included in the symbol list
 
15338
  include_expsyms_F77=
 
15339
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15340
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15341
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15342
  # as well as any symbol that contains `d'.
 
15343
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15344
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15345
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15346
  # the symbol is explicitly referenced.  Since portable code cannot
 
15347
  # rely on this symbol name, it's probably fine to never include it in
 
15348
  # preloaded symbol tables.
 
15349
  extract_expsyms_cmds=
 
15350
 
 
15351
  case $host_os in
 
15352
  cygwin* | mingw* | pw32*)
 
15353
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15354
    # When not using gcc, we currently assume that we are using
 
15355
    # Microsoft Visual C++.
 
15356
    if test "$GCC" != yes; then
 
15357
      with_gnu_ld=no
 
15358
    fi
 
15359
    ;;
 
15360
  openbsd*)
 
15361
    with_gnu_ld=no
 
15362
    ;;
 
15363
  esac
 
15364
 
 
15365
  ld_shlibs_F77=yes
 
15366
  if test "$with_gnu_ld" = yes; then
 
15367
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15368
    wlarc='${wl}'
 
15369
 
 
15370
    # See if GNU ld supports shared libraries.
 
15371
    case $host_os in
 
15372
    aix3* | aix4* | aix5*)
 
15373
      # On AIX/PPC, the GNU linker is very broken
 
15374
      if test "$host_cpu" != ia64; then
 
15375
        ld_shlibs_F77=no
 
15376
        cat <<EOF 1>&2
 
15377
 
 
15378
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15379
*** to be unable to reliably create shared libraries on AIX.
 
15380
*** Therefore, libtool is disabling shared libraries support.  If you
 
15381
*** really care for shared libraries, you may want to modify your PATH
 
15382
*** so that a non-GNU linker is found, and then restart.
 
15383
 
 
15384
EOF
 
15385
      fi
 
15386
      ;;
 
15387
 
 
15388
    amigaos*)
 
15389
      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)'
 
15390
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15391
      hardcode_minus_L_F77=yes
 
15392
 
 
15393
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15394
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15395
      # to version 4, is to share data among multiple programs linked
 
15396
      # with the same dynamic library.  Since this doesn't match the
 
15397
      # behavior of shared libraries on other platforms, we can't use
 
15398
      # them.
 
15399
      ld_shlibs_F77=no
 
15400
      ;;
 
15401
 
 
15402
    beos*)
 
15403
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15404
        allow_undefined_flag_F77=unsupported
 
15405
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15406
        # support --undefined.  This deserves some investigation.  FIXME
 
15407
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15408
      else
 
15409
        ld_shlibs_F77=no
 
15410
      fi
 
15411
      ;;
 
15412
 
 
15413
    cygwin* | mingw* | pw32*)
 
15414
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15415
      # as there is no search path for DLLs.
 
15416
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15417
      allow_undefined_flag_F77=unsupported
 
15418
      always_export_symbols_F77=no
 
15419
      enable_shared_with_static_runtimes_F77=yes
 
15420
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15421
 
 
15422
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15423
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
 
15424
        # If the export-symbols file already is a .def file (1st line
 
15425
        # is EXPORTS), use it as is; otherwise, prepend...
 
15426
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15427
          cp $export_symbols $output_objdir/$soname.def;
 
15428
        else
 
15429
          echo EXPORTS > $output_objdir/$soname.def;
 
15430
          cat $export_symbols >> $output_objdir/$soname.def;
 
15431
        fi~
 
15432
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base  ${wl}--out-implib,$lib'
 
15433
      else
 
15434
        ld_shlibs=no
 
15435
      fi
 
15436
      ;;
 
15437
 
 
15438
    netbsd*)
 
15439
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15440
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15441
        wlarc=
 
15442
      else
 
15443
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15444
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15445
      fi
 
15446
      ;;
 
15447
 
 
15448
    solaris* | sysv5*)
 
15449
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15450
        ld_shlibs_F77=no
 
15451
        cat <<EOF 1>&2
 
15452
 
 
15453
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15454
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15455
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15456
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15457
*** your PATH or compiler configuration so that the native linker is
 
15458
*** used, and then restart.
 
15459
 
 
15460
EOF
 
15461
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15462
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15463
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15464
      else
 
15465
        ld_shlibs_F77=no
 
15466
      fi
 
15467
      ;;
 
15468
 
 
15469
    sunos4*)
 
15470
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15471
      wlarc=
 
15472
      hardcode_direct_F77=yes
 
15473
      hardcode_shlibpath_var_F77=no
 
15474
      ;;
 
15475
 
 
15476
    *)
 
15477
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15478
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15479
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15480
      else
 
15481
        ld_shlibs_F77=no
 
15482
      fi
 
15483
      ;;
 
15484
    esac
 
15485
 
 
15486
    if test "$ld_shlibs_F77" = yes; then
 
15487
      runpath_var=LD_RUN_PATH
 
15488
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15489
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15490
      # ancient GNU ld didn't support --whole-archive et. al.
 
15491
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15492
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15493
      else
 
15494
        whole_archive_flag_spec_F77=
 
15495
      fi
 
15496
    fi
 
15497
  else
 
15498
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15499
    case $host_os in
 
15500
    aix3*)
 
15501
      allow_undefined_flag_F77=unsupported
 
15502
      always_export_symbols_F77=yes
 
15503
      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'
 
15504
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15505
      # are no directories specified by -L.
 
15506
      hardcode_minus_L_F77=yes
 
15507
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15508
        # Neither direct hardcoding nor static linking is supported with a
 
15509
        # broken collect2.
 
15510
        hardcode_direct_F77=unsupported
 
15511
      fi
 
15512
      ;;
 
15513
 
 
15514
    aix4* | aix5*)
 
15515
      if test "$host_cpu" = ia64; then
 
15516
        # On IA64, the linker does run time linking by default, so we don't
 
15517
        # have to do anything special.
 
15518
        aix_use_runtimelinking=no
 
15519
        exp_sym_flag='-Bexport'
 
15520
        no_entry_flag=""
 
15521
      else
 
15522
        # If we're using GNU nm, then we don't want the "-C" option.
 
15523
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15524
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15525
          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'
 
15526
        else
 
15527
          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'
 
15528
        fi
 
15529
        aix_use_runtimelinking=no
 
15530
 
 
15531
        # Test if we are trying to use run time linking or normal
 
15532
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15533
        # need to do runtime linking.
 
15534
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15535
          for ld_flag in $LDFLAGS; do
 
15536
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15537
            aix_use_runtimelinking=yes
 
15538
            break
 
15539
          fi
 
15540
          done
 
15541
        esac
 
15542
 
 
15543
        exp_sym_flag='-bexport'
 
15544
        no_entry_flag='-bnoentry'
 
15545
      fi
 
15546
 
 
15547
      # When large executables or shared objects are built, AIX ld can
 
15548
      # have problems creating the table of contents.  If linking a library
 
15549
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15550
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15551
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15552
 
 
15553
      archive_cmds_F77=''
 
15554
      hardcode_direct_F77=yes
 
15555
      hardcode_libdir_separator_F77=':'
 
15556
      link_all_deplibs_F77=yes
 
15557
 
 
15558
      if test "$GCC" = yes; then
 
15559
        case $host_os in aix4.012|aix4.012.*)
 
15560
        # We only want to do this on AIX 4.2 and lower, the check
 
15561
        # below for broken collect2 doesn't work under 4.3+
 
15562
          collect2name=`${CC} -print-prog-name=collect2`
 
15563
          if test -f "$collect2name" && \
 
15564
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15565
          then
 
15566
          # We have reworked collect2
 
15567
          hardcode_direct_F77=yes
 
15568
          else
 
15569
          # We have old collect2
 
15570
          hardcode_direct_F77=unsupported
 
15571
          # It fails to find uninstalled libraries when the uninstalled
 
15572
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15573
          # to unsupported forces relinking
 
15574
          hardcode_minus_L_F77=yes
 
15575
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15576
          hardcode_libdir_separator_F77=
 
15577
          fi
 
15578
        esac
 
15579
        shared_flag='-shared'
 
15580
      else
 
15581
        # not using gcc
 
15582
        if test "$host_cpu" = ia64; then
 
15583
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15584
        # chokes on -Wl,-G. The following line is correct:
 
15585
          shared_flag='-G'
 
15586
        else
 
15587
        if test "$aix_use_runtimelinking" = yes; then
 
15588
            shared_flag='${wl}-G'
 
15589
          else
 
15590
            shared_flag='${wl}-bM:SRE'
 
15591
        fi
 
15592
        fi
 
15593
      fi
 
15594
 
 
15595
      # It seems that -bexpall does not export symbols beginning with
 
15596
      # underscore (_), so it is better to generate a list of symbols to export.
 
15597
      always_export_symbols_F77=yes
 
15598
      if test "$aix_use_runtimelinking" = yes; then
 
15599
        # Warning - without using the other runtime loading flags (-brtl),
 
15600
        # -berok will link without error, but may produce a broken library.
 
15601
        allow_undefined_flag_F77='-berok'
 
15602
       # Determine the default libpath from the value encoded in an empty executable.
 
15603
       cat >conftest.$ac_ext <<_ACEOF
 
15604
      program main
 
15605
 
 
15606
      end
 
15607
_ACEOF
 
15608
rm -f conftest.$ac_objext conftest$ac_exeext
 
15609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15610
  (eval $ac_link) 2>conftest.er1
 
15611
  ac_status=$?
 
15612
  grep -v '^ *+' conftest.er1 >conftest.err
 
15613
  rm -f conftest.er1
 
15614
  cat conftest.err >&5
 
15615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15616
  (exit $ac_status); } &&
 
15617
         { ac_try='test -z "$ac_f77_werror_flag"
 
15618
                         || test ! -s conftest.err'
 
15619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15620
  (eval $ac_try) 2>&5
 
15621
  ac_status=$?
 
15622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15623
  (exit $ac_status); }; } &&
 
15624
         { ac_try='test -s conftest$ac_exeext'
 
15625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15626
  (eval $ac_try) 2>&5
 
15627
  ac_status=$?
 
15628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15629
  (exit $ac_status); }; }; then
 
15630
 
 
15631
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15632
}'`
 
15633
# Check for a 64-bit object if we didn't find anything.
 
15634
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; }
 
15635
}'`; fi
 
15636
else
 
15637
  echo "$as_me: failed program was:" >&5
 
15638
sed 's/^/| /' conftest.$ac_ext >&5
 
15639
 
 
15640
fi
 
15641
rm -f conftest.err conftest.$ac_objext \
 
15642
      conftest$ac_exeext conftest.$ac_ext
 
15643
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15644
 
 
15645
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15646
        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"
 
15647
       else
 
15648
        if test "$host_cpu" = ia64; then
 
15649
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15650
          allow_undefined_flag_F77="-z nodefs"
 
15651
          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"
 
15652
        else
 
15653
         # Determine the default libpath from the value encoded in an empty executable.
 
15654
         cat >conftest.$ac_ext <<_ACEOF
 
15655
      program main
 
15656
 
 
15657
      end
 
15658
_ACEOF
 
15659
rm -f conftest.$ac_objext conftest$ac_exeext
 
15660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15661
  (eval $ac_link) 2>conftest.er1
 
15662
  ac_status=$?
 
15663
  grep -v '^ *+' conftest.er1 >conftest.err
 
15664
  rm -f conftest.er1
 
15665
  cat conftest.err >&5
 
15666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15667
  (exit $ac_status); } &&
 
15668
         { ac_try='test -z "$ac_f77_werror_flag"
 
15669
                         || test ! -s conftest.err'
 
15670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15671
  (eval $ac_try) 2>&5
 
15672
  ac_status=$?
 
15673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15674
  (exit $ac_status); }; } &&
 
15675
         { ac_try='test -s conftest$ac_exeext'
 
15676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15677
  (eval $ac_try) 2>&5
 
15678
  ac_status=$?
 
15679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15680
  (exit $ac_status); }; }; then
 
15681
 
 
15682
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15683
}'`
 
15684
# Check for a 64-bit object if we didn't find anything.
 
15685
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; }
 
15686
}'`; fi
 
15687
else
 
15688
  echo "$as_me: failed program was:" >&5
 
15689
sed 's/^/| /' conftest.$ac_ext >&5
 
15690
 
 
15691
fi
 
15692
rm -f conftest.err conftest.$ac_objext \
 
15693
      conftest$ac_exeext conftest.$ac_ext
 
15694
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15695
 
 
15696
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15697
          # Warning - without using the other run time loading flags,
 
15698
          # -berok will link without error, but may produce a broken library.
 
15699
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15700
          allow_undefined_flag_F77=' ${wl}-berok'
 
15701
          # -bexpall does not export symbols beginning with underscore (_)
 
15702
          always_export_symbols_F77=yes
 
15703
          # Exported symbols can be pulled into shared objects from archives
 
15704
          whole_archive_flag_spec_F77=' '
 
15705
          archive_cmds_need_lc_F77=yes
 
15706
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15707
          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'
 
15708
        fi
 
15709
      fi
 
15710
      ;;
 
15711
 
 
15712
    amigaos*)
 
15713
      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)'
 
15714
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15715
      hardcode_minus_L_F77=yes
 
15716
      # see comment about different semantics on the GNU ld section
 
15717
      ld_shlibs_F77=no
 
15718
      ;;
 
15719
 
 
15720
    bsdi4*)
 
15721
      export_dynamic_flag_spec_F77=-rdynamic
 
15722
      ;;
 
15723
 
 
15724
    cygwin* | mingw* | pw32*)
 
15725
      # When not using gcc, we currently assume that we are using
 
15726
      # Microsoft Visual C++.
 
15727
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15728
      # no search path for DLLs.
 
15729
      hardcode_libdir_flag_spec_F77=' '
 
15730
      allow_undefined_flag_F77=unsupported
 
15731
      # Tell ltmain to make .lib files, not .a files.
 
15732
      libext=lib
 
15733
      # Tell ltmain to make .dll files, not .so files.
 
15734
      shrext=".dll"
 
15735
      # FIXME: Setting linknames here is a bad hack.
 
15736
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15737
      # The linker will automatically build a .lib file if we build a DLL.
 
15738
      old_archive_From_new_cmds_F77='true'
 
15739
      # FIXME: Should let the user specify the lib program.
 
15740
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15741
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15742
      enable_shared_with_static_runtimes_F77=yes
 
15743
      ;;
 
15744
 
 
15745
    darwin* | rhapsody*)
 
15746
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
15747
      archive_cmds_need_lc_F77=no
 
15748
      case "$host_os" in
 
15749
      rhapsody* | darwin1.[012])
 
15750
        allow_undefined_flag_F77='-undefined suppress'
 
15751
        ;;
 
15752
      *) # Darwin 1.3 on
 
15753
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15754
        ;;
 
15755
      esac
 
15756
      # FIXME: Relying on posixy $() will cause problems for
 
15757
      #        cross-compilation, but unfortunately the echo tests do not
 
15758
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
15759
      #        `"' quotes if we put them in here... so don't!
 
15760
        lt_int_apple_cc_single_mod=no
 
15761
        output_verbose_link_cmd='echo'
 
15762
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15763
          lt_int_apple_cc_single_mod=yes
 
15764
        fi
 
15765
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15766
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15767
        else
 
15768
        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'
 
15769
      fi
 
15770
      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
15771
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15772
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15773
          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}'
 
15774
        else
 
15775
          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}'
 
15776
        fi
 
15777
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15778
      hardcode_direct_F77=no
 
15779
      hardcode_automatic_F77=yes
 
15780
      hardcode_shlibpath_var_F77=unsupported
 
15781
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15782
      link_all_deplibs_F77=yes
 
15783
    fi
 
15784
      ;;
 
15785
 
 
15786
    dgux*)
 
15787
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15788
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15789
      hardcode_shlibpath_var_F77=no
 
15790
      ;;
 
15791
 
 
15792
    freebsd1*)
 
15793
      ld_shlibs_F77=no
 
15794
      ;;
 
15795
 
 
15796
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15797
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15798
    # does not break anything, and helps significantly (at the cost of a little
 
15799
    # extra space).
 
15800
    freebsd2.2*)
 
15801
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15802
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15803
      hardcode_direct_F77=yes
 
15804
      hardcode_shlibpath_var_F77=no
 
15805
      ;;
 
15806
 
 
15807
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15808
    freebsd2*)
 
15809
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15810
      hardcode_direct_F77=yes
 
15811
      hardcode_minus_L_F77=yes
 
15812
      hardcode_shlibpath_var_F77=no
 
15813
      ;;
 
15814
 
 
15815
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15816
    freebsd*)
 
15817
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15818
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15819
      hardcode_direct_F77=yes
 
15820
      hardcode_shlibpath_var_F77=no
 
15821
      ;;
 
15822
 
 
15823
    hpux9*)
 
15824
      if test "$GCC" = yes; then
 
15825
        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'
 
15826
      else
 
15827
        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'
 
15828
      fi
 
15829
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15830
      hardcode_libdir_separator_F77=:
 
15831
      hardcode_direct_F77=yes
 
15832
 
 
15833
      # hardcode_minus_L: Not really in the search PATH,
 
15834
      # but as the default location of the library.
 
15835
      hardcode_minus_L_F77=yes
 
15836
      export_dynamic_flag_spec_F77='${wl}-E'
 
15837
      ;;
 
15838
 
 
15839
    hpux10* | hpux11*)
 
15840
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15841
        case "$host_cpu" in
 
15842
        hppa*64*|ia64*)
 
15843
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15844
          ;;
 
15845
        *)
 
15846
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15847
          ;;
 
15848
        esac
 
15849
      else
 
15850
        case "$host_cpu" in
 
15851
        hppa*64*|ia64*)
 
15852
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15853
          ;;
 
15854
        *)
 
15855
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15856
          ;;
 
15857
        esac
 
15858
      fi
 
15859
      if test "$with_gnu_ld" = no; then
 
15860
        case "$host_cpu" in
 
15861
        hppa*64*)
 
15862
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15863
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15864
          hardcode_libdir_separator_F77=:
 
15865
          hardcode_direct_F77=no
 
15866
          hardcode_shlibpath_var_F77=no
 
15867
          ;;
 
15868
        ia64*)
 
15869
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15870
          hardcode_direct_F77=no
 
15871
          hardcode_shlibpath_var_F77=no
 
15872
 
 
15873
          # hardcode_minus_L: Not really in the search PATH,
 
15874
          # but as the default location of the library.
 
15875
          hardcode_minus_L_F77=yes
 
15876
          ;;
 
15877
        *)
 
15878
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15879
          hardcode_libdir_separator_F77=:
 
15880
          hardcode_direct_F77=yes
 
15881
          export_dynamic_flag_spec_F77='${wl}-E'
 
15882
 
 
15883
          # hardcode_minus_L: Not really in the search PATH,
 
15884
          # but as the default location of the library.
 
15885
          hardcode_minus_L_F77=yes
 
15886
          ;;
 
15887
        esac
 
15888
      fi
 
15889
      ;;
 
15890
 
 
15891
    irix5* | irix6* | nonstopux*)
 
15892
      if test "$GCC" = yes; then
 
15893
        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'
 
15894
      else
 
15895
        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'
 
15896
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15897
      fi
 
15898
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15899
      hardcode_libdir_separator_F77=:
 
15900
      link_all_deplibs_F77=yes
 
15901
      ;;
 
15902
 
 
15903
    netbsd*)
 
15904
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15905
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15906
      else
 
15907
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15908
      fi
 
15909
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15910
      hardcode_direct_F77=yes
 
15911
      hardcode_shlibpath_var_F77=no
 
15912
      ;;
 
15913
 
 
15914
    newsos6)
 
15915
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15916
      hardcode_direct_F77=yes
 
15917
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15918
      hardcode_libdir_separator_F77=:
 
15919
      hardcode_shlibpath_var_F77=no
 
15920
      ;;
 
15921
 
 
15922
    openbsd*)
 
15923
      hardcode_direct_F77=yes
 
15924
      hardcode_shlibpath_var_F77=no
 
15925
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15926
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15927
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15928
        export_dynamic_flag_spec_F77='${wl}-E'
 
15929
      else
 
15930
       case $host_os in
 
15931
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15932
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15933
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15934
           ;;
 
15935
         *)
 
15936
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15937
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15938
           ;;
 
15939
       esac
 
15940
      fi
 
15941
      ;;
 
15942
 
 
15943
    os2*)
 
15944
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15945
      hardcode_minus_L_F77=yes
 
15946
      allow_undefined_flag_F77=unsupported
 
15947
      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'
 
15948
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15949
      ;;
 
15950
 
 
15951
    osf3*)
 
15952
      if test "$GCC" = yes; then
 
15953
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15954
        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'
 
15955
      else
 
15956
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15957
        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'
 
15958
      fi
 
15959
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15960
      hardcode_libdir_separator_F77=:
 
15961
      ;;
 
15962
 
 
15963
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15964
      if test "$GCC" = yes; then
 
15965
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15966
        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'
 
15967
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15968
      else
 
15969
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15970
        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'
 
15971
        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~
 
15972
        $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'
 
15973
 
 
15974
        # Both c and cxx compiler support -rpath directly
 
15975
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15976
      fi
 
15977
      hardcode_libdir_separator_F77=:
 
15978
      ;;
 
15979
 
 
15980
    sco3.2v5*)
 
15981
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15982
      hardcode_shlibpath_var_F77=no
 
15983
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15984
      runpath_var=LD_RUN_PATH
 
15985
      hardcode_runpath_var=yes
 
15986
      ;;
 
15987
 
 
15988
    solaris*)
 
15989
      no_undefined_flag_F77=' -z text'
 
15990
      if test "$GCC" = yes; then
 
15991
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15992
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15993
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15994
      else
 
15995
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15996
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15997
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15998
      fi
 
15999
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16000
      hardcode_shlibpath_var_F77=no
 
16001
      case $host_os in
 
16002
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16003
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16004
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16005
      esac
 
16006
      link_all_deplibs_F77=yes
 
16007
      ;;
 
16008
 
 
16009
    sunos4*)
 
16010
      if test "x$host_vendor" = xsequent; then
 
16011
        # Use $CC to link under sequent, because it throws in some extra .o
 
16012
        # files that make .init and .fini sections work.
 
16013
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16014
      else
 
16015
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16016
      fi
 
16017
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16018
      hardcode_direct_F77=yes
 
16019
      hardcode_minus_L_F77=yes
 
16020
      hardcode_shlibpath_var_F77=no
 
16021
      ;;
 
16022
 
 
16023
    sysv4)
 
16024
      case $host_vendor in
 
16025
        sni)
 
16026
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16027
          hardcode_direct_F77=yes # is this really true???
 
16028
        ;;
 
16029
        siemens)
 
16030
          ## LD is ld it makes a PLAMLIB
 
16031
          ## CC just makes a GrossModule.
 
16032
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16033
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16034
          hardcode_direct_F77=no
 
16035
        ;;
 
16036
        motorola)
 
16037
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16038
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16039
        ;;
 
16040
      esac
 
16041
      runpath_var='LD_RUN_PATH'
 
16042
      hardcode_shlibpath_var_F77=no
 
16043
      ;;
 
16044
 
 
16045
    sysv4.3*)
 
16046
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16047
      hardcode_shlibpath_var_F77=no
 
16048
      export_dynamic_flag_spec_F77='-Bexport'
 
16049
      ;;
 
16050
 
 
16051
    sysv4*MP*)
 
16052
      if test -d /usr/nec; then
 
16053
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16054
        hardcode_shlibpath_var_F77=no
 
16055
        runpath_var=LD_RUN_PATH
 
16056
        hardcode_runpath_var=yes
 
16057
        ld_shlibs_F77=yes
 
16058
      fi
 
16059
      ;;
 
16060
 
 
16061
    sysv4.2uw2*)
 
16062
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16063
      hardcode_direct_F77=yes
 
16064
      hardcode_minus_L_F77=no
 
16065
      hardcode_shlibpath_var_F77=no
 
16066
      hardcode_runpath_var=yes
 
16067
      runpath_var=LD_RUN_PATH
 
16068
      ;;
 
16069
 
 
16070
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16071
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
16072
      if test "$GCC" = yes; then
 
16073
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16074
      else
 
16075
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16076
      fi
 
16077
      runpath_var='LD_RUN_PATH'
 
16078
      hardcode_shlibpath_var_F77=no
 
16079
      ;;
 
16080
 
 
16081
    sysv5*)
 
16082
      no_undefined_flag_F77=' -z text'
 
16083
      # $CC -shared without GNU ld will not create a library from C++
 
16084
      # object files and a static libstdc++, better avoid it by now
 
16085
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16086
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16087
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16088
      hardcode_libdir_flag_spec_F77=
 
16089
      hardcode_shlibpath_var_F77=no
 
16090
      runpath_var='LD_RUN_PATH'
 
16091
      ;;
 
16092
 
 
16093
    uts4*)
 
16094
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16095
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16096
      hardcode_shlibpath_var_F77=no
 
16097
      ;;
 
16098
 
 
16099
    *)
 
16100
      ld_shlibs_F77=no
 
16101
      ;;
 
16102
    esac
 
16103
  fi
 
16104
 
 
16105
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16106
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
16107
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16108
 
 
16109
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16110
if test "$GCC" = yes; then
 
16111
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16112
fi
 
16113
 
 
16114
#
 
16115
# Do we need to explicitly link libc?
 
16116
#
 
16117
case "x$archive_cmds_need_lc_F77" in
 
16118
x|xyes)
 
16119
  # Assume -lc should be added
 
16120
  archive_cmds_need_lc_F77=yes
 
16121
 
 
16122
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16123
    case $archive_cmds_F77 in
 
16124
    *'~'*)
 
16125
      # FIXME: we may have to deal with multi-command sequences.
 
16126
      ;;
 
16127
    '$CC '*)
 
16128
      # Test whether the compiler implicitly links with -lc since on some
 
16129
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16130
      # to ld, don't add -lc before -lgcc.
 
16131
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16132
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16133
      $rm conftest*
 
16134
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16135
 
 
16136
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16137
  (eval $ac_compile) 2>&5
 
16138
  ac_status=$?
 
16139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16140
  (exit $ac_status); } 2>conftest.err; then
 
16141
        soname=conftest
 
16142
        lib=conftest
 
16143
        libobjs=conftest.$ac_objext
 
16144
        deplibs=
 
16145
        wl=$lt_prog_compiler_wl_F77
 
16146
        compiler_flags=-v
 
16147
        linker_flags=-v
 
16148
        verstring=
 
16149
        output_objdir=.
 
16150
        libname=conftest
 
16151
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16152
        allow_undefined_flag_F77=
 
16153
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16154
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16155
  ac_status=$?
 
16156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16157
  (exit $ac_status); }
 
16158
        then
 
16159
          archive_cmds_need_lc_F77=no
 
16160
        else
 
16161
          archive_cmds_need_lc_F77=yes
 
16162
        fi
 
16163
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16164
      else
 
16165
        cat conftest.err 1>&5
 
16166
      fi
 
16167
      $rm conftest*
 
16168
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16169
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
16170
      ;;
 
16171
    esac
 
16172
  fi
 
16173
  ;;
 
16174
esac
 
16175
 
 
16176
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16177
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16178
hardcode_action_F77=
 
16179
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16180
   test -n "$runpath_var F77" || \
 
16181
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
16182
 
 
16183
  # We can hardcode non-existant directories.
 
16184
  if test "$hardcode_direct_F77" != no &&
 
16185
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16186
     # have to relink, otherwise we might link with an installed library
 
16187
     # when we should be linking with a yet-to-be-installed one
 
16188
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16189
     test "$hardcode_minus_L_F77" != no; then
 
16190
    # Linking always hardcodes the temporary library directory.
 
16191
    hardcode_action_F77=relink
 
16192
  else
 
16193
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16194
    hardcode_action_F77=immediate
 
16195
  fi
 
16196
else
 
16197
  # We cannot hardcode anything, or else we can only hardcode existing
 
16198
  # directories.
 
16199
  hardcode_action_F77=unsupported
 
16200
fi
 
16201
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16202
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16203
 
 
16204
if test "$hardcode_action_F77" = relink; then
 
16205
  # Fast installation is not supported
 
16206
  enable_fast_install=no
 
16207
elif test "$shlibpath_overrides_runpath" = yes ||
 
16208
     test "$enable_shared" = no; then
 
16209
  # Fast installation is not necessary
 
16210
  enable_fast_install=needless
 
16211
fi
 
16212
 
 
16213
striplib=
 
16214
old_striplib=
 
16215
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16216
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16217
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16218
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16219
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16220
  echo "$as_me:$LINENO: result: yes" >&5
 
16221
echo "${ECHO_T}yes" >&6
 
16222
else
 
16223
# FIXME - insert some real tests, host_os isn't really good enough
 
16224
  case $host_os in
 
16225
   darwin*)
 
16226
       if test -n "$STRIP" ; then
 
16227
         striplib="$STRIP -x"
 
16228
         echo "$as_me:$LINENO: result: yes" >&5
 
16229
echo "${ECHO_T}yes" >&6
 
16230
       else
 
16231
  echo "$as_me:$LINENO: result: no" >&5
 
16232
echo "${ECHO_T}no" >&6
 
16233
fi
 
16234
       ;;
 
16235
   *)
 
16236
  echo "$as_me:$LINENO: result: no" >&5
 
16237
echo "${ECHO_T}no" >&6
 
16238
    ;;
 
16239
  esac
 
16240
fi
 
16241
 
 
16242
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16243
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16244
library_names_spec=
 
16245
libname_spec='lib$name'
 
16246
soname_spec=
 
16247
shrext=".so"
 
16248
postinstall_cmds=
 
16249
postuninstall_cmds=
 
16250
finish_cmds=
 
16251
finish_eval=
 
16252
shlibpath_var=
 
16253
shlibpath_overrides_runpath=unknown
 
16254
version_type=none
 
16255
dynamic_linker="$host_os ld.so"
 
16256
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16257
if test "$GCC" = yes; then
 
16258
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16259
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16260
    # if the path contains ";" then we assume it to be the separator
 
16261
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16262
    # assumed that no part of a normal pathname contains ";" but that should
 
16263
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16264
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16265
  else
 
16266
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16267
  fi
 
16268
else
 
16269
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16270
fi
 
16271
need_lib_prefix=unknown
 
16272
hardcode_into_libs=no
 
16273
 
 
16274
# when you set need_version to no, make sure it does not cause -set_version
 
16275
# flags to be left without arguments
 
16276
need_version=unknown
 
16277
 
 
16278
case $host_os in
 
16279
aix3*)
 
16280
  version_type=linux
 
16281
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16282
  shlibpath_var=LIBPATH
 
16283
 
 
16284
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16285
  soname_spec='${libname}${release}${shared_ext}$major'
 
16286
  ;;
 
16287
 
 
16288
aix4* | aix5*)
 
16289
  version_type=linux
 
16290
  need_lib_prefix=no
 
16291
  need_version=no
 
16292
  hardcode_into_libs=yes
 
16293
  if test "$host_cpu" = ia64; then
 
16294
    # AIX 5 supports IA64
 
16295
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16296
    shlibpath_var=LD_LIBRARY_PATH
 
16297
  else
 
16298
    # With GCC up to 2.95.x, collect2 would create an import file
 
16299
    # for dependence libraries.  The import file would start with
 
16300
    # the line `#! .'.  This would cause the generated library to
 
16301
    # depend on `.', always an invalid library.  This was fixed in
 
16302
    # development snapshots of GCC prior to 3.0.
 
16303
    case $host_os in
 
16304
      aix4 | aix4.[01] | aix4.[01].*)
 
16305
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16306
           echo ' yes '
 
16307
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16308
        :
 
16309
      else
 
16310
        can_build_shared=no
 
16311
      fi
 
16312
      ;;
 
16313
    esac
 
16314
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16315
    # soname into executable. Probably we can add versioning support to
 
16316
    # collect2, so additional links can be useful in future.
 
16317
    if test "$aix_use_runtimelinking" = yes; then
 
16318
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16319
      # instead of lib<name>.a to let people know that these are not
 
16320
      # typical AIX shared libraries.
 
16321
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16322
    else
 
16323
      # We preserve .a as extension for shared libraries through AIX4.2
 
16324
      # and later when we are not doing run time linking.
 
16325
      library_names_spec='${libname}${release}.a $libname.a'
 
16326
      soname_spec='${libname}${release}${shared_ext}$major'
 
16327
    fi
 
16328
    shlibpath_var=LIBPATH
 
16329
  fi
 
16330
  ;;
 
16331
 
 
16332
amigaos*)
 
16333
  library_names_spec='$libname.ixlibrary $libname.a'
 
16334
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16335
  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'
 
16336
  ;;
 
16337
 
 
16338
beos*)
 
16339
  library_names_spec='${libname}${shared_ext}'
 
16340
  dynamic_linker="$host_os ld.so"
 
16341
  shlibpath_var=LIBRARY_PATH
 
16342
  ;;
 
16343
 
 
16344
bsdi4*)
 
16345
  version_type=linux
 
16346
  need_version=no
 
16347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16348
  soname_spec='${libname}${release}${shared_ext}$major'
 
16349
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16350
  shlibpath_var=LD_LIBRARY_PATH
 
16351
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16352
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16353
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16354
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16355
  # libtool to hard-code these into programs
 
16356
  ;;
 
16357
 
 
16358
cygwin* | mingw* | pw32*)
 
16359
  version_type=windows
 
16360
  shrext=".dll"
 
16361
  need_version=no
 
16362
  need_lib_prefix=no
 
16363
 
 
16364
  case $GCC,$host_os in
 
16365
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16366
    library_names_spec='$libname.dll.a'
 
16367
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16368
    postinstall_cmds='base_file=`basename \${file}`~
 
16369
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16370
      dldir=$destdir/`dirname \$dlpath`~
 
16371
      test -d \$dldir || mkdir -p \$dldir~
 
16372
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16373
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16374
      dlpath=$dir/\$dldll~
 
16375
       $rm \$dlpath'
 
16376
    shlibpath_overrides_runpath=yes
 
16377
 
 
16378
    case $host_os in
 
16379
    cygwin*)
 
16380
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16381
      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
16382
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
16383
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16384
      ;;
 
16385
    mingw*)
 
16386
      # MinGW DLLs use traditional 'lib' prefix
 
16387
      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
16388
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
16389
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16390
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16391
        # It is most probably a Windows format PATH printed by
 
16392
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16393
        # path with ; separators, and with drive letters. We can handle the
 
16394
        # drive letters (cygwin fileutils understands them), so leave them,
 
16395
        # especially as we might pass files found there to a mingw objdump,
 
16396
        # which wouldn't understand a cygwinified path. Ahh.
 
16397
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16398
      else
 
16399
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16400
      fi
 
16401
      ;;
 
16402
    pw32*)
 
16403
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16404
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16405
      ;;
 
16406
    esac
 
16407
    ;;
 
16408
 
 
16409
  *)
 
16410
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16411
    ;;
 
16412
  esac
 
16413
  dynamic_linker='Win32 ld.exe'
 
16414
  # FIXME: first we should search . and the directory the executable is in
 
16415
  shlibpath_var=PATH
 
16416
  ;;
 
16417
 
 
16418
darwin* | rhapsody*)
 
16419
  dynamic_linker="$host_os dyld"
 
16420
  version_type=darwin
 
16421
  need_lib_prefix=no
 
16422
  need_version=no
 
16423
  # FIXME: Relying on posixy $() will cause problems for
 
16424
  #        cross-compilation, but unfortunately the echo tests do not
 
16425
  #        yet detect zsh echo's removal of \ escapes.
 
16426
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16427
  soname_spec='${libname}${release}${major}$shared_ext'
 
16428
  shlibpath_overrides_runpath=yes
 
16429
  shlibpath_var=DYLD_LIBRARY_PATH
 
16430
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
16431
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16432
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
16433
  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"`
 
16434
  fi
 
16435
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16436
  ;;
 
16437
 
 
16438
dgux*)
 
16439
  version_type=linux
 
16440
  need_lib_prefix=no
 
16441
  need_version=no
 
16442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16443
  soname_spec='${libname}${release}${shared_ext}$major'
 
16444
  shlibpath_var=LD_LIBRARY_PATH
 
16445
  ;;
 
16446
 
 
16447
freebsd1*)
 
16448
  dynamic_linker=no
 
16449
  ;;
 
16450
 
 
16451
freebsd*)
 
16452
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16453
  version_type=freebsd-$objformat
 
16454
  case $version_type in
 
16455
    freebsd-elf*)
 
16456
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16457
      need_version=no
 
16458
      need_lib_prefix=no
 
16459
      ;;
 
16460
    freebsd-*)
 
16461
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16462
      need_version=yes
 
16463
      ;;
 
16464
  esac
 
16465
  shlibpath_var=LD_LIBRARY_PATH
 
16466
  case $host_os in
 
16467
  freebsd2*)
 
16468
    shlibpath_overrides_runpath=yes
 
16469
    ;;
 
16470
  freebsd3.01* | freebsdelf3.01*)
 
16471
    shlibpath_overrides_runpath=yes
 
16472
    hardcode_into_libs=yes
 
16473
    ;;
 
16474
  *) # from 3.2 on
 
16475
    shlibpath_overrides_runpath=no
 
16476
    hardcode_into_libs=yes
 
16477
    ;;
 
16478
  esac
 
16479
  ;;
 
16480
 
 
16481
gnu*)
 
16482
  version_type=linux
 
16483
  need_lib_prefix=no
 
16484
  need_version=no
 
16485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16486
  soname_spec='${libname}${release}${shared_ext}$major'
 
16487
  shlibpath_var=LD_LIBRARY_PATH
 
16488
  hardcode_into_libs=yes
 
16489
  ;;
 
16490
 
 
16491
hpux9* | hpux10* | hpux11*)
 
16492
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16493
  # link against other versions.
 
16494
  version_type=sunos
 
16495
  need_lib_prefix=no
 
16496
  need_version=no
 
16497
  case "$host_cpu" in
 
16498
  ia64*)
 
16499
    shrext='.so'
 
16500
    hardcode_into_libs=yes
 
16501
    dynamic_linker="$host_os dld.so"
 
16502
    shlibpath_var=LD_LIBRARY_PATH
 
16503
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16504
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16505
    soname_spec='${libname}${release}${shared_ext}$major'
 
16506
    if test "X$HPUX_IA64_MODE" = X32; then
 
16507
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16508
    else
 
16509
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16510
    fi
 
16511
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16512
    ;;
 
16513
   hppa*64*)
 
16514
     shrext='.sl'
 
16515
     hardcode_into_libs=yes
 
16516
     dynamic_linker="$host_os dld.sl"
 
16517
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16518
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16519
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16520
     soname_spec='${libname}${release}${shared_ext}$major'
 
16521
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16522
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16523
     ;;
 
16524
   *)
 
16525
    shrext='.sl'
 
16526
    dynamic_linker="$host_os dld.sl"
 
16527
    shlibpath_var=SHLIB_PATH
 
16528
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16529
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16530
    soname_spec='${libname}${release}${shared_ext}$major'
 
16531
    ;;
 
16532
  esac
 
16533
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16534
  postinstall_cmds='chmod 555 $lib'
 
16535
  ;;
 
16536
 
 
16537
irix5* | irix6* | nonstopux*)
 
16538
  case $host_os in
 
16539
    nonstopux*) version_type=nonstopux ;;
 
16540
    *)
 
16541
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16542
                version_type=linux
 
16543
        else
 
16544
                version_type=irix
 
16545
        fi ;;
 
16546
  esac
 
16547
  need_lib_prefix=no
 
16548
  need_version=no
 
16549
  soname_spec='${libname}${release}${shared_ext}$major'
 
16550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16551
  case $host_os in
 
16552
  irix5* | nonstopux*)
 
16553
    libsuff= shlibsuff=
 
16554
    ;;
 
16555
  *)
 
16556
    case $LD in # libtool.m4 will add one of these switches to LD
 
16557
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16558
      libsuff= shlibsuff= libmagic=32-bit;;
 
16559
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16560
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16561
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16562
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16563
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16564
    esac
 
16565
    ;;
 
16566
  esac
 
16567
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16568
  shlibpath_overrides_runpath=no
 
16569
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16570
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16571
  hardcode_into_libs=yes
 
16572
  ;;
 
16573
 
 
16574
# No shared lib support for Linux oldld, aout, or coff.
 
16575
linux*oldld* | linux*aout* | linux*coff*)
 
16576
  dynamic_linker=no
 
16577
  ;;
 
16578
 
 
16579
# This must be Linux ELF.
 
16580
linux*)
 
16581
  version_type=linux
 
16582
  need_lib_prefix=no
 
16583
  need_version=no
 
16584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16585
  soname_spec='${libname}${release}${shared_ext}$major'
 
16586
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16587
  shlibpath_var=LD_LIBRARY_PATH
 
16588
  shlibpath_overrides_runpath=no
 
16589
  # This implies no fast_install, which is unacceptable.
 
16590
  # Some rework will be needed to allow for fast_install
 
16591
  # before this can be enabled.
 
16592
  hardcode_into_libs=yes
 
16593
 
 
16594
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16595
  # powerpc, because MkLinux only supported shared libraries with the
 
16596
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16597
  # most powerpc-linux boxes support dynamic linking these days and
 
16598
  # people can always --disable-shared, the test was removed, and we
 
16599
  # assume the GNU/Linux dynamic linker is in use.
 
16600
  dynamic_linker='GNU/Linux ld.so'
 
16601
  ;;
 
16602
 
 
16603
netbsd*)
 
16604
  version_type=sunos
 
16605
  need_lib_prefix=no
 
16606
  need_version=no
 
16607
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16608
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16609
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16610
    dynamic_linker='NetBSD (a.out) ld.so'
 
16611
  else
 
16612
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
16613
    soname_spec='${libname}${release}${shared_ext}$major'
 
16614
    dynamic_linker='NetBSD ld.elf_so'
 
16615
  fi
 
16616
  shlibpath_var=LD_LIBRARY_PATH
 
16617
  shlibpath_overrides_runpath=yes
 
16618
  hardcode_into_libs=yes
 
16619
  ;;
 
16620
 
 
16621
newsos6)
 
16622
  version_type=linux
 
16623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16624
  shlibpath_var=LD_LIBRARY_PATH
 
16625
  shlibpath_overrides_runpath=yes
 
16626
  ;;
 
16627
 
 
16628
nto-qnx)
 
16629
  version_type=linux
 
16630
  need_lib_prefix=no
 
16631
  need_version=no
 
16632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16633
  soname_spec='${libname}${release}${shared_ext}$major'
 
16634
  shlibpath_var=LD_LIBRARY_PATH
 
16635
  shlibpath_overrides_runpath=yes
 
16636
  ;;
 
16637
 
 
16638
openbsd*)
 
16639
  version_type=sunos
 
16640
  need_lib_prefix=no
 
16641
  need_version=no
 
16642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16643
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16644
  shlibpath_var=LD_LIBRARY_PATH
 
16645
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16646
    case $host_os in
 
16647
      openbsd2.[89] | openbsd2.[89].*)
 
16648
        shlibpath_overrides_runpath=no
 
16649
        ;;
 
16650
      *)
 
16651
        shlibpath_overrides_runpath=yes
 
16652
        ;;
 
16653
      esac
 
16654
  else
 
16655
    shlibpath_overrides_runpath=yes
 
16656
  fi
 
16657
  ;;
 
16658
 
 
16659
os2*)
 
16660
  libname_spec='$name'
 
16661
  shrext=".dll"
 
16662
  need_lib_prefix=no
 
16663
  library_names_spec='$libname${shared_ext} $libname.a'
 
16664
  dynamic_linker='OS/2 ld.exe'
 
16665
  shlibpath_var=LIBPATH
 
16666
  ;;
 
16667
 
 
16668
osf3* | osf4* | osf5*)
 
16669
  version_type=osf
 
16670
  need_lib_prefix=no
 
16671
  need_version=no
 
16672
  soname_spec='${libname}${release}${shared_ext}$major'
 
16673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16674
  shlibpath_var=LD_LIBRARY_PATH
 
16675
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16676
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16677
  ;;
 
16678
 
 
16679
sco3.2v5*)
 
16680
  version_type=osf
 
16681
  soname_spec='${libname}${release}${shared_ext}$major'
 
16682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16683
  shlibpath_var=LD_LIBRARY_PATH
 
16684
  ;;
 
16685
 
 
16686
solaris*)
 
16687
  version_type=linux
 
16688
  need_lib_prefix=no
 
16689
  need_version=no
 
16690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16691
  soname_spec='${libname}${release}${shared_ext}$major'
 
16692
  shlibpath_var=LD_LIBRARY_PATH
 
16693
  shlibpath_overrides_runpath=yes
 
16694
  hardcode_into_libs=yes
 
16695
  # ldd complains unless libraries are executable
 
16696
  postinstall_cmds='chmod +x $lib'
 
16697
  ;;
 
16698
 
 
16699
sunos4*)
 
16700
  version_type=sunos
 
16701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16702
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16703
  shlibpath_var=LD_LIBRARY_PATH
 
16704
  shlibpath_overrides_runpath=yes
 
16705
  if test "$with_gnu_ld" = yes; then
 
16706
    need_lib_prefix=no
 
16707
  fi
 
16708
  need_version=yes
 
16709
  ;;
 
16710
 
 
16711
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16712
  version_type=linux
 
16713
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16714
  soname_spec='${libname}${release}${shared_ext}$major'
 
16715
  shlibpath_var=LD_LIBRARY_PATH
 
16716
  case $host_vendor in
 
16717
    sni)
 
16718
      shlibpath_overrides_runpath=no
 
16719
      need_lib_prefix=no
 
16720
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16721
      runpath_var=LD_RUN_PATH
 
16722
      ;;
 
16723
    siemens)
 
16724
      need_lib_prefix=no
 
16725
      ;;
 
16726
    motorola)
 
16727
      need_lib_prefix=no
 
16728
      need_version=no
 
16729
      shlibpath_overrides_runpath=no
 
16730
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16731
      ;;
 
16732
  esac
 
16733
  ;;
 
16734
 
 
16735
sysv4*MP*)
 
16736
  if test -d /usr/nec ;then
 
16737
    version_type=linux
 
16738
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16739
    soname_spec='$libname${shared_ext}.$major'
 
16740
    shlibpath_var=LD_LIBRARY_PATH
 
16741
  fi
 
16742
  ;;
 
16743
 
 
16744
uts4*)
 
16745
  version_type=linux
 
16746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16747
  soname_spec='${libname}${release}${shared_ext}$major'
 
16748
  shlibpath_var=LD_LIBRARY_PATH
 
16749
  ;;
 
16750
 
 
16751
*)
 
16752
  dynamic_linker=no
 
16753
  ;;
 
16754
esac
 
16755
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16756
echo "${ECHO_T}$dynamic_linker" >&6
 
16757
test "$dynamic_linker" = no && can_build_shared=no
 
16758
 
 
16759
 
 
16760
# The else clause should only fire when bootstrapping the
 
16761
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16762
# with your package, and you will get complaints that there are
 
16763
# no rules to generate ltmain.sh.
 
16764
if test -f "$ltmain"; then
 
16765
  # See if we are running on zsh, and set the options which allow our commands through
 
16766
  # without removal of \ escapes.
 
16767
  if test -n "${ZSH_VERSION+set}" ; then
 
16768
    setopt NO_GLOB_SUBST
 
16769
  fi
 
16770
  # Now quote all the things that may contain metacharacters while being
 
16771
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16772
  # variables and quote the copies for generation of the libtool script.
 
16773
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
16774
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16775
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16776
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16777
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16778
    lt_cv_sys_global_symbol_to_c_name_address \
 
16779
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16780
    old_postinstall_cmds old_postuninstall_cmds \
 
16781
    compiler_F77 \
 
16782
    CC_F77 \
 
16783
    LD_F77 \
 
16784
    lt_prog_compiler_wl_F77 \
 
16785
    lt_prog_compiler_pic_F77 \
 
16786
    lt_prog_compiler_static_F77 \
 
16787
    lt_prog_compiler_no_builtin_flag_F77 \
 
16788
    export_dynamic_flag_spec_F77 \
 
16789
    thread_safe_flag_spec_F77 \
 
16790
    whole_archive_flag_spec_F77 \
 
16791
    enable_shared_with_static_runtimes_F77 \
 
16792
    old_archive_cmds_F77 \
 
16793
    old_archive_from_new_cmds_F77 \
 
16794
    predep_objects_F77 \
 
16795
    postdep_objects_F77 \
 
16796
    predeps_F77 \
 
16797
    postdeps_F77 \
 
16798
    compiler_lib_search_path_F77 \
 
16799
    archive_cmds_F77 \
 
16800
    archive_expsym_cmds_F77 \
 
16801
    postinstall_cmds_F77 \
 
16802
    postuninstall_cmds_F77 \
 
16803
    old_archive_from_expsyms_cmds_F77 \
 
16804
    allow_undefined_flag_F77 \
 
16805
    no_undefined_flag_F77 \
 
16806
    export_symbols_cmds_F77 \
 
16807
    hardcode_libdir_flag_spec_F77 \
 
16808
    hardcode_libdir_flag_spec_ld_F77 \
 
16809
    hardcode_libdir_separator_F77 \
 
16810
    hardcode_automatic_F77 \
 
16811
    module_cmds_F77 \
 
16812
    module_expsym_cmds_F77 \
 
16813
    lt_cv_prog_compiler_c_o_F77 \
 
16814
    exclude_expsyms_F77 \
 
16815
    include_expsyms_F77; do
 
16816
 
 
16817
    case $var in
 
16818
    old_archive_cmds_F77 | \
 
16819
    old_archive_from_new_cmds_F77 | \
 
16820
    archive_cmds_F77 | \
 
16821
    archive_expsym_cmds_F77 | \
 
16822
    module_cmds_F77 | \
 
16823
    module_expsym_cmds_F77 | \
 
16824
    old_archive_from_expsyms_cmds_F77 | \
 
16825
    export_symbols_cmds_F77 | \
 
16826
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16827
    postinstall_cmds | postuninstall_cmds | \
 
16828
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16829
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16830
      # Double-quote double-evaled strings.
 
16831
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16832
      ;;
 
16833
    *)
 
16834
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16835
      ;;
 
16836
    esac
 
16837
  done
 
16838
 
 
16839
  case $lt_echo in
 
16840
  *'\$0 --fallback-echo"')
 
16841
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16842
    ;;
 
16843
  esac
 
16844
 
 
16845
cfgfile="$ofile"
 
16846
 
 
16847
  cat <<__EOF__ >> "$cfgfile"
 
16848
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16849
 
 
16850
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16851
 
 
16852
# Shell to use when invoking shell scripts.
 
16853
SHELL=$lt_SHELL
 
16854
 
 
16855
# Whether or not to build shared libraries.
 
16856
build_libtool_libs=$enable_shared
 
16857
 
 
16858
# Whether or not to build static libraries.
 
16859
build_old_libs=$enable_static
 
16860
 
 
16861
# Whether or not to add -lc for building shared libraries.
 
16862
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16863
 
 
16864
# Whether or not to disallow shared libs when runtime libs are static
 
16865
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16866
 
 
16867
# Whether or not to optimize for fast installation.
 
16868
fast_install=$enable_fast_install
 
16869
 
 
16870
# The host system.
 
16871
host_alias=$host_alias
 
16872
host=$host
 
16873
 
 
16874
# An echo program that does not interpret backslashes.
 
16875
echo=$lt_echo
 
16876
 
 
16877
# The archiver.
 
16878
AR=$lt_AR
 
16879
AR_FLAGS=$lt_AR_FLAGS
 
16880
 
 
16881
# A C compiler.
 
16882
LTCC=$lt_LTCC
 
16883
 
 
16884
# A language-specific compiler.
 
16885
CC=$lt_compiler_F77
 
16886
 
 
16887
# Is the compiler the GNU C compiler?
 
16888
with_gcc=$GCC_F77
 
16889
 
 
16890
# An ERE matcher.
 
16891
EGREP=$lt_EGREP
 
16892
 
 
16893
# The linker used to build libraries.
 
16894
LD=$lt_LD_F77
 
16895
 
 
16896
# Whether we need hard or soft links.
 
16897
LN_S=$lt_LN_S
 
16898
 
 
16899
# A BSD-compatible nm program.
 
16900
NM=$lt_NM
 
16901
 
 
16902
# A symbol stripping program
 
16903
STRIP=$STRIP
 
16904
 
 
16905
# Used to examine libraries when file_magic_cmd begins "file"
 
16906
MAGIC_CMD=$MAGIC_CMD
 
16907
 
 
16908
# Used on cygwin: DLL creation program.
 
16909
DLLTOOL="$DLLTOOL"
 
16910
 
 
16911
# Used on cygwin: object dumper.
 
16912
OBJDUMP="$OBJDUMP"
 
16913
 
 
16914
# Used on cygwin: assembler.
 
16915
AS="$AS"
 
16916
 
 
16917
# The name of the directory that contains temporary libtool files.
 
16918
objdir=$objdir
 
16919
 
 
16920
# How to create reloadable object files.
 
16921
reload_flag=$lt_reload_flag
 
16922
reload_cmds=$lt_reload_cmds
 
16923
 
 
16924
# How to pass a linker flag through the compiler.
 
16925
wl=$lt_lt_prog_compiler_wl_F77
 
16926
 
 
16927
# Object file suffix (normally "o").
 
16928
objext="$ac_objext"
 
16929
 
 
16930
# Old archive suffix (normally "a").
 
16931
libext="$libext"
 
16932
 
 
16933
# Shared library suffix (normally ".so").
 
16934
shrext='$shrext'
 
16935
 
 
16936
# Executable file suffix (normally "").
 
16937
exeext="$exeext"
 
16938
 
 
16939
# Additional compiler flags for building library objects.
 
16940
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16941
pic_mode=$pic_mode
 
16942
 
 
16943
# What is the maximum length of a command?
 
16944
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16945
 
 
16946
# Does compiler simultaneously support -c and -o options?
 
16947
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16948
 
 
16949
# Must we lock files when doing compilation ?
 
16950
need_locks=$lt_need_locks
 
16951
 
 
16952
# Do we need the lib prefix for modules?
 
16953
need_lib_prefix=$need_lib_prefix
 
16954
 
 
16955
# Do we need a version for libraries?
 
16956
need_version=$need_version
 
16957
 
 
16958
# Whether dlopen is supported.
 
16959
dlopen_support=$enable_dlopen
 
16960
 
 
16961
# Whether dlopen of programs is supported.
 
16962
dlopen_self=$enable_dlopen_self
 
16963
 
 
16964
# Whether dlopen of statically linked programs is supported.
 
16965
dlopen_self_static=$enable_dlopen_self_static
 
16966
 
 
16967
# Compiler flag to prevent dynamic linking.
 
16968
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16969
 
 
16970
# Compiler flag to turn off builtin functions.
 
16971
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16972
 
 
16973
# Compiler flag to allow reflexive dlopens.
 
16974
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16975
 
 
16976
# Compiler flag to generate shared objects directly from archives.
 
16977
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16978
 
 
16979
# Compiler flag to generate thread-safe objects.
 
16980
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16981
 
 
16982
# Library versioning type.
 
16983
version_type=$version_type
 
16984
 
 
16985
# Format of library name prefix.
 
16986
libname_spec=$lt_libname_spec
 
16987
 
 
16988
# List of archive names.  First name is the real one, the rest are links.
 
16989
# The last name is the one that the linker finds with -lNAME.
 
16990
library_names_spec=$lt_library_names_spec
 
16991
 
 
16992
# The coded name of the library, if different from the real name.
 
16993
soname_spec=$lt_soname_spec
 
16994
 
 
16995
# Commands used to build and install an old-style archive.
 
16996
RANLIB=$lt_RANLIB
 
16997
old_archive_cmds=$lt_old_archive_cmds_F77
 
16998
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16999
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17000
 
 
17001
# Create an old-style archive from a shared archive.
 
17002
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17003
 
 
17004
# Create a temporary old-style archive to link instead of a shared archive.
 
17005
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17006
 
 
17007
# Commands used to build and install a shared archive.
 
17008
archive_cmds=$lt_archive_cmds_F77
 
17009
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17010
postinstall_cmds=$lt_postinstall_cmds
 
17011
postuninstall_cmds=$lt_postuninstall_cmds
 
17012
 
 
17013
# Commands used to build a loadable module (assumed same as above if empty)
 
17014
module_cmds=$lt_module_cmds_F77
 
17015
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17016
 
 
17017
# Commands to strip libraries.
 
17018
old_striplib=$lt_old_striplib
 
17019
striplib=$lt_striplib
 
17020
 
 
17021
# Dependencies to place before the objects being linked to create a
 
17022
# shared library.
 
17023
predep_objects=$lt_predep_objects_F77
 
17024
 
 
17025
# Dependencies to place after the objects being linked to create a
 
17026
# shared library.
 
17027
postdep_objects=$lt_postdep_objects_F77
 
17028
 
 
17029
# Dependencies to place before the objects being linked to create a
 
17030
# shared library.
 
17031
predeps=$lt_predeps_F77
 
17032
 
 
17033
# Dependencies to place after the objects being linked to create a
 
17034
# shared library.
 
17035
postdeps=$lt_postdeps_F77
 
17036
 
 
17037
# The library search path used internally by the compiler when linking
 
17038
# a shared library.
 
17039
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17040
 
 
17041
# Method to check whether dependent libraries are shared objects.
 
17042
deplibs_check_method=$lt_deplibs_check_method
 
17043
 
 
17044
# Command to use when deplibs_check_method == file_magic.
 
17045
file_magic_cmd=$lt_file_magic_cmd
 
17046
 
 
17047
# Flag that allows shared libraries with undefined symbols to be built.
 
17048
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17049
 
 
17050
# Flag that forces no undefined symbols.
 
17051
no_undefined_flag=$lt_no_undefined_flag_F77
 
17052
 
 
17053
# Commands used to finish a libtool library installation in a directory.
 
17054
finish_cmds=$lt_finish_cmds
 
17055
 
 
17056
# Same as above, but a single script fragment to be evaled but not shown.
 
17057
finish_eval=$lt_finish_eval
 
17058
 
 
17059
# Take the output of nm and produce a listing of raw symbols and C names.
 
17060
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17061
 
 
17062
# Transform the output of nm in a proper C declaration
 
17063
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17064
 
 
17065
# Transform the output of nm in a C name address pair
 
17066
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17067
 
 
17068
# This is the shared library runtime path variable.
 
17069
runpath_var=$runpath_var
 
17070
 
 
17071
# This is the shared library path variable.
 
17072
shlibpath_var=$shlibpath_var
 
17073
 
 
17074
# Is shlibpath searched before the hard-coded library search path?
 
17075
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17076
 
 
17077
# How to hardcode a shared library path into an executable.
 
17078
hardcode_action=$hardcode_action_F77
 
17079
 
 
17080
# Whether we should hardcode library paths into libraries.
 
17081
hardcode_into_libs=$hardcode_into_libs
 
17082
 
 
17083
# Flag to hardcode \$libdir into a binary during linking.
 
17084
# This must work even if \$libdir does not exist.
 
17085
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17086
 
 
17087
# If ld is used when linking, flag to hardcode \$libdir into
 
17088
# a binary during linking. This must work even if \$libdir does
 
17089
# not exist.
 
17090
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17091
 
 
17092
# Whether we need a single -rpath flag with a separated argument.
 
17093
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17094
 
 
17095
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17096
# resulting binary.
 
17097
hardcode_direct=$hardcode_direct_F77
 
17098
 
 
17099
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17100
# resulting binary.
 
17101
hardcode_minus_L=$hardcode_minus_L_F77
 
17102
 
 
17103
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17104
# the resulting binary.
 
17105
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17106
 
 
17107
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17108
# and all subsequent libraries and executables linked against it.
 
17109
hardcode_automatic=$hardcode_automatic_F77
 
17110
 
 
17111
# Variables whose values should be saved in libtool wrapper scripts and
 
17112
# restored at relink time.
 
17113
variables_saved_for_relink="$variables_saved_for_relink"
 
17114
 
 
17115
# Whether libtool must link a program against all its dependency libraries.
 
17116
link_all_deplibs=$link_all_deplibs_F77
 
17117
 
 
17118
# Compile-time system search path for libraries
 
17119
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17120
 
 
17121
# Run-time system search path for libraries
 
17122
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17123
 
 
17124
# Fix the shell variable \$srcfile for the compiler.
 
17125
fix_srcfile_path="$fix_srcfile_path_F77"
 
17126
 
 
17127
# Set to yes if exported symbols are required.
 
17128
always_export_symbols=$always_export_symbols_F77
 
17129
 
 
17130
# The commands to list exported symbols.
 
17131
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17132
 
 
17133
# The commands to extract the exported symbol list from a shared archive.
 
17134
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17135
 
 
17136
# Symbols that should not be listed in the preloaded symbols.
 
17137
exclude_expsyms=$lt_exclude_expsyms_F77
 
17138
 
 
17139
# Symbols that must always be exported.
 
17140
include_expsyms=$lt_include_expsyms_F77
 
17141
 
 
17142
# ### END LIBTOOL TAG CONFIG: $tagname
 
17143
 
 
17144
__EOF__
 
17145
 
 
17146
 
 
17147
else
 
17148
  # If there is no Makefile yet, we rely on a make rule to execute
 
17149
  # `config.status --recheck' to rerun these tests and create the
 
17150
  # libtool script then.
 
17151
  test -f Makefile && make "$ltmain"
 
17152
fi
 
17153
 
 
17154
 
 
17155
ac_ext=c
 
17156
ac_cpp='$CPP $CPPFLAGS'
 
17157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17160
 
 
17161
CC="$lt_save_CC"
 
17162
 
 
17163
        else
 
17164
          tagname=""
 
17165
        fi
 
17166
        ;;
 
17167
 
 
17168
      GCJ)
 
17169
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17170
 
 
17171
 
 
17172
 
 
17173
# Source file extension for Java test sources.
 
17174
ac_ext=java
 
17175
 
 
17176
# Object file extension for compiled Java test sources.
 
17177
objext=o
 
17178
objext_GCJ=$objext
 
17179
 
 
17180
# Code to be used in simple compile tests
 
17181
lt_simple_compile_test_code="class foo {}\n"
 
17182
 
 
17183
# Code to be used in simple link tests
 
17184
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
17185
 
 
17186
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17187
 
 
17188
# If no C compiler was specified, use CC.
 
17189
LTCC=${LTCC-"$CC"}
 
17190
 
 
17191
# Allow CC to be a program name with arguments.
 
17192
compiler=$CC
 
17193
 
 
17194
 
 
17195
# Allow CC to be a program name with arguments.
 
17196
lt_save_CC="$CC"
 
17197
CC=${GCJ-"gcj"}
 
17198
compiler=$CC
 
17199
compiler_GCJ=$CC
 
17200
 
 
17201
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17202
archive_cmds_need_lc_GCJ=no
 
17203
 
 
17204
## CAVEAT EMPTOR:
 
17205
## There is no encapsulation within the following macros, do not change
 
17206
## the running order or otherwise move them around unless you know exactly
 
17207
## what you are doing...
 
17208
 
 
17209
lt_prog_compiler_no_builtin_flag_GCJ=
 
17210
 
 
17211
if test "$GCC" = yes; then
 
17212
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17213
 
 
17214
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17215
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17216
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17218
else
 
17219
  lt_cv_prog_compiler_rtti_exceptions=no
 
17220
  ac_outfile=conftest.$ac_objext
 
17221
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17222
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17223
   # Insert the option either (1) after the last *FLAGS variable, or
 
17224
   # (2) before a word containing "conftest.", or (3) at the end.
 
17225
   # Note that $ac_compile itself does not contain backslashes and begins
 
17226
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17227
   # The option is referenced via a variable to avoid confusing sed.
 
17228
   lt_compile=`echo "$ac_compile" | $SED \
 
17229
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17230
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17231
   -e 's:$: $lt_compiler_flag:'`
 
17232
   (eval echo "\"\$as_me:17232: $lt_compile\"" >&5)
 
17233
   (eval "$lt_compile" 2>conftest.err)
 
17234
   ac_status=$?
 
17235
   cat conftest.err >&5
 
17236
   echo "$as_me:17236: \$? = $ac_status" >&5
 
17237
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17238
     # The compiler can only warn and ignore the option if not recognized
 
17239
     # So say no if there are warnings
 
17240
     if test ! -s conftest.err; then
 
17241
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17242
     fi
 
17243
   fi
 
17244
   $rm conftest*
 
17245
 
 
17246
fi
 
17247
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17248
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17249
 
 
17250
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17251
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17252
else
 
17253
    :
 
17254
fi
 
17255
 
 
17256
fi
 
17257
 
 
17258
lt_prog_compiler_wl_GCJ=
 
17259
lt_prog_compiler_pic_GCJ=
 
17260
lt_prog_compiler_static_GCJ=
 
17261
 
 
17262
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17263
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17264
 
 
17265
  if test "$GCC" = yes; then
 
17266
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17267
    lt_prog_compiler_static_GCJ='-static'
 
17268
 
 
17269
    case $host_os in
 
17270
      aix*)
 
17271
      # All AIX code is PIC.
 
17272
      if test "$host_cpu" = ia64; then
 
17273
        # AIX 5 now supports IA64 processor
 
17274
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17275
      fi
 
17276
      ;;
 
17277
 
 
17278
    amigaos*)
 
17279
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17280
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17281
      # like `-m68040'.
 
17282
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17283
      ;;
 
17284
 
 
17285
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17286
      # PIC is the default for these OSes.
 
17287
      ;;
 
17288
 
 
17289
    mingw* | pw32* | os2*)
 
17290
      # This hack is so that the source file can tell whether it is being
 
17291
      # built for inclusion in a dll (and should export symbols for example).
 
17292
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17293
      ;;
 
17294
 
 
17295
    darwin* | rhapsody*)
 
17296
      # PIC is the default on this platform
 
17297
      # Common symbols not allowed in MH_DYLIB files
 
17298
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17299
      ;;
 
17300
 
 
17301
    msdosdjgpp*)
 
17302
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17303
      # on systems that don't support them.
 
17304
      lt_prog_compiler_can_build_shared_GCJ=no
 
17305
      enable_shared=no
 
17306
      ;;
 
17307
 
 
17308
    sysv4*MP*)
 
17309
      if test -d /usr/nec; then
 
17310
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17311
      fi
 
17312
      ;;
 
17313
 
 
17314
    hpux*)
 
17315
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17316
      # not for PA HP-UX.
 
17317
      case "$host_cpu" in
 
17318
      hppa*64*|ia64*)
 
17319
        # +Z the default
 
17320
        ;;
 
17321
      *)
 
17322
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17323
        ;;
 
17324
      esac
 
17325
      ;;
 
17326
 
 
17327
    *)
 
17328
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17329
      ;;
 
17330
    esac
 
17331
  else
 
17332
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17333
    case $host_os in
 
17334
    aix*)
 
17335
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17336
      if test "$host_cpu" = ia64; then
 
17337
        # AIX 5 now supports IA64 processor
 
17338
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17339
      else
 
17340
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17341
      fi
 
17342
      ;;
 
17343
 
 
17344
    mingw* | pw32* | os2*)
 
17345
      # This hack is so that the source file can tell whether it is being
 
17346
      # built for inclusion in a dll (and should export symbols for example).
 
17347
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17348
      ;;
 
17349
 
 
17350
    hpux9* | hpux10* | hpux11*)
 
17351
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17352
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17353
      # not for PA HP-UX.
 
17354
      case "$host_cpu" in
 
17355
      hppa*64*|ia64*)
 
17356
        # +Z the default
 
17357
        ;;
 
17358
      *)
 
17359
        lt_prog_compiler_pic_GCJ='+Z'
 
17360
        ;;
 
17361
      esac
 
17362
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17363
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17364
      ;;
 
17365
 
 
17366
    irix5* | irix6* | nonstopux*)
 
17367
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17368
      # PIC (with -KPIC) is the default.
 
17369
      lt_prog_compiler_static_GCJ='-non_shared'
 
17370
      ;;
 
17371
 
 
17372
    newsos6)
 
17373
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17374
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17375
      ;;
 
17376
 
 
17377
    linux*)
 
17378
      case $CC in
 
17379
      icc|ecc)
 
17380
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17381
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17382
        lt_prog_compiler_static_GCJ='-static'
 
17383
        ;;
 
17384
      ccc)
 
17385
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17386
        # All Alpha code is PIC.
 
17387
        lt_prog_compiler_static_GCJ='-non_shared'
 
17388
        ;;
 
17389
      esac
 
17390
      ;;
 
17391
 
 
17392
    osf3* | osf4* | osf5*)
 
17393
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17394
      # All OSF/1 code is PIC.
 
17395
      lt_prog_compiler_static_GCJ='-non_shared'
 
17396
      ;;
 
17397
 
 
17398
    sco3.2v5*)
 
17399
      lt_prog_compiler_pic_GCJ='-Kpic'
 
17400
      lt_prog_compiler_static_GCJ='-dn'
 
17401
      ;;
 
17402
 
 
17403
    solaris*)
 
17404
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17405
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17406
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17407
      ;;
 
17408
 
 
17409
    sunos4*)
 
17410
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17411
      lt_prog_compiler_pic_GCJ='-PIC'
 
17412
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17413
      ;;
 
17414
 
 
17415
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17416
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17417
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17418
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17419
      ;;
 
17420
 
 
17421
    sysv4*MP*)
 
17422
      if test -d /usr/nec ;then
 
17423
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17424
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17425
      fi
 
17426
      ;;
 
17427
 
 
17428
    uts4*)
 
17429
      lt_prog_compiler_pic_GCJ='-pic'
 
17430
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17431
      ;;
 
17432
 
 
17433
    *)
 
17434
      lt_prog_compiler_can_build_shared_GCJ=no
 
17435
      ;;
 
17436
    esac
 
17437
  fi
 
17438
 
 
17439
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17440
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
17441
 
 
17442
#
 
17443
# Check to make sure the PIC flag actually works.
 
17444
#
 
17445
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17446
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17447
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
17448
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17450
else
 
17451
  lt_prog_compiler_pic_works_GCJ=no
 
17452
  ac_outfile=conftest.$ac_objext
 
17453
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17454
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17455
   # Insert the option either (1) after the last *FLAGS variable, or
 
17456
   # (2) before a word containing "conftest.", or (3) at the end.
 
17457
   # Note that $ac_compile itself does not contain backslashes and begins
 
17458
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17459
   # The option is referenced via a variable to avoid confusing sed.
 
17460
   lt_compile=`echo "$ac_compile" | $SED \
 
17461
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17462
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17463
   -e 's:$: $lt_compiler_flag:'`
 
17464
   (eval echo "\"\$as_me:17464: $lt_compile\"" >&5)
 
17465
   (eval "$lt_compile" 2>conftest.err)
 
17466
   ac_status=$?
 
17467
   cat conftest.err >&5
 
17468
   echo "$as_me:17468: \$? = $ac_status" >&5
 
17469
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17470
     # The compiler can only warn and ignore the option if not recognized
 
17471
     # So say no if there are warnings
 
17472
     if test ! -s conftest.err; then
 
17473
       lt_prog_compiler_pic_works_GCJ=yes
 
17474
     fi
 
17475
   fi
 
17476
   $rm conftest*
 
17477
 
 
17478
fi
 
17479
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17480
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
17481
 
 
17482
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17483
    case $lt_prog_compiler_pic_GCJ in
 
17484
     "" | " "*) ;;
 
17485
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17486
     esac
 
17487
else
 
17488
    lt_prog_compiler_pic_GCJ=
 
17489
     lt_prog_compiler_can_build_shared_GCJ=no
 
17490
fi
 
17491
 
 
17492
fi
 
17493
case "$host_os" in
 
17494
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17495
  *djgpp*)
 
17496
    lt_prog_compiler_pic_GCJ=
 
17497
    ;;
 
17498
  *)
 
17499
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17500
    ;;
 
17501
esac
 
17502
 
 
17503
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17504
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17505
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17507
else
 
17508
  lt_cv_prog_compiler_c_o_GCJ=no
 
17509
   $rm -r conftest 2>/dev/null
 
17510
   mkdir conftest
 
17511
   cd conftest
 
17512
   mkdir out
 
17513
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17514
 
 
17515
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
17516
   # that will create temporary files in the current directory regardless of
 
17517
   # the output directory.  Thus, making CWD read-only will cause this test
 
17518
   # to fail, enabling locking or at least warning the user not to do parallel
 
17519
   # builds.
 
17520
   chmod -w .
 
17521
 
 
17522
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17523
   # Insert the option either (1) after the last *FLAGS variable, or
 
17524
   # (2) before a word containing "conftest.", or (3) at the end.
 
17525
   # Note that $ac_compile itself does not contain backslashes and begins
 
17526
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17527
   lt_compile=`echo "$ac_compile" | $SED \
 
17528
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17529
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17530
   -e 's:$: $lt_compiler_flag:'`
 
17531
   (eval echo "\"\$as_me:17531: $lt_compile\"" >&5)
 
17532
   (eval "$lt_compile" 2>out/conftest.err)
 
17533
   ac_status=$?
 
17534
   cat out/conftest.err >&5
 
17535
   echo "$as_me:17535: \$? = $ac_status" >&5
 
17536
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17537
   then
 
17538
     # The compiler can only warn and ignore the option if not recognized
 
17539
     # So say no if there are warnings
 
17540
     if test ! -s out/conftest.err; then
 
17541
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17542
     fi
 
17543
   fi
 
17544
   chmod u+w .
 
17545
   $rm conftest* out/*
 
17546
   rmdir out
 
17547
   cd ..
 
17548
   rmdir conftest
 
17549
   $rm conftest*
 
17550
 
 
17551
fi
 
17552
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17553
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17554
 
 
17555
 
 
17556
hard_links="nottested"
 
17557
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17558
  # do not overwrite the value of need_locks provided by the user
 
17559
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17560
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17561
  hard_links=yes
 
17562
  $rm conftest*
 
17563
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17564
  touch conftest.a
 
17565
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17566
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17567
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17568
echo "${ECHO_T}$hard_links" >&6
 
17569
  if test "$hard_links" = no; then
 
17570
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17571
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17572
    need_locks=warn
 
17573
  fi
 
17574
else
 
17575
  need_locks=no
 
17576
fi
 
17577
 
 
17578
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17579
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17580
 
 
17581
  runpath_var=
 
17582
  allow_undefined_flag_GCJ=
 
17583
  enable_shared_with_static_runtimes_GCJ=no
 
17584
  archive_cmds_GCJ=
 
17585
  archive_expsym_cmds_GCJ=
 
17586
  old_archive_From_new_cmds_GCJ=
 
17587
  old_archive_from_expsyms_cmds_GCJ=
 
17588
  export_dynamic_flag_spec_GCJ=
 
17589
  whole_archive_flag_spec_GCJ=
 
17590
  thread_safe_flag_spec_GCJ=
 
17591
  hardcode_libdir_flag_spec_GCJ=
 
17592
  hardcode_libdir_flag_spec_ld_GCJ=
 
17593
  hardcode_libdir_separator_GCJ=
 
17594
  hardcode_direct_GCJ=no
 
17595
  hardcode_minus_L_GCJ=no
 
17596
  hardcode_shlibpath_var_GCJ=unsupported
 
17597
  link_all_deplibs_GCJ=unknown
 
17598
  hardcode_automatic_GCJ=no
 
17599
  module_cmds_GCJ=
 
17600
  module_expsym_cmds_GCJ=
 
17601
  always_export_symbols_GCJ=no
 
17602
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17603
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17604
  # included in the symbol list
 
17605
  include_expsyms_GCJ=
 
17606
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17607
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17608
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17609
  # as well as any symbol that contains `d'.
 
17610
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17611
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17612
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17613
  # the symbol is explicitly referenced.  Since portable code cannot
 
17614
  # rely on this symbol name, it's probably fine to never include it in
 
17615
  # preloaded symbol tables.
 
17616
  extract_expsyms_cmds=
 
17617
 
 
17618
  case $host_os in
 
17619
  cygwin* | mingw* | pw32*)
 
17620
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17621
    # When not using gcc, we currently assume that we are using
 
17622
    # Microsoft Visual C++.
 
17623
    if test "$GCC" != yes; then
 
17624
      with_gnu_ld=no
 
17625
    fi
 
17626
    ;;
 
17627
  openbsd*)
 
17628
    with_gnu_ld=no
 
17629
    ;;
 
17630
  esac
 
17631
 
 
17632
  ld_shlibs_GCJ=yes
 
17633
  if test "$with_gnu_ld" = yes; then
 
17634
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17635
    wlarc='${wl}'
 
17636
 
 
17637
    # See if GNU ld supports shared libraries.
 
17638
    case $host_os in
 
17639
    aix3* | aix4* | aix5*)
 
17640
      # On AIX/PPC, the GNU linker is very broken
 
17641
      if test "$host_cpu" != ia64; then
 
17642
        ld_shlibs_GCJ=no
 
17643
        cat <<EOF 1>&2
 
17644
 
 
17645
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17646
*** to be unable to reliably create shared libraries on AIX.
 
17647
*** Therefore, libtool is disabling shared libraries support.  If you
 
17648
*** really care for shared libraries, you may want to modify your PATH
 
17649
*** so that a non-GNU linker is found, and then restart.
 
17650
 
 
17651
EOF
 
17652
      fi
 
17653
      ;;
 
17654
 
 
17655
    amigaos*)
 
17656
      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)'
 
17657
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17658
      hardcode_minus_L_GCJ=yes
 
17659
 
 
17660
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17661
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17662
      # to version 4, is to share data among multiple programs linked
 
17663
      # with the same dynamic library.  Since this doesn't match the
 
17664
      # behavior of shared libraries on other platforms, we can't use
 
17665
      # them.
 
17666
      ld_shlibs_GCJ=no
 
17667
      ;;
 
17668
 
 
17669
    beos*)
 
17670
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17671
        allow_undefined_flag_GCJ=unsupported
 
17672
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17673
        # support --undefined.  This deserves some investigation.  FIXME
 
17674
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17675
      else
 
17676
        ld_shlibs_GCJ=no
 
17677
      fi
 
17678
      ;;
 
17679
 
 
17680
    cygwin* | mingw* | pw32*)
 
17681
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17682
      # as there is no search path for DLLs.
 
17683
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17684
      allow_undefined_flag_GCJ=unsupported
 
17685
      always_export_symbols_GCJ=no
 
17686
      enable_shared_with_static_runtimes_GCJ=yes
 
17687
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17688
 
 
17689
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17690
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
 
17691
        # If the export-symbols file already is a .def file (1st line
 
17692
        # is EXPORTS), use it as is; otherwise, prepend...
 
17693
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17694
          cp $export_symbols $output_objdir/$soname.def;
 
17695
        else
 
17696
          echo EXPORTS > $output_objdir/$soname.def;
 
17697
          cat $export_symbols >> $output_objdir/$soname.def;
 
17698
        fi~
 
17699
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base  ${wl}--out-implib,$lib'
 
17700
      else
 
17701
        ld_shlibs=no
 
17702
      fi
 
17703
      ;;
 
17704
 
 
17705
    netbsd*)
 
17706
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17707
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17708
        wlarc=
 
17709
      else
 
17710
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17711
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17712
      fi
 
17713
      ;;
 
17714
 
 
17715
    solaris* | sysv5*)
 
17716
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17717
        ld_shlibs_GCJ=no
 
17718
        cat <<EOF 1>&2
 
17719
 
 
17720
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17721
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17722
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17723
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17724
*** your PATH or compiler configuration so that the native linker is
 
17725
*** used, and then restart.
 
17726
 
 
17727
EOF
 
17728
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17729
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17730
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17731
      else
 
17732
        ld_shlibs_GCJ=no
 
17733
      fi
 
17734
      ;;
 
17735
 
 
17736
    sunos4*)
 
17737
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17738
      wlarc=
 
17739
      hardcode_direct_GCJ=yes
 
17740
      hardcode_shlibpath_var_GCJ=no
 
17741
      ;;
 
17742
 
 
17743
    *)
 
17744
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17745
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17746
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17747
      else
 
17748
        ld_shlibs_GCJ=no
 
17749
      fi
 
17750
      ;;
 
17751
    esac
 
17752
 
 
17753
    if test "$ld_shlibs_GCJ" = yes; then
 
17754
      runpath_var=LD_RUN_PATH
 
17755
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17756
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17757
      # ancient GNU ld didn't support --whole-archive et. al.
 
17758
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17759
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17760
      else
 
17761
        whole_archive_flag_spec_GCJ=
 
17762
      fi
 
17763
    fi
 
17764
  else
 
17765
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17766
    case $host_os in
 
17767
    aix3*)
 
17768
      allow_undefined_flag_GCJ=unsupported
 
17769
      always_export_symbols_GCJ=yes
 
17770
      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'
 
17771
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17772
      # are no directories specified by -L.
 
17773
      hardcode_minus_L_GCJ=yes
 
17774
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17775
        # Neither direct hardcoding nor static linking is supported with a
 
17776
        # broken collect2.
 
17777
        hardcode_direct_GCJ=unsupported
 
17778
      fi
 
17779
      ;;
 
17780
 
 
17781
    aix4* | aix5*)
 
17782
      if test "$host_cpu" = ia64; then
 
17783
        # On IA64, the linker does run time linking by default, so we don't
 
17784
        # have to do anything special.
 
17785
        aix_use_runtimelinking=no
 
17786
        exp_sym_flag='-Bexport'
 
17787
        no_entry_flag=""
 
17788
      else
 
17789
        # If we're using GNU nm, then we don't want the "-C" option.
 
17790
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17791
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17792
          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'
 
17793
        else
 
17794
          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'
 
17795
        fi
 
17796
        aix_use_runtimelinking=no
 
17797
 
 
17798
        # Test if we are trying to use run time linking or normal
 
17799
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17800
        # need to do runtime linking.
 
17801
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17802
          for ld_flag in $LDFLAGS; do
 
17803
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17804
            aix_use_runtimelinking=yes
 
17805
            break
 
17806
          fi
 
17807
          done
 
17808
        esac
 
17809
 
 
17810
        exp_sym_flag='-bexport'
 
17811
        no_entry_flag='-bnoentry'
 
17812
      fi
 
17813
 
 
17814
      # When large executables or shared objects are built, AIX ld can
 
17815
      # have problems creating the table of contents.  If linking a library
 
17816
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17817
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17818
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17819
 
 
17820
      archive_cmds_GCJ=''
 
17821
      hardcode_direct_GCJ=yes
 
17822
      hardcode_libdir_separator_GCJ=':'
 
17823
      link_all_deplibs_GCJ=yes
 
17824
 
 
17825
      if test "$GCC" = yes; then
 
17826
        case $host_os in aix4.012|aix4.012.*)
 
17827
        # We only want to do this on AIX 4.2 and lower, the check
 
17828
        # below for broken collect2 doesn't work under 4.3+
 
17829
          collect2name=`${CC} -print-prog-name=collect2`
 
17830
          if test -f "$collect2name" && \
 
17831
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17832
          then
 
17833
          # We have reworked collect2
 
17834
          hardcode_direct_GCJ=yes
 
17835
          else
 
17836
          # We have old collect2
 
17837
          hardcode_direct_GCJ=unsupported
 
17838
          # It fails to find uninstalled libraries when the uninstalled
 
17839
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17840
          # to unsupported forces relinking
 
17841
          hardcode_minus_L_GCJ=yes
 
17842
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17843
          hardcode_libdir_separator_GCJ=
 
17844
          fi
 
17845
        esac
 
17846
        shared_flag='-shared'
 
17847
      else
 
17848
        # not using gcc
 
17849
        if test "$host_cpu" = ia64; then
 
17850
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17851
        # chokes on -Wl,-G. The following line is correct:
 
17852
          shared_flag='-G'
 
17853
        else
 
17854
        if test "$aix_use_runtimelinking" = yes; then
 
17855
            shared_flag='${wl}-G'
 
17856
          else
 
17857
            shared_flag='${wl}-bM:SRE'
 
17858
        fi
 
17859
        fi
 
17860
      fi
 
17861
 
 
17862
      # It seems that -bexpall does not export symbols beginning with
 
17863
      # underscore (_), so it is better to generate a list of symbols to export.
 
17864
      always_export_symbols_GCJ=yes
 
17865
      if test "$aix_use_runtimelinking" = yes; then
 
17866
        # Warning - without using the other runtime loading flags (-brtl),
 
17867
        # -berok will link without error, but may produce a broken library.
 
17868
        allow_undefined_flag_GCJ='-berok'
 
17869
       # Determine the default libpath from the value encoded in an empty executable.
 
17870
       cat >conftest.$ac_ext <<_ACEOF
 
17871
/* confdefs.h.  */
 
17872
_ACEOF
 
17873
cat confdefs.h >>conftest.$ac_ext
 
17874
cat >>conftest.$ac_ext <<_ACEOF
 
17875
/* end confdefs.h.  */
 
17876
 
 
17877
int
 
17878
main ()
 
17879
{
 
17880
 
 
17881
  ;
 
17882
  return 0;
 
17883
}
 
17884
_ACEOF
 
17885
rm -f conftest.$ac_objext conftest$ac_exeext
 
17886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17887
  (eval $ac_link) 2>conftest.er1
 
17888
  ac_status=$?
 
17889
  grep -v '^ *+' conftest.er1 >conftest.err
 
17890
  rm -f conftest.er1
 
17891
  cat conftest.err >&5
 
17892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17893
  (exit $ac_status); } &&
 
17894
         { ac_try='test -z "$ac_c_werror_flag"
 
17895
                         || test ! -s conftest.err'
 
17896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17897
  (eval $ac_try) 2>&5
 
17898
  ac_status=$?
 
17899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17900
  (exit $ac_status); }; } &&
 
17901
         { ac_try='test -s conftest$ac_exeext'
 
17902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17903
  (eval $ac_try) 2>&5
 
17904
  ac_status=$?
 
17905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17906
  (exit $ac_status); }; }; then
 
17907
 
 
17908
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17909
}'`
 
17910
# Check for a 64-bit object if we didn't find anything.
 
17911
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; }
 
17912
}'`; fi
 
17913
else
 
17914
  echo "$as_me: failed program was:" >&5
 
17915
sed 's/^/| /' conftest.$ac_ext >&5
 
17916
 
 
17917
fi
 
17918
rm -f conftest.err conftest.$ac_objext \
 
17919
      conftest$ac_exeext conftest.$ac_ext
 
17920
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17921
 
 
17922
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17923
        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"
 
17924
       else
 
17925
        if test "$host_cpu" = ia64; then
 
17926
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17927
          allow_undefined_flag_GCJ="-z nodefs"
 
17928
          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"
 
17929
        else
 
17930
         # Determine the default libpath from the value encoded in an empty executable.
 
17931
         cat >conftest.$ac_ext <<_ACEOF
 
17932
/* confdefs.h.  */
 
17933
_ACEOF
 
17934
cat confdefs.h >>conftest.$ac_ext
 
17935
cat >>conftest.$ac_ext <<_ACEOF
 
17936
/* end confdefs.h.  */
 
17937
 
 
17938
int
 
17939
main ()
 
17940
{
 
17941
 
 
17942
  ;
 
17943
  return 0;
 
17944
}
 
17945
_ACEOF
 
17946
rm -f conftest.$ac_objext conftest$ac_exeext
 
17947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17948
  (eval $ac_link) 2>conftest.er1
 
17949
  ac_status=$?
 
17950
  grep -v '^ *+' conftest.er1 >conftest.err
 
17951
  rm -f conftest.er1
 
17952
  cat conftest.err >&5
 
17953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17954
  (exit $ac_status); } &&
 
17955
         { ac_try='test -z "$ac_c_werror_flag"
 
17956
                         || test ! -s conftest.err'
 
17957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17958
  (eval $ac_try) 2>&5
 
17959
  ac_status=$?
 
17960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17961
  (exit $ac_status); }; } &&
 
17962
         { ac_try='test -s conftest$ac_exeext'
 
17963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17964
  (eval $ac_try) 2>&5
 
17965
  ac_status=$?
 
17966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17967
  (exit $ac_status); }; }; then
 
17968
 
 
17969
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17970
}'`
 
17971
# Check for a 64-bit object if we didn't find anything.
 
17972
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; }
 
17973
}'`; fi
 
17974
else
 
17975
  echo "$as_me: failed program was:" >&5
 
17976
sed 's/^/| /' conftest.$ac_ext >&5
 
17977
 
 
17978
fi
 
17979
rm -f conftest.err conftest.$ac_objext \
 
17980
      conftest$ac_exeext conftest.$ac_ext
 
17981
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17982
 
 
17983
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17984
          # Warning - without using the other run time loading flags,
 
17985
          # -berok will link without error, but may produce a broken library.
 
17986
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17987
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17988
          # -bexpall does not export symbols beginning with underscore (_)
 
17989
          always_export_symbols_GCJ=yes
 
17990
          # Exported symbols can be pulled into shared objects from archives
 
17991
          whole_archive_flag_spec_GCJ=' '
 
17992
          archive_cmds_need_lc_GCJ=yes
 
17993
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17994
          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'
 
17995
        fi
 
17996
      fi
 
17997
      ;;
 
17998
 
 
17999
    amigaos*)
 
18000
      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)'
 
18001
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18002
      hardcode_minus_L_GCJ=yes
 
18003
      # see comment about different semantics on the GNU ld section
 
18004
      ld_shlibs_GCJ=no
 
18005
      ;;
 
18006
 
 
18007
    bsdi4*)
 
18008
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18009
      ;;
 
18010
 
 
18011
    cygwin* | mingw* | pw32*)
 
18012
      # When not using gcc, we currently assume that we are using
 
18013
      # Microsoft Visual C++.
 
18014
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18015
      # no search path for DLLs.
 
18016
      hardcode_libdir_flag_spec_GCJ=' '
 
18017
      allow_undefined_flag_GCJ=unsupported
 
18018
      # Tell ltmain to make .lib files, not .a files.
 
18019
      libext=lib
 
18020
      # Tell ltmain to make .dll files, not .so files.
 
18021
      shrext=".dll"
 
18022
      # FIXME: Setting linknames here is a bad hack.
 
18023
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18024
      # The linker will automatically build a .lib file if we build a DLL.
 
18025
      old_archive_From_new_cmds_GCJ='true'
 
18026
      # FIXME: Should let the user specify the lib program.
 
18027
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18028
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18029
      enable_shared_with_static_runtimes_GCJ=yes
 
18030
      ;;
 
18031
 
 
18032
    darwin* | rhapsody*)
 
18033
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
18034
      archive_cmds_need_lc_GCJ=no
 
18035
      case "$host_os" in
 
18036
      rhapsody* | darwin1.[012])
 
18037
        allow_undefined_flag_GCJ='-undefined suppress'
 
18038
        ;;
 
18039
      *) # Darwin 1.3 on
 
18040
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18041
        ;;
 
18042
      esac
 
18043
      # FIXME: Relying on posixy $() will cause problems for
 
18044
      #        cross-compilation, but unfortunately the echo tests do not
 
18045
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
18046
      #        `"' quotes if we put them in here... so don't!
 
18047
        lt_int_apple_cc_single_mod=no
 
18048
        output_verbose_link_cmd='echo'
 
18049
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
18050
          lt_int_apple_cc_single_mod=yes
 
18051
        fi
 
18052
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18053
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18054
        else
 
18055
        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'
 
18056
      fi
 
18057
      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
18058
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18059
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18060
          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}'
 
18061
        else
 
18062
          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}'
 
18063
        fi
 
18064
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18065
      hardcode_direct_GCJ=no
 
18066
      hardcode_automatic_GCJ=yes
 
18067
      hardcode_shlibpath_var_GCJ=unsupported
 
18068
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
18069
      link_all_deplibs_GCJ=yes
 
18070
    fi
 
18071
      ;;
 
18072
 
 
18073
    dgux*)
 
18074
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18075
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18076
      hardcode_shlibpath_var_GCJ=no
 
18077
      ;;
 
18078
 
 
18079
    freebsd1*)
 
18080
      ld_shlibs_GCJ=no
 
18081
      ;;
 
18082
 
 
18083
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18084
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18085
    # does not break anything, and helps significantly (at the cost of a little
 
18086
    # extra space).
 
18087
    freebsd2.2*)
 
18088
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18089
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18090
      hardcode_direct_GCJ=yes
 
18091
      hardcode_shlibpath_var_GCJ=no
 
18092
      ;;
 
18093
 
 
18094
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18095
    freebsd2*)
 
18096
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18097
      hardcode_direct_GCJ=yes
 
18098
      hardcode_minus_L_GCJ=yes
 
18099
      hardcode_shlibpath_var_GCJ=no
 
18100
      ;;
 
18101
 
 
18102
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18103
    freebsd*)
 
18104
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18105
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18106
      hardcode_direct_GCJ=yes
 
18107
      hardcode_shlibpath_var_GCJ=no
 
18108
      ;;
 
18109
 
 
18110
    hpux9*)
 
18111
      if test "$GCC" = yes; then
 
18112
        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'
 
18113
      else
 
18114
        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'
 
18115
      fi
 
18116
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18117
      hardcode_libdir_separator_GCJ=:
 
18118
      hardcode_direct_GCJ=yes
 
18119
 
 
18120
      # hardcode_minus_L: Not really in the search PATH,
 
18121
      # but as the default location of the library.
 
18122
      hardcode_minus_L_GCJ=yes
 
18123
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18124
      ;;
 
18125
 
 
18126
    hpux10* | hpux11*)
 
18127
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18128
        case "$host_cpu" in
 
18129
        hppa*64*|ia64*)
 
18130
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18131
          ;;
 
18132
        *)
 
18133
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18134
          ;;
 
18135
        esac
 
18136
      else
 
18137
        case "$host_cpu" in
 
18138
        hppa*64*|ia64*)
 
18139
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18140
          ;;
 
18141
        *)
 
18142
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18143
          ;;
 
18144
        esac
 
18145
      fi
 
18146
      if test "$with_gnu_ld" = no; then
 
18147
        case "$host_cpu" in
 
18148
        hppa*64*)
 
18149
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18150
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18151
          hardcode_libdir_separator_GCJ=:
 
18152
          hardcode_direct_GCJ=no
 
18153
          hardcode_shlibpath_var_GCJ=no
 
18154
          ;;
 
18155
        ia64*)
 
18156
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18157
          hardcode_direct_GCJ=no
 
18158
          hardcode_shlibpath_var_GCJ=no
 
18159
 
 
18160
          # hardcode_minus_L: Not really in the search PATH,
 
18161
          # but as the default location of the library.
 
18162
          hardcode_minus_L_GCJ=yes
 
18163
          ;;
 
18164
        *)
 
18165
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18166
          hardcode_libdir_separator_GCJ=:
 
18167
          hardcode_direct_GCJ=yes
 
18168
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18169
 
 
18170
          # hardcode_minus_L: Not really in the search PATH,
 
18171
          # but as the default location of the library.
 
18172
          hardcode_minus_L_GCJ=yes
 
18173
          ;;
 
18174
        esac
 
18175
      fi
 
18176
      ;;
 
18177
 
 
18178
    irix5* | irix6* | nonstopux*)
 
18179
      if test "$GCC" = yes; then
 
18180
        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'
 
18181
      else
 
18182
        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'
 
18183
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18184
      fi
 
18185
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18186
      hardcode_libdir_separator_GCJ=:
 
18187
      link_all_deplibs_GCJ=yes
 
18188
      ;;
 
18189
 
 
18190
    netbsd*)
 
18191
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18192
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18193
      else
 
18194
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18195
      fi
 
18196
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18197
      hardcode_direct_GCJ=yes
 
18198
      hardcode_shlibpath_var_GCJ=no
 
18199
      ;;
 
18200
 
 
18201
    newsos6)
 
18202
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18203
      hardcode_direct_GCJ=yes
 
18204
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18205
      hardcode_libdir_separator_GCJ=:
 
18206
      hardcode_shlibpath_var_GCJ=no
 
18207
      ;;
 
18208
 
 
18209
    openbsd*)
 
18210
      hardcode_direct_GCJ=yes
 
18211
      hardcode_shlibpath_var_GCJ=no
 
18212
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18213
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18214
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18215
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18216
      else
 
18217
       case $host_os in
 
18218
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18219
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18220
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18221
           ;;
 
18222
         *)
 
18223
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18224
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18225
           ;;
 
18226
       esac
 
18227
      fi
 
18228
      ;;
 
18229
 
 
18230
    os2*)
 
18231
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18232
      hardcode_minus_L_GCJ=yes
 
18233
      allow_undefined_flag_GCJ=unsupported
 
18234
      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'
 
18235
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18236
      ;;
 
18237
 
 
18238
    osf3*)
 
18239
      if test "$GCC" = yes; then
 
18240
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18241
        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'
 
18242
      else
 
18243
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18244
        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'
 
18245
      fi
 
18246
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18247
      hardcode_libdir_separator_GCJ=:
 
18248
      ;;
 
18249
 
 
18250
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18251
      if test "$GCC" = yes; then
 
18252
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18253
        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'
 
18254
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18255
      else
 
18256
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18257
        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'
 
18258
        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~
 
18259
        $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'
 
18260
 
 
18261
        # Both c and cxx compiler support -rpath directly
 
18262
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18263
      fi
 
18264
      hardcode_libdir_separator_GCJ=:
 
18265
      ;;
 
18266
 
 
18267
    sco3.2v5*)
 
18268
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18269
      hardcode_shlibpath_var_GCJ=no
 
18270
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18271
      runpath_var=LD_RUN_PATH
 
18272
      hardcode_runpath_var=yes
 
18273
      ;;
 
18274
 
 
18275
    solaris*)
 
18276
      no_undefined_flag_GCJ=' -z text'
 
18277
      if test "$GCC" = yes; then
 
18278
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18279
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18280
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18281
      else
 
18282
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18283
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18284
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18285
      fi
 
18286
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18287
      hardcode_shlibpath_var_GCJ=no
 
18288
      case $host_os in
 
18289
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18290
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18291
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18292
      esac
 
18293
      link_all_deplibs_GCJ=yes
 
18294
      ;;
 
18295
 
 
18296
    sunos4*)
 
18297
      if test "x$host_vendor" = xsequent; then
 
18298
        # Use $CC to link under sequent, because it throws in some extra .o
 
18299
        # files that make .init and .fini sections work.
 
18300
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18301
      else
 
18302
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18303
      fi
 
18304
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18305
      hardcode_direct_GCJ=yes
 
18306
      hardcode_minus_L_GCJ=yes
 
18307
      hardcode_shlibpath_var_GCJ=no
 
18308
      ;;
 
18309
 
 
18310
    sysv4)
 
18311
      case $host_vendor in
 
18312
        sni)
 
18313
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18314
          hardcode_direct_GCJ=yes # is this really true???
 
18315
        ;;
 
18316
        siemens)
 
18317
          ## LD is ld it makes a PLAMLIB
 
18318
          ## CC just makes a GrossModule.
 
18319
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18320
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18321
          hardcode_direct_GCJ=no
 
18322
        ;;
 
18323
        motorola)
 
18324
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18325
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18326
        ;;
 
18327
      esac
 
18328
      runpath_var='LD_RUN_PATH'
 
18329
      hardcode_shlibpath_var_GCJ=no
 
18330
      ;;
 
18331
 
 
18332
    sysv4.3*)
 
18333
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18334
      hardcode_shlibpath_var_GCJ=no
 
18335
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18336
      ;;
 
18337
 
 
18338
    sysv4*MP*)
 
18339
      if test -d /usr/nec; then
 
18340
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18341
        hardcode_shlibpath_var_GCJ=no
 
18342
        runpath_var=LD_RUN_PATH
 
18343
        hardcode_runpath_var=yes
 
18344
        ld_shlibs_GCJ=yes
 
18345
      fi
 
18346
      ;;
 
18347
 
 
18348
    sysv4.2uw2*)
 
18349
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18350
      hardcode_direct_GCJ=yes
 
18351
      hardcode_minus_L_GCJ=no
 
18352
      hardcode_shlibpath_var_GCJ=no
 
18353
      hardcode_runpath_var=yes
 
18354
      runpath_var=LD_RUN_PATH
 
18355
      ;;
 
18356
 
 
18357
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18358
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
18359
      if test "$GCC" = yes; then
 
18360
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18361
      else
 
18362
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18363
      fi
 
18364
      runpath_var='LD_RUN_PATH'
 
18365
      hardcode_shlibpath_var_GCJ=no
 
18366
      ;;
 
18367
 
 
18368
    sysv5*)
 
18369
      no_undefined_flag_GCJ=' -z text'
 
18370
      # $CC -shared without GNU ld will not create a library from C++
 
18371
      # object files and a static libstdc++, better avoid it by now
 
18372
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18373
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18374
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18375
      hardcode_libdir_flag_spec_GCJ=
 
18376
      hardcode_shlibpath_var_GCJ=no
 
18377
      runpath_var='LD_RUN_PATH'
 
18378
      ;;
 
18379
 
 
18380
    uts4*)
 
18381
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18382
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18383
      hardcode_shlibpath_var_GCJ=no
 
18384
      ;;
 
18385
 
 
18386
    *)
 
18387
      ld_shlibs_GCJ=no
 
18388
      ;;
 
18389
    esac
 
18390
  fi
 
18391
 
 
18392
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18393
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18394
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18395
 
 
18396
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18397
if test "$GCC" = yes; then
 
18398
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18399
fi
 
18400
 
 
18401
#
 
18402
# Do we need to explicitly link libc?
 
18403
#
 
18404
case "x$archive_cmds_need_lc_GCJ" in
 
18405
x|xyes)
 
18406
  # Assume -lc should be added
 
18407
  archive_cmds_need_lc_GCJ=yes
 
18408
 
 
18409
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18410
    case $archive_cmds_GCJ in
 
18411
    *'~'*)
 
18412
      # FIXME: we may have to deal with multi-command sequences.
 
18413
      ;;
 
18414
    '$CC '*)
 
18415
      # Test whether the compiler implicitly links with -lc since on some
 
18416
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18417
      # to ld, don't add -lc before -lgcc.
 
18418
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18419
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18420
      $rm conftest*
 
18421
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18422
 
 
18423
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18424
  (eval $ac_compile) 2>&5
 
18425
  ac_status=$?
 
18426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18427
  (exit $ac_status); } 2>conftest.err; then
 
18428
        soname=conftest
 
18429
        lib=conftest
 
18430
        libobjs=conftest.$ac_objext
 
18431
        deplibs=
 
18432
        wl=$lt_prog_compiler_wl_GCJ
 
18433
        compiler_flags=-v
 
18434
        linker_flags=-v
 
18435
        verstring=
 
18436
        output_objdir=.
 
18437
        libname=conftest
 
18438
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18439
        allow_undefined_flag_GCJ=
 
18440
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18441
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18442
  ac_status=$?
 
18443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18444
  (exit $ac_status); }
 
18445
        then
 
18446
          archive_cmds_need_lc_GCJ=no
 
18447
        else
 
18448
          archive_cmds_need_lc_GCJ=yes
 
18449
        fi
 
18450
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18451
      else
 
18452
        cat conftest.err 1>&5
 
18453
      fi
 
18454
      $rm conftest*
 
18455
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18456
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18457
      ;;
 
18458
    esac
 
18459
  fi
 
18460
  ;;
 
18461
esac
 
18462
 
 
18463
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18464
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18465
hardcode_action_GCJ=
 
18466
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18467
   test -n "$runpath_var GCJ" || \
 
18468
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18469
 
 
18470
  # We can hardcode non-existant directories.
 
18471
  if test "$hardcode_direct_GCJ" != no &&
 
18472
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18473
     # have to relink, otherwise we might link with an installed library
 
18474
     # when we should be linking with a yet-to-be-installed one
 
18475
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18476
     test "$hardcode_minus_L_GCJ" != no; then
 
18477
    # Linking always hardcodes the temporary library directory.
 
18478
    hardcode_action_GCJ=relink
 
18479
  else
 
18480
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18481
    hardcode_action_GCJ=immediate
 
18482
  fi
 
18483
else
 
18484
  # We cannot hardcode anything, or else we can only hardcode existing
 
18485
  # directories.
 
18486
  hardcode_action_GCJ=unsupported
 
18487
fi
 
18488
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18489
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18490
 
 
18491
if test "$hardcode_action_GCJ" = relink; then
 
18492
  # Fast installation is not supported
 
18493
  enable_fast_install=no
 
18494
elif test "$shlibpath_overrides_runpath" = yes ||
 
18495
     test "$enable_shared" = no; then
 
18496
  # Fast installation is not necessary
 
18497
  enable_fast_install=needless
 
18498
fi
 
18499
 
 
18500
striplib=
 
18501
old_striplib=
 
18502
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18503
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18504
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18505
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18506
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18507
  echo "$as_me:$LINENO: result: yes" >&5
 
18508
echo "${ECHO_T}yes" >&6
 
18509
else
 
18510
# FIXME - insert some real tests, host_os isn't really good enough
 
18511
  case $host_os in
 
18512
   darwin*)
 
18513
       if test -n "$STRIP" ; then
 
18514
         striplib="$STRIP -x"
 
18515
         echo "$as_me:$LINENO: result: yes" >&5
 
18516
echo "${ECHO_T}yes" >&6
 
18517
       else
 
18518
  echo "$as_me:$LINENO: result: no" >&5
 
18519
echo "${ECHO_T}no" >&6
 
18520
fi
 
18521
       ;;
 
18522
   *)
 
18523
  echo "$as_me:$LINENO: result: no" >&5
 
18524
echo "${ECHO_T}no" >&6
 
18525
    ;;
 
18526
  esac
 
18527
fi
 
18528
 
 
18529
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18530
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18531
library_names_spec=
 
18532
libname_spec='lib$name'
 
18533
soname_spec=
 
18534
shrext=".so"
 
18535
postinstall_cmds=
 
18536
postuninstall_cmds=
 
18537
finish_cmds=
 
18538
finish_eval=
 
18539
shlibpath_var=
 
18540
shlibpath_overrides_runpath=unknown
 
18541
version_type=none
 
18542
dynamic_linker="$host_os ld.so"
 
18543
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18544
if test "$GCC" = yes; then
 
18545
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18546
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18547
    # if the path contains ";" then we assume it to be the separator
 
18548
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18549
    # assumed that no part of a normal pathname contains ";" but that should
 
18550
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18551
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18552
  else
 
18553
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18554
  fi
 
18555
else
 
18556
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18557
fi
 
18558
need_lib_prefix=unknown
 
18559
hardcode_into_libs=no
 
18560
 
 
18561
# when you set need_version to no, make sure it does not cause -set_version
 
18562
# flags to be left without arguments
 
18563
need_version=unknown
 
18564
 
 
18565
case $host_os in
 
18566
aix3*)
 
18567
  version_type=linux
 
18568
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18569
  shlibpath_var=LIBPATH
 
18570
 
 
18571
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18572
  soname_spec='${libname}${release}${shared_ext}$major'
 
18573
  ;;
 
18574
 
 
18575
aix4* | aix5*)
 
18576
  version_type=linux
 
18577
  need_lib_prefix=no
 
18578
  need_version=no
 
18579
  hardcode_into_libs=yes
 
18580
  if test "$host_cpu" = ia64; then
 
18581
    # AIX 5 supports IA64
 
18582
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18583
    shlibpath_var=LD_LIBRARY_PATH
 
18584
  else
 
18585
    # With GCC up to 2.95.x, collect2 would create an import file
 
18586
    # for dependence libraries.  The import file would start with
 
18587
    # the line `#! .'.  This would cause the generated library to
 
18588
    # depend on `.', always an invalid library.  This was fixed in
 
18589
    # development snapshots of GCC prior to 3.0.
 
18590
    case $host_os in
 
18591
      aix4 | aix4.[01] | aix4.[01].*)
 
18592
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18593
           echo ' yes '
 
18594
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18595
        :
 
18596
      else
 
18597
        can_build_shared=no
 
18598
      fi
 
18599
      ;;
 
18600
    esac
 
18601
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18602
    # soname into executable. Probably we can add versioning support to
 
18603
    # collect2, so additional links can be useful in future.
 
18604
    if test "$aix_use_runtimelinking" = yes; then
 
18605
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18606
      # instead of lib<name>.a to let people know that these are not
 
18607
      # typical AIX shared libraries.
 
18608
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18609
    else
 
18610
      # We preserve .a as extension for shared libraries through AIX4.2
 
18611
      # and later when we are not doing run time linking.
 
18612
      library_names_spec='${libname}${release}.a $libname.a'
 
18613
      soname_spec='${libname}${release}${shared_ext}$major'
 
18614
    fi
 
18615
    shlibpath_var=LIBPATH
 
18616
  fi
 
18617
  ;;
 
18618
 
 
18619
amigaos*)
 
18620
  library_names_spec='$libname.ixlibrary $libname.a'
 
18621
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18622
  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'
 
18623
  ;;
 
18624
 
 
18625
beos*)
 
18626
  library_names_spec='${libname}${shared_ext}'
 
18627
  dynamic_linker="$host_os ld.so"
 
18628
  shlibpath_var=LIBRARY_PATH
 
18629
  ;;
 
18630
 
 
18631
bsdi4*)
 
18632
  version_type=linux
 
18633
  need_version=no
 
18634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18635
  soname_spec='${libname}${release}${shared_ext}$major'
 
18636
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18637
  shlibpath_var=LD_LIBRARY_PATH
 
18638
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18639
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18640
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18641
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18642
  # libtool to hard-code these into programs
 
18643
  ;;
 
18644
 
 
18645
cygwin* | mingw* | pw32*)
 
18646
  version_type=windows
 
18647
  shrext=".dll"
 
18648
  need_version=no
 
18649
  need_lib_prefix=no
 
18650
 
 
18651
  case $GCC,$host_os in
 
18652
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18653
    library_names_spec='$libname.dll.a'
 
18654
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18655
    postinstall_cmds='base_file=`basename \${file}`~
 
18656
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18657
      dldir=$destdir/`dirname \$dlpath`~
 
18658
      test -d \$dldir || mkdir -p \$dldir~
 
18659
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18660
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18661
      dlpath=$dir/\$dldll~
 
18662
       $rm \$dlpath'
 
18663
    shlibpath_overrides_runpath=yes
 
18664
 
 
18665
    case $host_os in
 
18666
    cygwin*)
 
18667
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18668
      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
18669
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
18670
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18671
      ;;
 
18672
    mingw*)
 
18673
      # MinGW DLLs use traditional 'lib' prefix
 
18674
      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
18675
      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 
18676
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18677
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18678
        # It is most probably a Windows format PATH printed by
 
18679
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18680
        # path with ; separators, and with drive letters. We can handle the
 
18681
        # drive letters (cygwin fileutils understands them), so leave them,
 
18682
        # especially as we might pass files found there to a mingw objdump,
 
18683
        # which wouldn't understand a cygwinified path. Ahh.
 
18684
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18685
      else
 
18686
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18687
      fi
 
18688
      ;;
 
18689
    pw32*)
 
18690
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18691
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18692
      ;;
 
18693
    esac
 
18694
    ;;
 
18695
 
 
18696
  *)
 
18697
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18698
    ;;
 
18699
  esac
 
18700
  dynamic_linker='Win32 ld.exe'
 
18701
  # FIXME: first we should search . and the directory the executable is in
 
18702
  shlibpath_var=PATH
 
18703
  ;;
 
18704
 
 
18705
darwin* | rhapsody*)
 
18706
  dynamic_linker="$host_os dyld"
 
18707
  version_type=darwin
 
18708
  need_lib_prefix=no
 
18709
  need_version=no
 
18710
  # FIXME: Relying on posixy $() will cause problems for
 
18711
  #        cross-compilation, but unfortunately the echo tests do not
 
18712
  #        yet detect zsh echo's removal of \ escapes.
 
18713
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18714
  soname_spec='${libname}${release}${major}$shared_ext'
 
18715
  shlibpath_overrides_runpath=yes
 
18716
  shlibpath_var=DYLD_LIBRARY_PATH
 
18717
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
18718
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18719
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
18720
  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"`
 
18721
  fi
 
18722
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18723
  ;;
 
18724
 
 
18725
dgux*)
 
18726
  version_type=linux
 
18727
  need_lib_prefix=no
 
18728
  need_version=no
 
18729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18730
  soname_spec='${libname}${release}${shared_ext}$major'
 
18731
  shlibpath_var=LD_LIBRARY_PATH
 
18732
  ;;
 
18733
 
 
18734
freebsd1*)
 
18735
  dynamic_linker=no
 
18736
  ;;
 
18737
 
 
18738
freebsd*)
 
18739
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18740
  version_type=freebsd-$objformat
 
18741
  case $version_type in
 
18742
    freebsd-elf*)
 
18743
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18744
      need_version=no
 
18745
      need_lib_prefix=no
 
18746
      ;;
 
18747
    freebsd-*)
 
18748
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18749
      need_version=yes
 
18750
      ;;
 
18751
  esac
 
18752
  shlibpath_var=LD_LIBRARY_PATH
 
18753
  case $host_os in
 
18754
  freebsd2*)
 
18755
    shlibpath_overrides_runpath=yes
 
18756
    ;;
 
18757
  freebsd3.01* | freebsdelf3.01*)
 
18758
    shlibpath_overrides_runpath=yes
 
18759
    hardcode_into_libs=yes
 
18760
    ;;
 
18761
  *) # from 3.2 on
 
18762
    shlibpath_overrides_runpath=no
 
18763
    hardcode_into_libs=yes
 
18764
    ;;
 
18765
  esac
 
18766
  ;;
 
18767
 
 
18768
gnu*)
 
18769
  version_type=linux
 
18770
  need_lib_prefix=no
 
18771
  need_version=no
 
18772
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18773
  soname_spec='${libname}${release}${shared_ext}$major'
 
18774
  shlibpath_var=LD_LIBRARY_PATH
 
18775
  hardcode_into_libs=yes
 
18776
  ;;
 
18777
 
 
18778
hpux9* | hpux10* | hpux11*)
 
18779
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18780
  # link against other versions.
 
18781
  version_type=sunos
 
18782
  need_lib_prefix=no
 
18783
  need_version=no
 
18784
  case "$host_cpu" in
 
18785
  ia64*)
 
18786
    shrext='.so'
 
18787
    hardcode_into_libs=yes
 
18788
    dynamic_linker="$host_os dld.so"
 
18789
    shlibpath_var=LD_LIBRARY_PATH
 
18790
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18791
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18792
    soname_spec='${libname}${release}${shared_ext}$major'
 
18793
    if test "X$HPUX_IA64_MODE" = X32; then
 
18794
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18795
    else
 
18796
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18797
    fi
 
18798
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18799
    ;;
 
18800
   hppa*64*)
 
18801
     shrext='.sl'
 
18802
     hardcode_into_libs=yes
 
18803
     dynamic_linker="$host_os dld.sl"
 
18804
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18805
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18806
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18807
     soname_spec='${libname}${release}${shared_ext}$major'
 
18808
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18809
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18810
     ;;
 
18811
   *)
 
18812
    shrext='.sl'
 
18813
    dynamic_linker="$host_os dld.sl"
 
18814
    shlibpath_var=SHLIB_PATH
 
18815
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18816
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18817
    soname_spec='${libname}${release}${shared_ext}$major'
 
18818
    ;;
 
18819
  esac
 
18820
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18821
  postinstall_cmds='chmod 555 $lib'
 
18822
  ;;
 
18823
 
 
18824
irix5* | irix6* | nonstopux*)
 
18825
  case $host_os in
 
18826
    nonstopux*) version_type=nonstopux ;;
 
18827
    *)
 
18828
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18829
                version_type=linux
 
18830
        else
 
18831
                version_type=irix
 
18832
        fi ;;
 
18833
  esac
 
18834
  need_lib_prefix=no
 
18835
  need_version=no
 
18836
  soname_spec='${libname}${release}${shared_ext}$major'
 
18837
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18838
  case $host_os in
 
18839
  irix5* | nonstopux*)
 
18840
    libsuff= shlibsuff=
 
18841
    ;;
 
18842
  *)
 
18843
    case $LD in # libtool.m4 will add one of these switches to LD
 
18844
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18845
      libsuff= shlibsuff= libmagic=32-bit;;
 
18846
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18847
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18848
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18849
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18850
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18851
    esac
 
18852
    ;;
 
18853
  esac
 
18854
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18855
  shlibpath_overrides_runpath=no
 
18856
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18857
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18858
  hardcode_into_libs=yes
 
18859
  ;;
 
18860
 
 
18861
# No shared lib support for Linux oldld, aout, or coff.
 
18862
linux*oldld* | linux*aout* | linux*coff*)
 
18863
  dynamic_linker=no
 
18864
  ;;
 
18865
 
 
18866
# This must be Linux ELF.
 
18867
linux*)
 
18868
  version_type=linux
 
18869
  need_lib_prefix=no
 
18870
  need_version=no
 
18871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18872
  soname_spec='${libname}${release}${shared_ext}$major'
 
18873
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18874
  shlibpath_var=LD_LIBRARY_PATH
 
18875
  shlibpath_overrides_runpath=no
 
18876
  # This implies no fast_install, which is unacceptable.
 
18877
  # Some rework will be needed to allow for fast_install
 
18878
  # before this can be enabled.
 
18879
  hardcode_into_libs=yes
 
18880
 
 
18881
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18882
  # powerpc, because MkLinux only supported shared libraries with the
 
18883
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18884
  # most powerpc-linux boxes support dynamic linking these days and
 
18885
  # people can always --disable-shared, the test was removed, and we
 
18886
  # assume the GNU/Linux dynamic linker is in use.
 
18887
  dynamic_linker='GNU/Linux ld.so'
 
18888
  ;;
 
18889
 
 
18890
netbsd*)
 
18891
  version_type=sunos
 
18892
  need_lib_prefix=no
 
18893
  need_version=no
 
18894
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18895
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18896
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18897
    dynamic_linker='NetBSD (a.out) ld.so'
 
18898
  else
 
18899
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
18900
    soname_spec='${libname}${release}${shared_ext}$major'
 
18901
    dynamic_linker='NetBSD ld.elf_so'
 
18902
  fi
 
18903
  shlibpath_var=LD_LIBRARY_PATH
 
18904
  shlibpath_overrides_runpath=yes
 
18905
  hardcode_into_libs=yes
 
18906
  ;;
 
18907
 
 
18908
newsos6)
 
18909
  version_type=linux
 
18910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18911
  shlibpath_var=LD_LIBRARY_PATH
 
18912
  shlibpath_overrides_runpath=yes
 
18913
  ;;
 
18914
 
 
18915
nto-qnx)
 
18916
  version_type=linux
 
18917
  need_lib_prefix=no
 
18918
  need_version=no
 
18919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18920
  soname_spec='${libname}${release}${shared_ext}$major'
 
18921
  shlibpath_var=LD_LIBRARY_PATH
 
18922
  shlibpath_overrides_runpath=yes
 
18923
  ;;
 
18924
 
 
18925
openbsd*)
 
18926
  version_type=sunos
 
18927
  need_lib_prefix=no
 
18928
  need_version=no
 
18929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18930
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18931
  shlibpath_var=LD_LIBRARY_PATH
 
18932
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18933
    case $host_os in
 
18934
      openbsd2.[89] | openbsd2.[89].*)
 
18935
        shlibpath_overrides_runpath=no
 
18936
        ;;
 
18937
      *)
 
18938
        shlibpath_overrides_runpath=yes
 
18939
        ;;
 
18940
      esac
 
18941
  else
 
18942
    shlibpath_overrides_runpath=yes
 
18943
  fi
 
18944
  ;;
 
18945
 
 
18946
os2*)
 
18947
  libname_spec='$name'
 
18948
  shrext=".dll"
 
18949
  need_lib_prefix=no
 
18950
  library_names_spec='$libname${shared_ext} $libname.a'
 
18951
  dynamic_linker='OS/2 ld.exe'
 
18952
  shlibpath_var=LIBPATH
 
18953
  ;;
 
18954
 
 
18955
osf3* | osf4* | osf5*)
 
18956
  version_type=osf
 
18957
  need_lib_prefix=no
 
18958
  need_version=no
 
18959
  soname_spec='${libname}${release}${shared_ext}$major'
 
18960
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18961
  shlibpath_var=LD_LIBRARY_PATH
 
18962
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18963
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18964
  ;;
 
18965
 
 
18966
sco3.2v5*)
 
18967
  version_type=osf
 
18968
  soname_spec='${libname}${release}${shared_ext}$major'
 
18969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18970
  shlibpath_var=LD_LIBRARY_PATH
 
18971
  ;;
 
18972
 
 
18973
solaris*)
 
18974
  version_type=linux
 
18975
  need_lib_prefix=no
 
18976
  need_version=no
 
18977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18978
  soname_spec='${libname}${release}${shared_ext}$major'
 
18979
  shlibpath_var=LD_LIBRARY_PATH
 
18980
  shlibpath_overrides_runpath=yes
 
18981
  hardcode_into_libs=yes
 
18982
  # ldd complains unless libraries are executable
 
18983
  postinstall_cmds='chmod +x $lib'
 
18984
  ;;
 
18985
 
 
18986
sunos4*)
 
18987
  version_type=sunos
 
18988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18989
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18990
  shlibpath_var=LD_LIBRARY_PATH
 
18991
  shlibpath_overrides_runpath=yes
 
18992
  if test "$with_gnu_ld" = yes; then
 
18993
    need_lib_prefix=no
 
18994
  fi
 
18995
  need_version=yes
 
18996
  ;;
 
18997
 
 
18998
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18999
  version_type=linux
 
19000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19001
  soname_spec='${libname}${release}${shared_ext}$major'
 
19002
  shlibpath_var=LD_LIBRARY_PATH
 
19003
  case $host_vendor in
 
19004
    sni)
 
19005
      shlibpath_overrides_runpath=no
 
19006
      need_lib_prefix=no
 
19007
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19008
      runpath_var=LD_RUN_PATH
 
19009
      ;;
 
19010
    siemens)
 
19011
      need_lib_prefix=no
 
19012
      ;;
 
19013
    motorola)
 
19014
      need_lib_prefix=no
 
19015
      need_version=no
 
19016
      shlibpath_overrides_runpath=no
 
19017
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19018
      ;;
 
19019
  esac
 
19020
  ;;
 
19021
 
 
19022
sysv4*MP*)
 
19023
  if test -d /usr/nec ;then
 
19024
    version_type=linux
 
19025
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19026
    soname_spec='$libname${shared_ext}.$major'
 
19027
    shlibpath_var=LD_LIBRARY_PATH
 
19028
  fi
 
19029
  ;;
 
19030
 
 
19031
uts4*)
 
19032
  version_type=linux
 
19033
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19034
  soname_spec='${libname}${release}${shared_ext}$major'
 
19035
  shlibpath_var=LD_LIBRARY_PATH
 
19036
  ;;
 
19037
 
 
19038
*)
 
19039
  dynamic_linker=no
 
19040
  ;;
 
19041
esac
 
19042
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19043
echo "${ECHO_T}$dynamic_linker" >&6
 
19044
test "$dynamic_linker" = no && can_build_shared=no
 
19045
 
 
19046
if test "x$enable_dlopen" != xyes; then
 
19047
  enable_dlopen=unknown
 
19048
  enable_dlopen_self=unknown
 
19049
  enable_dlopen_self_static=unknown
 
19050
else
 
19051
  lt_cv_dlopen=no
 
19052
  lt_cv_dlopen_libs=
 
19053
 
 
19054
  case $host_os in
 
19055
  beos*)
 
19056
    lt_cv_dlopen="load_add_on"
 
19057
    lt_cv_dlopen_libs=
 
19058
    lt_cv_dlopen_self=yes
 
19059
    ;;
 
19060
 
 
19061
  mingw* | pw32*)
 
19062
    lt_cv_dlopen="LoadLibrary"
 
19063
    lt_cv_dlopen_libs=
 
19064
   ;;
 
19065
 
 
19066
  cygwin*)
 
19067
    lt_cv_dlopen="dlopen"
 
19068
    lt_cv_dlopen_libs=
 
19069
   ;;
 
19070
 
 
19071
  darwin*)
 
19072
  # if libdl is installed we need to link against it
 
19073
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19074
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19075
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19077
else
 
19078
  ac_check_lib_save_LIBS=$LIBS
 
19079
LIBS="-ldl  $LIBS"
 
19080
cat >conftest.$ac_ext <<_ACEOF
 
19081
/* confdefs.h.  */
 
19082
_ACEOF
 
19083
cat confdefs.h >>conftest.$ac_ext
 
19084
cat >>conftest.$ac_ext <<_ACEOF
 
19085
/* end confdefs.h.  */
 
19086
 
 
19087
/* Override any gcc2 internal prototype to avoid an error.  */
 
19088
#ifdef __cplusplus
 
19089
extern "C"
 
19090
#endif
 
19091
/* We use char because int might match the return type of a gcc2
 
19092
   builtin and then its argument prototype would still apply.  */
 
19093
char dlopen ();
 
19094
int
 
19095
main ()
 
19096
{
 
19097
dlopen ();
 
19098
  ;
 
19099
  return 0;
 
19100
}
 
19101
_ACEOF
 
19102
rm -f conftest.$ac_objext conftest$ac_exeext
 
19103
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19104
  (eval $ac_link) 2>conftest.er1
 
19105
  ac_status=$?
 
19106
  grep -v '^ *+' conftest.er1 >conftest.err
 
19107
  rm -f conftest.er1
 
19108
  cat conftest.err >&5
 
19109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19110
  (exit $ac_status); } &&
 
19111
         { ac_try='test -z "$ac_c_werror_flag"
 
19112
                         || test ! -s conftest.err'
 
19113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19114
  (eval $ac_try) 2>&5
 
19115
  ac_status=$?
 
19116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19117
  (exit $ac_status); }; } &&
 
19118
         { ac_try='test -s conftest$ac_exeext'
 
19119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19120
  (eval $ac_try) 2>&5
 
19121
  ac_status=$?
 
19122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19123
  (exit $ac_status); }; }; then
 
19124
  ac_cv_lib_dl_dlopen=yes
 
19125
else
 
19126
  echo "$as_me: failed program was:" >&5
 
19127
sed 's/^/| /' conftest.$ac_ext >&5
 
19128
 
 
19129
ac_cv_lib_dl_dlopen=no
 
19130
fi
 
19131
rm -f conftest.err conftest.$ac_objext \
 
19132
      conftest$ac_exeext conftest.$ac_ext
 
19133
LIBS=$ac_check_lib_save_LIBS
 
19134
fi
 
19135
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19136
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19137
if test $ac_cv_lib_dl_dlopen = yes; then
 
19138
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19139
else
 
19140
 
 
19141
    lt_cv_dlopen="dyld"
 
19142
    lt_cv_dlopen_libs=
 
19143
    lt_cv_dlopen_self=yes
 
19144
 
 
19145
fi
 
19146
 
 
19147
   ;;
 
19148
 
 
19149
  *)
 
19150
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19151
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19152
if test "${ac_cv_func_shl_load+set}" = set; then
 
19153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19154
else
 
19155
  cat >conftest.$ac_ext <<_ACEOF
 
19156
/* confdefs.h.  */
 
19157
_ACEOF
 
19158
cat confdefs.h >>conftest.$ac_ext
 
19159
cat >>conftest.$ac_ext <<_ACEOF
 
19160
/* end confdefs.h.  */
 
19161
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19162
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19163
#define shl_load innocuous_shl_load
 
19164
 
 
19165
/* System header to define __stub macros and hopefully few prototypes,
 
19166
    which can conflict with char shl_load (); below.
 
19167
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19168
    <limits.h> exists even on freestanding compilers.  */
 
19169
 
 
19170
#ifdef __STDC__
 
19171
# include <limits.h>
 
19172
#else
 
19173
# include <assert.h>
 
19174
#endif
 
19175
 
 
19176
#undef shl_load
 
19177
 
 
19178
/* Override any gcc2 internal prototype to avoid an error.  */
 
19179
#ifdef __cplusplus
 
19180
extern "C"
 
19181
{
 
19182
#endif
 
19183
/* We use char because int might match the return type of a gcc2
 
19184
   builtin and then its argument prototype would still apply.  */
 
19185
char shl_load ();
 
19186
/* The GNU C library defines this for functions which it implements
 
19187
    to always fail with ENOSYS.  Some functions are actually named
 
19188
    something starting with __ and the normal name is an alias.  */
 
19189
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19190
choke me
 
19191
#else
 
19192
char (*f) () = shl_load;
 
19193
#endif
 
19194
#ifdef __cplusplus
 
19195
}
 
19196
#endif
 
19197
 
 
19198
int
 
19199
main ()
 
19200
{
 
19201
return f != shl_load;
 
19202
  ;
 
19203
  return 0;
 
19204
}
 
19205
_ACEOF
 
19206
rm -f conftest.$ac_objext conftest$ac_exeext
 
19207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19208
  (eval $ac_link) 2>conftest.er1
 
19209
  ac_status=$?
 
19210
  grep -v '^ *+' conftest.er1 >conftest.err
 
19211
  rm -f conftest.er1
 
19212
  cat conftest.err >&5
 
19213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19214
  (exit $ac_status); } &&
 
19215
         { ac_try='test -z "$ac_c_werror_flag"
 
19216
                         || test ! -s conftest.err'
 
19217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19218
  (eval $ac_try) 2>&5
 
19219
  ac_status=$?
 
19220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19221
  (exit $ac_status); }; } &&
 
19222
         { ac_try='test -s conftest$ac_exeext'
 
19223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19224
  (eval $ac_try) 2>&5
 
19225
  ac_status=$?
 
19226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19227
  (exit $ac_status); }; }; then
 
19228
  ac_cv_func_shl_load=yes
 
19229
else
 
19230
  echo "$as_me: failed program was:" >&5
 
19231
sed 's/^/| /' conftest.$ac_ext >&5
 
19232
 
 
19233
ac_cv_func_shl_load=no
 
19234
fi
 
19235
rm -f conftest.err conftest.$ac_objext \
 
19236
      conftest$ac_exeext conftest.$ac_ext
 
19237
fi
 
19238
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19239
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19240
if test $ac_cv_func_shl_load = yes; then
 
19241
  lt_cv_dlopen="shl_load"
 
19242
else
 
19243
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19244
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19245
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19247
else
 
19248
  ac_check_lib_save_LIBS=$LIBS
 
19249
LIBS="-ldld  $LIBS"
 
19250
cat >conftest.$ac_ext <<_ACEOF
 
19251
/* confdefs.h.  */
 
19252
_ACEOF
 
19253
cat confdefs.h >>conftest.$ac_ext
 
19254
cat >>conftest.$ac_ext <<_ACEOF
 
19255
/* end confdefs.h.  */
 
19256
 
 
19257
/* Override any gcc2 internal prototype to avoid an error.  */
 
19258
#ifdef __cplusplus
 
19259
extern "C"
 
19260
#endif
 
19261
/* We use char because int might match the return type of a gcc2
 
19262
   builtin and then its argument prototype would still apply.  */
 
19263
char shl_load ();
 
19264
int
 
19265
main ()
 
19266
{
 
19267
shl_load ();
 
19268
  ;
 
19269
  return 0;
 
19270
}
 
19271
_ACEOF
 
19272
rm -f conftest.$ac_objext conftest$ac_exeext
 
19273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19274
  (eval $ac_link) 2>conftest.er1
 
19275
  ac_status=$?
 
19276
  grep -v '^ *+' conftest.er1 >conftest.err
 
19277
  rm -f conftest.er1
 
19278
  cat conftest.err >&5
 
19279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19280
  (exit $ac_status); } &&
 
19281
         { ac_try='test -z "$ac_c_werror_flag"
 
19282
                         || test ! -s conftest.err'
 
19283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19284
  (eval $ac_try) 2>&5
 
19285
  ac_status=$?
 
19286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19287
  (exit $ac_status); }; } &&
 
19288
         { ac_try='test -s conftest$ac_exeext'
 
19289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19290
  (eval $ac_try) 2>&5
 
19291
  ac_status=$?
 
19292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19293
  (exit $ac_status); }; }; then
 
19294
  ac_cv_lib_dld_shl_load=yes
 
19295
else
 
19296
  echo "$as_me: failed program was:" >&5
 
19297
sed 's/^/| /' conftest.$ac_ext >&5
 
19298
 
 
19299
ac_cv_lib_dld_shl_load=no
 
19300
fi
 
19301
rm -f conftest.err conftest.$ac_objext \
 
19302
      conftest$ac_exeext conftest.$ac_ext
 
19303
LIBS=$ac_check_lib_save_LIBS
 
19304
fi
 
19305
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19306
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19307
if test $ac_cv_lib_dld_shl_load = yes; then
 
19308
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19309
else
 
19310
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19311
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19312
if test "${ac_cv_func_dlopen+set}" = set; then
 
19313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19314
else
 
19315
  cat >conftest.$ac_ext <<_ACEOF
 
19316
/* confdefs.h.  */
 
19317
_ACEOF
 
19318
cat confdefs.h >>conftest.$ac_ext
 
19319
cat >>conftest.$ac_ext <<_ACEOF
 
19320
/* end confdefs.h.  */
 
19321
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19322
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19323
#define dlopen innocuous_dlopen
 
19324
 
 
19325
/* System header to define __stub macros and hopefully few prototypes,
 
19326
    which can conflict with char dlopen (); below.
 
19327
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19328
    <limits.h> exists even on freestanding compilers.  */
 
19329
 
 
19330
#ifdef __STDC__
 
19331
# include <limits.h>
 
19332
#else
 
19333
# include <assert.h>
 
19334
#endif
 
19335
 
 
19336
#undef dlopen
 
19337
 
 
19338
/* Override any gcc2 internal prototype to avoid an error.  */
 
19339
#ifdef __cplusplus
 
19340
extern "C"
 
19341
{
 
19342
#endif
 
19343
/* We use char because int might match the return type of a gcc2
 
19344
   builtin and then its argument prototype would still apply.  */
 
19345
char dlopen ();
 
19346
/* The GNU C library defines this for functions which it implements
 
19347
    to always fail with ENOSYS.  Some functions are actually named
 
19348
    something starting with __ and the normal name is an alias.  */
 
19349
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19350
choke me
 
19351
#else
 
19352
char (*f) () = dlopen;
 
19353
#endif
 
19354
#ifdef __cplusplus
 
19355
}
 
19356
#endif
 
19357
 
 
19358
int
 
19359
main ()
 
19360
{
 
19361
return f != dlopen;
 
19362
  ;
 
19363
  return 0;
 
19364
}
 
19365
_ACEOF
 
19366
rm -f conftest.$ac_objext conftest$ac_exeext
 
19367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19368
  (eval $ac_link) 2>conftest.er1
 
19369
  ac_status=$?
 
19370
  grep -v '^ *+' conftest.er1 >conftest.err
 
19371
  rm -f conftest.er1
 
19372
  cat conftest.err >&5
 
19373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19374
  (exit $ac_status); } &&
 
19375
         { ac_try='test -z "$ac_c_werror_flag"
 
19376
                         || test ! -s conftest.err'
 
19377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19378
  (eval $ac_try) 2>&5
 
19379
  ac_status=$?
 
19380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19381
  (exit $ac_status); }; } &&
 
19382
         { ac_try='test -s conftest$ac_exeext'
 
19383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19384
  (eval $ac_try) 2>&5
 
19385
  ac_status=$?
 
19386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19387
  (exit $ac_status); }; }; then
 
19388
  ac_cv_func_dlopen=yes
 
19389
else
 
19390
  echo "$as_me: failed program was:" >&5
 
19391
sed 's/^/| /' conftest.$ac_ext >&5
 
19392
 
 
19393
ac_cv_func_dlopen=no
 
19394
fi
 
19395
rm -f conftest.err conftest.$ac_objext \
 
19396
      conftest$ac_exeext conftest.$ac_ext
 
19397
fi
 
19398
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19399
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19400
if test $ac_cv_func_dlopen = yes; then
 
19401
  lt_cv_dlopen="dlopen"
 
19402
else
 
19403
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19404
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19405
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19407
else
 
19408
  ac_check_lib_save_LIBS=$LIBS
 
19409
LIBS="-ldl  $LIBS"
 
19410
cat >conftest.$ac_ext <<_ACEOF
 
19411
/* confdefs.h.  */
 
19412
_ACEOF
 
19413
cat confdefs.h >>conftest.$ac_ext
 
19414
cat >>conftest.$ac_ext <<_ACEOF
 
19415
/* end confdefs.h.  */
 
19416
 
 
19417
/* Override any gcc2 internal prototype to avoid an error.  */
 
19418
#ifdef __cplusplus
 
19419
extern "C"
 
19420
#endif
 
19421
/* We use char because int might match the return type of a gcc2
 
19422
   builtin and then its argument prototype would still apply.  */
 
19423
char dlopen ();
 
19424
int
 
19425
main ()
 
19426
{
 
19427
dlopen ();
 
19428
  ;
 
19429
  return 0;
 
19430
}
 
19431
_ACEOF
 
19432
rm -f conftest.$ac_objext conftest$ac_exeext
 
19433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19434
  (eval $ac_link) 2>conftest.er1
 
19435
  ac_status=$?
 
19436
  grep -v '^ *+' conftest.er1 >conftest.err
 
19437
  rm -f conftest.er1
 
19438
  cat conftest.err >&5
 
19439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19440
  (exit $ac_status); } &&
 
19441
         { ac_try='test -z "$ac_c_werror_flag"
 
19442
                         || test ! -s conftest.err'
 
19443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19444
  (eval $ac_try) 2>&5
 
19445
  ac_status=$?
 
19446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19447
  (exit $ac_status); }; } &&
 
19448
         { ac_try='test -s conftest$ac_exeext'
 
19449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19450
  (eval $ac_try) 2>&5
 
19451
  ac_status=$?
 
19452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19453
  (exit $ac_status); }; }; then
 
19454
  ac_cv_lib_dl_dlopen=yes
 
19455
else
 
19456
  echo "$as_me: failed program was:" >&5
 
19457
sed 's/^/| /' conftest.$ac_ext >&5
 
19458
 
 
19459
ac_cv_lib_dl_dlopen=no
 
19460
fi
 
19461
rm -f conftest.err conftest.$ac_objext \
 
19462
      conftest$ac_exeext conftest.$ac_ext
 
19463
LIBS=$ac_check_lib_save_LIBS
 
19464
fi
 
19465
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19466
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19467
if test $ac_cv_lib_dl_dlopen = yes; then
 
19468
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19469
else
 
19470
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19471
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19472
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19474
else
 
19475
  ac_check_lib_save_LIBS=$LIBS
 
19476
LIBS="-lsvld  $LIBS"
 
19477
cat >conftest.$ac_ext <<_ACEOF
 
19478
/* confdefs.h.  */
 
19479
_ACEOF
 
19480
cat confdefs.h >>conftest.$ac_ext
 
19481
cat >>conftest.$ac_ext <<_ACEOF
 
19482
/* end confdefs.h.  */
 
19483
 
 
19484
/* Override any gcc2 internal prototype to avoid an error.  */
 
19485
#ifdef __cplusplus
 
19486
extern "C"
 
19487
#endif
 
19488
/* We use char because int might match the return type of a gcc2
 
19489
   builtin and then its argument prototype would still apply.  */
 
19490
char dlopen ();
 
19491
int
 
19492
main ()
 
19493
{
 
19494
dlopen ();
 
19495
  ;
 
19496
  return 0;
 
19497
}
 
19498
_ACEOF
 
19499
rm -f conftest.$ac_objext conftest$ac_exeext
 
19500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19501
  (eval $ac_link) 2>conftest.er1
 
19502
  ac_status=$?
 
19503
  grep -v '^ *+' conftest.er1 >conftest.err
 
19504
  rm -f conftest.er1
 
19505
  cat conftest.err >&5
 
19506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19507
  (exit $ac_status); } &&
 
19508
         { ac_try='test -z "$ac_c_werror_flag"
 
19509
                         || test ! -s conftest.err'
 
19510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19511
  (eval $ac_try) 2>&5
 
19512
  ac_status=$?
 
19513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19514
  (exit $ac_status); }; } &&
 
19515
         { ac_try='test -s conftest$ac_exeext'
 
19516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19517
  (eval $ac_try) 2>&5
 
19518
  ac_status=$?
 
19519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19520
  (exit $ac_status); }; }; then
 
19521
  ac_cv_lib_svld_dlopen=yes
 
19522
else
 
19523
  echo "$as_me: failed program was:" >&5
 
19524
sed 's/^/| /' conftest.$ac_ext >&5
 
19525
 
 
19526
ac_cv_lib_svld_dlopen=no
 
19527
fi
 
19528
rm -f conftest.err conftest.$ac_objext \
 
19529
      conftest$ac_exeext conftest.$ac_ext
 
19530
LIBS=$ac_check_lib_save_LIBS
 
19531
fi
 
19532
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19533
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19534
if test $ac_cv_lib_svld_dlopen = yes; then
 
19535
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19536
else
 
19537
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19538
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19539
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19541
else
 
19542
  ac_check_lib_save_LIBS=$LIBS
 
19543
LIBS="-ldld  $LIBS"
 
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
 
 
19551
/* Override any gcc2 internal prototype to avoid an error.  */
 
19552
#ifdef __cplusplus
 
19553
extern "C"
 
19554
#endif
 
19555
/* We use char because int might match the return type of a gcc2
 
19556
   builtin and then its argument prototype would still apply.  */
 
19557
char dld_link ();
 
19558
int
 
19559
main ()
 
19560
{
 
19561
dld_link ();
 
19562
  ;
 
19563
  return 0;
 
19564
}
 
19565
_ACEOF
 
19566
rm -f conftest.$ac_objext conftest$ac_exeext
 
19567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19568
  (eval $ac_link) 2>conftest.er1
 
19569
  ac_status=$?
 
19570
  grep -v '^ *+' conftest.er1 >conftest.err
 
19571
  rm -f conftest.er1
 
19572
  cat conftest.err >&5
 
19573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19574
  (exit $ac_status); } &&
 
19575
         { ac_try='test -z "$ac_c_werror_flag"
 
19576
                         || test ! -s conftest.err'
 
19577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19578
  (eval $ac_try) 2>&5
 
19579
  ac_status=$?
 
19580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19581
  (exit $ac_status); }; } &&
 
19582
         { ac_try='test -s conftest$ac_exeext'
 
19583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19584
  (eval $ac_try) 2>&5
 
19585
  ac_status=$?
 
19586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19587
  (exit $ac_status); }; }; then
 
19588
  ac_cv_lib_dld_dld_link=yes
 
19589
else
 
19590
  echo "$as_me: failed program was:" >&5
 
19591
sed 's/^/| /' conftest.$ac_ext >&5
 
19592
 
 
19593
ac_cv_lib_dld_dld_link=no
 
19594
fi
 
19595
rm -f conftest.err conftest.$ac_objext \
 
19596
      conftest$ac_exeext conftest.$ac_ext
 
19597
LIBS=$ac_check_lib_save_LIBS
 
19598
fi
 
19599
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19600
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19601
if test $ac_cv_lib_dld_dld_link = yes; then
 
19602
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19603
fi
 
19604
 
 
19605
 
 
19606
fi
 
19607
 
 
19608
 
 
19609
fi
 
19610
 
 
19611
 
 
19612
fi
 
19613
 
 
19614
 
 
19615
fi
 
19616
 
 
19617
 
 
19618
fi
 
19619
 
 
19620
    ;;
 
19621
  esac
 
19622
 
 
19623
  if test "x$lt_cv_dlopen" != xno; then
 
19624
    enable_dlopen=yes
 
19625
  else
 
19626
    enable_dlopen=no
 
19627
  fi
 
19628
 
 
19629
  case $lt_cv_dlopen in
 
19630
  dlopen)
 
19631
    save_CPPFLAGS="$CPPFLAGS"
 
19632
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19633
 
 
19634
    save_LDFLAGS="$LDFLAGS"
 
19635
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19636
 
 
19637
    save_LIBS="$LIBS"
 
19638
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19639
 
 
19640
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19641
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19642
if test "${lt_cv_dlopen_self+set}" = set; then
 
19643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19644
else
 
19645
          if test "$cross_compiling" = yes; then :
 
19646
  lt_cv_dlopen_self=cross
 
19647
else
 
19648
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19649
  lt_status=$lt_dlunknown
 
19650
  cat > conftest.$ac_ext <<EOF
 
19651
#line 19651 "configure"
 
19652
#include "confdefs.h"
 
19653
 
 
19654
#if HAVE_DLFCN_H
 
19655
#include <dlfcn.h>
 
19656
#endif
 
19657
 
 
19658
#include <stdio.h>
 
19659
 
 
19660
#ifdef RTLD_GLOBAL
 
19661
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19662
#else
 
19663
#  ifdef DL_GLOBAL
 
19664
#    define LT_DLGLOBAL         DL_GLOBAL
 
19665
#  else
 
19666
#    define LT_DLGLOBAL         0
 
19667
#  endif
 
19668
#endif
 
19669
 
 
19670
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19671
   find out it does not work in some platform. */
 
19672
#ifndef LT_DLLAZY_OR_NOW
 
19673
#  ifdef RTLD_LAZY
 
19674
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19675
#  else
 
19676
#    ifdef DL_LAZY
 
19677
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19678
#    else
 
19679
#      ifdef RTLD_NOW
 
19680
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19681
#      else
 
19682
#        ifdef DL_NOW
 
19683
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19684
#        else
 
19685
#          define LT_DLLAZY_OR_NOW      0
 
19686
#        endif
 
19687
#      endif
 
19688
#    endif
 
19689
#  endif
 
19690
#endif
 
19691
 
 
19692
#ifdef __cplusplus
 
19693
extern "C" void exit (int);
 
19694
#endif
 
19695
 
 
19696
void fnord() { int i=42;}
 
19697
int main ()
 
19698
{
 
19699
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19700
  int status = $lt_dlunknown;
 
19701
 
 
19702
  if (self)
 
19703
    {
 
19704
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19705
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19706
      /* dlclose (self); */
 
19707
    }
 
19708
 
 
19709
    exit (status);
 
19710
}
 
19711
EOF
 
19712
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19713
  (eval $ac_link) 2>&5
 
19714
  ac_status=$?
 
19715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19716
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19717
    (./conftest; exit; ) 2>/dev/null
 
19718
    lt_status=$?
 
19719
    case x$lt_status in
 
19720
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19721
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19722
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19723
    esac
 
19724
  else :
 
19725
    # compilation failed
 
19726
    lt_cv_dlopen_self=no
 
19727
  fi
 
19728
fi
 
19729
rm -fr conftest*
 
19730
 
 
19731
 
 
19732
fi
 
19733
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19734
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19735
 
 
19736
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19737
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19738
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
19739
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
19740
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
19741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19742
else
 
19743
          if test "$cross_compiling" = yes; then :
 
19744
  lt_cv_dlopen_self_static=cross
 
19745
else
 
19746
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19747
  lt_status=$lt_dlunknown
 
19748
  cat > conftest.$ac_ext <<EOF
 
19749
#line 19749 "configure"
 
19750
#include "confdefs.h"
 
19751
 
 
19752
#if HAVE_DLFCN_H
 
19753
#include <dlfcn.h>
 
19754
#endif
 
19755
 
 
19756
#include <stdio.h>
 
19757
 
 
19758
#ifdef RTLD_GLOBAL
 
19759
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19760
#else
 
19761
#  ifdef DL_GLOBAL
 
19762
#    define LT_DLGLOBAL         DL_GLOBAL
 
19763
#  else
 
19764
#    define LT_DLGLOBAL         0
 
19765
#  endif
 
19766
#endif
 
19767
 
 
19768
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19769
   find out it does not work in some platform. */
 
19770
#ifndef LT_DLLAZY_OR_NOW
 
19771
#  ifdef RTLD_LAZY
 
19772
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19773
#  else
 
19774
#    ifdef DL_LAZY
 
19775
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19776
#    else
 
19777
#      ifdef RTLD_NOW
 
19778
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19779
#      else
 
19780
#        ifdef DL_NOW
 
19781
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19782
#        else
 
19783
#          define LT_DLLAZY_OR_NOW      0
 
19784
#        endif
 
19785
#      endif
 
19786
#    endif
 
19787
#  endif
 
19788
#endif
 
19789
 
 
19790
#ifdef __cplusplus
 
19791
extern "C" void exit (int);
 
19792
#endif
 
19793
 
 
19794
void fnord() { int i=42;}
 
19795
int main ()
 
19796
{
 
19797
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19798
  int status = $lt_dlunknown;
 
19799
 
 
19800
  if (self)
 
19801
    {
 
19802
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19803
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19804
      /* dlclose (self); */
 
19805
    }
 
19806
 
 
19807
    exit (status);
 
19808
}
 
19809
EOF
 
19810
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19811
  (eval $ac_link) 2>&5
 
19812
  ac_status=$?
 
19813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19814
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19815
    (./conftest; exit; ) 2>/dev/null
 
19816
    lt_status=$?
 
19817
    case x$lt_status in
 
19818
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19819
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19820
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19821
    esac
 
19822
  else :
 
19823
    # compilation failed
 
19824
    lt_cv_dlopen_self_static=no
 
19825
  fi
 
19826
fi
 
19827
rm -fr conftest*
 
19828
 
 
19829
 
 
19830
fi
 
19831
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19832
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19833
    fi
 
19834
 
 
19835
    CPPFLAGS="$save_CPPFLAGS"
 
19836
    LDFLAGS="$save_LDFLAGS"
 
19837
    LIBS="$save_LIBS"
 
19838
    ;;
 
19839
  esac
 
19840
 
 
19841
  case $lt_cv_dlopen_self in
 
19842
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19843
  *) enable_dlopen_self=unknown ;;
 
19844
  esac
 
19845
 
 
19846
  case $lt_cv_dlopen_self_static in
 
19847
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19848
  *) enable_dlopen_self_static=unknown ;;
 
19849
  esac
 
19850
fi
 
19851
 
 
19852
 
 
19853
# The else clause should only fire when bootstrapping the
 
19854
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19855
# with your package, and you will get complaints that there are
 
19856
# no rules to generate ltmain.sh.
 
19857
if test -f "$ltmain"; then
 
19858
  # See if we are running on zsh, and set the options which allow our commands through
 
19859
  # without removal of \ escapes.
 
19860
  if test -n "${ZSH_VERSION+set}" ; then
 
19861
    setopt NO_GLOB_SUBST
 
19862
  fi
 
19863
  # Now quote all the things that may contain metacharacters while being
 
19864
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19865
  # variables and quote the copies for generation of the libtool script.
 
19866
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
19867
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19868
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19869
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19870
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19871
    lt_cv_sys_global_symbol_to_c_name_address \
 
19872
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19873
    old_postinstall_cmds old_postuninstall_cmds \
 
19874
    compiler_GCJ \
 
19875
    CC_GCJ \
 
19876
    LD_GCJ \
 
19877
    lt_prog_compiler_wl_GCJ \
 
19878
    lt_prog_compiler_pic_GCJ \
 
19879
    lt_prog_compiler_static_GCJ \
 
19880
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19881
    export_dynamic_flag_spec_GCJ \
 
19882
    thread_safe_flag_spec_GCJ \
 
19883
    whole_archive_flag_spec_GCJ \
 
19884
    enable_shared_with_static_runtimes_GCJ \
 
19885
    old_archive_cmds_GCJ \
 
19886
    old_archive_from_new_cmds_GCJ \
 
19887
    predep_objects_GCJ \
 
19888
    postdep_objects_GCJ \
 
19889
    predeps_GCJ \
 
19890
    postdeps_GCJ \
 
19891
    compiler_lib_search_path_GCJ \
 
19892
    archive_cmds_GCJ \
 
19893
    archive_expsym_cmds_GCJ \
 
19894
    postinstall_cmds_GCJ \
 
19895
    postuninstall_cmds_GCJ \
 
19896
    old_archive_from_expsyms_cmds_GCJ \
 
19897
    allow_undefined_flag_GCJ \
 
19898
    no_undefined_flag_GCJ \
 
19899
    export_symbols_cmds_GCJ \
 
19900
    hardcode_libdir_flag_spec_GCJ \
 
19901
    hardcode_libdir_flag_spec_ld_GCJ \
 
19902
    hardcode_libdir_separator_GCJ \
 
19903
    hardcode_automatic_GCJ \
 
19904
    module_cmds_GCJ \
 
19905
    module_expsym_cmds_GCJ \
 
19906
    lt_cv_prog_compiler_c_o_GCJ \
 
19907
    exclude_expsyms_GCJ \
 
19908
    include_expsyms_GCJ; do
 
19909
 
 
19910
    case $var in
 
19911
    old_archive_cmds_GCJ | \
 
19912
    old_archive_from_new_cmds_GCJ | \
 
19913
    archive_cmds_GCJ | \
 
19914
    archive_expsym_cmds_GCJ | \
 
19915
    module_cmds_GCJ | \
 
19916
    module_expsym_cmds_GCJ | \
 
19917
    old_archive_from_expsyms_cmds_GCJ | \
 
19918
    export_symbols_cmds_GCJ | \
 
19919
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19920
    postinstall_cmds | postuninstall_cmds | \
 
19921
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19922
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19923
      # Double-quote double-evaled strings.
 
19924
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19925
      ;;
 
19926
    *)
 
19927
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19928
      ;;
 
19929
    esac
 
19930
  done
 
19931
 
 
19932
  case $lt_echo in
 
19933
  *'\$0 --fallback-echo"')
 
19934
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19935
    ;;
 
19936
  esac
 
19937
 
 
19938
cfgfile="$ofile"
 
19939
 
 
19940
  cat <<__EOF__ >> "$cfgfile"
 
19941
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19942
 
 
19943
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19944
 
 
19945
# Shell to use when invoking shell scripts.
 
19946
SHELL=$lt_SHELL
 
19947
 
 
19948
# Whether or not to build shared libraries.
 
19949
build_libtool_libs=$enable_shared
 
19950
 
 
19951
# Whether or not to build static libraries.
 
19952
build_old_libs=$enable_static
 
19953
 
 
19954
# Whether or not to add -lc for building shared libraries.
 
19955
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19956
 
 
19957
# Whether or not to disallow shared libs when runtime libs are static
 
19958
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19959
 
 
19960
# Whether or not to optimize for fast installation.
 
19961
fast_install=$enable_fast_install
 
19962
 
 
19963
# The host system.
 
19964
host_alias=$host_alias
 
19965
host=$host
 
19966
 
 
19967
# An echo program that does not interpret backslashes.
 
19968
echo=$lt_echo
 
19969
 
 
19970
# The archiver.
 
19971
AR=$lt_AR
 
19972
AR_FLAGS=$lt_AR_FLAGS
 
19973
 
 
19974
# A C compiler.
 
19975
LTCC=$lt_LTCC
 
19976
 
 
19977
# A language-specific compiler.
 
19978
CC=$lt_compiler_GCJ
 
19979
 
 
19980
# Is the compiler the GNU C compiler?
 
19981
with_gcc=$GCC_GCJ
 
19982
 
 
19983
# An ERE matcher.
 
19984
EGREP=$lt_EGREP
 
19985
 
 
19986
# The linker used to build libraries.
 
19987
LD=$lt_LD_GCJ
 
19988
 
 
19989
# Whether we need hard or soft links.
 
19990
LN_S=$lt_LN_S
 
19991
 
 
19992
# A BSD-compatible nm program.
 
19993
NM=$lt_NM
 
19994
 
 
19995
# A symbol stripping program
 
19996
STRIP=$STRIP
 
19997
 
 
19998
# Used to examine libraries when file_magic_cmd begins "file"
 
19999
MAGIC_CMD=$MAGIC_CMD
 
20000
 
 
20001
# Used on cygwin: DLL creation program.
 
20002
DLLTOOL="$DLLTOOL"
 
20003
 
 
20004
# Used on cygwin: object dumper.
 
20005
OBJDUMP="$OBJDUMP"
 
20006
 
 
20007
# Used on cygwin: assembler.
 
20008
AS="$AS"
 
20009
 
 
20010
# The name of the directory that contains temporary libtool files.
 
20011
objdir=$objdir
 
20012
 
 
20013
# How to create reloadable object files.
 
20014
reload_flag=$lt_reload_flag
 
20015
reload_cmds=$lt_reload_cmds
 
20016
 
 
20017
# How to pass a linker flag through the compiler.
 
20018
wl=$lt_lt_prog_compiler_wl_GCJ
 
20019
 
 
20020
# Object file suffix (normally "o").
 
20021
objext="$ac_objext"
 
20022
 
 
20023
# Old archive suffix (normally "a").
 
20024
libext="$libext"
 
20025
 
 
20026
# Shared library suffix (normally ".so").
 
20027
shrext='$shrext'
 
20028
 
 
20029
# Executable file suffix (normally "").
 
20030
exeext="$exeext"
 
20031
 
 
20032
# Additional compiler flags for building library objects.
 
20033
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
20034
pic_mode=$pic_mode
 
20035
 
 
20036
# What is the maximum length of a command?
 
20037
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20038
 
 
20039
# Does compiler simultaneously support -c and -o options?
 
20040
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
20041
 
 
20042
# Must we lock files when doing compilation ?
 
20043
need_locks=$lt_need_locks
 
20044
 
 
20045
# Do we need the lib prefix for modules?
 
20046
need_lib_prefix=$need_lib_prefix
 
20047
 
 
20048
# Do we need a version for libraries?
 
20049
need_version=$need_version
 
20050
 
 
20051
# Whether dlopen is supported.
 
20052
dlopen_support=$enable_dlopen
 
20053
 
 
20054
# Whether dlopen of programs is supported.
 
20055
dlopen_self=$enable_dlopen_self
 
20056
 
 
20057
# Whether dlopen of statically linked programs is supported.
 
20058
dlopen_self_static=$enable_dlopen_self_static
 
20059
 
 
20060
# Compiler flag to prevent dynamic linking.
 
20061
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
20062
 
 
20063
# Compiler flag to turn off builtin functions.
 
20064
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
20065
 
 
20066
# Compiler flag to allow reflexive dlopens.
 
20067
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
20068
 
 
20069
# Compiler flag to generate shared objects directly from archives.
 
20070
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
20071
 
 
20072
# Compiler flag to generate thread-safe objects.
 
20073
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
20074
 
 
20075
# Library versioning type.
 
20076
version_type=$version_type
 
20077
 
 
20078
# Format of library name prefix.
 
20079
libname_spec=$lt_libname_spec
 
20080
 
 
20081
# List of archive names.  First name is the real one, the rest are links.
 
20082
# The last name is the one that the linker finds with -lNAME.
 
20083
library_names_spec=$lt_library_names_spec
 
20084
 
 
20085
# The coded name of the library, if different from the real name.
 
20086
soname_spec=$lt_soname_spec
 
20087
 
 
20088
# Commands used to build and install an old-style archive.
 
20089
RANLIB=$lt_RANLIB
 
20090
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
20091
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20092
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20093
 
 
20094
# Create an old-style archive from a shared archive.
 
20095
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
20096
 
 
20097
# Create a temporary old-style archive to link instead of a shared archive.
 
20098
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
20099
 
 
20100
# Commands used to build and install a shared archive.
 
20101
archive_cmds=$lt_archive_cmds_GCJ
 
20102
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
20103
postinstall_cmds=$lt_postinstall_cmds
 
20104
postuninstall_cmds=$lt_postuninstall_cmds
 
20105
 
 
20106
# Commands used to build a loadable module (assumed same as above if empty)
 
20107
module_cmds=$lt_module_cmds_GCJ
 
20108
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20109
 
 
20110
# Commands to strip libraries.
 
20111
old_striplib=$lt_old_striplib
 
20112
striplib=$lt_striplib
 
20113
 
 
20114
# Dependencies to place before the objects being linked to create a
 
20115
# shared library.
 
20116
predep_objects=$lt_predep_objects_GCJ
 
20117
 
 
20118
# Dependencies to place after the objects being linked to create a
 
20119
# shared library.
 
20120
postdep_objects=$lt_postdep_objects_GCJ
 
20121
 
 
20122
# Dependencies to place before the objects being linked to create a
 
20123
# shared library.
 
20124
predeps=$lt_predeps_GCJ
 
20125
 
 
20126
# Dependencies to place after the objects being linked to create a
 
20127
# shared library.
 
20128
postdeps=$lt_postdeps_GCJ
 
20129
 
 
20130
# The library search path used internally by the compiler when linking
 
20131
# a shared library.
 
20132
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20133
 
 
20134
# Method to check whether dependent libraries are shared objects.
 
20135
deplibs_check_method=$lt_deplibs_check_method
 
20136
 
 
20137
# Command to use when deplibs_check_method == file_magic.
 
20138
file_magic_cmd=$lt_file_magic_cmd
 
20139
 
 
20140
# Flag that allows shared libraries with undefined symbols to be built.
 
20141
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20142
 
 
20143
# Flag that forces no undefined symbols.
 
20144
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20145
 
 
20146
# Commands used to finish a libtool library installation in a directory.
 
20147
finish_cmds=$lt_finish_cmds
 
20148
 
 
20149
# Same as above, but a single script fragment to be evaled but not shown.
 
20150
finish_eval=$lt_finish_eval
 
20151
 
 
20152
# Take the output of nm and produce a listing of raw symbols and C names.
 
20153
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20154
 
 
20155
# Transform the output of nm in a proper C declaration
 
20156
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20157
 
 
20158
# Transform the output of nm in a C name address pair
 
20159
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20160
 
 
20161
# This is the shared library runtime path variable.
 
20162
runpath_var=$runpath_var
 
20163
 
 
20164
# This is the shared library path variable.
 
20165
shlibpath_var=$shlibpath_var
 
20166
 
 
20167
# Is shlibpath searched before the hard-coded library search path?
 
20168
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20169
 
 
20170
# How to hardcode a shared library path into an executable.
 
20171
hardcode_action=$hardcode_action_GCJ
 
20172
 
 
20173
# Whether we should hardcode library paths into libraries.
 
20174
hardcode_into_libs=$hardcode_into_libs
 
20175
 
 
20176
# Flag to hardcode \$libdir into a binary during linking.
 
20177
# This must work even if \$libdir does not exist.
 
20178
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20179
 
 
20180
# If ld is used when linking, flag to hardcode \$libdir into
 
20181
# a binary during linking. This must work even if \$libdir does
 
20182
# not exist.
 
20183
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20184
 
 
20185
# Whether we need a single -rpath flag with a separated argument.
 
20186
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20187
 
 
20188
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20189
# resulting binary.
 
20190
hardcode_direct=$hardcode_direct_GCJ
 
20191
 
 
20192
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20193
# resulting binary.
 
20194
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20195
 
 
20196
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20197
# the resulting binary.
 
20198
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20199
 
 
20200
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20201
# and all subsequent libraries and executables linked against it.
 
20202
hardcode_automatic=$hardcode_automatic_GCJ
 
20203
 
 
20204
# Variables whose values should be saved in libtool wrapper scripts and
 
20205
# restored at relink time.
 
20206
variables_saved_for_relink="$variables_saved_for_relink"
 
20207
 
 
20208
# Whether libtool must link a program against all its dependency libraries.
 
20209
link_all_deplibs=$link_all_deplibs_GCJ
 
20210
 
 
20211
# Compile-time system search path for libraries
 
20212
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20213
 
 
20214
# Run-time system search path for libraries
 
20215
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20216
 
 
20217
# Fix the shell variable \$srcfile for the compiler.
 
20218
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
20219
 
 
20220
# Set to yes if exported symbols are required.
 
20221
always_export_symbols=$always_export_symbols_GCJ
 
20222
 
 
20223
# The commands to list exported symbols.
 
20224
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20225
 
 
20226
# The commands to extract the exported symbol list from a shared archive.
 
20227
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20228
 
 
20229
# Symbols that should not be listed in the preloaded symbols.
 
20230
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20231
 
 
20232
# Symbols that must always be exported.
 
20233
include_expsyms=$lt_include_expsyms_GCJ
 
20234
 
 
20235
# ### END LIBTOOL TAG CONFIG: $tagname
 
20236
 
 
20237
__EOF__
 
20238
 
 
20239
 
 
20240
else
 
20241
  # If there is no Makefile yet, we rely on a make rule to execute
 
20242
  # `config.status --recheck' to rerun these tests and create the
 
20243
  # libtool script then.
 
20244
  test -f Makefile && make "$ltmain"
 
20245
fi
 
20246
 
 
20247
 
 
20248
ac_ext=c
 
20249
ac_cpp='$CPP $CPPFLAGS'
 
20250
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20251
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20252
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20253
 
 
20254
CC="$lt_save_CC"
 
20255
 
 
20256
        else
 
20257
          tagname=""
 
20258
        fi
 
20259
        ;;
 
20260
 
 
20261
      RC)
 
20262
 
 
20263
 
 
20264
 
 
20265
# Source file extension for RC test sources.
 
20266
ac_ext=rc
 
20267
 
 
20268
# Object file extension for compiled RC test sources.
 
20269
objext=o
 
20270
objext_RC=$objext
 
20271
 
 
20272
# Code to be used in simple compile tests
 
20273
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
20274
 
 
20275
# Code to be used in simple link tests
 
20276
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
20277
 
 
20278
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20279
 
 
20280
# If no C compiler was specified, use CC.
 
20281
LTCC=${LTCC-"$CC"}
 
20282
 
 
20283
# Allow CC to be a program name with arguments.
 
20284
compiler=$CC
 
20285
 
 
20286
 
 
20287
# Allow CC to be a program name with arguments.
 
20288
lt_save_CC="$CC"
 
20289
CC=${RC-"windres"}
 
20290
compiler=$CC
 
20291
compiler_RC=$CC
 
20292
lt_cv_prog_compiler_c_o_RC=yes
 
20293
 
 
20294
# The else clause should only fire when bootstrapping the
 
20295
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20296
# with your package, and you will get complaints that there are
 
20297
# no rules to generate ltmain.sh.
 
20298
if test -f "$ltmain"; then
 
20299
  # See if we are running on zsh, and set the options which allow our commands through
 
20300
  # without removal of \ escapes.
 
20301
  if test -n "${ZSH_VERSION+set}" ; then
 
20302
    setopt NO_GLOB_SUBST
 
20303
  fi
 
20304
  # Now quote all the things that may contain metacharacters while being
 
20305
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20306
  # variables and quote the copies for generation of the libtool script.
 
20307
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
20308
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20309
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20310
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20311
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20312
    lt_cv_sys_global_symbol_to_c_name_address \
 
20313
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20314
    old_postinstall_cmds old_postuninstall_cmds \
 
20315
    compiler_RC \
 
20316
    CC_RC \
 
20317
    LD_RC \
 
20318
    lt_prog_compiler_wl_RC \
 
20319
    lt_prog_compiler_pic_RC \
 
20320
    lt_prog_compiler_static_RC \
 
20321
    lt_prog_compiler_no_builtin_flag_RC \
 
20322
    export_dynamic_flag_spec_RC \
 
20323
    thread_safe_flag_spec_RC \
 
20324
    whole_archive_flag_spec_RC \
 
20325
    enable_shared_with_static_runtimes_RC \
 
20326
    old_archive_cmds_RC \
 
20327
    old_archive_from_new_cmds_RC \
 
20328
    predep_objects_RC \
 
20329
    postdep_objects_RC \
 
20330
    predeps_RC \
 
20331
    postdeps_RC \
 
20332
    compiler_lib_search_path_RC \
 
20333
    archive_cmds_RC \
 
20334
    archive_expsym_cmds_RC \
 
20335
    postinstall_cmds_RC \
 
20336
    postuninstall_cmds_RC \
 
20337
    old_archive_from_expsyms_cmds_RC \
 
20338
    allow_undefined_flag_RC \
 
20339
    no_undefined_flag_RC \
 
20340
    export_symbols_cmds_RC \
 
20341
    hardcode_libdir_flag_spec_RC \
 
20342
    hardcode_libdir_flag_spec_ld_RC \
 
20343
    hardcode_libdir_separator_RC \
 
20344
    hardcode_automatic_RC \
 
20345
    module_cmds_RC \
 
20346
    module_expsym_cmds_RC \
 
20347
    lt_cv_prog_compiler_c_o_RC \
 
20348
    exclude_expsyms_RC \
 
20349
    include_expsyms_RC; do
 
20350
 
 
20351
    case $var in
 
20352
    old_archive_cmds_RC | \
 
20353
    old_archive_from_new_cmds_RC | \
 
20354
    archive_cmds_RC | \
 
20355
    archive_expsym_cmds_RC | \
 
20356
    module_cmds_RC | \
 
20357
    module_expsym_cmds_RC | \
 
20358
    old_archive_from_expsyms_cmds_RC | \
 
20359
    export_symbols_cmds_RC | \
 
20360
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20361
    postinstall_cmds | postuninstall_cmds | \
 
20362
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20363
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20364
      # Double-quote double-evaled strings.
 
20365
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20366
      ;;
 
20367
    *)
 
20368
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20369
      ;;
 
20370
    esac
 
20371
  done
 
20372
 
 
20373
  case $lt_echo in
 
20374
  *'\$0 --fallback-echo"')
 
20375
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20376
    ;;
 
20377
  esac
 
20378
 
 
20379
cfgfile="$ofile"
 
20380
 
 
20381
  cat <<__EOF__ >> "$cfgfile"
 
20382
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20383
 
 
20384
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20385
 
 
20386
# Shell to use when invoking shell scripts.
 
20387
SHELL=$lt_SHELL
 
20388
 
 
20389
# Whether or not to build shared libraries.
 
20390
build_libtool_libs=$enable_shared
 
20391
 
 
20392
# Whether or not to build static libraries.
 
20393
build_old_libs=$enable_static
 
20394
 
 
20395
# Whether or not to add -lc for building shared libraries.
 
20396
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20397
 
 
20398
# Whether or not to disallow shared libs when runtime libs are static
 
20399
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20400
 
 
20401
# Whether or not to optimize for fast installation.
 
20402
fast_install=$enable_fast_install
 
20403
 
 
20404
# The host system.
 
20405
host_alias=$host_alias
 
20406
host=$host
 
20407
 
 
20408
# An echo program that does not interpret backslashes.
 
20409
echo=$lt_echo
 
20410
 
 
20411
# The archiver.
 
20412
AR=$lt_AR
 
20413
AR_FLAGS=$lt_AR_FLAGS
 
20414
 
 
20415
# A C compiler.
 
20416
LTCC=$lt_LTCC
 
20417
 
 
20418
# A language-specific compiler.
 
20419
CC=$lt_compiler_RC
 
20420
 
 
20421
# Is the compiler the GNU C compiler?
 
20422
with_gcc=$GCC_RC
 
20423
 
 
20424
# An ERE matcher.
 
20425
EGREP=$lt_EGREP
 
20426
 
 
20427
# The linker used to build libraries.
 
20428
LD=$lt_LD_RC
 
20429
 
 
20430
# Whether we need hard or soft links.
 
20431
LN_S=$lt_LN_S
 
20432
 
 
20433
# A BSD-compatible nm program.
 
20434
NM=$lt_NM
 
20435
 
 
20436
# A symbol stripping program
 
20437
STRIP=$STRIP
 
20438
 
 
20439
# Used to examine libraries when file_magic_cmd begins "file"
 
20440
MAGIC_CMD=$MAGIC_CMD
 
20441
 
 
20442
# Used on cygwin: DLL creation program.
 
20443
DLLTOOL="$DLLTOOL"
 
20444
 
 
20445
# Used on cygwin: object dumper.
 
20446
OBJDUMP="$OBJDUMP"
 
20447
 
 
20448
# Used on cygwin: assembler.
 
20449
AS="$AS"
 
20450
 
 
20451
# The name of the directory that contains temporary libtool files.
 
20452
objdir=$objdir
 
20453
 
 
20454
# How to create reloadable object files.
 
20455
reload_flag=$lt_reload_flag
 
20456
reload_cmds=$lt_reload_cmds
 
20457
 
 
20458
# How to pass a linker flag through the compiler.
 
20459
wl=$lt_lt_prog_compiler_wl_RC
 
20460
 
 
20461
# Object file suffix (normally "o").
 
20462
objext="$ac_objext"
 
20463
 
 
20464
# Old archive suffix (normally "a").
 
20465
libext="$libext"
 
20466
 
 
20467
# Shared library suffix (normally ".so").
 
20468
shrext='$shrext'
 
20469
 
 
20470
# Executable file suffix (normally "").
 
20471
exeext="$exeext"
 
20472
 
 
20473
# Additional compiler flags for building library objects.
 
20474
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20475
pic_mode=$pic_mode
 
20476
 
 
20477
# What is the maximum length of a command?
 
20478
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20479
 
 
20480
# Does compiler simultaneously support -c and -o options?
 
20481
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20482
 
 
20483
# Must we lock files when doing compilation ?
 
20484
need_locks=$lt_need_locks
 
20485
 
 
20486
# Do we need the lib prefix for modules?
 
20487
need_lib_prefix=$need_lib_prefix
 
20488
 
 
20489
# Do we need a version for libraries?
 
20490
need_version=$need_version
 
20491
 
 
20492
# Whether dlopen is supported.
 
20493
dlopen_support=$enable_dlopen
 
20494
 
 
20495
# Whether dlopen of programs is supported.
 
20496
dlopen_self=$enable_dlopen_self
 
20497
 
 
20498
# Whether dlopen of statically linked programs is supported.
 
20499
dlopen_self_static=$enable_dlopen_self_static
 
20500
 
 
20501
# Compiler flag to prevent dynamic linking.
 
20502
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20503
 
 
20504
# Compiler flag to turn off builtin functions.
 
20505
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20506
 
 
20507
# Compiler flag to allow reflexive dlopens.
 
20508
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20509
 
 
20510
# Compiler flag to generate shared objects directly from archives.
 
20511
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20512
 
 
20513
# Compiler flag to generate thread-safe objects.
 
20514
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20515
 
 
20516
# Library versioning type.
 
20517
version_type=$version_type
 
20518
 
 
20519
# Format of library name prefix.
 
20520
libname_spec=$lt_libname_spec
 
20521
 
 
20522
# List of archive names.  First name is the real one, the rest are links.
 
20523
# The last name is the one that the linker finds with -lNAME.
 
20524
library_names_spec=$lt_library_names_spec
 
20525
 
 
20526
# The coded name of the library, if different from the real name.
 
20527
soname_spec=$lt_soname_spec
 
20528
 
 
20529
# Commands used to build and install an old-style archive.
 
20530
RANLIB=$lt_RANLIB
 
20531
old_archive_cmds=$lt_old_archive_cmds_RC
 
20532
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20533
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20534
 
 
20535
# Create an old-style archive from a shared archive.
 
20536
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20537
 
 
20538
# Create a temporary old-style archive to link instead of a shared archive.
 
20539
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20540
 
 
20541
# Commands used to build and install a shared archive.
 
20542
archive_cmds=$lt_archive_cmds_RC
 
20543
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20544
postinstall_cmds=$lt_postinstall_cmds
 
20545
postuninstall_cmds=$lt_postuninstall_cmds
 
20546
 
 
20547
# Commands used to build a loadable module (assumed same as above if empty)
 
20548
module_cmds=$lt_module_cmds_RC
 
20549
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20550
 
 
20551
# Commands to strip libraries.
 
20552
old_striplib=$lt_old_striplib
 
20553
striplib=$lt_striplib
 
20554
 
 
20555
# Dependencies to place before the objects being linked to create a
 
20556
# shared library.
 
20557
predep_objects=$lt_predep_objects_RC
 
20558
 
 
20559
# Dependencies to place after the objects being linked to create a
 
20560
# shared library.
 
20561
postdep_objects=$lt_postdep_objects_RC
 
20562
 
 
20563
# Dependencies to place before the objects being linked to create a
 
20564
# shared library.
 
20565
predeps=$lt_predeps_RC
 
20566
 
 
20567
# Dependencies to place after the objects being linked to create a
 
20568
# shared library.
 
20569
postdeps=$lt_postdeps_RC
 
20570
 
 
20571
# The library search path used internally by the compiler when linking
 
20572
# a shared library.
 
20573
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20574
 
 
20575
# Method to check whether dependent libraries are shared objects.
 
20576
deplibs_check_method=$lt_deplibs_check_method
 
20577
 
 
20578
# Command to use when deplibs_check_method == file_magic.
 
20579
file_magic_cmd=$lt_file_magic_cmd
 
20580
 
 
20581
# Flag that allows shared libraries with undefined symbols to be built.
 
20582
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20583
 
 
20584
# Flag that forces no undefined symbols.
 
20585
no_undefined_flag=$lt_no_undefined_flag_RC
 
20586
 
 
20587
# Commands used to finish a libtool library installation in a directory.
 
20588
finish_cmds=$lt_finish_cmds
 
20589
 
 
20590
# Same as above, but a single script fragment to be evaled but not shown.
 
20591
finish_eval=$lt_finish_eval
 
20592
 
 
20593
# Take the output of nm and produce a listing of raw symbols and C names.
 
20594
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20595
 
 
20596
# Transform the output of nm in a proper C declaration
 
20597
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20598
 
 
20599
# Transform the output of nm in a C name address pair
 
20600
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20601
 
 
20602
# This is the shared library runtime path variable.
 
20603
runpath_var=$runpath_var
 
20604
 
 
20605
# This is the shared library path variable.
 
20606
shlibpath_var=$shlibpath_var
 
20607
 
 
20608
# Is shlibpath searched before the hard-coded library search path?
 
20609
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20610
 
 
20611
# How to hardcode a shared library path into an executable.
 
20612
hardcode_action=$hardcode_action_RC
 
20613
 
 
20614
# Whether we should hardcode library paths into libraries.
 
20615
hardcode_into_libs=$hardcode_into_libs
 
20616
 
 
20617
# Flag to hardcode \$libdir into a binary during linking.
 
20618
# This must work even if \$libdir does not exist.
 
20619
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20620
 
 
20621
# If ld is used when linking, flag to hardcode \$libdir into
 
20622
# a binary during linking. This must work even if \$libdir does
 
20623
# not exist.
 
20624
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20625
 
 
20626
# Whether we need a single -rpath flag with a separated argument.
 
20627
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20628
 
 
20629
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20630
# resulting binary.
 
20631
hardcode_direct=$hardcode_direct_RC
 
20632
 
 
20633
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20634
# resulting binary.
 
20635
hardcode_minus_L=$hardcode_minus_L_RC
 
20636
 
 
20637
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20638
# the resulting binary.
 
20639
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20640
 
 
20641
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20642
# and all subsequent libraries and executables linked against it.
 
20643
hardcode_automatic=$hardcode_automatic_RC
 
20644
 
 
20645
# Variables whose values should be saved in libtool wrapper scripts and
 
20646
# restored at relink time.
 
20647
variables_saved_for_relink="$variables_saved_for_relink"
 
20648
 
 
20649
# Whether libtool must link a program against all its dependency libraries.
 
20650
link_all_deplibs=$link_all_deplibs_RC
 
20651
 
 
20652
# Compile-time system search path for libraries
 
20653
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20654
 
 
20655
# Run-time system search path for libraries
 
20656
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20657
 
 
20658
# Fix the shell variable \$srcfile for the compiler.
 
20659
fix_srcfile_path="$fix_srcfile_path_RC"
 
20660
 
 
20661
# Set to yes if exported symbols are required.
 
20662
always_export_symbols=$always_export_symbols_RC
 
20663
 
 
20664
# The commands to list exported symbols.
 
20665
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20666
 
 
20667
# The commands to extract the exported symbol list from a shared archive.
 
20668
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20669
 
 
20670
# Symbols that should not be listed in the preloaded symbols.
 
20671
exclude_expsyms=$lt_exclude_expsyms_RC
 
20672
 
 
20673
# Symbols that must always be exported.
 
20674
include_expsyms=$lt_include_expsyms_RC
 
20675
 
 
20676
# ### END LIBTOOL TAG CONFIG: $tagname
 
20677
 
 
20678
__EOF__
 
20679
 
 
20680
 
 
20681
else
 
20682
  # If there is no Makefile yet, we rely on a make rule to execute
 
20683
  # `config.status --recheck' to rerun these tests and create the
 
20684
  # libtool script then.
 
20685
  test -f Makefile && make "$ltmain"
 
20686
fi
 
20687
 
 
20688
 
 
20689
ac_ext=c
 
20690
ac_cpp='$CPP $CPPFLAGS'
 
20691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20694
 
 
20695
CC="$lt_save_CC"
 
20696
 
 
20697
        ;;
 
20698
 
 
20699
      *)
 
20700
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20701
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20702
   { (exit 1); exit 1; }; }
 
20703
        ;;
 
20704
      esac
 
20705
 
 
20706
      # Append the new tag name to the list of available tags.
 
20707
      if test -n "$tagname" ; then
 
20708
      available_tags="$available_tags $tagname"
 
20709
    fi
 
20710
    fi
 
20711
  done
 
20712
  IFS="$lt_save_ifs"
 
20713
 
 
20714
  # Now substitute the updated list of available tags.
 
20715
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20716
    mv "${ofile}T" "$ofile"
 
20717
    chmod +x "$ofile"
 
20718
  else
 
20719
    rm -f "${ofile}T"
 
20720
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20721
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20722
   { (exit 1); exit 1; }; }
 
20723
  fi
 
20724
fi
 
20725
 
 
20726
 
 
20727
 
 
20728
# This can be used to rebuild libtool when needed
 
20729
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20730
 
 
20731
# Always use our own libtool.
 
20732
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20733
 
 
20734
# Prevent multiple expansion
 
20735
 
 
20736
 
 
20737
 
 
20738
 
 
20739
 
 
20740
 
 
20741
 
 
20742
 
 
20743
 
 
20744
 
 
20745
 
 
20746
 
 
20747
 
 
20748
 
 
20749
 
 
20750
 
 
20751
 
 
20752
 
 
20753
 
 
20754
 
 
20755
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
20756
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
20757
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
20758
if test "${enable_maintainer_mode+set}" = set; then
 
20759
  enableval="$enable_maintainer_mode"
 
20760
  USE_MAINTAINER_MODE=$enableval
 
20761
else
 
20762
  USE_MAINTAINER_MODE=no
 
20763
fi;
 
20764
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
20765
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
20766
 
 
20767
 
 
20768
if test $USE_MAINTAINER_MODE = yes; then
 
20769
  MAINTAINER_MODE_TRUE=
 
20770
  MAINTAINER_MODE_FALSE='#'
 
20771
else
 
20772
  MAINTAINER_MODE_TRUE='#'
 
20773
  MAINTAINER_MODE_FALSE=
 
20774
fi
 
20775
 
 
20776
  MAINT=$MAINTAINER_MODE_TRUE
 
20777
 
 
20778
 
 
20779
 
 
20780
CFLAGS="-Wall -funroll-loops -ffast-math -fomit-frame-pointer -fexpensive-optimizations $CFLAGS"
 
20781
LIBIL_CFLAGS="$CFLAGS"
 
20782
LIBILU_CFLAGS="$CFLAGS"
 
20783
LIBILUT_CFLAGS="$CFLAGS"
 
20784
 
 
20785
 
 
20786
# Check whether --enable-bmp or --disable-bmp was given.
 
20787
if test "${enable_bmp+set}" = set; then
 
20788
  enableval="$enable_bmp"
 
20789
  case "$enable_bmp" in
 
20790
  no)
 
20791
    no_bmp="yes"
 
20792
    ;;
 
20793
  *)
 
20794
    no_bmp="no"
 
20795
    ;;
 
20796
esac
 
20797
else
 
20798
  no_bmp="no"
 
20799
fi;
 
20800
 
 
20801
# Check whether --enable-dcx or --disable-dcx was given.
 
20802
if test "${enable_dcx+set}" = set; then
 
20803
  enableval="$enable_dcx"
 
20804
  case "$enable_dcx" in
 
20805
  no)
 
20806
    no_dcx="yes"
 
20807
    ;;
 
20808
  *)
 
20809
    no_dcx="no"
 
20810
    ;;
 
20811
esac
 
20812
else
 
20813
  no_dcx="no"
 
20814
fi;
 
20815
 
 
20816
# Check whether --enable-doom or --disable-doom was given.
 
20817
if test "${enable_doom+set}" = set; then
 
20818
  enableval="$enable_doom"
 
20819
  case "$enable_doom" in
 
20820
  no)
 
20821
    no_doom="yes"
 
20822
    ;;
 
20823
  *)
 
20824
    no_doom="no"
 
20825
    ;;
 
20826
esac
 
20827
else
 
20828
  no_doom="no"
 
20829
fi;
 
20830
 
 
20831
# Check whether --enable-gif or --disable-gif was given.
 
20832
if test "${enable_gif+set}" = set; then
 
20833
  enableval="$enable_gif"
 
20834
  case "$enable_gif" in
 
20835
  no)
 
20836
    no_gif="yes"
 
20837
    ;;
 
20838
  *)
 
20839
    no_gif="no"
 
20840
    ;;
 
20841
esac
 
20842
else
 
20843
  no_gif="no"
 
20844
fi;
 
20845
 
 
20846
# Check whether --enable-hdr or --disable-hdr was given.
 
20847
if test "${enable_hdr+set}" = set; then
 
20848
  enableval="$enable_hdr"
 
20849
  case "$enable_hdr" in
 
20850
  no)
 
20851
    no_hdr="yes"
 
20852
    ;;
 
20853
  *)
 
20854
    no_hdr="no"
 
20855
    ;;
 
20856
esac
 
20857
else
 
20858
  no_hdr="no"
 
20859
fi;
 
20860
 
 
20861
# Check whether --enable-icon or --disable-icon was given.
 
20862
if test "${enable_icon+set}" = set; then
 
20863
  enableval="$enable_icon"
 
20864
  case "$enable_icon" in
 
20865
  no)
 
20866
    no_icon="yes"
 
20867
    ;;
 
20868
  *)
 
20869
    no_icon="no"
 
20870
    ;;
 
20871
esac
 
20872
else
 
20873
  no_icon="no"
 
20874
fi;
 
20875
 
 
20876
# Check whether --enable-jpeg or --disable-jpeg was given.
 
20877
if test "${enable_jpeg+set}" = set; then
 
20878
  enableval="$enable_jpeg"
 
20879
  case "$enable_jpeg" in
 
20880
  no)
 
20881
    no_jpeg="yes"
 
20882
    ;;
 
20883
  *)
 
20884
    no_jpeg="no"
 
20885
    ;;
 
20886
esac
 
20887
else
 
20888
  no_jpeg="no"
 
20889
fi;
 
20890
 
 
20891
# Check whether --enable-lif or --disable-lif was given.
 
20892
if test "${enable_lif+set}" = set; then
 
20893
  enableval="$enable_lif"
 
20894
  case "$enable_lif" in
 
20895
  no)
 
20896
    no_lif="yes"
 
20897
    ;;
 
20898
  *)
 
20899
    no_lif="no"
 
20900
    ;;
 
20901
esac
 
20902
else
 
20903
  no_lif="no"
 
20904
fi;
 
20905
 
 
20906
# Check whether --enable-lcms or --disable-lcms was given.
 
20907
if test "${enable_lcms+set}" = set; then
 
20908
  enableval="$enable_lcms"
 
20909
  case "$enable_lcms" in
 
20910
  no)
 
20911
    no_lcms="yes"
 
20912
    ;;
 
20913
  *)
 
20914
    no_lcms="no"
 
20915
    ;;
 
20916
esac
 
20917
else
 
20918
  no_lcms="no"
 
20919
fi;
 
20920
 
 
20921
# Check whether --enable-mdl or --disable-mdl was given.
 
20922
if test "${enable_mdl+set}" = set; then
 
20923
  enableval="$enable_mdl"
 
20924
  case "$enable_mdl" in
 
20925
  no)
 
20926
    no_mdl="yes"
 
20927
    ;;
 
20928
  *)
 
20929
    no_mdl="no"
 
20930
    ;;
 
20931
esac
 
20932
else
 
20933
  no_mdl="no"
 
20934
fi;
 
20935
 
 
20936
# Check whether --enable-mng or --disable-mng was given.
 
20937
if test "${enable_mng+set}" = set; then
 
20938
  enableval="$enable_mng"
 
20939
  case "$enable_mng" in
 
20940
  no)
 
20941
    no_mng="yes"
 
20942
    ;;
 
20943
  *)
 
20944
    no_mng="no"
 
20945
    ;;
 
20946
esac
 
20947
else
 
20948
  no_mng="no"
 
20949
fi;
 
20950
 
 
20951
# Check whether --enable-pcd or --disable-pcd was given.
 
20952
if test "${enable_pcd+set}" = set; then
 
20953
  enableval="$enable_pcd"
 
20954
  case "$enable_pcd" in
 
20955
  no)
 
20956
    no_pcd="yes"
 
20957
    ;;
 
20958
  *)
 
20959
    no_pcd="no"
 
20960
    ;;
 
20961
esac
 
20962
else
 
20963
  no_pcd="no"
 
20964
fi;
 
20965
 
 
20966
# Check whether --enable-pcx or --disable-pcx was given.
 
20967
if test "${enable_pcx+set}" = set; then
 
20968
  enableval="$enable_pcx"
 
20969
  case "$enable_pcx" in
 
20970
  no)
 
20971
    no_pcx="yes"
 
20972
    ;;
 
20973
  *)
 
20974
    no_pcx="no"
 
20975
    ;;
 
20976
esac
 
20977
else
 
20978
  no_pcx="no"
 
20979
fi;
 
20980
 
 
20981
# Check whether --enable-pic or --disable-pic was given.
 
20982
if test "${enable_pic+set}" = set; then
 
20983
  enableval="$enable_pic"
 
20984
  case "$enable_pic" in
 
20985
  no)
 
20986
    no_pic="yes"
 
20987
    ;;
 
20988
  *)
 
20989
    no_pic="no"
 
20990
    ;;
 
20991
esac
 
20992
else
 
20993
  no_pic="no"
 
20994
fi;
 
20995
 
 
20996
# Check whether --enable-pix or --disable-pix was given.
 
20997
if test "${enable_pix+set}" = set; then
 
20998
  enableval="$enable_pix"
 
20999
  case "$enable_pix" in
 
21000
  no)
 
21001
    no_pix="yes"
 
21002
    ;;
 
21003
  *)
 
21004
    no_pix="no"
 
21005
    ;;
 
21006
esac
 
21007
else
 
21008
  no_pix="no"
 
21009
fi;
 
21010
 
 
21011
# Check whether --enable-png or --disable-png was given.
 
21012
if test "${enable_png+set}" = set; then
 
21013
  enableval="$enable_png"
 
21014
  case "$enable_png" in
 
21015
  no)
 
21016
    no_png="yes"
 
21017
    ;;
 
21018
  *)
 
21019
    no_png="no"
 
21020
    ;;
 
21021
esac
 
21022
else
 
21023
  no_png="no"
 
21024
fi;
 
21025
 
 
21026
# Check whether --enable-pnm or --disable-pnm was given.
 
21027
if test "${enable_pnm+set}" = set; then
 
21028
  enableval="$enable_pnm"
 
21029
  case "$enable_pnm" in
 
21030
  no)
 
21031
    no_pnm="yes"
 
21032
    ;;
 
21033
  *)
 
21034
    no_pnm="no"
 
21035
    ;;
 
21036
esac
 
21037
else
 
21038
  no_pnm="no"
 
21039
fi;
 
21040
 
 
21041
# Check whether --enable-psd or --disable-psd was given.
 
21042
if test "${enable_psd+set}" = set; then
 
21043
  enableval="$enable_psd"
 
21044
  case "$enable_psd" in
 
21045
  no)
 
21046
    no_psd="yes"
 
21047
    ;;
 
21048
  *)
 
21049
    no_psd="no"
 
21050
    ;;
 
21051
esac
 
21052
else
 
21053
  no_psd="no"
 
21054
fi;
 
21055
 
 
21056
# Check whether --enable-psp or --disable-psp was given.
 
21057
if test "${enable_psp+set}" = set; then
 
21058
  enableval="$enable_psp"
 
21059
  case "$enable_psp" in
 
21060
  no)
 
21061
    no_psp="yes"
 
21062
    ;;
 
21063
  *)
 
21064
    no_psp="no"
 
21065
    ;;
 
21066
esac
 
21067
else
 
21068
  no_psp="no"
 
21069
fi;
 
21070
 
 
21071
# Check whether --enable-pxr or --disable-pxr was given.
 
21072
if test "${enable_pxr+set}" = set; then
 
21073
  enableval="$enable_pxr"
 
21074
  case "$enable_pxr" in
 
21075
  no)
 
21076
    no_pxr="yes"
 
21077
    ;;
 
21078
  *)
 
21079
    no_pxr="no"
 
21080
    ;;
 
21081
esac
 
21082
else
 
21083
  no_pxr="no"
 
21084
fi;
 
21085
 
 
21086
# Check whether --enable-lcms or --disable-lcms was given.
 
21087
if test "${enable_lcms+set}" = set; then
 
21088
  enableval="$enable_lcms"
 
21089
  case "$enable_lcms" in
 
21090
  no)
 
21091
    no_lcms="yes"
 
21092
    ;;
 
21093
  *)
 
21094
    no_lcms="no"
 
21095
    ;;
 
21096
esac
 
21097
else
 
21098
  no_lcms="no"
 
21099
fi;
 
21100
 
 
21101
# Check whether --enable-raw or --disable-raw was given.
 
21102
if test "${enable_raw+set}" = set; then
 
21103
  enableval="$enable_raw"
 
21104
  case "$enable_raw" in
 
21105
  no)
 
21106
    no_raw="yes"
 
21107
    ;;
 
21108
  *)
 
21109
    no_raw="no"
 
21110
    ;;
 
21111
esac
 
21112
else
 
21113
  no_raw="no"
 
21114
fi;
 
21115
 
 
21116
# Check whether --enable-sgi or --disable-sgi was given.
 
21117
if test "${enable_sgi+set}" = set; then
 
21118
  enableval="$enable_sgi"
 
21119
  case "$enable_sgi" in
 
21120
  no)
 
21121
    no_sgi="yes"
 
21122
    ;;
 
21123
  *)
 
21124
    no_sgi="no"
 
21125
    ;;
 
21126
esac
 
21127
else
 
21128
  no_sgi="no"
 
21129
fi;
 
21130
 
 
21131
# Check whether --enable-tga or --disable-tga was given.
 
21132
if test "${enable_tga+set}" = set; then
 
21133
  enableval="$enable_tga"
 
21134
  case "$enable_tga" in
 
21135
  no)
 
21136
    no_tga="yes"
 
21137
    ;;
 
21138
  *)
 
21139
    no_tga="no"
 
21140
    ;;
 
21141
esac
 
21142
else
 
21143
  no_tga="no"
 
21144
fi;
 
21145
 
 
21146
# Check whether --enable-tiff or --disable-tiff was given.
 
21147
if test "${enable_tiff+set}" = set; then
 
21148
  enableval="$enable_tiff"
 
21149
  case "$enable_tiff" in
 
21150
  no)
 
21151
    no_tiff="yes"
 
21152
    ;;
 
21153
  *)
 
21154
    no_tiff="no"
 
21155
    ;;
 
21156
esac
 
21157
else
 
21158
  no_tiff="no"
 
21159
fi;
 
21160
 
 
21161
# Check whether --enable-wal or --disable-wal was given.
 
21162
if test "${enable_wal+set}" = set; then
 
21163
  enableval="$enable_wal"
 
21164
  case "$enable_wal" in
 
21165
  no)
 
21166
    no_wal="yes"
 
21167
    ;;
 
21168
  *)
 
21169
    no_wal="no"
 
21170
    ;;
 
21171
esac
 
21172
else
 
21173
  no_wal="no"
 
21174
fi;
 
21175
 
 
21176
# Check whether --enable-xpm or --disable-xpm was given.
 
21177
if test "${enable_xpm+set}" = set; then
 
21178
  enableval="$enable_xpm"
 
21179
  case "$enable_xpm" in
 
21180
  no)
 
21181
    no_xpm="yes"
 
21182
    ;;
 
21183
  *)
 
21184
    no_xpm="no"
 
21185
    ;;
 
21186
esac
 
21187
else
 
21188
  no_xpm="no"
 
21189
fi;
 
21190
 
 
21191
# Check whether --enable-allegro or --disable-allegro was given.
 
21192
if test "${enable_allegro+set}" = set; then
 
21193
  enableval="$enable_allegro"
 
21194
  use_allegro=$enable_allegro
 
21195
else
 
21196
  use_allegro="yes"
 
21197
fi;
 
21198
 
 
21199
# Check whether --enable-directx or --disable-directx was given.
 
21200
if test "${enable_directx+set}" = set; then
 
21201
  enableval="$enable_directx"
 
21202
  use_directx=$enable_directx
 
21203
else
 
21204
  use_directx="yes"
 
21205
fi;
 
21206
 
 
21207
# Check whether --enable-opengl or --disable-opengl was given.
 
21208
if test "${enable_opengl+set}" = set; then
 
21209
  enableval="$enable_opengl"
 
21210
  use_opengl=$enable_opengl
 
21211
else
 
21212
  use_opengl="yes"
 
21213
fi;
 
21214
 
 
21215
# Check whether --enable-sdl or --disable-sdl was given.
 
21216
if test "${enable_sdl+set}" = set; then
 
21217
  enableval="$enable_sdl"
 
21218
  use_sdl=$enable_sdl
 
21219
else
 
21220
  use_sdl="yes"
 
21221
fi;
 
21222
 
 
21223
# Check whether --enable-win32 or --disable-win32 was given.
 
21224
if test "${enable_win32+set}" = set; then
 
21225
  enableval="$enable_win32"
 
21226
  use_win32=$enable_win32
 
21227
else
 
21228
  use_win32="yes"
 
21229
fi;
 
21230
 
 
21231
# Check whether --enable-release or --disable-release was given.
 
21232
if test "${enable_release+set}" = set; then
 
21233
  enableval="$enable_release"
 
21234
  case "$enable_release" in
 
21235
  yes)
 
21236
    debug_symbols="no"
 
21237
    ;;
 
21238
  no)
 
21239
    debug_symbols="yes"
 
21240
    ;;
 
21241
esac
 
21242
else
 
21243
  debug_symbols="no"
 
21244
fi;
 
21245
 
 
21246
if test "$debug_symbols" = "yes" ; then
 
21247
        CFLAGS="-Wall -g"
 
21248
  LIBIL_CFLAGS="-Wall -g"
 
21249
  LIBILU_CFLAGS="-Wall -g"
 
21250
  LIBILUT_CFLAGS="-Wall -g"
 
21251
fi
 
21252
 
 
21253
case "$host" in
 
21254
  *mingw32*)
 
21255
                LIBIL_CFLAGS=$LIBIL_CFLAGS" -mno-cygwin"
 
21256
                LIBILU_CFLAGS=$LIBILU_CFLAGS" -mno-cygwin"
 
21257
                LIBILUT_CFLAGS=$LIBILUT_CFLAGS" -mno-cygwin"
 
21258
                VERSIONINFO=""
 
21259
              ;;
 
21260
  *cygwin*)
 
21261
                LIBILUT_WIN32LIBPATH="-L/usr/lib/w32api"
 
21262
                VERSIONINFO=""
 
21263
              ;;
 
21264
  *)
 
21265
                use_win32="no"
 
21266
                use_directx="no"
 
21267
                VERSIONINFO="-version-info $DEVIL_LTVERSION"
 
21268
              ;;
 
21269
esac
 
21270
 
 
21271
 
 
21272
CPPFLAGS=$X_CFLAGS
 
21273
 
 
21274
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
21275
  echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
21276
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
21277
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
21278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21279
fi
 
21280
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
21281
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
21282
else
 
21283
  # Is the header compilable?
 
21284
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
 
21285
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
 
21286
cat >conftest.$ac_ext <<_ACEOF
 
21287
/* confdefs.h.  */
 
21288
_ACEOF
 
21289
cat confdefs.h >>conftest.$ac_ext
 
21290
cat >>conftest.$ac_ext <<_ACEOF
 
21291
/* end confdefs.h.  */
 
21292
$ac_includes_default
 
21293
#include <jpeglib.h>
 
21294
_ACEOF
 
21295
rm -f conftest.$ac_objext
 
21296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21297
  (eval $ac_compile) 2>conftest.er1
 
21298
  ac_status=$?
 
21299
  grep -v '^ *+' conftest.er1 >conftest.err
 
21300
  rm -f conftest.er1
 
21301
  cat conftest.err >&5
 
21302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21303
  (exit $ac_status); } &&
 
21304
         { ac_try='test -z "$ac_c_werror_flag"
 
21305
                         || test ! -s conftest.err'
 
21306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21307
  (eval $ac_try) 2>&5
 
21308
  ac_status=$?
 
21309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21310
  (exit $ac_status); }; } &&
 
21311
         { ac_try='test -s conftest.$ac_objext'
 
21312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21313
  (eval $ac_try) 2>&5
 
21314
  ac_status=$?
 
21315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21316
  (exit $ac_status); }; }; then
 
21317
  ac_header_compiler=yes
 
21318
else
 
21319
  echo "$as_me: failed program was:" >&5
 
21320
sed 's/^/| /' conftest.$ac_ext >&5
 
21321
 
 
21322
ac_header_compiler=no
 
21323
fi
 
21324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21325
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21326
echo "${ECHO_T}$ac_header_compiler" >&6
 
21327
 
 
21328
# Is the header present?
 
21329
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
 
21330
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
 
21331
cat >conftest.$ac_ext <<_ACEOF
 
21332
/* confdefs.h.  */
 
21333
_ACEOF
 
21334
cat confdefs.h >>conftest.$ac_ext
 
21335
cat >>conftest.$ac_ext <<_ACEOF
 
21336
/* end confdefs.h.  */
 
21337
#include <jpeglib.h>
 
21338
_ACEOF
 
21339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21340
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21341
  ac_status=$?
 
21342
  grep -v '^ *+' conftest.er1 >conftest.err
 
21343
  rm -f conftest.er1
 
21344
  cat conftest.err >&5
 
21345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21346
  (exit $ac_status); } >/dev/null; then
 
21347
  if test -s conftest.err; then
 
21348
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21349
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21350
  else
 
21351
    ac_cpp_err=
 
21352
  fi
 
21353
else
 
21354
  ac_cpp_err=yes
 
21355
fi
 
21356
if test -z "$ac_cpp_err"; then
 
21357
  ac_header_preproc=yes
 
21358
else
 
21359
  echo "$as_me: failed program was:" >&5
 
21360
sed 's/^/| /' conftest.$ac_ext >&5
 
21361
 
 
21362
  ac_header_preproc=no
 
21363
fi
 
21364
rm -f conftest.err conftest.$ac_ext
 
21365
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21366
echo "${ECHO_T}$ac_header_preproc" >&6
 
21367
 
 
21368
# So?  What about this header?
 
21369
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21370
  yes:no: )
 
21371
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21372
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21373
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
 
21374
echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
 
21375
    ac_header_preproc=yes
 
21376
    ;;
 
21377
  no:yes:* )
 
21378
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
 
21379
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
 
21380
    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
 
21381
echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
 
21382
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
 
21383
echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
 
21384
    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21385
echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21386
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
 
21387
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
 
21388
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
 
21389
echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
 
21390
    (
 
21391
      cat <<\_ASBOX
 
21392
## ------------------------------------------ ##
 
21393
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21394
## ------------------------------------------ ##
 
21395
_ASBOX
 
21396
    ) |
 
21397
      sed "s/^/$as_me: WARNING:     /" >&2
 
21398
    ;;
 
21399
esac
 
21400
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
21401
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
21402
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
21403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21404
else
 
21405
  ac_cv_header_jpeglib_h=$ac_header_preproc
 
21406
fi
 
21407
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
21408
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
21409
 
 
21410
fi
 
21411
if test $ac_cv_header_jpeglib_h = yes; then
 
21412
  :
 
21413
else
 
21414
  no_jpeg="yes"
 
21415
fi
 
21416
 
 
21417
 
 
21418
if test "${ac_cv_header_tiffio_h+set}" = set; then
 
21419
  echo "$as_me:$LINENO: checking for tiffio.h" >&5
 
21420
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
 
21421
if test "${ac_cv_header_tiffio_h+set}" = set; then
 
21422
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21423
fi
 
21424
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
 
21425
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
 
21426
else
 
21427
  # Is the header compilable?
 
21428
echo "$as_me:$LINENO: checking tiffio.h usability" >&5
 
21429
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
 
21430
cat >conftest.$ac_ext <<_ACEOF
 
21431
/* confdefs.h.  */
 
21432
_ACEOF
 
21433
cat confdefs.h >>conftest.$ac_ext
 
21434
cat >>conftest.$ac_ext <<_ACEOF
 
21435
/* end confdefs.h.  */
 
21436
$ac_includes_default
 
21437
#include <tiffio.h>
 
21438
_ACEOF
 
21439
rm -f conftest.$ac_objext
 
21440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21441
  (eval $ac_compile) 2>conftest.er1
 
21442
  ac_status=$?
 
21443
  grep -v '^ *+' conftest.er1 >conftest.err
 
21444
  rm -f conftest.er1
 
21445
  cat conftest.err >&5
 
21446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21447
  (exit $ac_status); } &&
 
21448
         { ac_try='test -z "$ac_c_werror_flag"
 
21449
                         || test ! -s conftest.err'
 
21450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21451
  (eval $ac_try) 2>&5
 
21452
  ac_status=$?
 
21453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21454
  (exit $ac_status); }; } &&
 
21455
         { ac_try='test -s conftest.$ac_objext'
 
21456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21457
  (eval $ac_try) 2>&5
 
21458
  ac_status=$?
 
21459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21460
  (exit $ac_status); }; }; then
 
21461
  ac_header_compiler=yes
 
21462
else
 
21463
  echo "$as_me: failed program was:" >&5
 
21464
sed 's/^/| /' conftest.$ac_ext >&5
 
21465
 
 
21466
ac_header_compiler=no
 
21467
fi
 
21468
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21469
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21470
echo "${ECHO_T}$ac_header_compiler" >&6
 
21471
 
 
21472
# Is the header present?
 
21473
echo "$as_me:$LINENO: checking tiffio.h presence" >&5
 
21474
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
 
21475
cat >conftest.$ac_ext <<_ACEOF
 
21476
/* confdefs.h.  */
 
21477
_ACEOF
 
21478
cat confdefs.h >>conftest.$ac_ext
 
21479
cat >>conftest.$ac_ext <<_ACEOF
 
21480
/* end confdefs.h.  */
 
21481
#include <tiffio.h>
 
21482
_ACEOF
 
21483
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21484
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21485
  ac_status=$?
 
21486
  grep -v '^ *+' conftest.er1 >conftest.err
 
21487
  rm -f conftest.er1
 
21488
  cat conftest.err >&5
 
21489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21490
  (exit $ac_status); } >/dev/null; then
 
21491
  if test -s conftest.err; then
 
21492
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21493
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21494
  else
 
21495
    ac_cpp_err=
 
21496
  fi
 
21497
else
 
21498
  ac_cpp_err=yes
 
21499
fi
 
21500
if test -z "$ac_cpp_err"; then
 
21501
  ac_header_preproc=yes
 
21502
else
 
21503
  echo "$as_me: failed program was:" >&5
 
21504
sed 's/^/| /' conftest.$ac_ext >&5
 
21505
 
 
21506
  ac_header_preproc=no
 
21507
fi
 
21508
rm -f conftest.err conftest.$ac_ext
 
21509
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21510
echo "${ECHO_T}$ac_header_preproc" >&6
 
21511
 
 
21512
# So?  What about this header?
 
21513
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21514
  yes:no: )
 
21515
    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21516
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21517
    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
 
21518
echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
 
21519
    ac_header_preproc=yes
 
21520
    ;;
 
21521
  no:yes:* )
 
21522
    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
 
21523
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
 
21524
    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
 
21525
echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
 
21526
    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
 
21527
echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
 
21528
    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21529
echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21530
    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
 
21531
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
 
21532
    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
 
21533
echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
 
21534
    (
 
21535
      cat <<\_ASBOX
 
21536
## ------------------------------------------ ##
 
21537
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21538
## ------------------------------------------ ##
 
21539
_ASBOX
 
21540
    ) |
 
21541
      sed "s/^/$as_me: WARNING:     /" >&2
 
21542
    ;;
 
21543
esac
 
21544
echo "$as_me:$LINENO: checking for tiffio.h" >&5
 
21545
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
 
21546
if test "${ac_cv_header_tiffio_h+set}" = set; then
 
21547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21548
else
 
21549
  ac_cv_header_tiffio_h=$ac_header_preproc
 
21550
fi
 
21551
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
 
21552
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
 
21553
 
 
21554
fi
 
21555
if test $ac_cv_header_tiffio_h = yes; then
 
21556
  :
 
21557
else
 
21558
  no_tiff="yes"
 
21559
fi
 
21560
 
 
21561
 
 
21562
if test "${ac_cv_header_png_h+set}" = set; then
 
21563
  echo "$as_me:$LINENO: checking for png.h" >&5
 
21564
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
 
21565
if test "${ac_cv_header_png_h+set}" = set; then
 
21566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21567
fi
 
21568
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
21569
echo "${ECHO_T}$ac_cv_header_png_h" >&6
 
21570
else
 
21571
  # Is the header compilable?
 
21572
echo "$as_me:$LINENO: checking png.h usability" >&5
 
21573
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
 
21574
cat >conftest.$ac_ext <<_ACEOF
 
21575
/* confdefs.h.  */
 
21576
_ACEOF
 
21577
cat confdefs.h >>conftest.$ac_ext
 
21578
cat >>conftest.$ac_ext <<_ACEOF
 
21579
/* end confdefs.h.  */
 
21580
$ac_includes_default
 
21581
#include <png.h>
 
21582
_ACEOF
 
21583
rm -f conftest.$ac_objext
 
21584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21585
  (eval $ac_compile) 2>conftest.er1
 
21586
  ac_status=$?
 
21587
  grep -v '^ *+' conftest.er1 >conftest.err
 
21588
  rm -f conftest.er1
 
21589
  cat conftest.err >&5
 
21590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21591
  (exit $ac_status); } &&
 
21592
         { ac_try='test -z "$ac_c_werror_flag"
 
21593
                         || test ! -s conftest.err'
 
21594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21595
  (eval $ac_try) 2>&5
 
21596
  ac_status=$?
 
21597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21598
  (exit $ac_status); }; } &&
 
21599
         { ac_try='test -s conftest.$ac_objext'
 
21600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21601
  (eval $ac_try) 2>&5
 
21602
  ac_status=$?
 
21603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21604
  (exit $ac_status); }; }; then
 
21605
  ac_header_compiler=yes
 
21606
else
 
21607
  echo "$as_me: failed program was:" >&5
 
21608
sed 's/^/| /' conftest.$ac_ext >&5
 
21609
 
 
21610
ac_header_compiler=no
 
21611
fi
 
21612
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21613
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21614
echo "${ECHO_T}$ac_header_compiler" >&6
 
21615
 
 
21616
# Is the header present?
 
21617
echo "$as_me:$LINENO: checking png.h presence" >&5
 
21618
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
 
21619
cat >conftest.$ac_ext <<_ACEOF
 
21620
/* confdefs.h.  */
 
21621
_ACEOF
 
21622
cat confdefs.h >>conftest.$ac_ext
 
21623
cat >>conftest.$ac_ext <<_ACEOF
 
21624
/* end confdefs.h.  */
 
21625
#include <png.h>
 
21626
_ACEOF
 
21627
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21628
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21629
  ac_status=$?
 
21630
  grep -v '^ *+' conftest.er1 >conftest.err
 
21631
  rm -f conftest.er1
 
21632
  cat conftest.err >&5
 
21633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21634
  (exit $ac_status); } >/dev/null; then
 
21635
  if test -s conftest.err; then
 
21636
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21637
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21638
  else
 
21639
    ac_cpp_err=
 
21640
  fi
 
21641
else
 
21642
  ac_cpp_err=yes
 
21643
fi
 
21644
if test -z "$ac_cpp_err"; then
 
21645
  ac_header_preproc=yes
 
21646
else
 
21647
  echo "$as_me: failed program was:" >&5
 
21648
sed 's/^/| /' conftest.$ac_ext >&5
 
21649
 
 
21650
  ac_header_preproc=no
 
21651
fi
 
21652
rm -f conftest.err conftest.$ac_ext
 
21653
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21654
echo "${ECHO_T}$ac_header_preproc" >&6
 
21655
 
 
21656
# So?  What about this header?
 
21657
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21658
  yes:no: )
 
21659
    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21660
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21661
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
 
21662
echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
 
21663
    ac_header_preproc=yes
 
21664
    ;;
 
21665
  no:yes:* )
 
21666
    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
 
21667
echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
 
21668
    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
 
21669
echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
 
21670
    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
 
21671
echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
 
21672
    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21673
echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21674
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
 
21675
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
 
21676
    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
 
21677
echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
 
21678
    (
 
21679
      cat <<\_ASBOX
 
21680
## ------------------------------------------ ##
 
21681
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21682
## ------------------------------------------ ##
 
21683
_ASBOX
 
21684
    ) |
 
21685
      sed "s/^/$as_me: WARNING:     /" >&2
 
21686
    ;;
 
21687
esac
 
21688
echo "$as_me:$LINENO: checking for png.h" >&5
 
21689
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
 
21690
if test "${ac_cv_header_png_h+set}" = set; then
 
21691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21692
else
 
21693
  ac_cv_header_png_h=$ac_header_preproc
 
21694
fi
 
21695
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
21696
echo "${ECHO_T}$ac_cv_header_png_h" >&6
 
21697
 
 
21698
fi
 
21699
if test $ac_cv_header_png_h = yes; then
 
21700
  :
 
21701
else
 
21702
  no_png="yes"
 
21703
fi
 
21704
 
 
21705
 
 
21706
if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
 
21707
  echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
 
21708
echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6
 
21709
if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
 
21710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21711
fi
 
21712
echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
 
21713
echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6
 
21714
else
 
21715
  # Is the header compilable?
 
21716
echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
 
21717
echo $ECHO_N "checking lcms/lcms.h usability... $ECHO_C" >&6
 
21718
cat >conftest.$ac_ext <<_ACEOF
 
21719
/* confdefs.h.  */
 
21720
_ACEOF
 
21721
cat confdefs.h >>conftest.$ac_ext
 
21722
cat >>conftest.$ac_ext <<_ACEOF
 
21723
/* end confdefs.h.  */
 
21724
$ac_includes_default
 
21725
#include <lcms/lcms.h>
 
21726
_ACEOF
 
21727
rm -f conftest.$ac_objext
 
21728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21729
  (eval $ac_compile) 2>conftest.er1
 
21730
  ac_status=$?
 
21731
  grep -v '^ *+' conftest.er1 >conftest.err
 
21732
  rm -f conftest.er1
 
21733
  cat conftest.err >&5
 
21734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21735
  (exit $ac_status); } &&
 
21736
         { ac_try='test -z "$ac_c_werror_flag"
 
21737
                         || test ! -s conftest.err'
 
21738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21739
  (eval $ac_try) 2>&5
 
21740
  ac_status=$?
 
21741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21742
  (exit $ac_status); }; } &&
 
21743
         { ac_try='test -s conftest.$ac_objext'
 
21744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21745
  (eval $ac_try) 2>&5
 
21746
  ac_status=$?
 
21747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21748
  (exit $ac_status); }; }; then
 
21749
  ac_header_compiler=yes
 
21750
else
 
21751
  echo "$as_me: failed program was:" >&5
 
21752
sed 's/^/| /' conftest.$ac_ext >&5
 
21753
 
 
21754
ac_header_compiler=no
 
21755
fi
 
21756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21757
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21758
echo "${ECHO_T}$ac_header_compiler" >&6
 
21759
 
 
21760
# Is the header present?
 
21761
echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
 
21762
echo $ECHO_N "checking lcms/lcms.h presence... $ECHO_C" >&6
 
21763
cat >conftest.$ac_ext <<_ACEOF
 
21764
/* confdefs.h.  */
 
21765
_ACEOF
 
21766
cat confdefs.h >>conftest.$ac_ext
 
21767
cat >>conftest.$ac_ext <<_ACEOF
 
21768
/* end confdefs.h.  */
 
21769
#include <lcms/lcms.h>
 
21770
_ACEOF
 
21771
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21772
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21773
  ac_status=$?
 
21774
  grep -v '^ *+' conftest.er1 >conftest.err
 
21775
  rm -f conftest.er1
 
21776
  cat conftest.err >&5
 
21777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21778
  (exit $ac_status); } >/dev/null; then
 
21779
  if test -s conftest.err; then
 
21780
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21781
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21782
  else
 
21783
    ac_cpp_err=
 
21784
  fi
 
21785
else
 
21786
  ac_cpp_err=yes
 
21787
fi
 
21788
if test -z "$ac_cpp_err"; then
 
21789
  ac_header_preproc=yes
 
21790
else
 
21791
  echo "$as_me: failed program was:" >&5
 
21792
sed 's/^/| /' conftest.$ac_ext >&5
 
21793
 
 
21794
  ac_header_preproc=no
 
21795
fi
 
21796
rm -f conftest.err conftest.$ac_ext
 
21797
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21798
echo "${ECHO_T}$ac_header_preproc" >&6
 
21799
 
 
21800
# So?  What about this header?
 
21801
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21802
  yes:no: )
 
21803
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21804
echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21805
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
 
21806
echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
 
21807
    ac_header_preproc=yes
 
21808
    ;;
 
21809
  no:yes:* )
 
21810
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
 
21811
echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
 
21812
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h:     check for missing prerequisite headers?" >&5
 
21813
echo "$as_me: WARNING: lcms/lcms.h:     check for missing prerequisite headers?" >&2;}
 
21814
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
 
21815
echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
 
21816
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21817
echo "$as_me: WARNING: lcms/lcms.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21818
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
 
21819
echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
 
21820
    { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
 
21821
echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
 
21822
    (
 
21823
      cat <<\_ASBOX
 
21824
## ------------------------------------------ ##
 
21825
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21826
## ------------------------------------------ ##
 
21827
_ASBOX
 
21828
    ) |
 
21829
      sed "s/^/$as_me: WARNING:     /" >&2
 
21830
    ;;
 
21831
esac
 
21832
echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
 
21833
echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6
 
21834
if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
 
21835
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21836
else
 
21837
  ac_cv_header_lcms_lcms_h=$ac_header_preproc
 
21838
fi
 
21839
echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
 
21840
echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6
 
21841
 
 
21842
fi
 
21843
if test $ac_cv_header_lcms_lcms_h = yes; then
 
21844
  :
 
21845
else
 
21846
  no_lcms="yes"
 
21847
fi
 
21848
 
 
21849
 
 
21850
if test "${ac_cv_header_libmng_h+set}" = set; then
 
21851
  echo "$as_me:$LINENO: checking for libmng.h" >&5
 
21852
echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6
 
21853
if test "${ac_cv_header_libmng_h+set}" = set; then
 
21854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21855
fi
 
21856
echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
 
21857
echo "${ECHO_T}$ac_cv_header_libmng_h" >&6
 
21858
else
 
21859
  # Is the header compilable?
 
21860
echo "$as_me:$LINENO: checking libmng.h usability" >&5
 
21861
echo $ECHO_N "checking libmng.h usability... $ECHO_C" >&6
 
21862
cat >conftest.$ac_ext <<_ACEOF
 
21863
/* confdefs.h.  */
 
21864
_ACEOF
 
21865
cat confdefs.h >>conftest.$ac_ext
 
21866
cat >>conftest.$ac_ext <<_ACEOF
 
21867
/* end confdefs.h.  */
 
21868
$ac_includes_default
 
21869
#include <libmng.h>
 
21870
_ACEOF
 
21871
rm -f conftest.$ac_objext
 
21872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21873
  (eval $ac_compile) 2>conftest.er1
 
21874
  ac_status=$?
 
21875
  grep -v '^ *+' conftest.er1 >conftest.err
 
21876
  rm -f conftest.er1
 
21877
  cat conftest.err >&5
 
21878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21879
  (exit $ac_status); } &&
 
21880
         { ac_try='test -z "$ac_c_werror_flag"
 
21881
                         || test ! -s conftest.err'
 
21882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21883
  (eval $ac_try) 2>&5
 
21884
  ac_status=$?
 
21885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21886
  (exit $ac_status); }; } &&
 
21887
         { ac_try='test -s conftest.$ac_objext'
 
21888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21889
  (eval $ac_try) 2>&5
 
21890
  ac_status=$?
 
21891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21892
  (exit $ac_status); }; }; then
 
21893
  ac_header_compiler=yes
 
21894
else
 
21895
  echo "$as_me: failed program was:" >&5
 
21896
sed 's/^/| /' conftest.$ac_ext >&5
 
21897
 
 
21898
ac_header_compiler=no
 
21899
fi
 
21900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21901
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21902
echo "${ECHO_T}$ac_header_compiler" >&6
 
21903
 
 
21904
# Is the header present?
 
21905
echo "$as_me:$LINENO: checking libmng.h presence" >&5
 
21906
echo $ECHO_N "checking libmng.h presence... $ECHO_C" >&6
 
21907
cat >conftest.$ac_ext <<_ACEOF
 
21908
/* confdefs.h.  */
 
21909
_ACEOF
 
21910
cat confdefs.h >>conftest.$ac_ext
 
21911
cat >>conftest.$ac_ext <<_ACEOF
 
21912
/* end confdefs.h.  */
 
21913
#include <libmng.h>
 
21914
_ACEOF
 
21915
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21916
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21917
  ac_status=$?
 
21918
  grep -v '^ *+' conftest.er1 >conftest.err
 
21919
  rm -f conftest.er1
 
21920
  cat conftest.err >&5
 
21921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21922
  (exit $ac_status); } >/dev/null; then
 
21923
  if test -s conftest.err; then
 
21924
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21925
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21926
  else
 
21927
    ac_cpp_err=
 
21928
  fi
 
21929
else
 
21930
  ac_cpp_err=yes
 
21931
fi
 
21932
if test -z "$ac_cpp_err"; then
 
21933
  ac_header_preproc=yes
 
21934
else
 
21935
  echo "$as_me: failed program was:" >&5
 
21936
sed 's/^/| /' conftest.$ac_ext >&5
 
21937
 
 
21938
  ac_header_preproc=no
 
21939
fi
 
21940
rm -f conftest.err conftest.$ac_ext
 
21941
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21942
echo "${ECHO_T}$ac_header_preproc" >&6
 
21943
 
 
21944
# So?  What about this header?
 
21945
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21946
  yes:no: )
 
21947
    { echo "$as_me:$LINENO: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21948
echo "$as_me: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21949
    { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the compiler's result" >&5
 
21950
echo "$as_me: WARNING: libmng.h: proceeding with the compiler's result" >&2;}
 
21951
    ac_header_preproc=yes
 
21952
    ;;
 
21953
  no:yes:* )
 
21954
    { echo "$as_me:$LINENO: WARNING: libmng.h: present but cannot be compiled" >&5
 
21955
echo "$as_me: WARNING: libmng.h: present but cannot be compiled" >&2;}
 
21956
    { echo "$as_me:$LINENO: WARNING: libmng.h:     check for missing prerequisite headers?" >&5
 
21957
echo "$as_me: WARNING: libmng.h:     check for missing prerequisite headers?" >&2;}
 
21958
    { echo "$as_me:$LINENO: WARNING: libmng.h: see the Autoconf documentation" >&5
 
21959
echo "$as_me: WARNING: libmng.h: see the Autoconf documentation" >&2;}
 
21960
    { echo "$as_me:$LINENO: WARNING: libmng.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21961
echo "$as_me: WARNING: libmng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21962
    { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the preprocessor's result" >&5
 
21963
echo "$as_me: WARNING: libmng.h: proceeding with the preprocessor's result" >&2;}
 
21964
    { echo "$as_me:$LINENO: WARNING: libmng.h: in the future, the compiler will take precedence" >&5
 
21965
echo "$as_me: WARNING: libmng.h: in the future, the compiler will take precedence" >&2;}
 
21966
    (
 
21967
      cat <<\_ASBOX
 
21968
## ------------------------------------------ ##
 
21969
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21970
## ------------------------------------------ ##
 
21971
_ASBOX
 
21972
    ) |
 
21973
      sed "s/^/$as_me: WARNING:     /" >&2
 
21974
    ;;
 
21975
esac
 
21976
echo "$as_me:$LINENO: checking for libmng.h" >&5
 
21977
echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6
 
21978
if test "${ac_cv_header_libmng_h+set}" = set; then
 
21979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21980
else
 
21981
  ac_cv_header_libmng_h=$ac_header_preproc
 
21982
fi
 
21983
echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
 
21984
echo "${ECHO_T}$ac_cv_header_libmng_h" >&6
 
21985
 
 
21986
fi
 
21987
if test $ac_cv_header_libmng_h = yes; then
 
21988
  :
 
21989
else
 
21990
  no_mng="yes"
 
21991
fi
 
21992
 
 
21993
 
 
21994
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
21995
  echo "$as_me:$LINENO: checking for GL/gl.h" >&5
 
21996
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
 
21997
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
21998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21999
fi
 
22000
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
 
22001
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
 
22002
else
 
22003
  # Is the header compilable?
 
22004
echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
 
22005
echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
 
22006
cat >conftest.$ac_ext <<_ACEOF
 
22007
/* confdefs.h.  */
 
22008
_ACEOF
 
22009
cat confdefs.h >>conftest.$ac_ext
 
22010
cat >>conftest.$ac_ext <<_ACEOF
 
22011
/* end confdefs.h.  */
 
22012
$ac_includes_default
 
22013
#include <GL/gl.h>
 
22014
_ACEOF
 
22015
rm -f conftest.$ac_objext
 
22016
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22017
  (eval $ac_compile) 2>conftest.er1
 
22018
  ac_status=$?
 
22019
  grep -v '^ *+' conftest.er1 >conftest.err
 
22020
  rm -f conftest.er1
 
22021
  cat conftest.err >&5
 
22022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22023
  (exit $ac_status); } &&
 
22024
         { ac_try='test -z "$ac_c_werror_flag"
 
22025
                         || test ! -s conftest.err'
 
22026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22027
  (eval $ac_try) 2>&5
 
22028
  ac_status=$?
 
22029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22030
  (exit $ac_status); }; } &&
 
22031
         { ac_try='test -s conftest.$ac_objext'
 
22032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22033
  (eval $ac_try) 2>&5
 
22034
  ac_status=$?
 
22035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22036
  (exit $ac_status); }; }; then
 
22037
  ac_header_compiler=yes
 
22038
else
 
22039
  echo "$as_me: failed program was:" >&5
 
22040
sed 's/^/| /' conftest.$ac_ext >&5
 
22041
 
 
22042
ac_header_compiler=no
 
22043
fi
 
22044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22045
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22046
echo "${ECHO_T}$ac_header_compiler" >&6
 
22047
 
 
22048
# Is the header present?
 
22049
echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
 
22050
echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
 
22051
cat >conftest.$ac_ext <<_ACEOF
 
22052
/* confdefs.h.  */
 
22053
_ACEOF
 
22054
cat confdefs.h >>conftest.$ac_ext
 
22055
cat >>conftest.$ac_ext <<_ACEOF
 
22056
/* end confdefs.h.  */
 
22057
#include <GL/gl.h>
 
22058
_ACEOF
 
22059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22060
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22061
  ac_status=$?
 
22062
  grep -v '^ *+' conftest.er1 >conftest.err
 
22063
  rm -f conftest.er1
 
22064
  cat conftest.err >&5
 
22065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22066
  (exit $ac_status); } >/dev/null; then
 
22067
  if test -s conftest.err; then
 
22068
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22069
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22070
  else
 
22071
    ac_cpp_err=
 
22072
  fi
 
22073
else
 
22074
  ac_cpp_err=yes
 
22075
fi
 
22076
if test -z "$ac_cpp_err"; then
 
22077
  ac_header_preproc=yes
 
22078
else
 
22079
  echo "$as_me: failed program was:" >&5
 
22080
sed 's/^/| /' conftest.$ac_ext >&5
 
22081
 
 
22082
  ac_header_preproc=no
 
22083
fi
 
22084
rm -f conftest.err conftest.$ac_ext
 
22085
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22086
echo "${ECHO_T}$ac_header_preproc" >&6
 
22087
 
 
22088
# So?  What about this header?
 
22089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22090
  yes:no: )
 
22091
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22092
echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22093
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
 
22094
echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
 
22095
    ac_header_preproc=yes
 
22096
    ;;
 
22097
  no:yes:* )
 
22098
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
 
22099
echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
 
22100
    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
 
22101
echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
 
22102
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
 
22103
echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
 
22104
    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22105
echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22106
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
 
22107
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
 
22108
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
 
22109
echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
 
22110
    (
 
22111
      cat <<\_ASBOX
 
22112
## ------------------------------------------ ##
 
22113
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22114
## ------------------------------------------ ##
 
22115
_ASBOX
 
22116
    ) |
 
22117
      sed "s/^/$as_me: WARNING:     /" >&2
 
22118
    ;;
 
22119
esac
 
22120
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
 
22121
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
 
22122
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
22123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22124
else
 
22125
  ac_cv_header_GL_gl_h=$ac_header_preproc
 
22126
fi
 
22127
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
 
22128
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
 
22129
 
 
22130
fi
 
22131
if test $ac_cv_header_GL_gl_h = yes; then
 
22132
  :
 
22133
else
 
22134
  use_opengl="no"
 
22135
fi
 
22136
 
 
22137
 
 
22138
if test "${ac_cv_header_d3d8_h+set}" = set; then
 
22139
  echo "$as_me:$LINENO: checking for d3d8.h" >&5
 
22140
echo $ECHO_N "checking for d3d8.h... $ECHO_C" >&6
 
22141
if test "${ac_cv_header_d3d8_h+set}" = set; then
 
22142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22143
fi
 
22144
echo "$as_me:$LINENO: result: $ac_cv_header_d3d8_h" >&5
 
22145
echo "${ECHO_T}$ac_cv_header_d3d8_h" >&6
 
22146
else
 
22147
  # Is the header compilable?
 
22148
echo "$as_me:$LINENO: checking d3d8.h usability" >&5
 
22149
echo $ECHO_N "checking d3d8.h usability... $ECHO_C" >&6
 
22150
cat >conftest.$ac_ext <<_ACEOF
 
22151
/* confdefs.h.  */
 
22152
_ACEOF
 
22153
cat confdefs.h >>conftest.$ac_ext
 
22154
cat >>conftest.$ac_ext <<_ACEOF
 
22155
/* end confdefs.h.  */
 
22156
$ac_includes_default
 
22157
#include <d3d8.h>
 
22158
_ACEOF
 
22159
rm -f conftest.$ac_objext
 
22160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22161
  (eval $ac_compile) 2>conftest.er1
 
22162
  ac_status=$?
 
22163
  grep -v '^ *+' conftest.er1 >conftest.err
 
22164
  rm -f conftest.er1
 
22165
  cat conftest.err >&5
 
22166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22167
  (exit $ac_status); } &&
 
22168
         { ac_try='test -z "$ac_c_werror_flag"
 
22169
                         || test ! -s conftest.err'
 
22170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22171
  (eval $ac_try) 2>&5
 
22172
  ac_status=$?
 
22173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22174
  (exit $ac_status); }; } &&
 
22175
         { ac_try='test -s conftest.$ac_objext'
 
22176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22177
  (eval $ac_try) 2>&5
 
22178
  ac_status=$?
 
22179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22180
  (exit $ac_status); }; }; then
 
22181
  ac_header_compiler=yes
 
22182
else
 
22183
  echo "$as_me: failed program was:" >&5
 
22184
sed 's/^/| /' conftest.$ac_ext >&5
 
22185
 
 
22186
ac_header_compiler=no
 
22187
fi
 
22188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22189
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22190
echo "${ECHO_T}$ac_header_compiler" >&6
 
22191
 
 
22192
# Is the header present?
 
22193
echo "$as_me:$LINENO: checking d3d8.h presence" >&5
 
22194
echo $ECHO_N "checking d3d8.h presence... $ECHO_C" >&6
 
22195
cat >conftest.$ac_ext <<_ACEOF
 
22196
/* confdefs.h.  */
 
22197
_ACEOF
 
22198
cat confdefs.h >>conftest.$ac_ext
 
22199
cat >>conftest.$ac_ext <<_ACEOF
 
22200
/* end confdefs.h.  */
 
22201
#include <d3d8.h>
 
22202
_ACEOF
 
22203
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22204
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22205
  ac_status=$?
 
22206
  grep -v '^ *+' conftest.er1 >conftest.err
 
22207
  rm -f conftest.er1
 
22208
  cat conftest.err >&5
 
22209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22210
  (exit $ac_status); } >/dev/null; then
 
22211
  if test -s conftest.err; then
 
22212
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22213
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22214
  else
 
22215
    ac_cpp_err=
 
22216
  fi
 
22217
else
 
22218
  ac_cpp_err=yes
 
22219
fi
 
22220
if test -z "$ac_cpp_err"; then
 
22221
  ac_header_preproc=yes
 
22222
else
 
22223
  echo "$as_me: failed program was:" >&5
 
22224
sed 's/^/| /' conftest.$ac_ext >&5
 
22225
 
 
22226
  ac_header_preproc=no
 
22227
fi
 
22228
rm -f conftest.err conftest.$ac_ext
 
22229
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22230
echo "${ECHO_T}$ac_header_preproc" >&6
 
22231
 
 
22232
# So?  What about this header?
 
22233
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22234
  yes:no: )
 
22235
    { echo "$as_me:$LINENO: WARNING: d3d8.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22236
echo "$as_me: WARNING: d3d8.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22237
    { echo "$as_me:$LINENO: WARNING: d3d8.h: proceeding with the compiler's result" >&5
 
22238
echo "$as_me: WARNING: d3d8.h: proceeding with the compiler's result" >&2;}
 
22239
    ac_header_preproc=yes
 
22240
    ;;
 
22241
  no:yes:* )
 
22242
    { echo "$as_me:$LINENO: WARNING: d3d8.h: present but cannot be compiled" >&5
 
22243
echo "$as_me: WARNING: d3d8.h: present but cannot be compiled" >&2;}
 
22244
    { echo "$as_me:$LINENO: WARNING: d3d8.h:     check for missing prerequisite headers?" >&5
 
22245
echo "$as_me: WARNING: d3d8.h:     check for missing prerequisite headers?" >&2;}
 
22246
    { echo "$as_me:$LINENO: WARNING: d3d8.h: see the Autoconf documentation" >&5
 
22247
echo "$as_me: WARNING: d3d8.h: see the Autoconf documentation" >&2;}
 
22248
    { echo "$as_me:$LINENO: WARNING: d3d8.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22249
echo "$as_me: WARNING: d3d8.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22250
    { echo "$as_me:$LINENO: WARNING: d3d8.h: proceeding with the preprocessor's result" >&5
 
22251
echo "$as_me: WARNING: d3d8.h: proceeding with the preprocessor's result" >&2;}
 
22252
    { echo "$as_me:$LINENO: WARNING: d3d8.h: in the future, the compiler will take precedence" >&5
 
22253
echo "$as_me: WARNING: d3d8.h: in the future, the compiler will take precedence" >&2;}
 
22254
    (
 
22255
      cat <<\_ASBOX
 
22256
## ------------------------------------------ ##
 
22257
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22258
## ------------------------------------------ ##
 
22259
_ASBOX
 
22260
    ) |
 
22261
      sed "s/^/$as_me: WARNING:     /" >&2
 
22262
    ;;
 
22263
esac
 
22264
echo "$as_me:$LINENO: checking for d3d8.h" >&5
 
22265
echo $ECHO_N "checking for d3d8.h... $ECHO_C" >&6
 
22266
if test "${ac_cv_header_d3d8_h+set}" = set; then
 
22267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22268
else
 
22269
  ac_cv_header_d3d8_h=$ac_header_preproc
 
22270
fi
 
22271
echo "$as_me:$LINENO: result: $ac_cv_header_d3d8_h" >&5
 
22272
echo "${ECHO_T}$ac_cv_header_d3d8_h" >&6
 
22273
 
 
22274
fi
 
22275
if test $ac_cv_header_d3d8_h = yes; then
 
22276
  :
 
22277
else
 
22278
  use_directx="no"
 
22279
fi
 
22280
 
 
22281
 
 
22282
if test "${ac_cv_header_SDL_h+set}" = set; then
 
22283
  echo "$as_me:$LINENO: checking for SDL.h" >&5
 
22284
echo $ECHO_N "checking for SDL.h... $ECHO_C" >&6
 
22285
if test "${ac_cv_header_SDL_h+set}" = set; then
 
22286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22287
fi
 
22288
echo "$as_me:$LINENO: result: $ac_cv_header_SDL_h" >&5
 
22289
echo "${ECHO_T}$ac_cv_header_SDL_h" >&6
 
22290
else
 
22291
  # Is the header compilable?
 
22292
echo "$as_me:$LINENO: checking SDL.h usability" >&5
 
22293
echo $ECHO_N "checking SDL.h usability... $ECHO_C" >&6
 
22294
cat >conftest.$ac_ext <<_ACEOF
 
22295
/* confdefs.h.  */
 
22296
_ACEOF
 
22297
cat confdefs.h >>conftest.$ac_ext
 
22298
cat >>conftest.$ac_ext <<_ACEOF
 
22299
/* end confdefs.h.  */
 
22300
$ac_includes_default
 
22301
#include <SDL.h>
 
22302
_ACEOF
 
22303
rm -f conftest.$ac_objext
 
22304
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22305
  (eval $ac_compile) 2>conftest.er1
 
22306
  ac_status=$?
 
22307
  grep -v '^ *+' conftest.er1 >conftest.err
 
22308
  rm -f conftest.er1
 
22309
  cat conftest.err >&5
 
22310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22311
  (exit $ac_status); } &&
 
22312
         { ac_try='test -z "$ac_c_werror_flag"
 
22313
                         || test ! -s conftest.err'
 
22314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22315
  (eval $ac_try) 2>&5
 
22316
  ac_status=$?
 
22317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22318
  (exit $ac_status); }; } &&
 
22319
         { ac_try='test -s conftest.$ac_objext'
 
22320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22321
  (eval $ac_try) 2>&5
 
22322
  ac_status=$?
 
22323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22324
  (exit $ac_status); }; }; then
 
22325
  ac_header_compiler=yes
 
22326
else
 
22327
  echo "$as_me: failed program was:" >&5
 
22328
sed 's/^/| /' conftest.$ac_ext >&5
 
22329
 
 
22330
ac_header_compiler=no
 
22331
fi
 
22332
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22333
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22334
echo "${ECHO_T}$ac_header_compiler" >&6
 
22335
 
 
22336
# Is the header present?
 
22337
echo "$as_me:$LINENO: checking SDL.h presence" >&5
 
22338
echo $ECHO_N "checking SDL.h presence... $ECHO_C" >&6
 
22339
cat >conftest.$ac_ext <<_ACEOF
 
22340
/* confdefs.h.  */
 
22341
_ACEOF
 
22342
cat confdefs.h >>conftest.$ac_ext
 
22343
cat >>conftest.$ac_ext <<_ACEOF
 
22344
/* end confdefs.h.  */
 
22345
#include <SDL.h>
 
22346
_ACEOF
 
22347
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22348
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22349
  ac_status=$?
 
22350
  grep -v '^ *+' conftest.er1 >conftest.err
 
22351
  rm -f conftest.er1
 
22352
  cat conftest.err >&5
 
22353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22354
  (exit $ac_status); } >/dev/null; then
 
22355
  if test -s conftest.err; then
 
22356
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22357
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22358
  else
 
22359
    ac_cpp_err=
 
22360
  fi
 
22361
else
 
22362
  ac_cpp_err=yes
 
22363
fi
 
22364
if test -z "$ac_cpp_err"; then
 
22365
  ac_header_preproc=yes
 
22366
else
 
22367
  echo "$as_me: failed program was:" >&5
 
22368
sed 's/^/| /' conftest.$ac_ext >&5
 
22369
 
 
22370
  ac_header_preproc=no
 
22371
fi
 
22372
rm -f conftest.err conftest.$ac_ext
 
22373
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22374
echo "${ECHO_T}$ac_header_preproc" >&6
 
22375
 
 
22376
# So?  What about this header?
 
22377
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22378
  yes:no: )
 
22379
    { echo "$as_me:$LINENO: WARNING: SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22380
echo "$as_me: WARNING: SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22381
    { echo "$as_me:$LINENO: WARNING: SDL.h: proceeding with the compiler's result" >&5
 
22382
echo "$as_me: WARNING: SDL.h: proceeding with the compiler's result" >&2;}
 
22383
    ac_header_preproc=yes
 
22384
    ;;
 
22385
  no:yes:* )
 
22386
    { echo "$as_me:$LINENO: WARNING: SDL.h: present but cannot be compiled" >&5
 
22387
echo "$as_me: WARNING: SDL.h: present but cannot be compiled" >&2;}
 
22388
    { echo "$as_me:$LINENO: WARNING: SDL.h:     check for missing prerequisite headers?" >&5
 
22389
echo "$as_me: WARNING: SDL.h:     check for missing prerequisite headers?" >&2;}
 
22390
    { echo "$as_me:$LINENO: WARNING: SDL.h: see the Autoconf documentation" >&5
 
22391
echo "$as_me: WARNING: SDL.h: see the Autoconf documentation" >&2;}
 
22392
    { echo "$as_me:$LINENO: WARNING: SDL.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22393
echo "$as_me: WARNING: SDL.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22394
    { echo "$as_me:$LINENO: WARNING: SDL.h: proceeding with the preprocessor's result" >&5
 
22395
echo "$as_me: WARNING: SDL.h: proceeding with the preprocessor's result" >&2;}
 
22396
    { echo "$as_me:$LINENO: WARNING: SDL.h: in the future, the compiler will take precedence" >&5
 
22397
echo "$as_me: WARNING: SDL.h: in the future, the compiler will take precedence" >&2;}
 
22398
    (
 
22399
      cat <<\_ASBOX
 
22400
## ------------------------------------------ ##
 
22401
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22402
## ------------------------------------------ ##
 
22403
_ASBOX
 
22404
    ) |
 
22405
      sed "s/^/$as_me: WARNING:     /" >&2
 
22406
    ;;
 
22407
esac
 
22408
echo "$as_me:$LINENO: checking for SDL.h" >&5
 
22409
echo $ECHO_N "checking for SDL.h... $ECHO_C" >&6
 
22410
if test "${ac_cv_header_SDL_h+set}" = set; then
 
22411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22412
else
 
22413
  ac_cv_header_SDL_h=$ac_header_preproc
 
22414
fi
 
22415
echo "$as_me:$LINENO: result: $ac_cv_header_SDL_h" >&5
 
22416
echo "${ECHO_T}$ac_cv_header_SDL_h" >&6
 
22417
 
 
22418
fi
 
22419
if test $ac_cv_header_SDL_h = yes; then
 
22420
  :
 
22421
else
 
22422
  use_sdl="no"
 
22423
fi
 
22424
 
 
22425
 
 
22426
if test "${ac_cv_header_zlib_h+set}" = set; then
 
22427
  echo "$as_me:$LINENO: checking for zlib.h" >&5
 
22428
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
22429
if test "${ac_cv_header_zlib_h+set}" = set; then
 
22430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22431
fi
 
22432
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
22433
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
22434
else
 
22435
  # Is the header compilable?
 
22436
echo "$as_me:$LINENO: checking zlib.h usability" >&5
 
22437
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
 
22438
cat >conftest.$ac_ext <<_ACEOF
 
22439
/* confdefs.h.  */
 
22440
_ACEOF
 
22441
cat confdefs.h >>conftest.$ac_ext
 
22442
cat >>conftest.$ac_ext <<_ACEOF
 
22443
/* end confdefs.h.  */
 
22444
$ac_includes_default
 
22445
#include <zlib.h>
 
22446
_ACEOF
 
22447
rm -f conftest.$ac_objext
 
22448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22449
  (eval $ac_compile) 2>conftest.er1
 
22450
  ac_status=$?
 
22451
  grep -v '^ *+' conftest.er1 >conftest.err
 
22452
  rm -f conftest.er1
 
22453
  cat conftest.err >&5
 
22454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22455
  (exit $ac_status); } &&
 
22456
         { ac_try='test -z "$ac_c_werror_flag"
 
22457
                         || test ! -s conftest.err'
 
22458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22459
  (eval $ac_try) 2>&5
 
22460
  ac_status=$?
 
22461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22462
  (exit $ac_status); }; } &&
 
22463
         { ac_try='test -s conftest.$ac_objext'
 
22464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22465
  (eval $ac_try) 2>&5
 
22466
  ac_status=$?
 
22467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22468
  (exit $ac_status); }; }; then
 
22469
  ac_header_compiler=yes
 
22470
else
 
22471
  echo "$as_me: failed program was:" >&5
 
22472
sed 's/^/| /' conftest.$ac_ext >&5
 
22473
 
 
22474
ac_header_compiler=no
 
22475
fi
 
22476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22477
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22478
echo "${ECHO_T}$ac_header_compiler" >&6
 
22479
 
 
22480
# Is the header present?
 
22481
echo "$as_me:$LINENO: checking zlib.h presence" >&5
 
22482
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
 
22483
cat >conftest.$ac_ext <<_ACEOF
 
22484
/* confdefs.h.  */
 
22485
_ACEOF
 
22486
cat confdefs.h >>conftest.$ac_ext
 
22487
cat >>conftest.$ac_ext <<_ACEOF
 
22488
/* end confdefs.h.  */
 
22489
#include <zlib.h>
 
22490
_ACEOF
 
22491
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22492
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22493
  ac_status=$?
 
22494
  grep -v '^ *+' conftest.er1 >conftest.err
 
22495
  rm -f conftest.er1
 
22496
  cat conftest.err >&5
 
22497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22498
  (exit $ac_status); } >/dev/null; then
 
22499
  if test -s conftest.err; then
 
22500
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22501
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22502
  else
 
22503
    ac_cpp_err=
 
22504
  fi
 
22505
else
 
22506
  ac_cpp_err=yes
 
22507
fi
 
22508
if test -z "$ac_cpp_err"; then
 
22509
  ac_header_preproc=yes
 
22510
else
 
22511
  echo "$as_me: failed program was:" >&5
 
22512
sed 's/^/| /' conftest.$ac_ext >&5
 
22513
 
 
22514
  ac_header_preproc=no
 
22515
fi
 
22516
rm -f conftest.err conftest.$ac_ext
 
22517
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22518
echo "${ECHO_T}$ac_header_preproc" >&6
 
22519
 
 
22520
# So?  What about this header?
 
22521
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22522
  yes:no: )
 
22523
    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22524
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22525
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
 
22526
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
 
22527
    ac_header_preproc=yes
 
22528
    ;;
 
22529
  no:yes:* )
 
22530
    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
 
22531
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
 
22532
    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
 
22533
echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
 
22534
    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
 
22535
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
 
22536
    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22537
echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22538
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
 
22539
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
 
22540
    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
 
22541
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
 
22542
    (
 
22543
      cat <<\_ASBOX
 
22544
## ------------------------------------------ ##
 
22545
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22546
## ------------------------------------------ ##
 
22547
_ASBOX
 
22548
    ) |
 
22549
      sed "s/^/$as_me: WARNING:     /" >&2
 
22550
    ;;
 
22551
esac
 
22552
echo "$as_me:$LINENO: checking for zlib.h" >&5
 
22553
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
22554
if test "${ac_cv_header_zlib_h+set}" = set; then
 
22555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22556
else
 
22557
  ac_cv_header_zlib_h=$ac_header_preproc
 
22558
fi
 
22559
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
22560
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
22561
 
 
22562
fi
 
22563
if test $ac_cv_header_zlib_h = yes; then
 
22564
  LIBZ="-lz"
 
22565
else
 
22566
  LIBZ=""
 
22567
fi
 
22568
 
 
22569
 
 
22570
 
 
22571
 
 
22572
if test "$no_jpeg" = "no" ; then
 
22573
  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
 
22574
echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
 
22575
if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
 
22576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22577
else
 
22578
  ac_check_lib_save_LIBS=$LIBS
 
22579
LIBS="-ljpeg  $LIBS"
 
22580
cat >conftest.$ac_ext <<_ACEOF
 
22581
/* confdefs.h.  */
 
22582
_ACEOF
 
22583
cat confdefs.h >>conftest.$ac_ext
 
22584
cat >>conftest.$ac_ext <<_ACEOF
 
22585
/* end confdefs.h.  */
 
22586
 
 
22587
/* Override any gcc2 internal prototype to avoid an error.  */
 
22588
#ifdef __cplusplus
 
22589
extern "C"
 
22590
#endif
 
22591
/* We use char because int might match the return type of a gcc2
 
22592
   builtin and then its argument prototype would still apply.  */
 
22593
char jpeg_start_decompress ();
 
22594
int
 
22595
main ()
 
22596
{
 
22597
jpeg_start_decompress ();
 
22598
  ;
 
22599
  return 0;
 
22600
}
 
22601
_ACEOF
 
22602
rm -f conftest.$ac_objext conftest$ac_exeext
 
22603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22604
  (eval $ac_link) 2>conftest.er1
 
22605
  ac_status=$?
 
22606
  grep -v '^ *+' conftest.er1 >conftest.err
 
22607
  rm -f conftest.er1
 
22608
  cat conftest.err >&5
 
22609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22610
  (exit $ac_status); } &&
 
22611
         { ac_try='test -z "$ac_c_werror_flag"
 
22612
                         || test ! -s conftest.err'
 
22613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22614
  (eval $ac_try) 2>&5
 
22615
  ac_status=$?
 
22616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22617
  (exit $ac_status); }; } &&
 
22618
         { ac_try='test -s conftest$ac_exeext'
 
22619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22620
  (eval $ac_try) 2>&5
 
22621
  ac_status=$?
 
22622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22623
  (exit $ac_status); }; }; then
 
22624
  ac_cv_lib_jpeg_jpeg_start_decompress=yes
 
22625
else
 
22626
  echo "$as_me: failed program was:" >&5
 
22627
sed 's/^/| /' conftest.$ac_ext >&5
 
22628
 
 
22629
ac_cv_lib_jpeg_jpeg_start_decompress=no
 
22630
fi
 
22631
rm -f conftest.err conftest.$ac_objext \
 
22632
      conftest$ac_exeext conftest.$ac_ext
 
22633
LIBS=$ac_check_lib_save_LIBS
 
22634
fi
 
22635
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
 
22636
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
 
22637
if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
 
22638
  LIBJPG="-ljpeg"
 
22639
else
 
22640
  LIBJPG=""
 
22641
fi
 
22642
 
 
22643
  if test "$LIBJPG" != "-ljpeg" ; then
 
22644
    no_jpeg="yes"
 
22645
  else
 
22646
    echo "$as_me:$LINENO: checking for jpeg_init_exif_field in -ljpeg" >&5
 
22647
echo $ECHO_N "checking for jpeg_init_exif_field in -ljpeg... $ECHO_C" >&6
 
22648
if test "${ac_cv_lib_jpeg_jpeg_init_exif_field+set}" = set; then
 
22649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22650
else
 
22651
  ac_check_lib_save_LIBS=$LIBS
 
22652
LIBS="-ljpeg  $LIBS"
 
22653
cat >conftest.$ac_ext <<_ACEOF
 
22654
/* confdefs.h.  */
 
22655
_ACEOF
 
22656
cat confdefs.h >>conftest.$ac_ext
 
22657
cat >>conftest.$ac_ext <<_ACEOF
 
22658
/* end confdefs.h.  */
 
22659
 
 
22660
/* Override any gcc2 internal prototype to avoid an error.  */
 
22661
#ifdef __cplusplus
 
22662
extern "C"
 
22663
#endif
 
22664
/* We use char because int might match the return type of a gcc2
 
22665
   builtin and then its argument prototype would still apply.  */
 
22666
char jpeg_init_exif_field ();
 
22667
int
 
22668
main ()
 
22669
{
 
22670
jpeg_init_exif_field ();
 
22671
  ;
 
22672
  return 0;
 
22673
}
 
22674
_ACEOF
 
22675
rm -f conftest.$ac_objext conftest$ac_exeext
 
22676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22677
  (eval $ac_link) 2>conftest.er1
 
22678
  ac_status=$?
 
22679
  grep -v '^ *+' conftest.er1 >conftest.err
 
22680
  rm -f conftest.er1
 
22681
  cat conftest.err >&5
 
22682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22683
  (exit $ac_status); } &&
 
22684
         { ac_try='test -z "$ac_c_werror_flag"
 
22685
                         || test ! -s conftest.err'
 
22686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22687
  (eval $ac_try) 2>&5
 
22688
  ac_status=$?
 
22689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22690
  (exit $ac_status); }; } &&
 
22691
         { ac_try='test -s conftest$ac_exeext'
 
22692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22693
  (eval $ac_try) 2>&5
 
22694
  ac_status=$?
 
22695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22696
  (exit $ac_status); }; }; then
 
22697
  ac_cv_lib_jpeg_jpeg_init_exif_field=yes
 
22698
else
 
22699
  echo "$as_me: failed program was:" >&5
 
22700
sed 's/^/| /' conftest.$ac_ext >&5
 
22701
 
 
22702
ac_cv_lib_jpeg_jpeg_init_exif_field=no
 
22703
fi
 
22704
rm -f conftest.err conftest.$ac_objext \
 
22705
      conftest$ac_exeext conftest.$ac_ext
 
22706
LIBS=$ac_check_lib_save_LIBS
 
22707
fi
 
22708
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_init_exif_field" >&5
 
22709
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_init_exif_field" >&6
 
22710
if test $ac_cv_lib_jpeg_jpeg_init_exif_field = yes; then
 
22711
  use_exif="yes"
 
22712
else
 
22713
  use_exif="no"
 
22714
fi
 
22715
 
 
22716
    if test "$use_exif" = "no" ; then
 
22717
      cat >>confdefs.h <<\_ACEOF
 
22718
#define IL_USE_JPEGLIB_UNMODIFIED 1
 
22719
_ACEOF
 
22720
 
 
22721
    fi
 
22722
    cat >>confdefs.h <<\_ACEOF
 
22723
#define IL_USE_JPEGLIB_UNMODIFIED 1
 
22724
_ACEOF
 
22725
 
 
22726
  fi
 
22727
 
 
22728
else
 
22729
  LIBJPG=""
 
22730
fi
 
22731
 
 
22732
 
 
22733
case "$target" in
 
22734
*-apple-darwin*)
 
22735
        cat >>confdefs.h <<\_ACEOF
 
22736
#define IL_USE_JPEGLIB_UNMODIFIED 1
 
22737
_ACEOF
 
22738
 
 
22739
esac
 
22740
 
 
22741
if test "$no_tiff" = "no" ; then
 
22742
   echo "$as_me:$LINENO: checking for TIFFReadRGBAImage in -ltiff" >&5
 
22743
echo $ECHO_N "checking for TIFFReadRGBAImage in -ltiff... $ECHO_C" >&6
 
22744
if test "${ac_cv_lib_tiff_TIFFReadRGBAImage+set}" = set; then
 
22745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22746
else
 
22747
  ac_check_lib_save_LIBS=$LIBS
 
22748
LIBS="-ltiff -lm $LIBS"
 
22749
cat >conftest.$ac_ext <<_ACEOF
 
22750
/* confdefs.h.  */
 
22751
_ACEOF
 
22752
cat confdefs.h >>conftest.$ac_ext
 
22753
cat >>conftest.$ac_ext <<_ACEOF
 
22754
/* end confdefs.h.  */
 
22755
 
 
22756
/* Override any gcc2 internal prototype to avoid an error.  */
 
22757
#ifdef __cplusplus
 
22758
extern "C"
 
22759
#endif
 
22760
/* We use char because int might match the return type of a gcc2
 
22761
   builtin and then its argument prototype would still apply.  */
 
22762
char TIFFReadRGBAImage ();
 
22763
int
 
22764
main ()
 
22765
{
 
22766
TIFFReadRGBAImage ();
 
22767
  ;
 
22768
  return 0;
 
22769
}
 
22770
_ACEOF
 
22771
rm -f conftest.$ac_objext conftest$ac_exeext
 
22772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22773
  (eval $ac_link) 2>conftest.er1
 
22774
  ac_status=$?
 
22775
  grep -v '^ *+' conftest.er1 >conftest.err
 
22776
  rm -f conftest.er1
 
22777
  cat conftest.err >&5
 
22778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22779
  (exit $ac_status); } &&
 
22780
         { ac_try='test -z "$ac_c_werror_flag"
 
22781
                         || test ! -s conftest.err'
 
22782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22783
  (eval $ac_try) 2>&5
 
22784
  ac_status=$?
 
22785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22786
  (exit $ac_status); }; } &&
 
22787
         { ac_try='test -s conftest$ac_exeext'
 
22788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22789
  (eval $ac_try) 2>&5
 
22790
  ac_status=$?
 
22791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22792
  (exit $ac_status); }; }; then
 
22793
  ac_cv_lib_tiff_TIFFReadRGBAImage=yes
 
22794
else
 
22795
  echo "$as_me: failed program was:" >&5
 
22796
sed 's/^/| /' conftest.$ac_ext >&5
 
22797
 
 
22798
ac_cv_lib_tiff_TIFFReadRGBAImage=no
 
22799
fi
 
22800
rm -f conftest.err conftest.$ac_objext \
 
22801
      conftest$ac_exeext conftest.$ac_ext
 
22802
LIBS=$ac_check_lib_save_LIBS
 
22803
fi
 
22804
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAImage" >&5
 
22805
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadRGBAImage" >&6
 
22806
if test $ac_cv_lib_tiff_TIFFReadRGBAImage = yes; then
 
22807
  LIBTIFF="-ltiff"
 
22808
else
 
22809
  LIBTIFF=""
 
22810
fi
 
22811
 
 
22812
   if test "$LIBTIFF" != "-ltiff" ; then
 
22813
     no_tiff="yes"
 
22814
   fi
 
22815
else
 
22816
  LIBTIFF=""
 
22817
fi
 
22818
 
 
22819
 
 
22820
if test "$no_png" = "no" ; then
 
22821
   echo "$as_me:$LINENO: checking for png_start_read_image in -lpng" >&5
 
22822
echo $ECHO_N "checking for png_start_read_image in -lpng... $ECHO_C" >&6
 
22823
if test "${ac_cv_lib_png_png_start_read_image+set}" = set; then
 
22824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22825
else
 
22826
  ac_check_lib_save_LIBS=$LIBS
 
22827
LIBS="-lpng `libpng-config --libs` $LIBS"
 
22828
cat >conftest.$ac_ext <<_ACEOF
 
22829
/* confdefs.h.  */
 
22830
_ACEOF
 
22831
cat confdefs.h >>conftest.$ac_ext
 
22832
cat >>conftest.$ac_ext <<_ACEOF
 
22833
/* end confdefs.h.  */
 
22834
 
 
22835
/* Override any gcc2 internal prototype to avoid an error.  */
 
22836
#ifdef __cplusplus
 
22837
extern "C"
 
22838
#endif
 
22839
/* We use char because int might match the return type of a gcc2
 
22840
   builtin and then its argument prototype would still apply.  */
 
22841
char png_start_read_image ();
 
22842
int
 
22843
main ()
 
22844
{
 
22845
png_start_read_image ();
 
22846
  ;
 
22847
  return 0;
 
22848
}
 
22849
_ACEOF
 
22850
rm -f conftest.$ac_objext conftest$ac_exeext
 
22851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22852
  (eval $ac_link) 2>conftest.er1
 
22853
  ac_status=$?
 
22854
  grep -v '^ *+' conftest.er1 >conftest.err
 
22855
  rm -f conftest.er1
 
22856
  cat conftest.err >&5
 
22857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22858
  (exit $ac_status); } &&
 
22859
         { ac_try='test -z "$ac_c_werror_flag"
 
22860
                         || test ! -s conftest.err'
 
22861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22862
  (eval $ac_try) 2>&5
 
22863
  ac_status=$?
 
22864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22865
  (exit $ac_status); }; } &&
 
22866
         { ac_try='test -s conftest$ac_exeext'
 
22867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22868
  (eval $ac_try) 2>&5
 
22869
  ac_status=$?
 
22870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22871
  (exit $ac_status); }; }; then
 
22872
  ac_cv_lib_png_png_start_read_image=yes
 
22873
else
 
22874
  echo "$as_me: failed program was:" >&5
 
22875
sed 's/^/| /' conftest.$ac_ext >&5
 
22876
 
 
22877
ac_cv_lib_png_png_start_read_image=no
 
22878
fi
 
22879
rm -f conftest.err conftest.$ac_objext \
 
22880
      conftest$ac_exeext conftest.$ac_ext
 
22881
LIBS=$ac_check_lib_save_LIBS
 
22882
fi
 
22883
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_start_read_image" >&5
 
22884
echo "${ECHO_T}$ac_cv_lib_png_png_start_read_image" >&6
 
22885
if test $ac_cv_lib_png_png_start_read_image = yes; then
 
22886
  LIBPNG="-lpng"
 
22887
else
 
22888
  LIBPNG=""
 
22889
fi
 
22890
 
 
22891
   if test "$LIBPNG" != "-lpng" ; then
 
22892
     no_png="yes"
 
22893
   fi
 
22894
else
 
22895
  LIBPNG=""
 
22896
fi
 
22897
 
 
22898
 
 
22899
if test "$no_lcms" = "no" ; then
 
22900
   echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
 
22901
echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
 
22902
if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
 
22903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22904
else
 
22905
  ac_check_lib_save_LIBS=$LIBS
 
22906
LIBS="-llcms -lm $LIBS"
 
22907
cat >conftest.$ac_ext <<_ACEOF
 
22908
/* confdefs.h.  */
 
22909
_ACEOF
 
22910
cat confdefs.h >>conftest.$ac_ext
 
22911
cat >>conftest.$ac_ext <<_ACEOF
 
22912
/* end confdefs.h.  */
 
22913
 
 
22914
/* Override any gcc2 internal prototype to avoid an error.  */
 
22915
#ifdef __cplusplus
 
22916
extern "C"
 
22917
#endif
 
22918
/* We use char because int might match the return type of a gcc2
 
22919
   builtin and then its argument prototype would still apply.  */
 
22920
char cmsOpenProfileFromFile ();
 
22921
int
 
22922
main ()
 
22923
{
 
22924
cmsOpenProfileFromFile ();
 
22925
  ;
 
22926
  return 0;
 
22927
}
 
22928
_ACEOF
 
22929
rm -f conftest.$ac_objext conftest$ac_exeext
 
22930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22931
  (eval $ac_link) 2>conftest.er1
 
22932
  ac_status=$?
 
22933
  grep -v '^ *+' conftest.er1 >conftest.err
 
22934
  rm -f conftest.er1
 
22935
  cat conftest.err >&5
 
22936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22937
  (exit $ac_status); } &&
 
22938
         { ac_try='test -z "$ac_c_werror_flag"
 
22939
                         || test ! -s conftest.err'
 
22940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22941
  (eval $ac_try) 2>&5
 
22942
  ac_status=$?
 
22943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22944
  (exit $ac_status); }; } &&
 
22945
         { ac_try='test -s conftest$ac_exeext'
 
22946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22947
  (eval $ac_try) 2>&5
 
22948
  ac_status=$?
 
22949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22950
  (exit $ac_status); }; }; then
 
22951
  ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
 
22952
else
 
22953
  echo "$as_me: failed program was:" >&5
 
22954
sed 's/^/| /' conftest.$ac_ext >&5
 
22955
 
 
22956
ac_cv_lib_lcms_cmsOpenProfileFromFile=no
 
22957
fi
 
22958
rm -f conftest.err conftest.$ac_objext \
 
22959
      conftest$ac_exeext conftest.$ac_ext
 
22960
LIBS=$ac_check_lib_save_LIBS
 
22961
fi
 
22962
echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
 
22963
echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
 
22964
if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
 
22965
  LIBLCMS="-llcms"
 
22966
else
 
22967
  LIBLCMS=""
 
22968
fi
 
22969
 
 
22970
   if test "$LIBLCMS" != "-llcms" ; then
 
22971
     no_lcms="yes"
 
22972
   fi
 
22973
else
 
22974
  LIBLCMS=""
 
22975
fi
 
22976
 
 
22977
 
 
22978
if test "$no_mng" = "no" ; then
 
22979
   echo "$as_me:$LINENO: checking for mng_setcb_openstream in -lmng" >&5
 
22980
echo $ECHO_N "checking for mng_setcb_openstream in -lmng... $ECHO_C" >&6
 
22981
if test "${ac_cv_lib_mng_mng_setcb_openstream+set}" = set; then
 
22982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22983
else
 
22984
  ac_check_lib_save_LIBS=$LIBS
 
22985
LIBS="-lmng  $LIBS"
 
22986
cat >conftest.$ac_ext <<_ACEOF
 
22987
/* confdefs.h.  */
 
22988
_ACEOF
 
22989
cat confdefs.h >>conftest.$ac_ext
 
22990
cat >>conftest.$ac_ext <<_ACEOF
 
22991
/* end confdefs.h.  */
 
22992
 
 
22993
/* Override any gcc2 internal prototype to avoid an error.  */
 
22994
#ifdef __cplusplus
 
22995
extern "C"
 
22996
#endif
 
22997
/* We use char because int might match the return type of a gcc2
 
22998
   builtin and then its argument prototype would still apply.  */
 
22999
char mng_setcb_openstream ();
 
23000
int
 
23001
main ()
 
23002
{
 
23003
mng_setcb_openstream ();
 
23004
  ;
 
23005
  return 0;
 
23006
}
 
23007
_ACEOF
 
23008
rm -f conftest.$ac_objext conftest$ac_exeext
 
23009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23010
  (eval $ac_link) 2>conftest.er1
 
23011
  ac_status=$?
 
23012
  grep -v '^ *+' conftest.er1 >conftest.err
 
23013
  rm -f conftest.er1
 
23014
  cat conftest.err >&5
 
23015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23016
  (exit $ac_status); } &&
 
23017
         { ac_try='test -z "$ac_c_werror_flag"
 
23018
                         || test ! -s conftest.err'
 
23019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23020
  (eval $ac_try) 2>&5
 
23021
  ac_status=$?
 
23022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23023
  (exit $ac_status); }; } &&
 
23024
         { ac_try='test -s conftest$ac_exeext'
 
23025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23026
  (eval $ac_try) 2>&5
 
23027
  ac_status=$?
 
23028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23029
  (exit $ac_status); }; }; then
 
23030
  ac_cv_lib_mng_mng_setcb_openstream=yes
 
23031
else
 
23032
  echo "$as_me: failed program was:" >&5
 
23033
sed 's/^/| /' conftest.$ac_ext >&5
 
23034
 
 
23035
ac_cv_lib_mng_mng_setcb_openstream=no
 
23036
fi
 
23037
rm -f conftest.err conftest.$ac_objext \
 
23038
      conftest$ac_exeext conftest.$ac_ext
 
23039
LIBS=$ac_check_lib_save_LIBS
 
23040
fi
 
23041
echo "$as_me:$LINENO: result: $ac_cv_lib_mng_mng_setcb_openstream" >&5
 
23042
echo "${ECHO_T}$ac_cv_lib_mng_mng_setcb_openstream" >&6
 
23043
if test $ac_cv_lib_mng_mng_setcb_openstream = yes; then
 
23044
  LIBMNG="-lmng"
 
23045
else
 
23046
  LIBMNG=""
 
23047
fi
 
23048
 
 
23049
   if test "$LIBMNG" != "-lmng" ; then
 
23050
     no_mng="yes"
 
23051
   fi
 
23052
else
 
23053
  LIBMNG=""
 
23054
fi
 
23055
 
 
23056
 
 
23057
 
 
23058
 
 
23059
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
 
23060
if test "${with_sdl_prefix+set}" = set; then
 
23061
  withval="$with_sdl_prefix"
 
23062
  sdl_prefix="$withval"
 
23063
else
 
23064
  sdl_prefix=""
 
23065
fi;
 
23066
 
 
23067
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
 
23068
if test "${with_sdl_exec_prefix+set}" = set; then
 
23069
  withval="$with_sdl_exec_prefix"
 
23070
  sdl_exec_prefix="$withval"
 
23071
else
 
23072
  sdl_exec_prefix=""
 
23073
fi;
 
23074
# Check whether --enable-sdltest or --disable-sdltest was given.
 
23075
if test "${enable_sdltest+set}" = set; then
 
23076
  enableval="$enable_sdltest"
 
23077
 
 
23078
else
 
23079
  enable_sdltest=yes
 
23080
fi;
 
23081
 
 
23082
  if test x$sdl_exec_prefix != x ; then
 
23083
     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
 
23084
     if test x${SDL_CONFIG+set} != xset ; then
 
23085
        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
 
23086
     fi
 
23087
  fi
 
23088
  if test x$sdl_prefix != x ; then
 
23089
     sdl_args="$sdl_args --prefix=$sdl_prefix"
 
23090
     if test x${SDL_CONFIG+set} != xset ; then
 
23091
        SDL_CONFIG=$sdl_prefix/bin/sdl-config
 
23092
     fi
 
23093
  fi
 
23094
 
 
23095
 
 
23096
  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
 
23097
  # Extract the first word of "sdl-config", so it can be a program name with args.
 
23098
set dummy sdl-config; ac_word=$2
 
23099
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23101
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
 
23102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23103
else
 
23104
  case $SDL_CONFIG in
 
23105
  [\\/]* | ?:[\\/]*)
 
23106
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
 
23107
  ;;
 
23108
  *)
 
23109
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23110
for as_dir in $PATH
 
23111
do
 
23112
  IFS=$as_save_IFS
 
23113
  test -z "$as_dir" && as_dir=.
 
23114
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23115
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23116
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23117
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23118
    break 2
 
23119
  fi
 
23120
done
 
23121
done
 
23122
 
 
23123
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
 
23124
  ;;
 
23125
esac
 
23126
fi
 
23127
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
 
23128
 
 
23129
if test -n "$SDL_CONFIG"; then
 
23130
  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
 
23131
echo "${ECHO_T}$SDL_CONFIG" >&6
 
23132
else
 
23133
  echo "$as_me:$LINENO: result: no" >&5
 
23134
echo "${ECHO_T}no" >&6
 
23135
fi
 
23136
 
 
23137
  min_sdl_version=1.2.5
 
23138
  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
 
23139
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
 
23140
  no_sdl=""
 
23141
  if test "$SDL_CONFIG" = "no" ; then
 
23142
    no_sdl=yes
 
23143
  else
 
23144
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
 
23145
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
 
23146
 
 
23147
    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
 
23148
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
23149
    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
 
23150
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
23151
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
 
23152
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
23153
 
 
23154
 
 
23155
 
 
23156
 
 
23157
 
 
23158
    if test "x$enable_sdltest" = "xyes" ; then
 
23159
      ac_save_CFLAGS="$CFLAGS"
 
23160
      ac_save_LIBS="$LIBS"
 
23161
      CFLAGS="$CFLAGS $SDL_CFLAGS"
 
23162
      LIBS="$LIBS $SDL_LIBS"
 
23163
      rm -f conf.sdltest
 
23164
      if test "$cross_compiling" = yes; then
 
23165
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
23166
else
 
23167
  cat >conftest.$ac_ext <<_ACEOF
 
23168
/* confdefs.h.  */
 
23169
_ACEOF
 
23170
cat confdefs.h >>conftest.$ac_ext
 
23171
cat >>conftest.$ac_ext <<_ACEOF
 
23172
/* end confdefs.h.  */
 
23173
 
 
23174
#include <stdio.h>
 
23175
#include <stdlib.h>
 
23176
#include <string.h>
 
23177
#include "SDL.h"
 
23178
 
 
23179
char*
 
23180
my_strdup (char *str)
 
23181
{
 
23182
  char *new_str;
 
23183
 
 
23184
  if (str)
 
23185
    {
 
23186
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
 
23187
      strcpy (new_str, str);
 
23188
    }
 
23189
  else
 
23190
    new_str = NULL;
 
23191
 
 
23192
  return new_str;
 
23193
}
 
23194
 
 
23195
int main (int argc, char *argv[])
 
23196
{
 
23197
  int major, minor, micro;
 
23198
  char *tmp_version;
 
23199
 
 
23200
  /* This hangs on some systems (?)
 
23201
  system ("touch conf.sdltest");
 
23202
  */
 
23203
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
 
23204
 
 
23205
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
23206
  tmp_version = my_strdup("$min_sdl_version");
 
23207
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
23208
     printf("%s, bad version string\n", "$min_sdl_version");
 
23209
     exit(1);
 
23210
   }
 
23211
 
 
23212
   if (($sdl_major_version > major) ||
 
23213
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
 
23214
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
 
23215
    {
 
23216
      return 0;
 
23217
    }
 
23218
  else
 
23219
    {
 
23220
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
 
23221
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
 
23222
      printf("*** best to upgrade to the required version.\n");
 
23223
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
 
23224
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
 
23225
      printf("*** config.cache before re-running configure\n");
 
23226
      return 1;
 
23227
    }
 
23228
}
 
23229
 
 
23230
 
 
23231
_ACEOF
 
23232
rm -f conftest$ac_exeext
 
23233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23234
  (eval $ac_link) 2>&5
 
23235
  ac_status=$?
 
23236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23237
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23239
  (eval $ac_try) 2>&5
 
23240
  ac_status=$?
 
23241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23242
  (exit $ac_status); }; }; then
 
23243
  :
 
23244
else
 
23245
  echo "$as_me: program exited with status $ac_status" >&5
 
23246
echo "$as_me: failed program was:" >&5
 
23247
sed 's/^/| /' conftest.$ac_ext >&5
 
23248
 
 
23249
( exit $ac_status )
 
23250
no_sdl=yes
 
23251
fi
 
23252
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23253
fi
 
23254
       CFLAGS="$ac_save_CFLAGS"
 
23255
       LIBS="$ac_save_LIBS"
 
23256
     fi
 
23257
  fi
 
23258
  if test "x$no_sdl" = x ; then
 
23259
     echo "$as_me:$LINENO: result: yes" >&5
 
23260
echo "${ECHO_T}yes" >&6
 
23261
     :
 
23262
  else
 
23263
     echo "$as_me:$LINENO: result: no" >&5
 
23264
echo "${ECHO_T}no" >&6
 
23265
     if test "$SDL_CONFIG" = "no" ; then
 
23266
       echo "*** The sdl-config script installed by SDL could not be found"
 
23267
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
 
23268
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
 
23269
       echo "*** full path to sdl-config."
 
23270
     else
 
23271
       if test -f conf.sdltest ; then
 
23272
        :
 
23273
       else
 
23274
          echo "*** Could not run SDL test program, checking why..."
 
23275
          CFLAGS="$CFLAGS $SDL_CFLAGS"
 
23276
          LIBS="$LIBS $SDL_LIBS"
 
23277
          cat >conftest.$ac_ext <<_ACEOF
 
23278
/* confdefs.h.  */
 
23279
_ACEOF
 
23280
cat confdefs.h >>conftest.$ac_ext
 
23281
cat >>conftest.$ac_ext <<_ACEOF
 
23282
/* end confdefs.h.  */
 
23283
 
 
23284
#include <stdio.h>
 
23285
#include "SDL.h"
 
23286
 
 
23287
int main(int argc, char *argv[])
 
23288
{ return 0; }
 
23289
#undef  main
 
23290
#define main K_and_R_C_main
 
23291
 
 
23292
int
 
23293
main ()
 
23294
{
 
23295
 return 0;
 
23296
  ;
 
23297
  return 0;
 
23298
}
 
23299
_ACEOF
 
23300
rm -f conftest.$ac_objext conftest$ac_exeext
 
23301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23302
  (eval $ac_link) 2>conftest.er1
 
23303
  ac_status=$?
 
23304
  grep -v '^ *+' conftest.er1 >conftest.err
 
23305
  rm -f conftest.er1
 
23306
  cat conftest.err >&5
 
23307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23308
  (exit $ac_status); } &&
 
23309
         { ac_try='test -z "$ac_c_werror_flag"
 
23310
                         || test ! -s conftest.err'
 
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); }; } &&
 
23316
         { ac_try='test -s conftest$ac_exeext'
 
23317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23318
  (eval $ac_try) 2>&5
 
23319
  ac_status=$?
 
23320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23321
  (exit $ac_status); }; }; then
 
23322
   echo "*** The test program compiled, but did not run. This usually means"
 
23323
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
 
23324
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
 
23325
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
23326
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
23327
          echo "*** is required on your system"
 
23328
          echo "***"
 
23329
          echo "*** If you have an old version installed, it is best to remove it, although"
 
23330
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
23331
else
 
23332
  echo "$as_me: failed program was:" >&5
 
23333
sed 's/^/| /' conftest.$ac_ext >&5
 
23334
 
 
23335
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
23336
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
 
23337
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
 
23338
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
 
23339
fi
 
23340
rm -f conftest.err conftest.$ac_objext \
 
23341
      conftest$ac_exeext conftest.$ac_ext
 
23342
          CFLAGS="$ac_save_CFLAGS"
 
23343
          LIBS="$ac_save_LIBS"
 
23344
       fi
 
23345
     fi
 
23346
     SDL_CFLAGS=""
 
23347
     SDL_LIBS=""
 
23348
     :
 
23349
  fi
 
23350
 
 
23351
 
 
23352
  rm -f conf.sdltest
 
23353
 
 
23354
HSDL="$SDL_CFLAGS"
 
23355
LIBSDL="$SDL_LIBS"
 
23356
 
 
23357
 
 
23358
 
 
23359
 
 
23360
if test "$use_opengl" = "yes" ; then
 
23361
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
23362
  echo "$as_me:$LINENO: checking for GL/gl.h" >&5
 
23363
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
 
23364
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
23365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23366
fi
 
23367
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
 
23368
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
 
23369
else
 
23370
  # Is the header compilable?
 
23371
echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
 
23372
echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
 
23373
cat >conftest.$ac_ext <<_ACEOF
 
23374
/* confdefs.h.  */
 
23375
_ACEOF
 
23376
cat confdefs.h >>conftest.$ac_ext
 
23377
cat >>conftest.$ac_ext <<_ACEOF
 
23378
/* end confdefs.h.  */
 
23379
$ac_includes_default
 
23380
#include <GL/gl.h>
 
23381
_ACEOF
 
23382
rm -f conftest.$ac_objext
 
23383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23384
  (eval $ac_compile) 2>conftest.er1
 
23385
  ac_status=$?
 
23386
  grep -v '^ *+' conftest.er1 >conftest.err
 
23387
  rm -f conftest.er1
 
23388
  cat conftest.err >&5
 
23389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23390
  (exit $ac_status); } &&
 
23391
         { ac_try='test -z "$ac_c_werror_flag"
 
23392
                         || test ! -s conftest.err'
 
23393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23394
  (eval $ac_try) 2>&5
 
23395
  ac_status=$?
 
23396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23397
  (exit $ac_status); }; } &&
 
23398
         { ac_try='test -s conftest.$ac_objext'
 
23399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23400
  (eval $ac_try) 2>&5
 
23401
  ac_status=$?
 
23402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23403
  (exit $ac_status); }; }; then
 
23404
  ac_header_compiler=yes
 
23405
else
 
23406
  echo "$as_me: failed program was:" >&5
 
23407
sed 's/^/| /' conftest.$ac_ext >&5
 
23408
 
 
23409
ac_header_compiler=no
 
23410
fi
 
23411
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23412
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23413
echo "${ECHO_T}$ac_header_compiler" >&6
 
23414
 
 
23415
# Is the header present?
 
23416
echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
 
23417
echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
 
23418
cat >conftest.$ac_ext <<_ACEOF
 
23419
/* confdefs.h.  */
 
23420
_ACEOF
 
23421
cat confdefs.h >>conftest.$ac_ext
 
23422
cat >>conftest.$ac_ext <<_ACEOF
 
23423
/* end confdefs.h.  */
 
23424
#include <GL/gl.h>
 
23425
_ACEOF
 
23426
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23427
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23428
  ac_status=$?
 
23429
  grep -v '^ *+' conftest.er1 >conftest.err
 
23430
  rm -f conftest.er1
 
23431
  cat conftest.err >&5
 
23432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23433
  (exit $ac_status); } >/dev/null; then
 
23434
  if test -s conftest.err; then
 
23435
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23436
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23437
  else
 
23438
    ac_cpp_err=
 
23439
  fi
 
23440
else
 
23441
  ac_cpp_err=yes
 
23442
fi
 
23443
if test -z "$ac_cpp_err"; then
 
23444
  ac_header_preproc=yes
 
23445
else
 
23446
  echo "$as_me: failed program was:" >&5
 
23447
sed 's/^/| /' conftest.$ac_ext >&5
 
23448
 
 
23449
  ac_header_preproc=no
 
23450
fi
 
23451
rm -f conftest.err conftest.$ac_ext
 
23452
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23453
echo "${ECHO_T}$ac_header_preproc" >&6
 
23454
 
 
23455
# So?  What about this header?
 
23456
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23457
  yes:no: )
 
23458
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23459
echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23460
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
 
23461
echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
 
23462
    ac_header_preproc=yes
 
23463
    ;;
 
23464
  no:yes:* )
 
23465
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
 
23466
echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
 
23467
    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
 
23468
echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
 
23469
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
 
23470
echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
 
23471
    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23472
echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23473
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
 
23474
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
 
23475
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
 
23476
echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
 
23477
    (
 
23478
      cat <<\_ASBOX
 
23479
## ------------------------------------------ ##
 
23480
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23481
## ------------------------------------------ ##
 
23482
_ASBOX
 
23483
    ) |
 
23484
      sed "s/^/$as_me: WARNING:     /" >&2
 
23485
    ;;
 
23486
esac
 
23487
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
 
23488
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
 
23489
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
23490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23491
else
 
23492
  ac_cv_header_GL_gl_h=$ac_header_preproc
 
23493
fi
 
23494
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
 
23495
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
 
23496
 
 
23497
fi
 
23498
if test $ac_cv_header_GL_gl_h = yes; then
 
23499
  have_gl_hdr=yes
 
23500
fi
 
23501
 
 
23502
 
 
23503
case "$target" in
 
23504
*-*-cygwin* | *-*-mingw32*)
 
23505
        LIBGL="-lopengl32 -lglu32"
 
23506
        ;;
 
23507
*-apple-darwin*)
 
23508
        LIBGL="-framework OpenGL"
 
23509
        ;;
 
23510
*-*-*)
 
23511
        echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
 
23512
echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
 
23513
if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
 
23514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23515
else
 
23516
  ac_check_lib_save_LIBS=$LIBS
 
23517
LIBS="-lGL  $LIBS"
 
23518
cat >conftest.$ac_ext <<_ACEOF
 
23519
/* confdefs.h.  */
 
23520
_ACEOF
 
23521
cat confdefs.h >>conftest.$ac_ext
 
23522
cat >>conftest.$ac_ext <<_ACEOF
 
23523
/* end confdefs.h.  */
 
23524
 
 
23525
/* Override any gcc2 internal prototype to avoid an error.  */
 
23526
#ifdef __cplusplus
 
23527
extern "C"
 
23528
#endif
 
23529
/* We use char because int might match the return type of a gcc2
 
23530
   builtin and then its argument prototype would still apply.  */
 
23531
char glLoadIdentity ();
 
23532
int
 
23533
main ()
 
23534
{
 
23535
glLoadIdentity ();
 
23536
  ;
 
23537
  return 0;
 
23538
}
 
23539
_ACEOF
 
23540
rm -f conftest.$ac_objext conftest$ac_exeext
 
23541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23542
  (eval $ac_link) 2>conftest.er1
 
23543
  ac_status=$?
 
23544
  grep -v '^ *+' conftest.er1 >conftest.err
 
23545
  rm -f conftest.er1
 
23546
  cat conftest.err >&5
 
23547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23548
  (exit $ac_status); } &&
 
23549
         { ac_try='test -z "$ac_c_werror_flag"
 
23550
                         || test ! -s conftest.err'
 
23551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23552
  (eval $ac_try) 2>&5
 
23553
  ac_status=$?
 
23554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23555
  (exit $ac_status); }; } &&
 
23556
         { ac_try='test -s conftest$ac_exeext'
 
23557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23558
  (eval $ac_try) 2>&5
 
23559
  ac_status=$?
 
23560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23561
  (exit $ac_status); }; }; then
 
23562
  ac_cv_lib_GL_glLoadIdentity=yes
 
23563
else
 
23564
  echo "$as_me: failed program was:" >&5
 
23565
sed 's/^/| /' conftest.$ac_ext >&5
 
23566
 
 
23567
ac_cv_lib_GL_glLoadIdentity=no
 
23568
fi
 
23569
rm -f conftest.err conftest.$ac_objext \
 
23570
      conftest$ac_exeext conftest.$ac_ext
 
23571
LIBS=$ac_check_lib_save_LIBS
 
23572
fi
 
23573
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
 
23574
echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
 
23575
if test $ac_cv_lib_GL_glLoadIdentity = yes; then
 
23576
  LIBGL="-lGL"
 
23577
fi
 
23578
 
 
23579
        echo "$as_me:$LINENO: checking for gluPerspective in -lGLU" >&5
 
23580
echo $ECHO_N "checking for gluPerspective in -lGLU... $ECHO_C" >&6
 
23581
if test "${ac_cv_lib_GLU_gluPerspective+set}" = set; then
 
23582
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23583
else
 
23584
  ac_check_lib_save_LIBS=$LIBS
 
23585
LIBS="-lGLU $LIBGL $LIBS"
 
23586
cat >conftest.$ac_ext <<_ACEOF
 
23587
/* confdefs.h.  */
 
23588
_ACEOF
 
23589
cat confdefs.h >>conftest.$ac_ext
 
23590
cat >>conftest.$ac_ext <<_ACEOF
 
23591
/* end confdefs.h.  */
 
23592
 
 
23593
/* Override any gcc2 internal prototype to avoid an error.  */
 
23594
#ifdef __cplusplus
 
23595
extern "C"
 
23596
#endif
 
23597
/* We use char because int might match the return type of a gcc2
 
23598
   builtin and then its argument prototype would still apply.  */
 
23599
char gluPerspective ();
 
23600
int
 
23601
main ()
 
23602
{
 
23603
gluPerspective ();
 
23604
  ;
 
23605
  return 0;
 
23606
}
 
23607
_ACEOF
 
23608
rm -f conftest.$ac_objext conftest$ac_exeext
 
23609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23610
  (eval $ac_link) 2>conftest.er1
 
23611
  ac_status=$?
 
23612
  grep -v '^ *+' conftest.er1 >conftest.err
 
23613
  rm -f conftest.er1
 
23614
  cat conftest.err >&5
 
23615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23616
  (exit $ac_status); } &&
 
23617
         { ac_try='test -z "$ac_c_werror_flag"
 
23618
                         || test ! -s conftest.err'
 
23619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23620
  (eval $ac_try) 2>&5
 
23621
  ac_status=$?
 
23622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23623
  (exit $ac_status); }; } &&
 
23624
         { ac_try='test -s conftest$ac_exeext'
 
23625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23626
  (eval $ac_try) 2>&5
 
23627
  ac_status=$?
 
23628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23629
  (exit $ac_status); }; }; then
 
23630
  ac_cv_lib_GLU_gluPerspective=yes
 
23631
else
 
23632
  echo "$as_me: failed program was:" >&5
 
23633
sed 's/^/| /' conftest.$ac_ext >&5
 
23634
 
 
23635
ac_cv_lib_GLU_gluPerspective=no
 
23636
fi
 
23637
rm -f conftest.err conftest.$ac_objext \
 
23638
      conftest$ac_exeext conftest.$ac_ext
 
23639
LIBS=$ac_check_lib_save_LIBS
 
23640
fi
 
23641
echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluPerspective" >&5
 
23642
echo "${ECHO_T}$ac_cv_lib_GLU_gluPerspective" >&6
 
23643
if test $ac_cv_lib_GLU_gluPerspective = yes; then
 
23644
  LIBGL="-lGLU"
 
23645
fi
 
23646
 
 
23647
        ;;
 
23648
esac
 
23649
   if test "x$have_gl_hdr" != "xyes" ; then
 
23650
     use_opengl="no"
 
23651
     LIBGL=""
 
23652
   fi
 
23653
else
 
23654
  LIBGL=""
 
23655
fi
 
23656
 
 
23657
 
 
23658
 
 
23659
if test "$use_allegro" = "yes" ; then
 
23660
  # Extract the first word of "allegro-config", so it can be a program name with args.
 
23661
set dummy allegro-config; ac_word=$2
 
23662
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23664
if test "${ac_cv_prog_allegro_config+set}" = set; then
 
23665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23666
else
 
23667
  if test -n "$allegro_config"; then
 
23668
  ac_cv_prog_allegro_config="$allegro_config" # Let the user override the test.
 
23669
else
 
23670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23671
for as_dir in $PATH
 
23672
do
 
23673
  IFS=$as_save_IFS
 
23674
  test -z "$as_dir" && as_dir=.
 
23675
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23676
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23677
    ac_cv_prog_allegro_config="yes"
 
23678
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23679
    break 2
 
23680
  fi
 
23681
done
 
23682
done
 
23683
 
 
23684
  test -z "$ac_cv_prog_allegro_config" && ac_cv_prog_allegro_config="no"
 
23685
fi
 
23686
fi
 
23687
allegro_config=$ac_cv_prog_allegro_config
 
23688
if test -n "$allegro_config"; then
 
23689
  echo "$as_me:$LINENO: result: $allegro_config" >&5
 
23690
echo "${ECHO_T}$allegro_config" >&6
 
23691
else
 
23692
  echo "$as_me:$LINENO: result: no" >&5
 
23693
echo "${ECHO_T}no" >&6
 
23694
fi
 
23695
 
 
23696
  if test $allegro_config = no ; then
 
23697
    use_allegro="no"
 
23698
    LIBALLEGRO=""
 
23699
    HALLEGRO=""
 
23700
  else
 
23701
    LIBALLEGRO=`allegro-config --libs`
 
23702
    HALLEGRO=`allegro-config --cflags`
 
23703
  fi
 
23704
fi
 
23705
 
 
23706
 
 
23707
 
 
23708
if test "$use_win32" = "no" ; then
 
23709
  LIBGDI32=""
 
23710
else
 
23711
  LIBGDI32="-lgdi32"
 
23712
fi
 
23713
 
 
23714
 
 
23715
 
 
23716
SUPPORTED_FORMATS=""
 
23717
 
 
23718
if test "$no_bmp"  = "yes"  ; then
 
23719
  cat >>confdefs.h <<\_ACEOF
 
23720
#define IL_NO_BMP 1
 
23721
_ACEOF
 
23722
 
 
23723
else
 
23724
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"BMP "
 
23725
fi
 
23726
 
 
23727
 
 
23728
if test x$no_bmp != "xyes"; then
 
23729
  IL_NO_BMP_TRUE=
 
23730
  IL_NO_BMP_FALSE='#'
 
23731
else
 
23732
  IL_NO_BMP_TRUE='#'
 
23733
  IL_NO_BMP_FALSE=
 
23734
fi
 
23735
 
 
23736
 
 
23737
if test "$no_dcx"  = "yes"  ; then
 
23738
  cat >>confdefs.h <<\_ACEOF
 
23739
#define IL_NO_DCX 1
 
23740
_ACEOF
 
23741
 
 
23742
else
 
23743
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"DCX "
 
23744
fi
 
23745
 
 
23746
 
 
23747
if test x$no_dcx != "xyes"; then
 
23748
  IL_NO_DCX_TRUE=
 
23749
  IL_NO_DCX_FALSE='#'
 
23750
else
 
23751
  IL_NO_DCX_TRUE='#'
 
23752
  IL_NO_DCX_FALSE=
 
23753
fi
 
23754
 
 
23755
 
 
23756
if test "$no_dds"  = "yes"  ; then
 
23757
  cat >>confdefs.h <<\_ACEOF
 
23758
#define IL_NO_DDS 1
 
23759
_ACEOF
 
23760
 
 
23761
else
 
23762
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"DDS "
 
23763
fi
 
23764
 
 
23765
 
 
23766
if test x$no_dds != "xyes"; then
 
23767
  IL_NO_DDS_TRUE=
 
23768
  IL_NO_DDS_FALSE='#'
 
23769
else
 
23770
  IL_NO_DDS_TRUE='#'
 
23771
  IL_NO_DDS_FALSE=
 
23772
fi
 
23773
 
 
23774
 
 
23775
if test "$no_doom" = "yes" ; then
 
23776
  cat >>confdefs.h <<\_ACEOF
 
23777
#define IL_NO_DOOM 1
 
23778
_ACEOF
 
23779
 
 
23780
else
 
23781
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"WAD "
 
23782
fi
 
23783
 
 
23784
 
 
23785
if test x$no_doom != "xyes"; then
 
23786
  IL_NO_DOOM_TRUE=
 
23787
  IL_NO_DOOM_FALSE='#'
 
23788
else
 
23789
  IL_NO_DOOM_TRUE='#'
 
23790
  IL_NO_DOOM_FALSE=
 
23791
fi
 
23792
 
 
23793
 
 
23794
if test "$no_gif"  = "yes"  ; then
 
23795
  cat >>confdefs.h <<\_ACEOF
 
23796
#define IL_NO_GIF 1
 
23797
_ACEOF
 
23798
 
 
23799
else
 
23800
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"GIF "
 
23801
fi
 
23802
 
 
23803
 
 
23804
if test x$no_gif != "xyes"; then
 
23805
  IL_NO_GIF_TRUE=
 
23806
  IL_NO_GIF_FALSE='#'
 
23807
else
 
23808
  IL_NO_GIF_TRUE='#'
 
23809
  IL_NO_GIF_FALSE=
 
23810
fi
 
23811
 
 
23812
 
 
23813
if test "$no_hdr"  = "yes"  ; then
 
23814
  cat >>confdefs.h <<\_ACEOF
 
23815
#define IL_NO_HDR 1
 
23816
_ACEOF
 
23817
 
 
23818
else
 
23819
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"HDR "
 
23820
fi
 
23821
 
 
23822
 
 
23823
if test x$no_hdr != "xyes"; then
 
23824
  IL_NO_HDR_TRUE=
 
23825
  IL_NO_HDR_FALSE='#'
 
23826
else
 
23827
  IL_NO_HDR_TRUE='#'
 
23828
  IL_NO_HDR_FALSE=
 
23829
fi
 
23830
 
 
23831
 
 
23832
if test "$no_icon" = "yes"  ; then
 
23833
  cat >>confdefs.h <<\_ACEOF
 
23834
#define IL_NO_ICO 1
 
23835
_ACEOF
 
23836
 
 
23837
else
 
23838
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"ICO "
 
23839
fi
 
23840
 
 
23841
 
 
23842
if test x$no_icon != "xyes"; then
 
23843
  IL_NO_ICO_TRUE=
 
23844
  IL_NO_ICO_FALSE='#'
 
23845
else
 
23846
  IL_NO_ICO_TRUE='#'
 
23847
  IL_NO_ICO_FALSE=
 
23848
fi
 
23849
 
 
23850
 
 
23851
if test "$no_jpeg" = "yes"  ; then
 
23852
  cat >>confdefs.h <<\_ACEOF
 
23853
#define IL_NO_JPG 1
 
23854
_ACEOF
 
23855
 
 
23856
else
 
23857
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"JPG "
 
23858
fi
 
23859
 
 
23860
 
 
23861
if test x$no_jpeg != "xyes"; then
 
23862
  IL_NO_JPG_TRUE=
 
23863
  IL_NO_JPG_FALSE='#'
 
23864
else
 
23865
  IL_NO_JPG_TRUE='#'
 
23866
  IL_NO_JPG_FALSE=
 
23867
fi
 
23868
 
 
23869
 
 
23870
if test "$no_lif"  = "yes"  ; then
 
23871
  cat >>confdefs.h <<\_ACEOF
 
23872
#define IL_NO_LIF 1
 
23873
_ACEOF
 
23874
 
 
23875
else
 
23876
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"LIF "
 
23877
fi
 
23878
 
 
23879
 
 
23880
if test x$no_lif != "xyes"; then
 
23881
  IL_NO_LIF_TRUE=
 
23882
  IL_NO_LIF_FALSE='#'
 
23883
else
 
23884
  IL_NO_LIF_TRUE='#'
 
23885
  IL_NO_LIF_FALSE=
 
23886
fi
 
23887
 
 
23888
 
 
23889
if test "$no_lcms"  = "yes"  ; then
 
23890
  cat >>confdefs.h <<\_ACEOF
 
23891
#define IL_NO_LCMS 1
 
23892
_ACEOF
 
23893
 
 
23894
else
 
23895
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"LCMS "
 
23896
fi
 
23897
 
 
23898
 
 
23899
if test x$no_lcms != "xyes"; then
 
23900
  IL_NO_LCMS_TRUE=
 
23901
  IL_NO_LCMS_FALSE='#'
 
23902
else
 
23903
  IL_NO_LCMS_TRUE='#'
 
23904
  IL_NO_LCMS_FALSE=
 
23905
fi
 
23906
 
 
23907
 
 
23908
if test "$no_mdl"  = "yes"  ; then
 
23909
  cat >>confdefs.h <<\_ACEOF
 
23910
#define IL_NO_MDL 1
 
23911
_ACEOF
 
23912
 
 
23913
else
 
23914
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"MDL "
 
23915
fi
 
23916
 
 
23917
 
 
23918
if test x$no_mdl != "xyes"; then
 
23919
  IL_NO_MDL_TRUE=
 
23920
  IL_NO_MDL_FALSE='#'
 
23921
else
 
23922
  IL_NO_MDL_TRUE='#'
 
23923
  IL_NO_MDL_FALSE=
 
23924
fi
 
23925
 
 
23926
 
 
23927
if test "$no_mng"  = "yes"  ; then
 
23928
  cat >>confdefs.h <<\_ACEOF
 
23929
#define IL_NO_MNG 1
 
23930
_ACEOF
 
23931
 
 
23932
else
 
23933
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"MNG "
 
23934
fi
 
23935
 
 
23936
 
 
23937
if test x$no_mng != "xyes"; then
 
23938
  IL_NO_MNG_TRUE=
 
23939
  IL_NO_MNG_FALSE='#'
 
23940
else
 
23941
  IL_NO_MNG_TRUE='#'
 
23942
  IL_NO_MNG_FALSE=
 
23943
fi
 
23944
 
 
23945
 
 
23946
if test "$no_pcd"  = "yes"  ; then
 
23947
  cat >>confdefs.h <<\_ACEOF
 
23948
#define IL_NO_PCD 1
 
23949
_ACEOF
 
23950
 
 
23951
else
 
23952
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PCD "
 
23953
fi
 
23954
 
 
23955
 
 
23956
if test x$no_pcd != "xyes"; then
 
23957
  IL_NO_PCD_TRUE=
 
23958
  IL_NO_PCD_FALSE='#'
 
23959
else
 
23960
  IL_NO_PCD_TRUE='#'
 
23961
  IL_NO_PCD_FALSE=
 
23962
fi
 
23963
 
 
23964
 
 
23965
if test "$no_pcx"  = "yes"  ; then
 
23966
  cat >>confdefs.h <<\_ACEOF
 
23967
#define IL_NO_PCX 1
 
23968
_ACEOF
 
23969
 
 
23970
else
 
23971
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PCX "
 
23972
fi
 
23973
 
 
23974
 
 
23975
if test x$no_pcx != "xyes"; then
 
23976
  IL_NO_PCX_TRUE=
 
23977
  IL_NO_PCX_FALSE='#'
 
23978
else
 
23979
  IL_NO_PCX_TRUE='#'
 
23980
  IL_NO_PCX_FALSE=
 
23981
fi
 
23982
 
 
23983
 
 
23984
if test "$no_pic"  = "yes"  ; then
 
23985
  cat >>confdefs.h <<\_ACEOF
 
23986
#define IL_NO_PIC 1
 
23987
_ACEOF
 
23988
 
 
23989
else
 
23990
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PIC "
 
23991
fi
 
23992
 
 
23993
 
 
23994
if test x$no_pic != "xyes"; then
 
23995
  IL_NO_PIC_TRUE=
 
23996
  IL_NO_PIC_FALSE='#'
 
23997
else
 
23998
  IL_NO_PIC_TRUE='#'
 
23999
  IL_NO_PIC_FALSE=
 
24000
fi
 
24001
 
 
24002
 
 
24003
if test "$no_pix"  = "yes"  ; then
 
24004
  cat >>confdefs.h <<\_ACEOF
 
24005
#define IL_NO_PIX 1
 
24006
_ACEOF
 
24007
 
 
24008
else
 
24009
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PIX "
 
24010
fi
 
24011
 
 
24012
 
 
24013
if test x$no_pix != "xyes"; then
 
24014
  IL_NO_PIX_TRUE=
 
24015
  IL_NO_PIX_FALSE='#'
 
24016
else
 
24017
  IL_NO_PIX_TRUE='#'
 
24018
  IL_NO_PIX_FALSE=
 
24019
fi
 
24020
 
 
24021
 
 
24022
if test "$no_png"  = "yes"  ; then
 
24023
  cat >>confdefs.h <<\_ACEOF
 
24024
#define IL_NO_PNG 1
 
24025
_ACEOF
 
24026
 
 
24027
else
 
24028
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PNG "
 
24029
fi
 
24030
 
 
24031
 
 
24032
if test x$no_png != "xyes"; then
 
24033
  IL_NO_PNG_TRUE=
 
24034
  IL_NO_PNG_FALSE='#'
 
24035
else
 
24036
  IL_NO_PNG_TRUE='#'
 
24037
  IL_NO_PNG_FALSE=
 
24038
fi
 
24039
 
 
24040
 
 
24041
if test "$no_pnm"  = "yes"  ; then
 
24042
  cat >>confdefs.h <<\_ACEOF
 
24043
#define IL_NO_PNM 1
 
24044
_ACEOF
 
24045
 
 
24046
else
 
24047
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PNM "
 
24048
fi
 
24049
 
 
24050
 
 
24051
if test x$no_pnm != "xyes"; then
 
24052
  IL_NO_PNM_TRUE=
 
24053
  IL_NO_PNM_FALSE='#'
 
24054
else
 
24055
  IL_NO_PNM_TRUE='#'
 
24056
  IL_NO_PNM_FALSE=
 
24057
fi
 
24058
 
 
24059
 
 
24060
if test "$no_psd"  = "yes"  ; then
 
24061
  cat >>confdefs.h <<\_ACEOF
 
24062
#define IL_NO_PSD 1
 
24063
_ACEOF
 
24064
 
 
24065
else
 
24066
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PSD "
 
24067
fi
 
24068
 
 
24069
 
 
24070
if test x$no_psd != "xyes"; then
 
24071
  IL_NO_PSD_TRUE=
 
24072
  IL_NO_PSD_FALSE='#'
 
24073
else
 
24074
  IL_NO_PSD_TRUE='#'
 
24075
  IL_NO_PSD_FALSE=
 
24076
fi
 
24077
 
 
24078
 
 
24079
if test "$no_psp"  = "yes"  ; then
 
24080
  cat >>confdefs.h <<\_ACEOF
 
24081
#define IL_NO_PSP 1
 
24082
_ACEOF
 
24083
 
 
24084
else
 
24085
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PSP "
 
24086
fi
 
24087
 
 
24088
 
 
24089
if test x$no_psp != "xyes"; then
 
24090
  IL_NO_PSP_TRUE=
 
24091
  IL_NO_PSP_FALSE='#'
 
24092
else
 
24093
  IL_NO_PSP_TRUE='#'
 
24094
  IL_NO_PSP_FALSE=
 
24095
fi
 
24096
 
 
24097
 
 
24098
if test "$no_pxr"  = "yes"  ; then
 
24099
  cat >>confdefs.h <<\_ACEOF
 
24100
#define IL_NO_PXR 1
 
24101
_ACEOF
 
24102
 
 
24103
else
 
24104
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PXR "
 
24105
fi
 
24106
 
 
24107
 
 
24108
if test x$no_pxr != "xyes"; then
 
24109
  IL_NO_PXR_TRUE=
 
24110
  IL_NO_PXR_FALSE='#'
 
24111
else
 
24112
  IL_NO_PXR_TRUE='#'
 
24113
  IL_NO_PXR_FALSE=
 
24114
fi
 
24115
 
 
24116
 
 
24117
if test "$no_raw"  = "yes"  ; then
 
24118
  cat >>confdefs.h <<\_ACEOF
 
24119
#define IL_NO_RAW 1
 
24120
_ACEOF
 
24121
 
 
24122
else
 
24123
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"RAW "
 
24124
fi
 
24125
 
 
24126
 
 
24127
if test x$no_raw != "xyes"; then
 
24128
  IL_NO_RAW_TRUE=
 
24129
  IL_NO_RAW_FALSE='#'
 
24130
else
 
24131
  IL_NO_RAW_TRUE='#'
 
24132
  IL_NO_RAW_FALSE=
 
24133
fi
 
24134
 
 
24135
 
 
24136
if test "$no_sgi"  = "yes"  ; then
 
24137
  cat >>confdefs.h <<\_ACEOF
 
24138
#define IL_NO_SGI 1
 
24139
_ACEOF
 
24140
 
 
24141
else
 
24142
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"SGI "
 
24143
fi
 
24144
 
 
24145
 
 
24146
if test x$no_sgi != "xyes"; then
 
24147
  IL_NO_SGI_TRUE=
 
24148
  IL_NO_SGI_FALSE='#'
 
24149
else
 
24150
  IL_NO_SGI_TRUE='#'
 
24151
  IL_NO_SGI_FALSE=
 
24152
fi
 
24153
 
 
24154
 
 
24155
if test "$no_tga"  = "yes"  ; then
 
24156
  cat >>confdefs.h <<\_ACEOF
 
24157
#define IL_NO_TGA 1
 
24158
_ACEOF
 
24159
 
 
24160
else
 
24161
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"TGA "
 
24162
fi
 
24163
 
 
24164
 
 
24165
if test x$no_tga != "xyes"; then
 
24166
  IL_NO_TGA_TRUE=
 
24167
  IL_NO_TGA_FALSE='#'
 
24168
else
 
24169
  IL_NO_TGA_TRUE='#'
 
24170
  IL_NO_TGA_FALSE=
 
24171
fi
 
24172
 
 
24173
 
 
24174
if test "$no_tiff" = "yes"  ; then
 
24175
  cat >>confdefs.h <<\_ACEOF
 
24176
#define IL_NO_TIF 1
 
24177
_ACEOF
 
24178
 
 
24179
else
 
24180
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"TIF "
 
24181
fi
 
24182
 
 
24183
 
 
24184
if test x$no_tiff != "xyes"; then
 
24185
  IL_NO_TIF_TRUE=
 
24186
  IL_NO_TIF_FALSE='#'
 
24187
else
 
24188
  IL_NO_TIF_TRUE='#'
 
24189
  IL_NO_TIF_FALSE=
 
24190
fi
 
24191
 
 
24192
 
 
24193
if test "$no_wal"  = "yes"  ; then
 
24194
  cat >>confdefs.h <<\_ACEOF
 
24195
#define IL_NO_WAL 1
 
24196
_ACEOF
 
24197
 
 
24198
else
 
24199
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"WAL "
 
24200
fi
 
24201
 
 
24202
 
 
24203
if test x$no_wal != "xyes"; then
 
24204
  IL_NO_WAL_TRUE=
 
24205
  IL_NO_WAL_FALSE='#'
 
24206
else
 
24207
  IL_NO_WAL_TRUE='#'
 
24208
  IL_NO_WAL_FALSE=
 
24209
fi
 
24210
 
 
24211
 
 
24212
if test "$no_xpm"  = "yes"  ; then
 
24213
  cat >>confdefs.h <<\_ACEOF
 
24214
#define IL_NO_XPM 1
 
24215
_ACEOF
 
24216
 
 
24217
else
 
24218
  SUPPORTED_FORMATS=$SUPPORTED_FORMATS"XPM "
 
24219
fi
 
24220
 
 
24221
 
 
24222
if test x$no_xpm != "xyes"; then
 
24223
  IL_NO_XPM_TRUE=
 
24224
  IL_NO_XPM_FALSE='#'
 
24225
else
 
24226
  IL_NO_XPM_TRUE='#'
 
24227
  IL_NO_XPM_FALSE=
 
24228
fi
 
24229
 
 
24230
 
 
24231
 
 
24232
echo "$as_me:$LINENO: result:  " >&5
 
24233
echo "${ECHO_T} " >&6
 
24234
echo "$as_me:$LINENO: result: +----------------------------------------+" >&5
 
24235
echo "${ECHO_T}+----------------------------------------+" >&6
 
24236
echo "$as_me:$LINENO: result: |     IL library  Supported formats      |" >&5
 
24237
echo "${ECHO_T}|     IL library  Supported formats      |" >&6
 
24238
echo "$as_me:$LINENO: result: +----------------------------------------+-------+" >&5
 
24239
echo "${ECHO_T}+----------------------------------------+-------+" >&6
 
24240
echo "$as_me:$LINENO: result: $SUPPORTED_FORMATS" >&5
 
24241
echo "${ECHO_T}$SUPPORTED_FORMATS" >&6
 
24242
 
 
24243
 
 
24244
SUPPORTED_API=""
 
24245
 
 
24246
if test "$use_allegro" = "yes" ; then
 
24247
  cat >>confdefs.h <<\_ACEOF
 
24248
#define ILUT_USE_ALLEGRO 1
 
24249
_ACEOF
 
24250
 
 
24251
  SUPPORTED_API=$SUPPORTED_API"Allegro "
 
24252
fi
 
24253
 
 
24254
if test "$use_directx" = "yes" ; then
 
24255
  cat >>confdefs.h <<\_ACEOF
 
24256
#define ILUT_USE_DIRECTX8 1
 
24257
_ACEOF
 
24258
 
 
24259
  SUPPORTED_APPI=$SUPPORTED_API"Directx8 "
 
24260
fi
 
24261
 
 
24262
if test "$use_opengl" = "yes" ; then
 
24263
  cat >>confdefs.h <<\_ACEOF
 
24264
#define ILUT_USE_OPENGL 1
 
24265
_ACEOF
 
24266
 
 
24267
  SUPPORTED_API=$SUPPORTED_API"OpenGL "
 
24268
fi
 
24269
 
 
24270
if test "$use_sdl" = "yes" ; then
 
24271
  cat >>confdefs.h <<\_ACEOF
 
24272
#define ILUT_USE_SDL 1
 
24273
_ACEOF
 
24274
 
 
24275
  SUPPORTED_API=$SUPPORTED_API"SDL "
 
24276
fi
 
24277
 
 
24278
if test "$use_win32" = "yes" ; then
 
24279
  cat >>confdefs.h <<\_ACEOF
 
24280
#define ILUT_USE_WIN32 1
 
24281
_ACEOF
 
24282
 
 
24283
  SUPPORTED_API=$SUPPORTED_API"Win32 "
 
24284
fi
 
24285
 
 
24286
if test "$use_directx" = "yes" ; then
 
24287
  cat >>confdefs.h <<\_ACEOF
 
24288
#define ILUT_USE_DIRECTX8 1
 
24289
_ACEOF
 
24290
 
 
24291
  SUPPORTED_API=$SUPPORTED_API"DirectX8 "
 
24292
fi
 
24293
 
 
24294
echo "$as_me:$LINENO: result:  " >&5
 
24295
echo "${ECHO_T} " >&6
 
24296
echo "$as_me:$LINENO: result: +----------------------------------------+" >&5
 
24297
echo "${ECHO_T}+----------------------------------------+" >&6
 
24298
echo "$as_me:$LINENO: result: |      ILUT library  Supported APIs      |" >&5
 
24299
echo "${ECHO_T}|      ILUT library  Supported APIs      |" >&6
 
24300
echo "$as_me:$LINENO: result: +----------------------------------------+-------+" >&5
 
24301
echo "${ECHO_T}+----------------------------------------+-------+" >&6
 
24302
echo "$as_me:$LINENO: result: $SUPPORTED_API" >&5
 
24303
echo "${ECHO_T}$SUPPORTED_API" >&6
 
24304
 
 
24305
echo "$as_me:$LINENO: result:  " >&5
 
24306
echo "${ECHO_T} " >&6
 
24307
 
 
24308
 
 
24309
 
 
24310
 
 
24311
 
 
24312
 
 
24313
                                                                                                                        ac_config_files="$ac_config_files Makefile src-IL/Makefile src-IL/src/Makefile src-IL/include/Makefile src-ILU/Makefile src-ILU/src/Makefile src-ILU/include/Makefile src-ILUT/Makefile src-ILUT/src/Makefile src-ILUT/include/Makefile include/Makefile include/IL/Makefile"
 
24314
 
 
24315
cat >confcache <<\_ACEOF
 
24316
# This file is a shell script that caches the results of configure
 
24317
# tests run on this system so they can be shared between configure
 
24318
# scripts and configure runs, see configure's option --config-cache.
 
24319
# It is not useful on other systems.  If it contains results you don't
 
24320
# want to keep, you may remove or edit it.
 
24321
#
 
24322
# config.status only pays attention to the cache file if you give it
 
24323
# the --recheck option to rerun configure.
 
24324
#
 
24325
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24326
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24327
# following values.
 
24328
 
 
24329
_ACEOF
 
24330
 
 
24331
# The following way of writing the cache mishandles newlines in values,
 
24332
# but we know of no workaround that is simple, portable, and efficient.
 
24333
# So, don't put newlines in cache variables' values.
 
24334
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24335
# and sets the high bit in the cache file unless we assign to the vars.
 
24336
{
 
24337
  (set) 2>&1 |
 
24338
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
24339
    *ac_space=\ *)
 
24340
      # `set' does not quote correctly, so add quotes (double-quote
 
24341
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24342
      sed -n \
 
24343
        "s/'/'\\\\''/g;
 
24344
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24345
      ;;
 
24346
    *)
 
24347
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24348
      sed -n \
 
24349
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
24350
      ;;
 
24351
    esac;
 
24352
} |
 
24353
  sed '
 
24354
     t clear
 
24355
     : clear
 
24356
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24357
     t end
 
24358
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24359
     : end' >>confcache
 
24360
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
24361
  if test -w $cache_file; then
 
24362
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
24363
    cat confcache >$cache_file
 
24364
  else
 
24365
    echo "not updating unwritable cache $cache_file"
 
24366
  fi
 
24367
fi
 
24368
rm -f confcache
 
24369
 
 
24370
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24371
# Let make expand exec_prefix.
 
24372
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24373
 
 
24374
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
24375
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
24376
# trailing colons and then remove the whole line if VPATH becomes empty
 
24377
# (actually we leave an empty line to preserve line numbers).
 
24378
if test "x$srcdir" = x.; then
 
24379
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
24380
s/:*\$(srcdir):*/:/;
 
24381
s/:*\${srcdir}:*/:/;
 
24382
s/:*@srcdir@:*/:/;
 
24383
s/^\([^=]*=[     ]*\):*/\1/;
 
24384
s/:*$//;
 
24385
s/^[^=]*=[       ]*$//;
 
24386
}'
 
24387
fi
 
24388
 
 
24389
DEFS=-DHAVE_CONFIG_H
 
24390
 
 
24391
ac_libobjs=
 
24392
ac_ltlibobjs=
 
24393
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24394
  # 1. Remove the extension, and $U if already installed.
 
24395
  ac_i=`echo "$ac_i" |
 
24396
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
24397
  # 2. Add them.
 
24398
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
24399
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
24400
done
 
24401
LIBOBJS=$ac_libobjs
 
24402
 
 
24403
LTLIBOBJS=$ac_ltlibobjs
 
24404
 
 
24405
 
 
24406
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24407
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24408
Usually this means the macro was only invoked conditionally." >&5
 
24409
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24410
Usually this means the macro was only invoked conditionally." >&2;}
 
24411
   { (exit 1); exit 1; }; }
 
24412
fi
 
24413
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24414
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24415
Usually this means the macro was only invoked conditionally." >&5
 
24416
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24417
Usually this means the macro was only invoked conditionally." >&2;}
 
24418
   { (exit 1); exit 1; }; }
 
24419
fi
 
24420
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24421
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24422
Usually this means the macro was only invoked conditionally." >&5
 
24423
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24424
Usually this means the macro was only invoked conditionally." >&2;}
 
24425
   { (exit 1); exit 1; }; }
 
24426
fi
 
24427
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
24428
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
24429
Usually this means the macro was only invoked conditionally." >&5
 
24430
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
24431
Usually this means the macro was only invoked conditionally." >&2;}
 
24432
   { (exit 1); exit 1; }; }
 
24433
fi
 
24434
if test -z "${IL_NO_BMP_TRUE}" && test -z "${IL_NO_BMP_FALSE}"; then
 
24435
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_BMP\" was never defined.
 
24436
Usually this means the macro was only invoked conditionally." >&5
 
24437
echo "$as_me: error: conditional \"IL_NO_BMP\" was never defined.
 
24438
Usually this means the macro was only invoked conditionally." >&2;}
 
24439
   { (exit 1); exit 1; }; }
 
24440
fi
 
24441
if test -z "${IL_NO_DCX_TRUE}" && test -z "${IL_NO_DCX_FALSE}"; then
 
24442
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_DCX\" was never defined.
 
24443
Usually this means the macro was only invoked conditionally." >&5
 
24444
echo "$as_me: error: conditional \"IL_NO_DCX\" was never defined.
 
24445
Usually this means the macro was only invoked conditionally." >&2;}
 
24446
   { (exit 1); exit 1; }; }
 
24447
fi
 
24448
if test -z "${IL_NO_DDS_TRUE}" && test -z "${IL_NO_DDS_FALSE}"; then
 
24449
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_DDS\" was never defined.
 
24450
Usually this means the macro was only invoked conditionally." >&5
 
24451
echo "$as_me: error: conditional \"IL_NO_DDS\" was never defined.
 
24452
Usually this means the macro was only invoked conditionally." >&2;}
 
24453
   { (exit 1); exit 1; }; }
 
24454
fi
 
24455
if test -z "${IL_NO_DOOM_TRUE}" && test -z "${IL_NO_DOOM_FALSE}"; then
 
24456
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_DOOM\" was never defined.
 
24457
Usually this means the macro was only invoked conditionally." >&5
 
24458
echo "$as_me: error: conditional \"IL_NO_DOOM\" was never defined.
 
24459
Usually this means the macro was only invoked conditionally." >&2;}
 
24460
   { (exit 1); exit 1; }; }
 
24461
fi
 
24462
if test -z "${IL_NO_GIF_TRUE}" && test -z "${IL_NO_GIF_FALSE}"; then
 
24463
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_GIF\" was never defined.
 
24464
Usually this means the macro was only invoked conditionally." >&5
 
24465
echo "$as_me: error: conditional \"IL_NO_GIF\" was never defined.
 
24466
Usually this means the macro was only invoked conditionally." >&2;}
 
24467
   { (exit 1); exit 1; }; }
 
24468
fi
 
24469
if test -z "${IL_NO_HDR_TRUE}" && test -z "${IL_NO_HDR_FALSE}"; then
 
24470
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_HDR\" was never defined.
 
24471
Usually this means the macro was only invoked conditionally." >&5
 
24472
echo "$as_me: error: conditional \"IL_NO_HDR\" was never defined.
 
24473
Usually this means the macro was only invoked conditionally." >&2;}
 
24474
   { (exit 1); exit 1; }; }
 
24475
fi
 
24476
if test -z "${IL_NO_ICO_TRUE}" && test -z "${IL_NO_ICO_FALSE}"; then
 
24477
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_ICO\" was never defined.
 
24478
Usually this means the macro was only invoked conditionally." >&5
 
24479
echo "$as_me: error: conditional \"IL_NO_ICO\" was never defined.
 
24480
Usually this means the macro was only invoked conditionally." >&2;}
 
24481
   { (exit 1); exit 1; }; }
 
24482
fi
 
24483
if test -z "${IL_NO_JPG_TRUE}" && test -z "${IL_NO_JPG_FALSE}"; then
 
24484
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_JPG\" was never defined.
 
24485
Usually this means the macro was only invoked conditionally." >&5
 
24486
echo "$as_me: error: conditional \"IL_NO_JPG\" was never defined.
 
24487
Usually this means the macro was only invoked conditionally." >&2;}
 
24488
   { (exit 1); exit 1; }; }
 
24489
fi
 
24490
if test -z "${IL_NO_LIF_TRUE}" && test -z "${IL_NO_LIF_FALSE}"; then
 
24491
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_LIF\" was never defined.
 
24492
Usually this means the macro was only invoked conditionally." >&5
 
24493
echo "$as_me: error: conditional \"IL_NO_LIF\" was never defined.
 
24494
Usually this means the macro was only invoked conditionally." >&2;}
 
24495
   { (exit 1); exit 1; }; }
 
24496
fi
 
24497
if test -z "${IL_NO_LCMS_TRUE}" && test -z "${IL_NO_LCMS_FALSE}"; then
 
24498
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_LCMS\" was never defined.
 
24499
Usually this means the macro was only invoked conditionally." >&5
 
24500
echo "$as_me: error: conditional \"IL_NO_LCMS\" was never defined.
 
24501
Usually this means the macro was only invoked conditionally." >&2;}
 
24502
   { (exit 1); exit 1; }; }
 
24503
fi
 
24504
if test -z "${IL_NO_MDL_TRUE}" && test -z "${IL_NO_MDL_FALSE}"; then
 
24505
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_MDL\" was never defined.
 
24506
Usually this means the macro was only invoked conditionally." >&5
 
24507
echo "$as_me: error: conditional \"IL_NO_MDL\" was never defined.
 
24508
Usually this means the macro was only invoked conditionally." >&2;}
 
24509
   { (exit 1); exit 1; }; }
 
24510
fi
 
24511
if test -z "${IL_NO_MNG_TRUE}" && test -z "${IL_NO_MNG_FALSE}"; then
 
24512
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_MNG\" was never defined.
 
24513
Usually this means the macro was only invoked conditionally." >&5
 
24514
echo "$as_me: error: conditional \"IL_NO_MNG\" was never defined.
 
24515
Usually this means the macro was only invoked conditionally." >&2;}
 
24516
   { (exit 1); exit 1; }; }
 
24517
fi
 
24518
if test -z "${IL_NO_PCD_TRUE}" && test -z "${IL_NO_PCD_FALSE}"; then
 
24519
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PCD\" was never defined.
 
24520
Usually this means the macro was only invoked conditionally." >&5
 
24521
echo "$as_me: error: conditional \"IL_NO_PCD\" was never defined.
 
24522
Usually this means the macro was only invoked conditionally." >&2;}
 
24523
   { (exit 1); exit 1; }; }
 
24524
fi
 
24525
if test -z "${IL_NO_PCX_TRUE}" && test -z "${IL_NO_PCX_FALSE}"; then
 
24526
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PCX\" was never defined.
 
24527
Usually this means the macro was only invoked conditionally." >&5
 
24528
echo "$as_me: error: conditional \"IL_NO_PCX\" was never defined.
 
24529
Usually this means the macro was only invoked conditionally." >&2;}
 
24530
   { (exit 1); exit 1; }; }
 
24531
fi
 
24532
if test -z "${IL_NO_PIC_TRUE}" && test -z "${IL_NO_PIC_FALSE}"; then
 
24533
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PIC\" was never defined.
 
24534
Usually this means the macro was only invoked conditionally." >&5
 
24535
echo "$as_me: error: conditional \"IL_NO_PIC\" was never defined.
 
24536
Usually this means the macro was only invoked conditionally." >&2;}
 
24537
   { (exit 1); exit 1; }; }
 
24538
fi
 
24539
if test -z "${IL_NO_PIX_TRUE}" && test -z "${IL_NO_PIX_FALSE}"; then
 
24540
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PIX\" was never defined.
 
24541
Usually this means the macro was only invoked conditionally." >&5
 
24542
echo "$as_me: error: conditional \"IL_NO_PIX\" was never defined.
 
24543
Usually this means the macro was only invoked conditionally." >&2;}
 
24544
   { (exit 1); exit 1; }; }
 
24545
fi
 
24546
if test -z "${IL_NO_PNG_TRUE}" && test -z "${IL_NO_PNG_FALSE}"; then
 
24547
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PNG\" was never defined.
 
24548
Usually this means the macro was only invoked conditionally." >&5
 
24549
echo "$as_me: error: conditional \"IL_NO_PNG\" was never defined.
 
24550
Usually this means the macro was only invoked conditionally." >&2;}
 
24551
   { (exit 1); exit 1; }; }
 
24552
fi
 
24553
if test -z "${IL_NO_PNM_TRUE}" && test -z "${IL_NO_PNM_FALSE}"; then
 
24554
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PNM\" was never defined.
 
24555
Usually this means the macro was only invoked conditionally." >&5
 
24556
echo "$as_me: error: conditional \"IL_NO_PNM\" was never defined.
 
24557
Usually this means the macro was only invoked conditionally." >&2;}
 
24558
   { (exit 1); exit 1; }; }
 
24559
fi
 
24560
if test -z "${IL_NO_PSD_TRUE}" && test -z "${IL_NO_PSD_FALSE}"; then
 
24561
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PSD\" was never defined.
 
24562
Usually this means the macro was only invoked conditionally." >&5
 
24563
echo "$as_me: error: conditional \"IL_NO_PSD\" was never defined.
 
24564
Usually this means the macro was only invoked conditionally." >&2;}
 
24565
   { (exit 1); exit 1; }; }
 
24566
fi
 
24567
if test -z "${IL_NO_PSP_TRUE}" && test -z "${IL_NO_PSP_FALSE}"; then
 
24568
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PSP\" was never defined.
 
24569
Usually this means the macro was only invoked conditionally." >&5
 
24570
echo "$as_me: error: conditional \"IL_NO_PSP\" was never defined.
 
24571
Usually this means the macro was only invoked conditionally." >&2;}
 
24572
   { (exit 1); exit 1; }; }
 
24573
fi
 
24574
if test -z "${IL_NO_PXR_TRUE}" && test -z "${IL_NO_PXR_FALSE}"; then
 
24575
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_PXR\" was never defined.
 
24576
Usually this means the macro was only invoked conditionally." >&5
 
24577
echo "$as_me: error: conditional \"IL_NO_PXR\" was never defined.
 
24578
Usually this means the macro was only invoked conditionally." >&2;}
 
24579
   { (exit 1); exit 1; }; }
 
24580
fi
 
24581
if test -z "${IL_NO_RAW_TRUE}" && test -z "${IL_NO_RAW_FALSE}"; then
 
24582
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_RAW\" was never defined.
 
24583
Usually this means the macro was only invoked conditionally." >&5
 
24584
echo "$as_me: error: conditional \"IL_NO_RAW\" was never defined.
 
24585
Usually this means the macro was only invoked conditionally." >&2;}
 
24586
   { (exit 1); exit 1; }; }
 
24587
fi
 
24588
if test -z "${IL_NO_SGI_TRUE}" && test -z "${IL_NO_SGI_FALSE}"; then
 
24589
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_SGI\" was never defined.
 
24590
Usually this means the macro was only invoked conditionally." >&5
 
24591
echo "$as_me: error: conditional \"IL_NO_SGI\" was never defined.
 
24592
Usually this means the macro was only invoked conditionally." >&2;}
 
24593
   { (exit 1); exit 1; }; }
 
24594
fi
 
24595
if test -z "${IL_NO_TGA_TRUE}" && test -z "${IL_NO_TGA_FALSE}"; then
 
24596
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_TGA\" was never defined.
 
24597
Usually this means the macro was only invoked conditionally." >&5
 
24598
echo "$as_me: error: conditional \"IL_NO_TGA\" was never defined.
 
24599
Usually this means the macro was only invoked conditionally." >&2;}
 
24600
   { (exit 1); exit 1; }; }
 
24601
fi
 
24602
if test -z "${IL_NO_TIF_TRUE}" && test -z "${IL_NO_TIF_FALSE}"; then
 
24603
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_TIF\" was never defined.
 
24604
Usually this means the macro was only invoked conditionally." >&5
 
24605
echo "$as_me: error: conditional \"IL_NO_TIF\" was never defined.
 
24606
Usually this means the macro was only invoked conditionally." >&2;}
 
24607
   { (exit 1); exit 1; }; }
 
24608
fi
 
24609
if test -z "${IL_NO_WAL_TRUE}" && test -z "${IL_NO_WAL_FALSE}"; then
 
24610
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_WAL\" was never defined.
 
24611
Usually this means the macro was only invoked conditionally." >&5
 
24612
echo "$as_me: error: conditional \"IL_NO_WAL\" was never defined.
 
24613
Usually this means the macro was only invoked conditionally." >&2;}
 
24614
   { (exit 1); exit 1; }; }
 
24615
fi
 
24616
if test -z "${IL_NO_XPM_TRUE}" && test -z "${IL_NO_XPM_FALSE}"; then
 
24617
  { { echo "$as_me:$LINENO: error: conditional \"IL_NO_XPM\" was never defined.
 
24618
Usually this means the macro was only invoked conditionally." >&5
 
24619
echo "$as_me: error: conditional \"IL_NO_XPM\" was never defined.
 
24620
Usually this means the macro was only invoked conditionally." >&2;}
 
24621
   { (exit 1); exit 1; }; }
 
24622
fi
 
24623
 
 
24624
: ${CONFIG_STATUS=./config.status}
 
24625
ac_clean_files_save=$ac_clean_files
 
24626
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24627
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24628
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24629
cat >$CONFIG_STATUS <<_ACEOF
 
24630
#! $SHELL
 
24631
# Generated by $as_me.
 
24632
# Run this file to recreate the current configuration.
 
24633
# Compiler output produced by configure, useful for debugging
 
24634
# configure, is in config.log if it exists.
 
24635
 
 
24636
debug=false
 
24637
ac_cs_recheck=false
 
24638
ac_cs_silent=false
 
24639
SHELL=\${CONFIG_SHELL-$SHELL}
 
24640
_ACEOF
 
24641
 
 
24642
cat >>$CONFIG_STATUS <<\_ACEOF
 
24643
## --------------------- ##
 
24644
## M4sh Initialization.  ##
 
24645
## --------------------- ##
 
24646
 
 
24647
# Be Bourne compatible
 
24648
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24649
  emulate sh
 
24650
  NULLCMD=:
 
24651
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24652
  # is contrary to our usage.  Disable this feature.
 
24653
  alias -g '${1+"$@"}'='"$@"'
 
24654
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
24655
  set -o posix
 
24656
fi
 
24657
DUALCASE=1; export DUALCASE # for MKS sh
 
24658
 
 
24659
# Support unset when possible.
 
24660
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24661
  as_unset=unset
 
24662
else
 
24663
  as_unset=false
 
24664
fi
 
24665
 
 
24666
 
 
24667
# Work around bugs in pre-3.0 UWIN ksh.
 
24668
$as_unset ENV MAIL MAILPATH
 
24669
PS1='$ '
 
24670
PS2='> '
 
24671
PS4='+ '
 
24672
 
 
24673
# NLS nuisances.
 
24674
for as_var in \
 
24675
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24676
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24677
  LC_TELEPHONE LC_TIME
 
24678
do
 
24679
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24680
    eval $as_var=C; export $as_var
 
24681
  else
 
24682
    $as_unset $as_var
 
24683
  fi
 
24684
done
 
24685
 
 
24686
# Required to use basename.
 
24687
if expr a : '\(a\)' >/dev/null 2>&1; then
 
24688
  as_expr=expr
 
24689
else
 
24690
  as_expr=false
 
24691
fi
 
24692
 
 
24693
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
24694
  as_basename=basename
 
24695
else
 
24696
  as_basename=false
 
24697
fi
 
24698
 
 
24699
 
 
24700
# Name of the executable.
 
24701
as_me=`$as_basename "$0" ||
 
24702
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24703
         X"$0" : 'X\(//\)$' \| \
 
24704
         X"$0" : 'X\(/\)$' \| \
 
24705
         .     : '\(.\)' 2>/dev/null ||
 
24706
echo X/"$0" |
 
24707
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
24708
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
24709
          /^X\/\(\/\).*/{ s//\1/; q; }
 
24710
          s/.*/./; q'`
 
24711
 
 
24712
 
 
24713
# PATH needs CR, and LINENO needs CR and PATH.
 
24714
# Avoid depending upon Character Ranges.
 
24715
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24716
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24717
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24718
as_cr_digits='0123456789'
 
24719
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24720
 
 
24721
# The user is always right.
 
24722
if test "${PATH_SEPARATOR+set}" != set; then
 
24723
  echo "#! /bin/sh" >conf$$.sh
 
24724
  echo  "exit 0"   >>conf$$.sh
 
24725
  chmod +x conf$$.sh
 
24726
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24727
    PATH_SEPARATOR=';'
 
24728
  else
 
24729
    PATH_SEPARATOR=:
 
24730
  fi
 
24731
  rm -f conf$$.sh
 
24732
fi
 
24733
 
 
24734
 
 
24735
  as_lineno_1=$LINENO
 
24736
  as_lineno_2=$LINENO
 
24737
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
24738
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24739
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
24740
  # Find who we are.  Look in the path if we contain no path at all
 
24741
  # relative or not.
 
24742
  case $0 in
 
24743
    *[\\/]* ) as_myself=$0 ;;
 
24744
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24745
for as_dir in $PATH
 
24746
do
 
24747
  IFS=$as_save_IFS
 
24748
  test -z "$as_dir" && as_dir=.
 
24749
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24750
done
 
24751
 
 
24752
       ;;
 
24753
  esac
 
24754
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
24755
  # in which case we are not to be found in the path.
 
24756
  if test "x$as_myself" = x; then
 
24757
    as_myself=$0
 
24758
  fi
 
24759
  if test ! -f "$as_myself"; then
 
24760
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
24761
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
24762
   { (exit 1); exit 1; }; }
 
24763
  fi
 
24764
  case $CONFIG_SHELL in
 
24765
  '')
 
24766
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24767
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
24768
do
 
24769
  IFS=$as_save_IFS
 
24770
  test -z "$as_dir" && as_dir=.
 
24771
  for as_base in sh bash ksh sh5; do
 
24772
         case $as_dir in
 
24773
         /*)
 
24774
           if ("$as_dir/$as_base" -c '
 
24775
  as_lineno_1=$LINENO
 
24776
  as_lineno_2=$LINENO
 
24777
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
24778
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24779
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
24780
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
24781
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
24782
             CONFIG_SHELL=$as_dir/$as_base
 
24783
             export CONFIG_SHELL
 
24784
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
24785
           fi;;
 
24786
         esac
 
24787
       done
 
24788
done
 
24789
;;
 
24790
  esac
 
24791
 
 
24792
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24793
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24794
  # line-number line before each line; the second 'sed' does the real
 
24795
  # work.  The second script uses 'N' to pair each line-number line
 
24796
  # with the numbered line, and appends trailing '-' during
 
24797
  # substitution so that $LINENO is not a special case at line end.
 
24798
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24799
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
24800
  sed '=' <$as_myself |
 
24801
    sed '
 
24802
      N
 
24803
      s,$,-,
 
24804
      : loop
 
24805
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
24806
      t loop
 
24807
      s,-$,,
 
24808
      s,^['$as_cr_digits']*\n,,
 
24809
    ' >$as_me.lineno &&
 
24810
  chmod +x $as_me.lineno ||
 
24811
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
24812
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
24813
   { (exit 1); exit 1; }; }
 
24814
 
 
24815
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24816
  # (the dirname of $[0] is not the place where we might find the
 
24817
  # original and so on.  Autoconf is especially sensible to this).
 
24818
  . ./$as_me.lineno
 
24819
  # Exit status is that of the last command.
 
24820
  exit
 
24821
}
 
24822
 
 
24823
 
 
24824
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
24825
  *c*,-n*) ECHO_N= ECHO_C='
 
24826
' ECHO_T='      ' ;;
 
24827
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
24828
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
24829
esac
 
24830
 
 
24831
if expr a : '\(a\)' >/dev/null 2>&1; then
 
24832
  as_expr=expr
 
24833
else
 
24834
  as_expr=false
 
24835
fi
 
24836
 
 
24837
rm -f conf$$ conf$$.exe conf$$.file
 
24838
echo >conf$$.file
 
24839
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24840
  # We could just check for DJGPP; but this test a) works b) is more generic
 
24841
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
24842
  if test -f conf$$.exe; then
 
24843
    # Don't use ln at all; we don't have any links
 
24844
    as_ln_s='cp -p'
 
24845
  else
 
24846
    as_ln_s='ln -s'
 
24847
  fi
 
24848
elif ln conf$$.file conf$$ 2>/dev/null; then
 
24849
  as_ln_s=ln
 
24850
else
 
24851
  as_ln_s='cp -p'
 
24852
fi
 
24853
rm -f conf$$ conf$$.exe conf$$.file
 
24854
 
 
24855
if mkdir -p . 2>/dev/null; then
 
24856
  as_mkdir_p=:
 
24857
else
 
24858
  test -d ./-p && rmdir ./-p
 
24859
  as_mkdir_p=false
 
24860
fi
 
24861
 
 
24862
as_executable_p="test -f"
 
24863
 
 
24864
# Sed expression to map a string onto a valid CPP name.
 
24865
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24866
 
 
24867
# Sed expression to map a string onto a valid variable name.
 
24868
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24869
 
 
24870
 
 
24871
# IFS
 
24872
# We need space, tab and new line, in precisely that order.
 
24873
as_nl='
 
24874
'
 
24875
IFS="   $as_nl"
 
24876
 
 
24877
# CDPATH.
 
24878
$as_unset CDPATH
 
24879
 
 
24880
exec 6>&1
 
24881
 
 
24882
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
24883
# report actual input values of CONFIG_FILES etc. instead of their
 
24884
# values after options handling.  Logging --version etc. is OK.
 
24885
exec 5>>config.log
 
24886
{
 
24887
  echo
 
24888
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
24889
## Running $as_me. ##
 
24890
_ASBOX
 
24891
} >&5
 
24892
cat >&5 <<_CSEOF
 
24893
 
 
24894
This file was extended by $as_me, which was
 
24895
generated by GNU Autoconf 2.59.  Invocation command line was
 
24896
 
 
24897
  CONFIG_FILES    = $CONFIG_FILES
 
24898
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24899
  CONFIG_LINKS    = $CONFIG_LINKS
 
24900
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24901
  $ $0 $@
 
24902
 
 
24903
_CSEOF
 
24904
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
24905
echo >&5
 
24906
_ACEOF
 
24907
 
 
24908
# Files that config.status was made for.
 
24909
if test -n "$ac_config_files"; then
 
24910
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
24911
fi
 
24912
 
 
24913
if test -n "$ac_config_headers"; then
 
24914
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
24915
fi
 
24916
 
 
24917
if test -n "$ac_config_links"; then
 
24918
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
24919
fi
 
24920
 
 
24921
if test -n "$ac_config_commands"; then
 
24922
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
24923
fi
 
24924
 
 
24925
cat >>$CONFIG_STATUS <<\_ACEOF
 
24926
 
 
24927
ac_cs_usage="\
 
24928
\`$as_me' instantiates files from templates according to the
 
24929
current configuration.
 
24930
 
 
24931
Usage: $0 [OPTIONS] [FILE]...
 
24932
 
 
24933
  -h, --help       print this help, then exit
 
24934
  -V, --version    print version number, then exit
 
24935
  -q, --quiet      do not print progress messages
 
24936
  -d, --debug      don't remove temporary files
 
24937
      --recheck    update $as_me by reconfiguring in the same conditions
 
24938
  --file=FILE[:TEMPLATE]
 
24939
                   instantiate the configuration file FILE
 
24940
  --header=FILE[:TEMPLATE]
 
24941
                   instantiate the configuration header FILE
 
24942
 
 
24943
Configuration files:
 
24944
$config_files
 
24945
 
 
24946
Configuration headers:
 
24947
$config_headers
 
24948
 
 
24949
Configuration commands:
 
24950
$config_commands
 
24951
 
 
24952
Report bugs to <bug-autoconf@gnu.org>."
 
24953
_ACEOF
 
24954
 
 
24955
cat >>$CONFIG_STATUS <<_ACEOF
 
24956
ac_cs_version="\\
 
24957
config.status
 
24958
configured by $0, generated by GNU Autoconf 2.59,
 
24959
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
24960
 
 
24961
Copyright (C) 2003 Free Software Foundation, Inc.
 
24962
This config.status script is free software; the Free Software Foundation
 
24963
gives unlimited permission to copy, distribute and modify it."
 
24964
srcdir=$srcdir
 
24965
INSTALL="$INSTALL"
 
24966
_ACEOF
 
24967
 
 
24968
cat >>$CONFIG_STATUS <<\_ACEOF
 
24969
# If no file are specified by the user, then we need to provide default
 
24970
# value.  By we need to know if files were specified by the user.
 
24971
ac_need_defaults=:
 
24972
while test $# != 0
 
24973
do
 
24974
  case $1 in
 
24975
  --*=*)
 
24976
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
24977
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
24978
    ac_shift=:
 
24979
    ;;
 
24980
  -*)
 
24981
    ac_option=$1
 
24982
    ac_optarg=$2
 
24983
    ac_shift=shift
 
24984
    ;;
 
24985
  *) # This is not an option, so the user has probably given explicit
 
24986
     # arguments.
 
24987
     ac_option=$1
 
24988
     ac_need_defaults=false;;
 
24989
  esac
 
24990
 
 
24991
  case $ac_option in
 
24992
  # Handling of the options.
 
24993
_ACEOF
 
24994
cat >>$CONFIG_STATUS <<\_ACEOF
 
24995
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
24996
    ac_cs_recheck=: ;;
 
24997
  --version | --vers* | -V )
 
24998
    echo "$ac_cs_version"; exit 0 ;;
 
24999
  --he | --h)
 
25000
    # Conflict between --help and --header
 
25001
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
25002
Try \`$0 --help' for more information." >&5
 
25003
echo "$as_me: error: ambiguous option: $1
 
25004
Try \`$0 --help' for more information." >&2;}
 
25005
   { (exit 1); exit 1; }; };;
 
25006
  --help | --hel | -h )
 
25007
    echo "$ac_cs_usage"; exit 0 ;;
 
25008
  --debug | --d* | -d )
 
25009
    debug=: ;;
 
25010
  --file | --fil | --fi | --f )
 
25011
    $ac_shift
 
25012
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25013
    ac_need_defaults=false;;
 
25014
  --header | --heade | --head | --hea )
 
25015
    $ac_shift
 
25016
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25017
    ac_need_defaults=false;;
 
25018
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25019
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25020
    ac_cs_silent=: ;;
 
25021
 
 
25022
  # This is an error.
 
25023
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
25024
Try \`$0 --help' for more information." >&5
 
25025
echo "$as_me: error: unrecognized option: $1
 
25026
Try \`$0 --help' for more information." >&2;}
 
25027
   { (exit 1); exit 1; }; } ;;
 
25028
 
 
25029
  *) ac_config_targets="$ac_config_targets $1" ;;
 
25030
 
 
25031
  esac
 
25032
  shift
 
25033
done
 
25034
 
 
25035
ac_configure_extra_args=
 
25036
 
 
25037
if $ac_cs_silent; then
 
25038
  exec 6>/dev/null
 
25039
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25040
fi
 
25041
 
 
25042
_ACEOF
 
25043
cat >>$CONFIG_STATUS <<_ACEOF
 
25044
if \$ac_cs_recheck; then
 
25045
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25046
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25047
fi
 
25048
 
 
25049
_ACEOF
 
25050
 
 
25051
cat >>$CONFIG_STATUS <<_ACEOF
 
25052
#
 
25053
# INIT-COMMANDS section.
 
25054
#
 
25055
 
 
25056
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25057
 
 
25058
_ACEOF
 
25059
 
 
25060
 
 
25061
 
 
25062
cat >>$CONFIG_STATUS <<\_ACEOF
 
25063
for ac_config_target in $ac_config_targets
 
25064
do
 
25065
  case "$ac_config_target" in
 
25066
  # Handling of arguments.
 
25067
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25068
  "src-IL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-IL/Makefile" ;;
 
25069
  "src-IL/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-IL/src/Makefile" ;;
 
25070
  "src-IL/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-IL/include/Makefile" ;;
 
25071
  "src-ILU/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILU/Makefile" ;;
 
25072
  "src-ILU/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILU/src/Makefile" ;;
 
25073
  "src-ILU/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILU/include/Makefile" ;;
 
25074
  "src-ILUT/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILUT/Makefile" ;;
 
25075
  "src-ILUT/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILUT/src/Makefile" ;;
 
25076
  "src-ILUT/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILUT/include/Makefile" ;;
 
25077
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
25078
  "include/IL/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/IL/Makefile" ;;
 
25079
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25080
  "include/IL/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/IL/config.h" ;;
 
25081
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25082
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25083
   { (exit 1); exit 1; }; };;
 
25084
  esac
 
25085
done
 
25086
 
 
25087
# If the user did not use the arguments to specify the items to instantiate,
 
25088
# then the envvar interface is used.  Set only those that are not.
 
25089
# We use the long form for the default assignment because of an extremely
 
25090
# bizarre bug on SunOS 4.1.3.
 
25091
if $ac_need_defaults; then
 
25092
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25093
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25094
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25095
fi
 
25096
 
 
25097
# Have a temporary directory for convenience.  Make it in the build tree
 
25098
# simply because there is no reason to put it here, and in addition,
 
25099
# creating and moving files from /tmp can sometimes cause problems.
 
25100
# Create a temporary directory, and hook for its removal unless debugging.
 
25101
$debug ||
 
25102
{
 
25103
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
25104
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25105
}
 
25106
 
 
25107
# Create a (secure) tmp directory for tmp files.
 
25108
 
 
25109
{
 
25110
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
25111
  test -n "$tmp" && test -d "$tmp"
 
25112
}  ||
 
25113
{
 
25114
  tmp=./confstat$$-$RANDOM
 
25115
  (umask 077 && mkdir $tmp)
 
25116
} ||
 
25117
{
 
25118
   echo "$me: cannot create a temporary directory in ." >&2
 
25119
   { (exit 1); exit 1; }
 
25120
}
 
25121
 
 
25122
_ACEOF
 
25123
 
 
25124
cat >>$CONFIG_STATUS <<_ACEOF
 
25125
 
 
25126
#
 
25127
# CONFIG_FILES section.
 
25128
#
 
25129
 
 
25130
# No need to generate the scripts if there are no CONFIG_FILES.
 
25131
# This happens for instance when ./config.status config.h
 
25132
if test -n "\$CONFIG_FILES"; then
 
25133
  # Protect against being on the right side of a sed subst in config.status.
 
25134
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
25135
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
25136
s,@SHELL@,$SHELL,;t t
 
25137
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
25138
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
25139
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
25140
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
25141
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
25142
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
25143
s,@exec_prefix@,$exec_prefix,;t t
 
25144
s,@prefix@,$prefix,;t t
 
25145
s,@program_transform_name@,$program_transform_name,;t t
 
25146
s,@bindir@,$bindir,;t t
 
25147
s,@sbindir@,$sbindir,;t t
 
25148
s,@libexecdir@,$libexecdir,;t t
 
25149
s,@datadir@,$datadir,;t t
 
25150
s,@sysconfdir@,$sysconfdir,;t t
 
25151
s,@sharedstatedir@,$sharedstatedir,;t t
 
25152
s,@localstatedir@,$localstatedir,;t t
 
25153
s,@libdir@,$libdir,;t t
 
25154
s,@includedir@,$includedir,;t t
 
25155
s,@oldincludedir@,$oldincludedir,;t t
 
25156
s,@infodir@,$infodir,;t t
 
25157
s,@mandir@,$mandir,;t t
 
25158
s,@build_alias@,$build_alias,;t t
 
25159
s,@host_alias@,$host_alias,;t t
 
25160
s,@target_alias@,$target_alias,;t t
 
25161
s,@DEFS@,$DEFS,;t t
 
25162
s,@ECHO_C@,$ECHO_C,;t t
 
25163
s,@ECHO_N@,$ECHO_N,;t t
 
25164
s,@ECHO_T@,$ECHO_T,;t t
 
25165
s,@LIBS@,$LIBS,;t t
 
25166
s,@DEVIL_LTVERSION@,$DEVIL_LTVERSION,;t t
 
25167
s,@build@,$build,;t t
 
25168
s,@build_cpu@,$build_cpu,;t t
 
25169
s,@build_vendor@,$build_vendor,;t t
 
25170
s,@build_os@,$build_os,;t t
 
25171
s,@host@,$host,;t t
 
25172
s,@host_cpu@,$host_cpu,;t t
 
25173
s,@host_vendor@,$host_vendor,;t t
 
25174
s,@host_os@,$host_os,;t t
 
25175
s,@target@,$target,;t t
 
25176
s,@target_cpu@,$target_cpu,;t t
 
25177
s,@target_vendor@,$target_vendor,;t t
 
25178
s,@target_os@,$target_os,;t t
 
25179
s,@CC@,$CC,;t t
 
25180
s,@CFLAGS@,$CFLAGS,;t t
 
25181
s,@LDFLAGS@,$LDFLAGS,;t t
 
25182
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
25183
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
25184
s,@EXEEXT@,$EXEEXT,;t t
 
25185
s,@OBJEXT@,$OBJEXT,;t t
 
25186
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
25187
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
25188
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
25189
s,@SET_MAKE@,$SET_MAKE,;t t
 
25190
s,@CPP@,$CPP,;t t
 
25191
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
25192
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
25193
s,@X_LIBS@,$X_LIBS,;t t
 
25194
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
25195
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
25196
s,@PACKAGE@,$PACKAGE,;t t
 
25197
s,@VERSION@,$VERSION,;t t
 
25198
s,@ACLOCAL@,$ACLOCAL,;t t
 
25199
s,@AUTOCONF@,$AUTOCONF,;t t
 
25200
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
25201
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
25202
s,@MAKEINFO@,$MAKEINFO,;t t
 
25203
s,@AMTAR@,$AMTAR,;t t
 
25204
s,@install_sh@,$install_sh,;t t
 
25205
s,@STRIP@,$STRIP,;t t
 
25206
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
25207
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
25208
s,@mkdir_p@,$mkdir_p,;t t
 
25209
s,@AWK@,$AWK,;t t
 
25210
s,@am__leading_dot@,$am__leading_dot,;t t
 
25211
s,@DEPDIR@,$DEPDIR,;t t
 
25212
s,@am__include@,$am__include,;t t
 
25213
s,@am__quote@,$am__quote,;t t
 
25214
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
25215
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
25216
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
25217
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
25218
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
25219
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
25220
s,@EGREP@,$EGREP,;t t
 
25221
s,@LN_S@,$LN_S,;t t
 
25222
s,@ECHO@,$ECHO,;t t
 
25223
s,@AR@,$AR,;t t
 
25224
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
25225
s,@RANLIB@,$RANLIB,;t t
 
25226
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
25227
s,@DLLTOOL@,$DLLTOOL,;t t
 
25228
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
25229
s,@AS@,$AS,;t t
 
25230
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
25231
s,@OBJDUMP@,$OBJDUMP,;t t
 
25232
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
25233
s,@CXX@,$CXX,;t t
 
25234
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
25235
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
25236
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
25237
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
25238
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
25239
s,@CXXCPP@,$CXXCPP,;t t
 
25240
s,@F77@,$F77,;t t
 
25241
s,@FFLAGS@,$FFLAGS,;t t
 
25242
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
25243
s,@LIBTOOL@,$LIBTOOL,;t t
 
25244
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
25245
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
25246
s,@MAINT@,$MAINT,;t t
 
25247
s,@VERSIONINFO@,$VERSIONINFO,;t t
 
25248
s,@LIBZ@,$LIBZ,;t t
 
25249
s,@LIBJPG@,$LIBJPG,;t t
 
25250
s,@LIBTIFF@,$LIBTIFF,;t t
 
25251
s,@LIBPNG@,$LIBPNG,;t t
 
25252
s,@LIBLCMS@,$LIBLCMS,;t t
 
25253
s,@LIBMNG@,$LIBMNG,;t t
 
25254
s,@SDL_CONFIG@,$SDL_CONFIG,;t t
 
25255
s,@sdl_major_version@,$sdl_major_version,;t t
 
25256
s,@sdl_minor_version@,$sdl_minor_version,;t t
 
25257
s,@sdl_micro_version@,$sdl_micro_version,;t t
 
25258
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
 
25259
s,@SDL_LIBS@,$SDL_LIBS,;t t
 
25260
s,@LIBSDL@,$LIBSDL,;t t
 
25261
s,@HSDL@,$HSDL,;t t
 
25262
s,@LIBGL@,$LIBGL,;t t
 
25263
s,@allegro_config@,$allegro_config,;t t
 
25264
s,@LIBALLEGRO@,$LIBALLEGRO,;t t
 
25265
s,@HALLEGRO@,$HALLEGRO,;t t
 
25266
s,@LIBGDI32@,$LIBGDI32,;t t
 
25267
s,@IL_NO_BMP_TRUE@,$IL_NO_BMP_TRUE,;t t
 
25268
s,@IL_NO_BMP_FALSE@,$IL_NO_BMP_FALSE,;t t
 
25269
s,@IL_NO_DCX_TRUE@,$IL_NO_DCX_TRUE,;t t
 
25270
s,@IL_NO_DCX_FALSE@,$IL_NO_DCX_FALSE,;t t
 
25271
s,@IL_NO_DDS_TRUE@,$IL_NO_DDS_TRUE,;t t
 
25272
s,@IL_NO_DDS_FALSE@,$IL_NO_DDS_FALSE,;t t
 
25273
s,@IL_NO_DOOM_TRUE@,$IL_NO_DOOM_TRUE,;t t
 
25274
s,@IL_NO_DOOM_FALSE@,$IL_NO_DOOM_FALSE,;t t
 
25275
s,@IL_NO_GIF_TRUE@,$IL_NO_GIF_TRUE,;t t
 
25276
s,@IL_NO_GIF_FALSE@,$IL_NO_GIF_FALSE,;t t
 
25277
s,@IL_NO_HDR_TRUE@,$IL_NO_HDR_TRUE,;t t
 
25278
s,@IL_NO_HDR_FALSE@,$IL_NO_HDR_FALSE,;t t
 
25279
s,@IL_NO_ICO_TRUE@,$IL_NO_ICO_TRUE,;t t
 
25280
s,@IL_NO_ICO_FALSE@,$IL_NO_ICO_FALSE,;t t
 
25281
s,@IL_NO_JPG_TRUE@,$IL_NO_JPG_TRUE,;t t
 
25282
s,@IL_NO_JPG_FALSE@,$IL_NO_JPG_FALSE,;t t
 
25283
s,@IL_NO_LIF_TRUE@,$IL_NO_LIF_TRUE,;t t
 
25284
s,@IL_NO_LIF_FALSE@,$IL_NO_LIF_FALSE,;t t
 
25285
s,@IL_NO_LCMS_TRUE@,$IL_NO_LCMS_TRUE,;t t
 
25286
s,@IL_NO_LCMS_FALSE@,$IL_NO_LCMS_FALSE,;t t
 
25287
s,@IL_NO_MDL_TRUE@,$IL_NO_MDL_TRUE,;t t
 
25288
s,@IL_NO_MDL_FALSE@,$IL_NO_MDL_FALSE,;t t
 
25289
s,@IL_NO_MNG_TRUE@,$IL_NO_MNG_TRUE,;t t
 
25290
s,@IL_NO_MNG_FALSE@,$IL_NO_MNG_FALSE,;t t
 
25291
s,@IL_NO_PCD_TRUE@,$IL_NO_PCD_TRUE,;t t
 
25292
s,@IL_NO_PCD_FALSE@,$IL_NO_PCD_FALSE,;t t
 
25293
s,@IL_NO_PCX_TRUE@,$IL_NO_PCX_TRUE,;t t
 
25294
s,@IL_NO_PCX_FALSE@,$IL_NO_PCX_FALSE,;t t
 
25295
s,@IL_NO_PIC_TRUE@,$IL_NO_PIC_TRUE,;t t
 
25296
s,@IL_NO_PIC_FALSE@,$IL_NO_PIC_FALSE,;t t
 
25297
s,@IL_NO_PIX_TRUE@,$IL_NO_PIX_TRUE,;t t
 
25298
s,@IL_NO_PIX_FALSE@,$IL_NO_PIX_FALSE,;t t
 
25299
s,@IL_NO_PNG_TRUE@,$IL_NO_PNG_TRUE,;t t
 
25300
s,@IL_NO_PNG_FALSE@,$IL_NO_PNG_FALSE,;t t
 
25301
s,@IL_NO_PNM_TRUE@,$IL_NO_PNM_TRUE,;t t
 
25302
s,@IL_NO_PNM_FALSE@,$IL_NO_PNM_FALSE,;t t
 
25303
s,@IL_NO_PSD_TRUE@,$IL_NO_PSD_TRUE,;t t
 
25304
s,@IL_NO_PSD_FALSE@,$IL_NO_PSD_FALSE,;t t
 
25305
s,@IL_NO_PSP_TRUE@,$IL_NO_PSP_TRUE,;t t
 
25306
s,@IL_NO_PSP_FALSE@,$IL_NO_PSP_FALSE,;t t
 
25307
s,@IL_NO_PXR_TRUE@,$IL_NO_PXR_TRUE,;t t
 
25308
s,@IL_NO_PXR_FALSE@,$IL_NO_PXR_FALSE,;t t
 
25309
s,@IL_NO_RAW_TRUE@,$IL_NO_RAW_TRUE,;t t
 
25310
s,@IL_NO_RAW_FALSE@,$IL_NO_RAW_FALSE,;t t
 
25311
s,@IL_NO_SGI_TRUE@,$IL_NO_SGI_TRUE,;t t
 
25312
s,@IL_NO_SGI_FALSE@,$IL_NO_SGI_FALSE,;t t
 
25313
s,@IL_NO_TGA_TRUE@,$IL_NO_TGA_TRUE,;t t
 
25314
s,@IL_NO_TGA_FALSE@,$IL_NO_TGA_FALSE,;t t
 
25315
s,@IL_NO_TIF_TRUE@,$IL_NO_TIF_TRUE,;t t
 
25316
s,@IL_NO_TIF_FALSE@,$IL_NO_TIF_FALSE,;t t
 
25317
s,@IL_NO_WAL_TRUE@,$IL_NO_WAL_TRUE,;t t
 
25318
s,@IL_NO_WAL_FALSE@,$IL_NO_WAL_FALSE,;t t
 
25319
s,@IL_NO_XPM_TRUE@,$IL_NO_XPM_TRUE,;t t
 
25320
s,@IL_NO_XPM_FALSE@,$IL_NO_XPM_FALSE,;t t
 
25321
s,@LIBIL_CFLAGS@,$LIBIL_CFLAGS,;t t
 
25322
s,@LIBILU_CFLAGS@,$LIBILU_CFLAGS,;t t
 
25323
s,@LIBILUT_CFLAGS@,$LIBILUT_CFLAGS,;t t
 
25324
s,@LIBILUT_WIN32LIBPATH@,$LIBILUT_WIN32LIBPATH,;t t
 
25325
s,@LIBOBJS@,$LIBOBJS,;t t
 
25326
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
25327
CEOF
 
25328
 
 
25329
_ACEOF
 
25330
 
 
25331
  cat >>$CONFIG_STATUS <<\_ACEOF
 
25332
  # Split the substitutions into bite-sized pieces for seds with
 
25333
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
25334
  ac_max_sed_lines=48
 
25335
  ac_sed_frag=1 # Number of current file.
 
25336
  ac_beg=1 # First line for current file.
 
25337
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
25338
  ac_more_lines=:
 
25339
  ac_sed_cmds=
 
25340
  while $ac_more_lines; do
 
25341
    if test $ac_beg -gt 1; then
 
25342
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25343
    else
 
25344
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25345
    fi
 
25346
    if test ! -s $tmp/subs.frag; then
 
25347
      ac_more_lines=false
 
25348
    else
 
25349
      # The purpose of the label and of the branching condition is to
 
25350
      # speed up the sed processing (if there are no `@' at all, there
 
25351
      # is no need to browse any of the substitutions).
 
25352
      # These are the two extra sed commands mentioned above.
 
25353
      (echo ':t
 
25354
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
25355
      if test -z "$ac_sed_cmds"; then
 
25356
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
25357
      else
 
25358
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
25359
      fi
 
25360
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
25361
      ac_beg=$ac_end
 
25362
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
25363
    fi
 
25364
  done
 
25365
  if test -z "$ac_sed_cmds"; then
 
25366
    ac_sed_cmds=cat
 
25367
  fi
 
25368
fi # test -n "$CONFIG_FILES"
 
25369
 
 
25370
_ACEOF
 
25371
cat >>$CONFIG_STATUS <<\_ACEOF
 
25372
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
25373
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
25374
  case $ac_file in
 
25375
  - | *:- | *:-:* ) # input from stdin
 
25376
        cat >$tmp/stdin
 
25377
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25378
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25379
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25380
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25381
  * )   ac_file_in=$ac_file.in ;;
 
25382
  esac
 
25383
 
 
25384
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
25385
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25386
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25387
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25388
         X"$ac_file" : 'X\(//\)$' \| \
 
25389
         X"$ac_file" : 'X\(/\)' \| \
 
25390
         .     : '\(.\)' 2>/dev/null ||
 
25391
echo X"$ac_file" |
 
25392
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25393
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25394
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25395
          /^X\(\/\).*/{ s//\1/; q; }
 
25396
          s/.*/./; q'`
 
25397
  { if $as_mkdir_p; then
 
25398
    mkdir -p "$ac_dir"
 
25399
  else
 
25400
    as_dir="$ac_dir"
 
25401
    as_dirs=
 
25402
    while test ! -d "$as_dir"; do
 
25403
      as_dirs="$as_dir $as_dirs"
 
25404
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25405
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25406
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25407
         X"$as_dir" : 'X\(//\)$' \| \
 
25408
         X"$as_dir" : 'X\(/\)' \| \
 
25409
         .     : '\(.\)' 2>/dev/null ||
 
25410
echo X"$as_dir" |
 
25411
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25412
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25413
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25414
          /^X\(\/\).*/{ s//\1/; q; }
 
25415
          s/.*/./; q'`
 
25416
    done
 
25417
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25418
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25419
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25420
   { (exit 1); exit 1; }; }; }
 
25421
 
 
25422
  ac_builddir=.
 
25423
 
 
25424
if test "$ac_dir" != .; then
 
25425
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25426
  # A "../" for each directory in $ac_dir_suffix.
 
25427
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25428
else
 
25429
  ac_dir_suffix= ac_top_builddir=
 
25430
fi
 
25431
 
 
25432
case $srcdir in
 
25433
  .)  # No --srcdir option.  We are building in place.
 
25434
    ac_srcdir=.
 
25435
    if test -z "$ac_top_builddir"; then
 
25436
       ac_top_srcdir=.
 
25437
    else
 
25438
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25439
    fi ;;
 
25440
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25441
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25442
    ac_top_srcdir=$srcdir ;;
 
25443
  *) # Relative path.
 
25444
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25445
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25446
esac
 
25447
 
 
25448
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25449
# the directories may not exist.
 
25450
case `pwd` in
 
25451
.) ac_abs_builddir="$ac_dir";;
 
25452
*)
 
25453
  case "$ac_dir" in
 
25454
  .) ac_abs_builddir=`pwd`;;
 
25455
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25456
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25457
  esac;;
 
25458
esac
 
25459
case $ac_abs_builddir in
 
25460
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25461
*)
 
25462
  case ${ac_top_builddir}. in
 
25463
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25464
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25465
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25466
  esac;;
 
25467
esac
 
25468
case $ac_abs_builddir in
 
25469
.) ac_abs_srcdir=$ac_srcdir;;
 
25470
*)
 
25471
  case $ac_srcdir in
 
25472
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25473
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25474
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25475
  esac;;
 
25476
esac
 
25477
case $ac_abs_builddir in
 
25478
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25479
*)
 
25480
  case $ac_top_srcdir in
 
25481
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25482
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25483
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25484
  esac;;
 
25485
esac
 
25486
 
 
25487
 
 
25488
  case $INSTALL in
 
25489
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25490
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
25491
  esac
 
25492
 
 
25493
  if test x"$ac_file" != x-; then
 
25494
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25495
echo "$as_me: creating $ac_file" >&6;}
 
25496
    rm -f "$ac_file"
 
25497
  fi
 
25498
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25499
  # use $as_me), people would be surprised to read:
 
25500
  #    /* config.h.  Generated by config.status.  */
 
25501
  if test x"$ac_file" = x-; then
 
25502
    configure_input=
 
25503
  else
 
25504
    configure_input="$ac_file.  "
 
25505
  fi
 
25506
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
25507
                                     sed 's,.*/,,'` by configure."
 
25508
 
 
25509
  # First look for the input files in the build tree, otherwise in the
 
25510
  # src tree.
 
25511
  ac_file_inputs=`IFS=:
 
25512
    for f in $ac_file_in; do
 
25513
      case $f in
 
25514
      -) echo $tmp/stdin ;;
 
25515
      [\\/$]*)
 
25516
         # Absolute (can't be DOS-style, as IFS=:)
 
25517
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25518
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25519
   { (exit 1); exit 1; }; }
 
25520
         echo "$f";;
 
25521
      *) # Relative
 
25522
         if test -f "$f"; then
 
25523
           # Build tree
 
25524
           echo "$f"
 
25525
         elif test -f "$srcdir/$f"; then
 
25526
           # Source tree
 
25527
           echo "$srcdir/$f"
 
25528
         else
 
25529
           # /dev/null tree
 
25530
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25531
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25532
   { (exit 1); exit 1; }; }
 
25533
         fi;;
 
25534
      esac
 
25535
    done` || { (exit 1); exit 1; }
 
25536
_ACEOF
 
25537
cat >>$CONFIG_STATUS <<_ACEOF
 
25538
  sed "$ac_vpsub
 
25539
$extrasub
 
25540
_ACEOF
 
25541
cat >>$CONFIG_STATUS <<\_ACEOF
 
25542
:t
 
25543
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25544
s,@configure_input@,$configure_input,;t t
 
25545
s,@srcdir@,$ac_srcdir,;t t
 
25546
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
25547
s,@top_srcdir@,$ac_top_srcdir,;t t
 
25548
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
25549
s,@builddir@,$ac_builddir,;t t
 
25550
s,@abs_builddir@,$ac_abs_builddir,;t t
 
25551
s,@top_builddir@,$ac_top_builddir,;t t
 
25552
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
25553
s,@INSTALL@,$ac_INSTALL,;t t
 
25554
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
25555
  rm -f $tmp/stdin
 
25556
  if test x"$ac_file" != x-; then
 
25557
    mv $tmp/out $ac_file
 
25558
  else
 
25559
    cat $tmp/out
 
25560
    rm -f $tmp/out
 
25561
  fi
 
25562
 
 
25563
done
 
25564
_ACEOF
 
25565
cat >>$CONFIG_STATUS <<\_ACEOF
 
25566
 
 
25567
#
 
25568
# CONFIG_HEADER section.
 
25569
#
 
25570
 
 
25571
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
25572
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
25573
#
 
25574
# ac_d sets the value in "#define NAME VALUE" lines.
 
25575
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
25576
ac_dB='[         ].*$,\1#\2'
 
25577
ac_dC=' '
 
25578
ac_dD=',;t'
 
25579
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
25580
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
25581
ac_uB='$,\1#\2define\3'
 
25582
ac_uC=' '
 
25583
ac_uD=',;t'
 
25584
 
 
25585
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
25586
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
25587
  case $ac_file in
 
25588
  - | *:- | *:-:* ) # input from stdin
 
25589
        cat >$tmp/stdin
 
25590
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25591
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25592
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25593
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25594
  * )   ac_file_in=$ac_file.in ;;
 
25595
  esac
 
25596
 
 
25597
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25598
echo "$as_me: creating $ac_file" >&6;}
 
25599
 
 
25600
  # First look for the input files in the build tree, otherwise in the
 
25601
  # src tree.
 
25602
  ac_file_inputs=`IFS=:
 
25603
    for f in $ac_file_in; do
 
25604
      case $f in
 
25605
      -) echo $tmp/stdin ;;
 
25606
      [\\/$]*)
 
25607
         # Absolute (can't be DOS-style, as IFS=:)
 
25608
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25609
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25610
   { (exit 1); exit 1; }; }
 
25611
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
25612
         echo "$f";;
 
25613
      *) # Relative
 
25614
         if test -f "$f"; then
 
25615
           # Build tree
 
25616
           echo "$f"
 
25617
         elif test -f "$srcdir/$f"; then
 
25618
           # Source tree
 
25619
           echo "$srcdir/$f"
 
25620
         else
 
25621
           # /dev/null tree
 
25622
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25623
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25624
   { (exit 1); exit 1; }; }
 
25625
         fi;;
 
25626
      esac
 
25627
    done` || { (exit 1); exit 1; }
 
25628
  # Remove the trailing spaces.
 
25629
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
25630
 
 
25631
_ACEOF
 
25632
 
 
25633
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
25634
# `conftest.undefs', that substitutes the proper values into
 
25635
# config.h.in to produce config.h.  The first handles `#define'
 
25636
# templates, and the second `#undef' templates.
 
25637
# And first: Protect against being on the right side of a sed subst in
 
25638
# config.status.  Protect against being in an unquoted here document
 
25639
# in config.status.
 
25640
rm -f conftest.defines conftest.undefs
 
25641
# Using a here document instead of a string reduces the quoting nightmare.
 
25642
# Putting comments in sed scripts is not portable.
 
25643
#
 
25644
# `end' is used to avoid that the second main sed command (meant for
 
25645
# 0-ary CPP macros) applies to n-ary macro definitions.
 
25646
# See the Autoconf documentation for `clear'.
 
25647
cat >confdef2sed.sed <<\_ACEOF
 
25648
s/[\\&,]/\\&/g
 
25649
s,[\\$`],\\&,g
 
25650
t clear
 
25651
: clear
 
25652
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
25653
t end
 
25654
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
25655
: end
 
25656
_ACEOF
 
25657
# If some macros were called several times there might be several times
 
25658
# the same #defines, which is useless.  Nevertheless, we may not want to
 
25659
# sort them, since we want the *last* AC-DEFINE to be honored.
 
25660
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
25661
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
25662
rm -f confdef2sed.sed
 
25663
 
 
25664
# This sed command replaces #undef with comments.  This is necessary, for
 
25665
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25666
# on some systems where configure will not decide to define it.
 
25667
cat >>conftest.undefs <<\_ACEOF
 
25668
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
25669
_ACEOF
 
25670
 
 
25671
# Break up conftest.defines because some shells have a limit on the size
 
25672
# of here documents, and old seds have small limits too (100 cmds).
 
25673
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
25674
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
25675
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
25676
echo '  :' >>$CONFIG_STATUS
 
25677
rm -f conftest.tail
 
25678
while grep . conftest.defines >/dev/null
 
25679
do
 
25680
  # Write a limited-size here document to $tmp/defines.sed.
 
25681
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
25682
  # Speed up: don't consider the non `#define' lines.
 
25683
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
25684
  # Work around the forget-to-reset-the-flag bug.
 
25685
  echo 't clr' >>$CONFIG_STATUS
 
25686
  echo ': clr' >>$CONFIG_STATUS
 
25687
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
25688
  echo 'CEOF
 
25689
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
25690
  rm -f $tmp/in
 
25691
  mv $tmp/out $tmp/in
 
25692
' >>$CONFIG_STATUS
 
25693
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
25694
  rm -f conftest.defines
 
25695
  mv conftest.tail conftest.defines
 
25696
done
 
25697
rm -f conftest.defines
 
25698
echo '  fi # grep' >>$CONFIG_STATUS
 
25699
echo >>$CONFIG_STATUS
 
25700
 
 
25701
# Break up conftest.undefs because some shells have a limit on the size
 
25702
# of here documents, and old seds have small limits too (100 cmds).
 
25703
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
25704
rm -f conftest.tail
 
25705
while grep . conftest.undefs >/dev/null
 
25706
do
 
25707
  # Write a limited-size here document to $tmp/undefs.sed.
 
25708
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
25709
  # Speed up: don't consider the non `#undef'
 
25710
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
25711
  # Work around the forget-to-reset-the-flag bug.
 
25712
  echo 't clr' >>$CONFIG_STATUS
 
25713
  echo ': clr' >>$CONFIG_STATUS
 
25714
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
25715
  echo 'CEOF
 
25716
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
25717
  rm -f $tmp/in
 
25718
  mv $tmp/out $tmp/in
 
25719
' >>$CONFIG_STATUS
 
25720
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
25721
  rm -f conftest.undefs
 
25722
  mv conftest.tail conftest.undefs
 
25723
done
 
25724
rm -f conftest.undefs
 
25725
 
 
25726
cat >>$CONFIG_STATUS <<\_ACEOF
 
25727
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25728
  # use $as_me), people would be surprised to read:
 
25729
  #    /* config.h.  Generated by config.status.  */
 
25730
  if test x"$ac_file" = x-; then
 
25731
    echo "/* Generated by configure.  */" >$tmp/config.h
 
25732
  else
 
25733
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
25734
  fi
 
25735
  cat $tmp/in >>$tmp/config.h
 
25736
  rm -f $tmp/in
 
25737
  if test x"$ac_file" != x-; then
 
25738
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
25739
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25740
echo "$as_me: $ac_file is unchanged" >&6;}
 
25741
    else
 
25742
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25743
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25744
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25745
         X"$ac_file" : 'X\(//\)$' \| \
 
25746
         X"$ac_file" : 'X\(/\)' \| \
 
25747
         .     : '\(.\)' 2>/dev/null ||
 
25748
echo X"$ac_file" |
 
25749
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25750
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25751
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25752
          /^X\(\/\).*/{ s//\1/; q; }
 
25753
          s/.*/./; q'`
 
25754
      { if $as_mkdir_p; then
 
25755
    mkdir -p "$ac_dir"
 
25756
  else
 
25757
    as_dir="$ac_dir"
 
25758
    as_dirs=
 
25759
    while test ! -d "$as_dir"; do
 
25760
      as_dirs="$as_dir $as_dirs"
 
25761
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25762
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25763
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25764
         X"$as_dir" : 'X\(//\)$' \| \
 
25765
         X"$as_dir" : 'X\(/\)' \| \
 
25766
         .     : '\(.\)' 2>/dev/null ||
 
25767
echo X"$as_dir" |
 
25768
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25769
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25770
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25771
          /^X\(\/\).*/{ s//\1/; q; }
 
25772
          s/.*/./; q'`
 
25773
    done
 
25774
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25775
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25776
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25777
   { (exit 1); exit 1; }; }; }
 
25778
 
 
25779
      rm -f $ac_file
 
25780
      mv $tmp/config.h $ac_file
 
25781
    fi
 
25782
  else
 
25783
    cat $tmp/config.h
 
25784
    rm -f $tmp/config.h
 
25785
  fi
 
25786
# Compute $ac_file's index in $config_headers.
 
25787
_am_stamp_count=1
 
25788
for _am_header in $config_headers :; do
 
25789
  case $_am_header in
 
25790
    $ac_file | $ac_file:* )
 
25791
      break ;;
 
25792
    * )
 
25793
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
25794
  esac
 
25795
done
 
25796
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
25797
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25798
         X$ac_file : 'X\(//\)[^/]' \| \
 
25799
         X$ac_file : 'X\(//\)$' \| \
 
25800
         X$ac_file : 'X\(/\)' \| \
 
25801
         .     : '\(.\)' 2>/dev/null ||
 
25802
echo X$ac_file |
 
25803
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25804
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25805
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25806
          /^X\(\/\).*/{ s//\1/; q; }
 
25807
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
25808
done
 
25809
_ACEOF
 
25810
cat >>$CONFIG_STATUS <<\_ACEOF
 
25811
 
 
25812
#
 
25813
# CONFIG_COMMANDS section.
 
25814
#
 
25815
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
25816
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
25817
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25818
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
25819
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25820
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
25821
         X"$ac_dest" : 'X\(//\)$' \| \
 
25822
         X"$ac_dest" : 'X\(/\)' \| \
 
25823
         .     : '\(.\)' 2>/dev/null ||
 
25824
echo X"$ac_dest" |
 
25825
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25826
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25827
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25828
          /^X\(\/\).*/{ s//\1/; q; }
 
25829
          s/.*/./; q'`
 
25830
  { if $as_mkdir_p; then
 
25831
    mkdir -p "$ac_dir"
 
25832
  else
 
25833
    as_dir="$ac_dir"
 
25834
    as_dirs=
 
25835
    while test ! -d "$as_dir"; do
 
25836
      as_dirs="$as_dir $as_dirs"
 
25837
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25838
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25839
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25840
         X"$as_dir" : 'X\(//\)$' \| \
 
25841
         X"$as_dir" : 'X\(/\)' \| \
 
25842
         .     : '\(.\)' 2>/dev/null ||
 
25843
echo X"$as_dir" |
 
25844
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25845
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25846
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25847
          /^X\(\/\).*/{ s//\1/; q; }
 
25848
          s/.*/./; q'`
 
25849
    done
 
25850
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25851
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25852
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25853
   { (exit 1); exit 1; }; }; }
 
25854
 
 
25855
  ac_builddir=.
 
25856
 
 
25857
if test "$ac_dir" != .; then
 
25858
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25859
  # A "../" for each directory in $ac_dir_suffix.
 
25860
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25861
else
 
25862
  ac_dir_suffix= ac_top_builddir=
 
25863
fi
 
25864
 
 
25865
case $srcdir in
 
25866
  .)  # No --srcdir option.  We are building in place.
 
25867
    ac_srcdir=.
 
25868
    if test -z "$ac_top_builddir"; then
 
25869
       ac_top_srcdir=.
 
25870
    else
 
25871
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25872
    fi ;;
 
25873
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25874
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25875
    ac_top_srcdir=$srcdir ;;
 
25876
  *) # Relative path.
 
25877
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25878
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25879
esac
 
25880
 
 
25881
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25882
# the directories may not exist.
 
25883
case `pwd` in
 
25884
.) ac_abs_builddir="$ac_dir";;
 
25885
*)
 
25886
  case "$ac_dir" in
 
25887
  .) ac_abs_builddir=`pwd`;;
 
25888
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25889
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25890
  esac;;
 
25891
esac
 
25892
case $ac_abs_builddir in
 
25893
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25894
*)
 
25895
  case ${ac_top_builddir}. in
 
25896
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25897
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25898
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25899
  esac;;
 
25900
esac
 
25901
case $ac_abs_builddir in
 
25902
.) ac_abs_srcdir=$ac_srcdir;;
 
25903
*)
 
25904
  case $ac_srcdir in
 
25905
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25906
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25907
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25908
  esac;;
 
25909
esac
 
25910
case $ac_abs_builddir in
 
25911
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25912
*)
 
25913
  case $ac_top_srcdir in
 
25914
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25915
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25916
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25917
  esac;;
 
25918
esac
 
25919
 
 
25920
 
 
25921
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
25922
echo "$as_me: executing $ac_dest commands" >&6;}
 
25923
  case $ac_dest in
 
25924
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
25925
  # Strip MF so we end up with the name of the file.
 
25926
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25927
  # Check whether this is an Automake generated Makefile or not.
 
25928
  # We used to match only the files named `Makefile.in', but
 
25929
  # some people rename them; so instead we look at the file content.
 
25930
  # Grep'ing the first line is not enough: some people post-process
 
25931
  # each Makefile.in and add a new line on top of each file to say so.
 
25932
  # So let's grep whole file.
 
25933
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
25934
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
25935
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25936
         X"$mf" : 'X\(//\)[^/]' \| \
 
25937
         X"$mf" : 'X\(//\)$' \| \
 
25938
         X"$mf" : 'X\(/\)' \| \
 
25939
         .     : '\(.\)' 2>/dev/null ||
 
25940
echo X"$mf" |
 
25941
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25942
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25943
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25944
          /^X\(\/\).*/{ s//\1/; q; }
 
25945
          s/.*/./; q'`
 
25946
  else
 
25947
    continue
 
25948
  fi
 
25949
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
25950
  # Extract the definition of DEP_FILES from the Makefile without
 
25951
  # running `make'.
 
25952
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
25953
  test -z "$DEPDIR" && continue
 
25954
  # When using ansi2knr, U may be empty or an underscore; expand it
 
25955
  U=`sed -n 's/^U = //p' < "$mf"`
 
25956
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
25957
  # We invoke sed twice because it is the simplest approach to
 
25958
  # changing $(DEPDIR) to its actual value in the expansion.
 
25959
  for file in `sed -n '
 
25960
    /^DEP_FILES = .*\\\\$/ {
 
25961
      s/^DEP_FILES = //
 
25962
      :loop
 
25963
        s/\\\\$//
 
25964
        p
 
25965
        n
 
25966
        /\\\\$/ b loop
 
25967
      p
 
25968
    }
 
25969
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
25970
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25971
    # Make sure the directory exists.
 
25972
    test -f "$dirpart/$file" && continue
 
25973
    fdir=`(dirname "$file") 2>/dev/null ||
 
25974
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25975
         X"$file" : 'X\(//\)[^/]' \| \
 
25976
         X"$file" : 'X\(//\)$' \| \
 
25977
         X"$file" : 'X\(/\)' \| \
 
25978
         .     : '\(.\)' 2>/dev/null ||
 
25979
echo X"$file" |
 
25980
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25981
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25982
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25983
          /^X\(\/\).*/{ s//\1/; q; }
 
25984
          s/.*/./; q'`
 
25985
    { if $as_mkdir_p; then
 
25986
    mkdir -p $dirpart/$fdir
 
25987
  else
 
25988
    as_dir=$dirpart/$fdir
 
25989
    as_dirs=
 
25990
    while test ! -d "$as_dir"; do
 
25991
      as_dirs="$as_dir $as_dirs"
 
25992
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25993
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25994
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25995
         X"$as_dir" : 'X\(//\)$' \| \
 
25996
         X"$as_dir" : 'X\(/\)' \| \
 
25997
         .     : '\(.\)' 2>/dev/null ||
 
25998
echo X"$as_dir" |
 
25999
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26000
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26001
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26002
          /^X\(\/\).*/{ s//\1/; q; }
 
26003
          s/.*/./; q'`
 
26004
    done
 
26005
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26006
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
26007
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
26008
   { (exit 1); exit 1; }; }; }
 
26009
 
 
26010
    # echo "creating $dirpart/$file"
 
26011
    echo '# dummy' > "$dirpart/$file"
 
26012
  done
 
26013
done
 
26014
 ;;
 
26015
  esac
 
26016
done
 
26017
_ACEOF
 
26018
 
 
26019
cat >>$CONFIG_STATUS <<\_ACEOF
 
26020
 
 
26021
{ (exit 0); exit 0; }
 
26022
_ACEOF
 
26023
chmod +x $CONFIG_STATUS
 
26024
ac_clean_files=$ac_clean_files_save
 
26025
 
 
26026
 
 
26027
# configure is writing to config.log, and then calls config.status.
 
26028
# config.status does its own redirection, appending to config.log.
 
26029
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26030
# by configure, so config.status won't be able to write to it; its
 
26031
# output is simply discarded.  So we exec the FD to /dev/null,
 
26032
# effectively closing config.log, so it can be properly (re)opened and
 
26033
# appended to by config.status.  When coming back to configure, we
 
26034
# need to make the FD available again.
 
26035
if test "$no_create" != yes; then
 
26036
  ac_cs_success=:
 
26037
  ac_config_status_args=
 
26038
  test "$silent" = yes &&
 
26039
    ac_config_status_args="$ac_config_status_args --quiet"
 
26040
  exec 5>/dev/null
 
26041
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26042
  exec 5>>config.log
 
26043
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26044
  # would make configure fail if this is the last instruction.
 
26045
  $ac_cs_success || { (exit 1); exit 1; }
 
26046
fi
 
26047