~ubuntu-branches/ubuntu/breezy/malaga/breezy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2005-01-10 11:52:04 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110115204-hpgncw5pb0m1t8i6
Tags: 6.13-5
debian/control (malaga-doc Recommends): Suggest gv as a
postscript-viewer instead of ghostview.  (Closes: #289701).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.57.
6
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
6
# Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
8
8
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
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
 
 
24
# Support unset when possible.
 
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  as_mkdir_p=false
 
222
fi
 
223
 
 
224
as_executable_p="test -f"
 
225
 
 
226
# Sed expression to map a string onto a valid CPP name.
 
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
 
 
229
# Sed expression to map a string onto a valid variable name.
 
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
 
 
232
 
 
233
# IFS
 
234
# We need space, tab and new line, in precisely that order.
 
235
as_nl='
 
236
'
 
237
IFS="   $as_nl"
 
238
 
 
239
# CDPATH.
 
240
$as_unset CDPATH
 
241
 
 
242
 
 
243
# Find the correct PATH separator.  Usually this is `:', but
 
244
# DJGPP uses `;' like DOS.
 
245
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
246
  UNAME=${UNAME-`uname 2>/dev/null`}
 
247
  case X$UNAME in
 
248
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
249
    *)     lt_cv_sys_path_separator=':' ;;
 
250
  esac
 
251
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
252
fi
 
253
 
 
254
 
 
255
# Check that we are running under the correct shell.
 
256
SHELL=${CONFIG_SHELL-/bin/sh}
 
257
 
 
258
case X$ECHO in
 
259
X*--fallback-echo)
 
260
  # Remove one level of quotation (which was required for Make).
 
261
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
262
  ;;
 
263
esac
 
264
 
 
265
echo=${ECHO-echo}
 
266
if test "X$1" = X--no-reexec; then
 
267
  # Discard the --no-reexec flag, and continue.
 
268
  shift
 
269
elif test "X$1" = X--fallback-echo; then
 
270
  # Avoid inline document here, it may be left over
 
271
  :
 
272
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
273
  # Yippee, $echo works!
 
274
  :
 
275
else
 
276
  # Restart under the correct shell.
 
277
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
278
fi
 
279
 
 
280
if test "X$1" = X--fallback-echo; then
 
281
  # used as fallback echo
 
282
  shift
 
283
  cat <<EOF
 
284
 
 
285
EOF
 
286
  exit 0
 
287
fi
 
288
 
 
289
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
290
# if CDPATH is set.
 
291
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
292
 
 
293
if test -z "$ECHO"; then
 
294
if test "X${echo_test_string+set}" != Xset; then
 
295
# find a string as large as possible, as long as the shell can cope with it
 
296
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
297
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
298
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
299
       echo_test_string="`eval $cmd`" &&
 
300
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
301
    then
 
302
      break
 
303
    fi
 
304
  done
 
305
fi
 
306
 
 
307
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
308
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
309
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
310
  :
 
311
else
 
312
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
313
  # backslashes.  This makes it impossible to quote backslashes using
 
314
  #   echo "$something" | sed 's/\\/\\\\/g'
 
315
  #
 
316
  # So, first we look for a working echo in the user's PATH.
 
317
 
 
318
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
319
  for dir in $PATH /usr/ucb; do
 
320
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
321
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
322
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
323
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
324
      echo="$dir/echo"
 
325
      break
 
326
    fi
 
327
  done
 
328
  IFS="$save_ifs"
 
329
 
 
330
  if test "X$echo" = Xecho; then
 
331
    # We didn't find a better echo, so look for alternatives.
 
332
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
333
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
334
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
335
      # This shell has a builtin print -r that does the trick.
 
336
      echo='print -r'
 
337
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
338
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
339
      # If we have ksh, try running configure again with it.
 
340
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
341
      export ORIGINAL_CONFIG_SHELL
 
342
      CONFIG_SHELL=/bin/ksh
 
343
      export CONFIG_SHELL
 
344
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
345
    else
 
346
      # Try using printf.
 
347
      echo='printf %s\n'
 
348
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
349
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
350
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
351
        # Cool, printf works
 
352
        :
 
353
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
358
        export CONFIG_SHELL
 
359
        SHELL="$CONFIG_SHELL"
 
360
        export SHELL
 
361
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
362
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
363
           test "X$echo_testing_string" = 'X\t' &&
 
364
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
365
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
366
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
367
      else
 
368
        # maybe with a smaller string...
 
369
        prev=:
 
370
 
 
371
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
372
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
373
          then
 
374
            break
 
375
          fi
 
376
          prev="$cmd"
 
377
        done
 
378
 
 
379
        if test "$prev" != 'sed 50q "$0"'; then
 
380
          echo_test_string=`eval $prev`
 
381
          export echo_test_string
 
382
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
383
        else
 
384
          # Oops.  We lost completely, so just stick with echo.
 
385
          echo=echo
 
386
        fi
 
387
      fi
 
388
    fi
 
389
  fi
 
390
fi
 
391
fi
 
392
 
 
393
# Copy echo and quote the copy suitably for passing to libtool from
 
394
# the Makefile, instead of quoting the original, which is used later.
 
395
ECHO=$echo
 
396
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
397
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
398
fi
 
399
 
 
400
 
 
401
 
 
402
# Name of the host.
 
403
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
404
# so uname gets run too.
 
405
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
406
 
 
407
exec 6>&1
 
408
 
 
409
#
 
410
# Initializations.
 
411
#
12
412
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-hangul           Create a version for the Hangul character set"
16
 
ac_help="$ac_help
17
 
  --with-debug           Create a version for debugging"
18
 
ac_help="$ac_help
19
 
  --with-x                use the X Window System"
 
413
ac_config_libobj_dir=.
 
414
cross_compiling=no
 
415
subdirs=
 
416
MFLAGS=
 
417
MAKEFLAGS=
 
418
SHELL=${CONFIG_SHELL-/bin/sh}
 
419
 
 
420
# Maximum number of lines to put in a shell here document.
 
421
# This variable seems obsolete.  It should probably be removed, and
 
422
# only ac_max_sed_lines should be used.
 
423
: ${ac_max_here_lines=38}
 
424
 
 
425
# Identity of this package.
 
426
PACKAGE_NAME=
 
427
PACKAGE_TARNAME=
 
428
PACKAGE_VERSION=
 
429
PACKAGE_STRING=
 
430
PACKAGE_BUGREPORT=
 
431
 
 
432
ac_unique_file="malaga.c"
 
433
# Factoring default headers for most tests.
 
434
ac_includes_default="\
 
435
#include <stdio.h>
 
436
#if HAVE_SYS_TYPES_H
 
437
# include <sys/types.h>
 
438
#endif
 
439
#if HAVE_SYS_STAT_H
 
440
# include <sys/stat.h>
 
441
#endif
 
442
#if STDC_HEADERS
 
443
# include <stdlib.h>
 
444
# include <stddef.h>
 
445
#else
 
446
# if HAVE_STDLIB_H
 
447
#  include <stdlib.h>
 
448
# endif
 
449
#endif
 
450
#if HAVE_STRING_H
 
451
# if !STDC_HEADERS && HAVE_MEMORY_H
 
452
#  include <memory.h>
 
453
# endif
 
454
# include <string.h>
 
455
#endif
 
456
#if HAVE_STRINGS_H
 
457
# include <strings.h>
 
458
#endif
 
459
#if HAVE_INTTYPES_H
 
460
# include <inttypes.h>
 
461
#else
 
462
# if HAVE_STDINT_H
 
463
#  include <stdint.h>
 
464
# endif
 
465
#endif
 
466
#if HAVE_UNISTD_H
 
467
# include <unistd.h>
 
468
#endif"
 
469
 
 
470
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL GCCFLAGS MALSHOW GTK_CONFIG SYS_CFLAGS LIBOBJS LTLIBOBJS'
 
471
ac_subst_files=''
20
472
 
21
473
# Initialize some variables set by options.
 
474
ac_init_help=
 
475
ac_init_version=false
22
476
# The variables have the same names as the options, with
23
477
# dashes changed to underlines.
24
 
build=NONE
25
 
cache_file=./config.cache
 
478
cache_file=/dev/null
26
479
exec_prefix=NONE
27
 
host=NONE
28
480
no_create=
29
 
nonopt=NONE
30
481
no_recursion=
31
482
prefix=NONE
32
483
program_prefix=NONE
35
486
silent=
36
487
site=
37
488
srcdir=
38
 
target=NONE
39
489
verbose=
40
490
x_includes=NONE
41
491
x_libraries=NONE
 
492
 
 
493
# Installation directory options.
 
494
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
495
# and all the variables that are supposed to be based on exec_prefix
 
496
# by default will actually change.
 
497
# Use braces instead of parens because sh, perl, etc. also accept them.
42
498
bindir='${exec_prefix}/bin'
43
499
sbindir='${exec_prefix}/sbin'
44
500
libexecdir='${exec_prefix}/libexec'
52
508
infodir='${prefix}/info'
53
509
mandir='${prefix}/man'
54
510
 
55
 
# Initialize some other variables.
56
 
subdirs=
57
 
MFLAGS= MAKEFLAGS=
58
 
SHELL=${CONFIG_SHELL-/bin/sh}
59
 
# Maximum number of lines to put in a shell here document.
60
 
ac_max_here_lines=12
61
 
 
62
511
ac_prev=
63
512
for ac_option
64
513
do
65
 
 
66
514
  # If the previous option needs an argument, assign it.
67
515
  if test -n "$ac_prev"; then
68
516
    eval "$ac_prev=\$ac_option"
70
518
    continue
71
519
  fi
72
520
 
73
 
  case "$ac_option" in
74
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75
 
  *) ac_optarg= ;;
76
 
  esac
 
521
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
77
522
 
78
523
  # Accept the important Cygnus configure options, so we can diagnose typos.
79
524
 
80
 
  case "$ac_option" in
 
525
  case $ac_option in
81
526
 
82
527
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
83
528
    ac_prev=bindir ;;
84
529
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85
 
    bindir="$ac_optarg" ;;
 
530
    bindir=$ac_optarg ;;
86
531
 
87
532
  -build | --build | --buil | --bui | --bu)
88
 
    ac_prev=build ;;
 
533
    ac_prev=build_alias ;;
89
534
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90
 
    build="$ac_optarg" ;;
 
535
    build_alias=$ac_optarg ;;
91
536
 
92
537
  -cache-file | --cache-file | --cache-fil | --cache-fi \
93
538
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94
539
    ac_prev=cache_file ;;
95
540
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96
541
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97
 
    cache_file="$ac_optarg" ;;
 
542
    cache_file=$ac_optarg ;;
 
543
 
 
544
  --config-cache | -C)
 
545
    cache_file=config.cache ;;
98
546
 
99
547
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100
548
    ac_prev=datadir ;;
101
549
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102
550
  | --da=*)
103
 
    datadir="$ac_optarg" ;;
 
551
    datadir=$ac_optarg ;;
104
552
 
105
553
  -disable-* | --disable-*)
106
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
554
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
107
555
    # Reject names that are not valid shell variable names.
108
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110
 
    fi
111
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112
 
    eval "enable_${ac_feature}=no" ;;
 
556
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
557
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
558
   { (exit 1); exit 1; }; }
 
559
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
560
    eval "enable_$ac_feature=no" ;;
113
561
 
114
562
  -enable-* | --enable-*)
115
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
563
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
116
564
    # Reject names that are not valid shell variable names.
117
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119
 
    fi
120
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121
 
    case "$ac_option" in
122
 
      *=*) ;;
 
565
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
566
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
567
   { (exit 1); exit 1; }; }
 
568
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
569
    case $ac_option in
 
570
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
123
571
      *) ac_optarg=yes ;;
124
572
    esac
125
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
573
    eval "enable_$ac_feature='$ac_optarg'" ;;
126
574
 
127
575
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128
576
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131
579
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132
580
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133
581
  | --exec=* | --exe=* | --ex=*)
134
 
    exec_prefix="$ac_optarg" ;;
 
582
    exec_prefix=$ac_optarg ;;
135
583
 
136
584
  -gas | --gas | --ga | --g)
137
585
    # Obsolete; use --with-gas.
138
586
    with_gas=yes ;;
139
587
 
140
 
  -help | --help | --hel | --he)
141
 
    # Omit some internal or obsolete options to make the list less imposing.
142
 
    # This message is too long to be a string in the A/UX 3.1 sh.
143
 
    cat << EOF
144
 
Usage: configure [options] [host]
145
 
Options: [defaults in brackets after descriptions]
146
 
Configuration:
147
 
  --cache-file=FILE       cache test results in FILE
148
 
  --help                  print this message
149
 
  --no-create             do not create output files
150
 
  --quiet, --silent       do not print \`checking...' messages
151
 
  --version               print the version of autoconf that created configure
152
 
Directory and file names:
153
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
154
 
                          [$ac_default_prefix]
155
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
156
 
                          [same as prefix]
157
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
158
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
159
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
160
 
  --datadir=DIR           read-only architecture-independent data in DIR
161
 
                          [PREFIX/share]
162
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
163
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
164
 
                          [PREFIX/com]
165
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
166
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
167
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
168
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
169
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
170
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
171
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
172
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
173
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
174
 
  --program-transform-name=PROGRAM
175
 
                          run sed PROGRAM on installed program names
176
 
EOF
177
 
    cat << EOF
178
 
Host type:
179
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
180
 
  --host=HOST             configure for HOST [guessed]
181
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
182
 
Features and packages:
183
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
184
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
185
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
186
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
187
 
  --x-includes=DIR        X include files are in DIR
188
 
  --x-libraries=DIR       X library files are in DIR
189
 
EOF
190
 
    if test -n "$ac_help"; then
191
 
      echo "--enable and --with options recognized:$ac_help"
192
 
    fi
193
 
    exit 0 ;;
 
588
  -help | --help | --hel | --he | -h)
 
589
    ac_init_help=long ;;
 
590
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
591
    ac_init_help=recursive ;;
 
592
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
593
    ac_init_help=short ;;
194
594
 
195
595
  -host | --host | --hos | --ho)
196
 
    ac_prev=host ;;
 
596
    ac_prev=host_alias ;;
197
597
  -host=* | --host=* | --hos=* | --ho=*)
198
 
    host="$ac_optarg" ;;
 
598
    host_alias=$ac_optarg ;;
199
599
 
200
600
  -includedir | --includedir | --includedi | --included | --include \
201
601
  | --includ | --inclu | --incl | --inc)
202
602
    ac_prev=includedir ;;
203
603
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204
604
  | --includ=* | --inclu=* | --incl=* | --inc=*)
205
 
    includedir="$ac_optarg" ;;
 
605
    includedir=$ac_optarg ;;
206
606
 
207
607
  -infodir | --infodir | --infodi | --infod | --info | --inf)
208
608
    ac_prev=infodir ;;
209
609
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210
 
    infodir="$ac_optarg" ;;
 
610
    infodir=$ac_optarg ;;
211
611
 
212
612
  -libdir | --libdir | --libdi | --libd)
213
613
    ac_prev=libdir ;;
214
614
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
215
 
    libdir="$ac_optarg" ;;
 
615
    libdir=$ac_optarg ;;
216
616
 
217
617
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218
618
  | --libexe | --libex | --libe)
219
619
    ac_prev=libexecdir ;;
220
620
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221
621
  | --libexe=* | --libex=* | --libe=*)
222
 
    libexecdir="$ac_optarg" ;;
 
622
    libexecdir=$ac_optarg ;;
223
623
 
224
624
  -localstatedir | --localstatedir | --localstatedi | --localstated \
225
625
  | --localstate | --localstat | --localsta | --localst \
228
628
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229
629
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230
630
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231
 
    localstatedir="$ac_optarg" ;;
 
631
    localstatedir=$ac_optarg ;;
232
632
 
233
633
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234
634
    ac_prev=mandir ;;
235
635
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236
 
    mandir="$ac_optarg" ;;
 
636
    mandir=$ac_optarg ;;
237
637
 
238
638
  -nfp | --nfp | --nf)
239
639
    # Obsolete; use --without-fp.
240
640
    with_fp=no ;;
241
641
 
242
642
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243
 
  | --no-cr | --no-c)
 
643
  | --no-cr | --no-c | -n)
244
644
    no_create=yes ;;
245
645
 
246
646
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254
654
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255
655
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256
656
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257
 
    oldincludedir="$ac_optarg" ;;
 
657
    oldincludedir=$ac_optarg ;;
258
658
 
259
659
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260
660
    ac_prev=prefix ;;
261
661
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262
 
    prefix="$ac_optarg" ;;
 
662
    prefix=$ac_optarg ;;
263
663
 
264
664
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
265
665
  | --program-pre | --program-pr | --program-p)
266
666
    ac_prev=program_prefix ;;
267
667
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
268
668
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269
 
    program_prefix="$ac_optarg" ;;
 
669
    program_prefix=$ac_optarg ;;
270
670
 
271
671
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
272
672
  | --program-suf | --program-su | --program-s)
273
673
    ac_prev=program_suffix ;;
274
674
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
275
675
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276
 
    program_suffix="$ac_optarg" ;;
 
676
    program_suffix=$ac_optarg ;;
277
677
 
278
678
  -program-transform-name | --program-transform-name \
279
679
  | --program-transform-nam | --program-transform-na \
290
690
  | --program-transfo=* | --program-transf=* \
291
691
  | --program-trans=* | --program-tran=* \
292
692
  | --progr-tra=* | --program-tr=* | --program-t=*)
293
 
    program_transform_name="$ac_optarg" ;;
 
693
    program_transform_name=$ac_optarg ;;
294
694
 
295
695
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296
696
  | -silent | --silent | --silen | --sile | --sil)
300
700
    ac_prev=sbindir ;;
301
701
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302
702
  | --sbi=* | --sb=*)
303
 
    sbindir="$ac_optarg" ;;
 
703
    sbindir=$ac_optarg ;;
304
704
 
305
705
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
306
706
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311
711
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312
712
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313
713
  | --sha=* | --sh=*)
314
 
    sharedstatedir="$ac_optarg" ;;
 
714
    sharedstatedir=$ac_optarg ;;
315
715
 
316
716
  -site | --site | --sit)
317
717
    ac_prev=site ;;
318
718
  -site=* | --site=* | --sit=*)
319
 
    site="$ac_optarg" ;;
 
719
    site=$ac_optarg ;;
320
720
 
321
721
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322
722
    ac_prev=srcdir ;;
323
723
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324
 
    srcdir="$ac_optarg" ;;
 
724
    srcdir=$ac_optarg ;;
325
725
 
326
726
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327
727
  | --syscon | --sysco | --sysc | --sys | --sy)
328
728
    ac_prev=sysconfdir ;;
329
729
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330
730
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331
 
    sysconfdir="$ac_optarg" ;;
 
731
    sysconfdir=$ac_optarg ;;
332
732
 
333
733
  -target | --target | --targe | --targ | --tar | --ta | --t)
334
 
    ac_prev=target ;;
 
734
    ac_prev=target_alias ;;
335
735
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336
 
    target="$ac_optarg" ;;
 
736
    target_alias=$ac_optarg ;;
337
737
 
338
738
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
339
739
    verbose=yes ;;
340
740
 
341
 
  -version | --version | --versio | --versi | --vers)
342
 
    echo "configure generated by autoconf version 2.13"
343
 
    exit 0 ;;
 
741
  -version | --version | --versio | --versi | --vers | -V)
 
742
    ac_init_version=: ;;
344
743
 
345
744
  -with-* | --with-*)
346
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
745
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
347
746
    # Reject names that are not valid shell variable names.
348
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350
 
    fi
 
747
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
748
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
749
   { (exit 1); exit 1; }; }
351
750
    ac_package=`echo $ac_package| sed 's/-/_/g'`
352
 
    case "$ac_option" in
353
 
      *=*) ;;
 
751
    case $ac_option in
 
752
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
354
753
      *) ac_optarg=yes ;;
355
754
    esac
356
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
755
    eval "with_$ac_package='$ac_optarg'" ;;
357
756
 
358
757
  -without-* | --without-*)
359
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
758
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
360
759
    # Reject names that are not valid shell variable names.
361
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363
 
    fi
364
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
365
 
    eval "with_${ac_package}=no" ;;
 
760
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
761
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
762
   { (exit 1); exit 1; }; }
 
763
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
764
    eval "with_$ac_package=no" ;;
366
765
 
367
766
  --x)
368
767
    # Obsolete; use --with-x.
373
772
    ac_prev=x_includes ;;
374
773
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375
774
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376
 
    x_includes="$ac_optarg" ;;
 
775
    x_includes=$ac_optarg ;;
377
776
 
378
777
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
379
778
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380
779
    ac_prev=x_libraries ;;
381
780
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382
781
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383
 
    x_libraries="$ac_optarg" ;;
 
782
    x_libraries=$ac_optarg ;;
384
783
 
385
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
784
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
785
Try \`$0 --help' for more information." >&2
 
786
   { (exit 1); exit 1; }; }
386
787
    ;;
387
788
 
 
789
  *=*)
 
790
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
791
    # Reject names that are not valid shell variable names.
 
792
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
793
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
794
   { (exit 1); exit 1; }; }
 
795
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
796
    eval "$ac_envvar='$ac_optarg'"
 
797
    export $ac_envvar ;;
 
798
 
388
799
  *)
389
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
391
 
    fi
392
 
    if test "x$nonopt" != xNONE; then
393
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394
 
    fi
395
 
    nonopt="$ac_option"
 
800
    # FIXME: should be removed in autoconf 3.0.
 
801
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
802
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
803
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
804
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
396
805
    ;;
397
806
 
398
807
  esac
399
808
done
400
809
 
401
810
if test -n "$ac_prev"; then
402
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403
 
fi
404
 
 
405
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406
 
 
407
 
# File descriptor usage:
408
 
# 0 standard input
409
 
# 1 file creation
410
 
# 2 errors and warnings
411
 
# 3 some systems may open it to /dev/tty
412
 
# 4 used on the Kubota Titan
413
 
# 6 checking for... messages and results
414
 
# 5 compiler messages saved in config.log
415
 
if test "$silent" = yes; then
416
 
  exec 6>/dev/null
417
 
else
418
 
  exec 6>&1
419
 
fi
420
 
exec 5>./config.log
421
 
 
422
 
echo "\
423
 
This file contains any messages produced by compilers while
424
 
running configure, to aid debugging if configure makes a mistake.
425
 
" 1>&5
426
 
 
427
 
# Strip out --no-create and --no-recursion so they do not pile up.
428
 
# Also quote any args containing shell metacharacters.
429
 
ac_configure_args=
430
 
for ac_arg
431
 
do
432
 
  case "$ac_arg" in
433
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434
 
  | --no-cr | --no-c) ;;
435
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440
 
  esac
441
 
done
442
 
 
443
 
# NLS nuisances.
444
 
# Only set these to C if already set.  These must not be set unconditionally
445
 
# because not all systems understand e.g. LANG=C (notably SCO).
446
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447
 
# Non-C LC_CTYPE values break the ctype check.
448
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
449
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
452
 
 
453
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
454
 
rm -rf conftest* confdefs.h
455
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456
 
echo > confdefs.h
457
 
 
458
 
# A filename unique to this package, relative to the directory that
459
 
# configure is in, which we can look for to find out if srcdir is correct.
460
 
ac_unique_file=source/malaga.c
 
811
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
812
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
813
   { (exit 1); exit 1; }; }
 
814
fi
 
815
 
 
816
# Be sure to have absolute paths.
 
817
for ac_var in exec_prefix prefix
 
818
do
 
819
  eval ac_val=$`echo $ac_var`
 
820
  case $ac_val in
 
821
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
822
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
823
   { (exit 1); exit 1; }; };;
 
824
  esac
 
825
done
 
826
 
 
827
# Be sure to have absolute paths.
 
828
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
829
              localstatedir libdir includedir oldincludedir infodir mandir
 
830
do
 
831
  eval ac_val=$`echo $ac_var`
 
832
  case $ac_val in
 
833
    [\\/$]* | ?:[\\/]* ) ;;
 
834
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
835
   { (exit 1); exit 1; }; };;
 
836
  esac
 
837
done
 
838
 
 
839
# There might be people who depend on the old broken behavior: `$host'
 
840
# used to hold the argument of --host etc.
 
841
# FIXME: To remove some day.
 
842
build=$build_alias
 
843
host=$host_alias
 
844
target=$target_alias
 
845
 
 
846
# FIXME: To remove some day.
 
847
if test "x$host_alias" != x; then
 
848
  if test "x$build_alias" = x; then
 
849
    cross_compiling=maybe
 
850
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
851
    If a cross compiler is detected then cross compile mode will be used." >&2
 
852
  elif test "x$build_alias" != "x$host_alias"; then
 
853
    cross_compiling=yes
 
854
  fi
 
855
fi
 
856
 
 
857
ac_tool_prefix=
 
858
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
859
 
 
860
test "$silent" = yes && exec 6>/dev/null
 
861
 
461
862
 
462
863
# Find the source files, if location was not specified.
463
864
if test -z "$srcdir"; then
464
865
  ac_srcdir_defaulted=yes
465
866
  # Try the directory containing this script, then its parent.
466
 
  ac_prog=$0
467
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
867
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
868
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
869
         X"$0" : 'X\(//\)[^/]' \| \
 
870
         X"$0" : 'X\(//\)$' \| \
 
871
         X"$0" : 'X\(/\)' \| \
 
872
         .     : '\(.\)' 2>/dev/null ||
 
873
echo X"$0" |
 
874
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
875
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
876
          /^X\(\/\/\)$/{ s//\1/; q; }
 
877
          /^X\(\/\).*/{ s//\1/; q; }
 
878
          s/.*/./; q'`
469
879
  srcdir=$ac_confdir
470
880
  if test ! -r $srcdir/$ac_unique_file; then
471
881
    srcdir=..
475
885
fi
476
886
if test ! -r $srcdir/$ac_unique_file; then
477
887
  if test "$ac_srcdir_defaulted" = yes; then
478
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
889
   { (exit 1); exit 1; }; }
479
890
  else
480
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
891
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
892
   { (exit 1); exit 1; }; }
481
893
  fi
482
894
fi
483
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
 
 
 
895
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
896
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
897
   { (exit 1); exit 1; }; }
 
898
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
899
ac_env_build_alias_set=${build_alias+set}
 
900
ac_env_build_alias_value=$build_alias
 
901
ac_cv_env_build_alias_set=${build_alias+set}
 
902
ac_cv_env_build_alias_value=$build_alias
 
903
ac_env_host_alias_set=${host_alias+set}
 
904
ac_env_host_alias_value=$host_alias
 
905
ac_cv_env_host_alias_set=${host_alias+set}
 
906
ac_cv_env_host_alias_value=$host_alias
 
907
ac_env_target_alias_set=${target_alias+set}
 
908
ac_env_target_alias_value=$target_alias
 
909
ac_cv_env_target_alias_set=${target_alias+set}
 
910
ac_cv_env_target_alias_value=$target_alias
 
911
ac_env_CC_set=${CC+set}
 
912
ac_env_CC_value=$CC
 
913
ac_cv_env_CC_set=${CC+set}
 
914
ac_cv_env_CC_value=$CC
 
915
ac_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_env_CFLAGS_value=$CFLAGS
 
917
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
918
ac_cv_env_CFLAGS_value=$CFLAGS
 
919
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_env_LDFLAGS_value=$LDFLAGS
 
921
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
922
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
923
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
926
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
927
ac_env_CPP_set=${CPP+set}
 
928
ac_env_CPP_value=$CPP
 
929
ac_cv_env_CPP_set=${CPP+set}
 
930
ac_cv_env_CPP_value=$CPP
 
931
 
 
932
#
 
933
# Report the --help message.
 
934
#
 
935
if test "$ac_init_help" = "long"; then
 
936
  # Omit some internal or obsolete options to make the list less imposing.
 
937
  # This message is too long to be a string in the A/UX 3.1 sh.
 
938
  cat <<_ACEOF
 
939
\`configure' configures this package to adapt to many kinds of systems.
 
940
 
 
941
Usage: $0 [OPTION]... [VAR=VALUE]...
 
942
 
 
943
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
944
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
945
 
 
946
Defaults for the options are specified in brackets.
 
947
 
 
948
Configuration:
 
949
  -h, --help              display this help and exit
 
950
      --help=short        display options specific to this package
 
951
      --help=recursive    display the short help of all the included packages
 
952
  -V, --version           display version information and exit
 
953
  -q, --quiet, --silent   do not print \`checking...' messages
 
954
      --cache-file=FILE   cache test results in FILE [disabled]
 
955
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
956
  -n, --no-create         do not create output files
 
957
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
958
 
 
959
_ACEOF
 
960
 
 
961
  cat <<_ACEOF
 
962
Installation directories:
 
963
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
964
                          [$ac_default_prefix]
 
965
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
966
                          [PREFIX]
 
967
 
 
968
By default, \`make install' will install all the files in
 
969
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
970
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
971
for instance \`--prefix=\$HOME'.
 
972
 
 
973
For better control, use the options below.
 
974
 
 
975
Fine tuning of the installation directories:
 
976
  --bindir=DIR           user executables [EPREFIX/bin]
 
977
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
978
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
979
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
980
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
981
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
982
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
983
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
984
  --includedir=DIR       C header files [PREFIX/include]
 
985
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
986
  --infodir=DIR          info documentation [PREFIX/info]
 
987
  --mandir=DIR           man documentation [PREFIX/man]
 
988
_ACEOF
 
989
 
 
990
  cat <<\_ACEOF
 
991
 
 
992
System types:
 
993
  --build=BUILD     configure for building on BUILD [guessed]
 
994
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
995
_ACEOF
 
996
fi
 
997
 
 
998
if test -n "$ac_init_help"; then
 
999
 
 
1000
  cat <<\_ACEOF
 
1001
 
 
1002
Optional Features:
 
1003
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1004
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1005
  --enable-shared=PKGS  build shared libraries default=yes
 
1006
  --enable-static=PKGS  build static libraries default=yes
 
1007
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1008
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1009
 
 
1010
Optional Packages:
 
1011
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1012
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1013
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1014
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1015
 
 
1016
Some influential environment variables:
 
1017
  CC          C compiler command
 
1018
  CFLAGS      C compiler flags
 
1019
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1020
              nonstandard directory <lib dir>
 
1021
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1022
              headers in a nonstandard directory <include dir>
 
1023
  CPP         C preprocessor
 
1024
 
 
1025
Use these variables to override the choices made by `configure' or to help
 
1026
it to find libraries and programs with nonstandard names/locations.
 
1027
 
 
1028
_ACEOF
 
1029
fi
 
1030
 
 
1031
if test "$ac_init_help" = "recursive"; then
 
1032
  # If there are subdirs, report their specific --help.
 
1033
  ac_popdir=`pwd`
 
1034
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1035
    test -d $ac_dir || continue
 
1036
    ac_builddir=.
 
1037
 
 
1038
if test "$ac_dir" != .; then
 
1039
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1040
  # A "../" for each directory in $ac_dir_suffix.
 
1041
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1042
else
 
1043
  ac_dir_suffix= ac_top_builddir=
 
1044
fi
 
1045
 
 
1046
case $srcdir in
 
1047
  .)  # No --srcdir option.  We are building in place.
 
1048
    ac_srcdir=.
 
1049
    if test -z "$ac_top_builddir"; then
 
1050
       ac_top_srcdir=.
 
1051
    else
 
1052
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1053
    fi ;;
 
1054
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1055
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1056
    ac_top_srcdir=$srcdir ;;
 
1057
  *) # Relative path.
 
1058
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1059
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1060
esac
 
1061
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1062
# absolute.
 
1063
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1064
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
1065
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1066
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1067
 
 
1068
    cd $ac_dir
 
1069
    # Check for guested configure; otherwise get Cygnus style configure.
 
1070
    if test -f $ac_srcdir/configure.gnu; then
 
1071
      echo
 
1072
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1073
    elif test -f $ac_srcdir/configure; then
 
1074
      echo
 
1075
      $SHELL $ac_srcdir/configure  --help=recursive
 
1076
    elif test -f $ac_srcdir/configure.ac ||
 
1077
           test -f $ac_srcdir/configure.in; then
 
1078
      echo
 
1079
      $ac_configure --help
 
1080
    else
 
1081
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1082
    fi
 
1083
    cd $ac_popdir
 
1084
  done
 
1085
fi
 
1086
 
 
1087
test -n "$ac_init_help" && exit 0
 
1088
if $ac_init_version; then
 
1089
  cat <<\_ACEOF
 
1090
 
 
1091
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
1092
Free Software Foundation, Inc.
 
1093
This configure script is free software; the Free Software Foundation
 
1094
gives unlimited permission to copy, distribute and modify it.
 
1095
_ACEOF
 
1096
  exit 0
 
1097
fi
 
1098
exec 5>config.log
 
1099
cat >&5 <<_ACEOF
 
1100
This file contains any messages produced by compilers while
 
1101
running configure, to aid debugging if configure makes a mistake.
 
1102
 
 
1103
It was created by $as_me, which was
 
1104
generated by GNU Autoconf 2.57.  Invocation command line was
 
1105
 
 
1106
  $ $0 $@
 
1107
 
 
1108
_ACEOF
 
1109
{
 
1110
cat <<_ASUNAME
 
1111
## --------- ##
 
1112
## Platform. ##
 
1113
## --------- ##
 
1114
 
 
1115
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1116
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1117
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1118
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1119
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1120
 
 
1121
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1122
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1123
 
 
1124
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1125
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1126
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1127
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1128
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1129
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1130
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1131
 
 
1132
_ASUNAME
 
1133
 
 
1134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1135
for as_dir in $PATH
 
1136
do
 
1137
  IFS=$as_save_IFS
 
1138
  test -z "$as_dir" && as_dir=.
 
1139
  echo "PATH: $as_dir"
 
1140
done
 
1141
 
 
1142
} >&5
 
1143
 
 
1144
cat >&5 <<_ACEOF
 
1145
 
 
1146
 
 
1147
## ----------- ##
 
1148
## Core tests. ##
 
1149
## ----------- ##
 
1150
 
 
1151
_ACEOF
 
1152
 
 
1153
 
 
1154
# Keep a trace of the command line.
 
1155
# Strip out --no-create and --no-recursion so they do not pile up.
 
1156
# Strip out --silent because we don't want to record it for future runs.
 
1157
# Also quote any args containing shell meta-characters.
 
1158
# Make two passes to allow for proper duplicate-argument suppression.
 
1159
ac_configure_args=
 
1160
ac_configure_args0=
 
1161
ac_configure_args1=
 
1162
ac_sep=
 
1163
ac_must_keep_next=false
 
1164
for ac_pass in 1 2
 
1165
do
 
1166
  for ac_arg
 
1167
  do
 
1168
    case $ac_arg in
 
1169
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1170
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1171
    | -silent | --silent | --silen | --sile | --sil)
 
1172
      continue ;;
 
1173
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1174
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1175
    esac
 
1176
    case $ac_pass in
 
1177
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1178
    2)
 
1179
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1180
      if test $ac_must_keep_next = true; then
 
1181
        ac_must_keep_next=false # Got value, back to normal.
 
1182
      else
 
1183
        case $ac_arg in
 
1184
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1185
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1186
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1187
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1188
            case "$ac_configure_args0 " in
 
1189
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1190
            esac
 
1191
            ;;
 
1192
          -* ) ac_must_keep_next=true ;;
 
1193
        esac
 
1194
      fi
 
1195
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1196
      # Get rid of the leading space.
 
1197
      ac_sep=" "
 
1198
      ;;
 
1199
    esac
 
1200
  done
 
1201
done
 
1202
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1203
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1204
 
 
1205
# When interrupted or exit'd, cleanup temporary files, and complete
 
1206
# config.log.  We remove comments because anyway the quotes in there
 
1207
# would cause problems or look ugly.
 
1208
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1209
# such as our DU 5.0 friend, will then `close' the trap.
 
1210
trap 'exit_status=$?
 
1211
  # Save into config.log some information that might help in debugging.
 
1212
  {
 
1213
    echo
 
1214
 
 
1215
    cat <<\_ASBOX
 
1216
## ---------------- ##
 
1217
## Cache variables. ##
 
1218
## ---------------- ##
 
1219
_ASBOX
 
1220
    echo
 
1221
    # The following way of writing the cache mishandles newlines in values,
 
1222
{
 
1223
  (set) 2>&1 |
 
1224
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1225
    *ac_space=\ *)
 
1226
      sed -n \
 
1227
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1228
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1229
      ;;
 
1230
    *)
 
1231
      sed -n \
 
1232
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1233
      ;;
 
1234
    esac;
 
1235
}
 
1236
    echo
 
1237
 
 
1238
    cat <<\_ASBOX
 
1239
## ----------------- ##
 
1240
## Output variables. ##
 
1241
## ----------------- ##
 
1242
_ASBOX
 
1243
    echo
 
1244
    for ac_var in $ac_subst_vars
 
1245
    do
 
1246
      eval ac_val=$`echo $ac_var`
 
1247
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1248
    done | sort
 
1249
    echo
 
1250
 
 
1251
    if test -n "$ac_subst_files"; then
 
1252
      cat <<\_ASBOX
 
1253
## ------------- ##
 
1254
## Output files. ##
 
1255
## ------------- ##
 
1256
_ASBOX
 
1257
      echo
 
1258
      for ac_var in $ac_subst_files
 
1259
      do
 
1260
        eval ac_val=$`echo $ac_var`
 
1261
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1262
      done | sort
 
1263
      echo
 
1264
    fi
 
1265
 
 
1266
    if test -s confdefs.h; then
 
1267
      cat <<\_ASBOX
 
1268
## ----------- ##
 
1269
## confdefs.h. ##
 
1270
## ----------- ##
 
1271
_ASBOX
 
1272
      echo
 
1273
      sed "/^$/d" confdefs.h | sort
 
1274
      echo
 
1275
    fi
 
1276
    test "$ac_signal" != 0 &&
 
1277
      echo "$as_me: caught signal $ac_signal"
 
1278
    echo "$as_me: exit $exit_status"
 
1279
  } >&5
 
1280
  rm -f core core.* *.core &&
 
1281
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1282
    exit $exit_status
 
1283
     ' 0
 
1284
for ac_signal in 1 2 13 15; do
 
1285
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1286
done
 
1287
ac_signal=0
 
1288
 
 
1289
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1290
rm -rf conftest* confdefs.h
 
1291
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1292
echo >confdefs.h
 
1293
 
 
1294
# Predefined preprocessor variables.
 
1295
 
 
1296
cat >>confdefs.h <<_ACEOF
 
1297
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1298
_ACEOF
 
1299
 
 
1300
 
 
1301
cat >>confdefs.h <<_ACEOF
 
1302
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1303
_ACEOF
 
1304
 
 
1305
 
 
1306
cat >>confdefs.h <<_ACEOF
 
1307
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1308
_ACEOF
 
1309
 
 
1310
 
 
1311
cat >>confdefs.h <<_ACEOF
 
1312
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1313
_ACEOF
 
1314
 
 
1315
 
 
1316
cat >>confdefs.h <<_ACEOF
 
1317
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1318
_ACEOF
 
1319
 
 
1320
 
 
1321
# Let the site file select an alternate cache file if it wants to.
485
1322
# Prefer explicitly selected file to automatically selected ones.
486
1323
if test -z "$CONFIG_SITE"; then
487
1324
  if test "x$prefix" != xNONE; then
492
1329
fi
493
1330
for ac_site_file in $CONFIG_SITE; do
494
1331
  if test -r "$ac_site_file"; then
495
 
    echo "loading site script $ac_site_file"
 
1332
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1333
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1334
    sed 's/^/| /' "$ac_site_file" >&5
496
1335
    . "$ac_site_file"
497
1336
  fi
498
1337
done
499
1338
 
500
1339
if test -r "$cache_file"; then
501
 
  echo "loading cache $cache_file"
502
 
  . $cache_file
503
 
else
504
 
  echo "creating cache $cache_file"
505
 
  > $cache_file
506
 
fi
507
 
 
508
 
ac_ext=c
509
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510
 
ac_cpp='$CPP $CPPFLAGS'
511
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513
 
cross_compiling=$ac_cv_prog_cc_cross
514
 
 
515
 
ac_exeext=
516
 
ac_objext=o
517
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520
 
    ac_n= ac_c='
521
 
' ac_t='        '
522
 
  else
523
 
    ac_n=-n ac_c= ac_t=
524
 
  fi
525
 
else
526
 
  ac_n= ac_c='\c' ac_t=
527
 
fi
528
 
 
529
 
 
530
 
 
531
 
# Check whether --with-hangul or --without-hangul was given.
532
 
if test "${with_hangul+set}" = set; then
533
 
  withval="$with_hangul"
534
 
   D_HANGUL="-DHANGUL"
535
 
  HANGUL="-hangul"
536
 
  HANGUL_O="hangul.o"
537
 
  TRIES_O="tries.o" 
538
 
else
539
 
   D_HANGUL=""
540
 
  HANGUL=""
541
 
  HANGUL_O=""
542
 
  TRIES_O="" 
543
 
fi
544
 
 
545
 
 
546
 
# Check whether --with-debug or --without-debug was given.
547
 
if test "${with_debug+set}" = set; then
548
 
  withval="$with_debug"
549
 
   OPTIONS="-DDEBUG -g" 
550
 
else
551
 
   OPTIONS="-O3 -s" 
552
 
fi
553
 
 
554
 
 
555
 
VERSION=4.3
556
 
 
557
 
ac_aux_dir=
558
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559
 
  if test -f $ac_dir/install-sh; then
560
 
    ac_aux_dir=$ac_dir
561
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
562
 
    break
563
 
  elif test -f $ac_dir/install.sh; then
564
 
    ac_aux_dir=$ac_dir
565
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
566
 
    break
567
 
  fi
568
 
done
569
 
if test -z "$ac_aux_dir"; then
570
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
571
 
fi
572
 
ac_config_guess=$ac_aux_dir/config.guess
573
 
ac_config_sub=$ac_aux_dir/config.sub
574
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575
 
 
576
 
 
577
 
# Make sure we can run config.sub.
578
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
579
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580
 
fi
581
 
 
582
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
583
 
echo "configure:584: checking host system type" >&5
584
 
 
585
 
host_alias=$host
586
 
case "$host_alias" in
587
 
NONE)
588
 
  case $nonopt in
589
 
  NONE)
590
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
591
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592
 
    fi ;;
593
 
  *) host_alias=$nonopt ;;
594
 
  esac ;;
595
 
esac
596
 
 
597
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
598
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601
 
echo "$ac_t""$host" 1>&6
602
 
 
603
 
 
604
 
LINK_SHARED="gcc -shared"
605
 
SHARED_EXT="so"
606
 
case "$host_os" in
607
 
hpux*) LINK_SHARED="ld -b"
608
 
        SHARED_EXT="sl";;
609
 
esac
610
 
 
611
 
 
612
 
 
613
 
 
614
 
 
615
 
 
616
 
 
617
 
 
618
 
 
619
 
 
620
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1340
  # Some versions of bash will fail to source /dev/null (special
 
1341
  # files actually), so we avoid doing that.
 
1342
  if test -f "$cache_file"; then
 
1343
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1344
echo "$as_me: loading cache $cache_file" >&6;}
 
1345
    case $cache_file in
 
1346
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1347
      *)                      . ./$cache_file;;
 
1348
    esac
 
1349
  fi
 
1350
else
 
1351
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1352
echo "$as_me: creating cache $cache_file" >&6;}
 
1353
  >$cache_file
 
1354
fi
 
1355
 
 
1356
# Check that the precious variables saved in the cache have kept the same
 
1357
# value.
 
1358
ac_cache_corrupted=false
 
1359
for ac_var in `(set) 2>&1 |
 
1360
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1361
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1362
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1363
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1364
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1365
  case $ac_old_set,$ac_new_set in
 
1366
    set,)
 
1367
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1368
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1369
      ac_cache_corrupted=: ;;
 
1370
    ,set)
 
1371
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1372
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1373
      ac_cache_corrupted=: ;;
 
1374
    ,);;
 
1375
    *)
 
1376
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1377
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1378
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1379
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1380
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1381
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1382
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1383
        ac_cache_corrupted=:
 
1384
      fi;;
 
1385
  esac
 
1386
  # Pass precious variables to config.status.
 
1387
  if test "$ac_new_set" = set; then
 
1388
    case $ac_new_val in
 
1389
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1390
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1391
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1392
    esac
 
1393
    case " $ac_configure_args " in
 
1394
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1395
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1396
    esac
 
1397
  fi
 
1398
done
 
1399
if $ac_cache_corrupted; then
 
1400
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1401
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1402
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1403
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1404
   { (exit 1); exit 1; }; }
 
1405
fi
 
1406
 
 
1407
ac_ext=c
 
1408
ac_cpp='$CPP $CPPFLAGS'
 
1409
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1410
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1411
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1412
 
 
1413
 
 
1414
 
 
1415
 
 
1416
 
 
1417
 
 
1418
 
 
1419
 
 
1420
 
 
1421
 
 
1422
 
 
1423
 
 
1424
 
 
1425
 
 
1426
 
 
1427
 
 
1428
 
 
1429
 
 
1430
 
 
1431
 
 
1432
 
 
1433
ac_ext=c
 
1434
ac_cpp='$CPP $CPPFLAGS'
 
1435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1438
if test -n "$ac_tool_prefix"; then
 
1439
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1440
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1441
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1443
if test "${ac_cv_prog_CC+set}" = set; then
 
1444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1445
else
 
1446
  if test -n "$CC"; then
 
1447
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1448
else
 
1449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1450
for as_dir in $PATH
 
1451
do
 
1452
  IFS=$as_save_IFS
 
1453
  test -z "$as_dir" && as_dir=.
 
1454
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1455
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1456
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1457
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1458
    break 2
 
1459
  fi
 
1460
done
 
1461
done
 
1462
 
 
1463
fi
 
1464
fi
 
1465
CC=$ac_cv_prog_CC
 
1466
if test -n "$CC"; then
 
1467
  echo "$as_me:$LINENO: result: $CC" >&5
 
1468
echo "${ECHO_T}$CC" >&6
 
1469
else
 
1470
  echo "$as_me:$LINENO: result: no" >&5
 
1471
echo "${ECHO_T}no" >&6
 
1472
fi
 
1473
 
 
1474
fi
 
1475
if test -z "$ac_cv_prog_CC"; then
 
1476
  ac_ct_CC=$CC
 
1477
  # Extract the first word of "gcc", so it can be a program name with args.
621
1478
set dummy gcc; ac_word=$2
622
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
623
 
echo "configure:624: checking for $ac_word" >&5
624
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
625
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1479
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1480
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1481
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1483
else
 
1484
  if test -n "$ac_ct_CC"; then
 
1485
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1486
else
 
1487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1488
for as_dir in $PATH
 
1489
do
 
1490
  IFS=$as_save_IFS
 
1491
  test -z "$as_dir" && as_dir=.
 
1492
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1493
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1494
    ac_cv_prog_ac_ct_CC="gcc"
 
1495
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1496
    break 2
 
1497
  fi
 
1498
done
 
1499
done
 
1500
 
 
1501
fi
 
1502
fi
 
1503
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1504
if test -n "$ac_ct_CC"; then
 
1505
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1506
echo "${ECHO_T}$ac_ct_CC" >&6
 
1507
else
 
1508
  echo "$as_me:$LINENO: result: no" >&5
 
1509
echo "${ECHO_T}no" >&6
 
1510
fi
 
1511
 
 
1512
  CC=$ac_ct_CC
 
1513
else
 
1514
  CC="$ac_cv_prog_CC"
 
1515
fi
 
1516
 
 
1517
if test -z "$CC"; then
 
1518
  if test -n "$ac_tool_prefix"; then
 
1519
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1520
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1521
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1523
if test "${ac_cv_prog_CC+set}" = set; then
 
1524
  echo $ECHO_N "(cached) $ECHO_C" >&6
626
1525
else
627
1526
  if test -n "$CC"; then
628
1527
  ac_cv_prog_CC="$CC" # Let the user override the test.
629
1528
else
630
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
631
 
  ac_dummy="$PATH"
632
 
  for ac_dir in $ac_dummy; do
633
 
    test -z "$ac_dir" && ac_dir=.
634
 
    if test -f $ac_dir/$ac_word; then
635
 
      ac_cv_prog_CC="gcc"
636
 
      break
637
 
    fi
638
 
  done
639
 
  IFS="$ac_save_ifs"
640
 
fi
641
 
fi
642
 
CC="$ac_cv_prog_CC"
 
1529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1530
for as_dir in $PATH
 
1531
do
 
1532
  IFS=$as_save_IFS
 
1533
  test -z "$as_dir" && as_dir=.
 
1534
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1535
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1536
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1537
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1538
    break 2
 
1539
  fi
 
1540
done
 
1541
done
 
1542
 
 
1543
fi
 
1544
fi
 
1545
CC=$ac_cv_prog_CC
643
1546
if test -n "$CC"; then
644
 
  echo "$ac_t""$CC" 1>&6
645
 
else
646
 
  echo "$ac_t""no" 1>&6
647
 
fi
648
 
 
 
1547
  echo "$as_me:$LINENO: result: $CC" >&5
 
1548
echo "${ECHO_T}$CC" >&6
 
1549
else
 
1550
  echo "$as_me:$LINENO: result: no" >&5
 
1551
echo "${ECHO_T}no" >&6
 
1552
fi
 
1553
 
 
1554
fi
 
1555
if test -z "$ac_cv_prog_CC"; then
 
1556
  ac_ct_CC=$CC
 
1557
  # Extract the first word of "cc", so it can be a program name with args.
 
1558
set dummy cc; ac_word=$2
 
1559
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1560
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1561
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1563
else
 
1564
  if test -n "$ac_ct_CC"; then
 
1565
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1566
else
 
1567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1568
for as_dir in $PATH
 
1569
do
 
1570
  IFS=$as_save_IFS
 
1571
  test -z "$as_dir" && as_dir=.
 
1572
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1573
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1574
    ac_cv_prog_ac_ct_CC="cc"
 
1575
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1576
    break 2
 
1577
  fi
 
1578
done
 
1579
done
 
1580
 
 
1581
fi
 
1582
fi
 
1583
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1584
if test -n "$ac_ct_CC"; then
 
1585
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1586
echo "${ECHO_T}$ac_ct_CC" >&6
 
1587
else
 
1588
  echo "$as_me:$LINENO: result: no" >&5
 
1589
echo "${ECHO_T}no" >&6
 
1590
fi
 
1591
 
 
1592
  CC=$ac_ct_CC
 
1593
else
 
1594
  CC="$ac_cv_prog_CC"
 
1595
fi
 
1596
 
 
1597
fi
649
1598
if test -z "$CC"; then
650
1599
  # Extract the first word of "cc", so it can be a program name with args.
651
1600
set dummy cc; ac_word=$2
652
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653
 
echo "configure:654: checking for $ac_word" >&5
654
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1601
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1602
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1603
if test "${ac_cv_prog_CC+set}" = set; then
 
1604
  echo $ECHO_N "(cached) $ECHO_C" >&6
656
1605
else
657
1606
  if test -n "$CC"; then
658
1607
  ac_cv_prog_CC="$CC" # Let the user override the test.
659
1608
else
660
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
661
1609
  ac_prog_rejected=no
662
 
  ac_dummy="$PATH"
663
 
  for ac_dir in $ac_dummy; do
664
 
    test -z "$ac_dir" && ac_dir=.
665
 
    if test -f $ac_dir/$ac_word; then
666
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
667
 
        ac_prog_rejected=yes
668
 
        continue
669
 
      fi
670
 
      ac_cv_prog_CC="cc"
671
 
      break
672
 
    fi
673
 
  done
674
 
  IFS="$ac_save_ifs"
 
1610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1611
for as_dir in $PATH
 
1612
do
 
1613
  IFS=$as_save_IFS
 
1614
  test -z "$as_dir" && as_dir=.
 
1615
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1616
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1617
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1618
       ac_prog_rejected=yes
 
1619
       continue
 
1620
     fi
 
1621
    ac_cv_prog_CC="cc"
 
1622
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1623
    break 2
 
1624
  fi
 
1625
done
 
1626
done
 
1627
 
675
1628
if test $ac_prog_rejected = yes; then
676
1629
  # We found a bogon in the path, so make sure we never use it.
677
1630
  set dummy $ac_cv_prog_CC
678
1631
  shift
679
 
  if test $# -gt 0; then
 
1632
  if test $# != 0; then
680
1633
    # We chose a different compiler from the bogus one.
681
1634
    # However, it has the same basename, so the bogon will be chosen
682
1635
    # first if we set CC to just the basename; use the full file name.
683
1636
    shift
684
 
    set dummy "$ac_dir/$ac_word" "$@"
685
 
    shift
686
 
    ac_cv_prog_CC="$@"
 
1637
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
687
1638
  fi
688
1639
fi
689
1640
fi
690
1641
fi
691
 
CC="$ac_cv_prog_CC"
 
1642
CC=$ac_cv_prog_CC
692
1643
if test -n "$CC"; then
693
 
  echo "$ac_t""$CC" 1>&6
 
1644
  echo "$as_me:$LINENO: result: $CC" >&5
 
1645
echo "${ECHO_T}$CC" >&6
694
1646
else
695
 
  echo "$ac_t""no" 1>&6
 
1647
  echo "$as_me:$LINENO: result: no" >&5
 
1648
echo "${ECHO_T}no" >&6
696
1649
fi
697
1650
 
698
 
  if test -z "$CC"; then
699
 
    case "`uname -s`" in
700
 
    *win32* | *WIN32*)
701
 
      # Extract the first word of "cl", so it can be a program name with args.
702
 
set dummy cl; ac_word=$2
703
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704
 
echo "configure:705: checking for $ac_word" >&5
705
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1651
fi
 
1652
if test -z "$CC"; then
 
1653
  if test -n "$ac_tool_prefix"; then
 
1654
  for ac_prog in cl
 
1655
  do
 
1656
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1657
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1658
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1660
if test "${ac_cv_prog_CC+set}" = set; then
 
1661
  echo $ECHO_N "(cached) $ECHO_C" >&6
707
1662
else
708
1663
  if test -n "$CC"; then
709
1664
  ac_cv_prog_CC="$CC" # Let the user override the test.
710
1665
else
711
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
712
 
  ac_dummy="$PATH"
713
 
  for ac_dir in $ac_dummy; do
714
 
    test -z "$ac_dir" && ac_dir=.
715
 
    if test -f $ac_dir/$ac_word; then
716
 
      ac_cv_prog_CC="cl"
717
 
      break
718
 
    fi
 
1666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1667
for as_dir in $PATH
 
1668
do
 
1669
  IFS=$as_save_IFS
 
1670
  test -z "$as_dir" && as_dir=.
 
1671
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1672
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1673
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1674
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1675
    break 2
 
1676
  fi
 
1677
done
 
1678
done
 
1679
 
 
1680
fi
 
1681
fi
 
1682
CC=$ac_cv_prog_CC
 
1683
if test -n "$CC"; then
 
1684
  echo "$as_me:$LINENO: result: $CC" >&5
 
1685
echo "${ECHO_T}$CC" >&6
 
1686
else
 
1687
  echo "$as_me:$LINENO: result: no" >&5
 
1688
echo "${ECHO_T}no" >&6
 
1689
fi
 
1690
 
 
1691
    test -n "$CC" && break
719
1692
  done
720
 
  IFS="$ac_save_ifs"
721
 
fi
722
 
fi
723
 
CC="$ac_cv_prog_CC"
724
 
if test -n "$CC"; then
725
 
  echo "$ac_t""$CC" 1>&6
726
 
else
727
 
  echo "$ac_t""no" 1>&6
728
 
fi
729
 
 ;;
730
 
    esac
 
1693
fi
 
1694
if test -z "$CC"; then
 
1695
  ac_ct_CC=$CC
 
1696
  for ac_prog in cl
 
1697
do
 
1698
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1699
set dummy $ac_prog; ac_word=$2
 
1700
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1701
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1702
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1704
else
 
1705
  if test -n "$ac_ct_CC"; then
 
1706
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1707
else
 
1708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1709
for as_dir in $PATH
 
1710
do
 
1711
  IFS=$as_save_IFS
 
1712
  test -z "$as_dir" && as_dir=.
 
1713
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1714
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1715
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1716
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1717
    break 2
731
1718
  fi
732
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733
 
fi
734
 
 
735
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
736
 
echo "configure:737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
737
 
 
738
 
ac_ext=c
739
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
740
 
ac_cpp='$CPP $CPPFLAGS'
741
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
742
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
743
 
cross_compiling=$ac_cv_prog_cc_cross
744
 
 
745
 
cat > conftest.$ac_ext << EOF
746
 
 
747
 
#line 748 "configure"
748
 
#include "confdefs.h"
749
 
 
750
 
main(){return(0);}
751
 
EOF
752
 
if { (eval echo configure:753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
753
 
  ac_cv_prog_cc_works=yes
754
 
  # If we can't run a trivial program, we are probably using a cross compiler.
755
 
  if (./conftest; exit) 2>/dev/null; then
756
 
    ac_cv_prog_cc_cross=no
 
1719
done
 
1720
done
 
1721
 
 
1722
fi
 
1723
fi
 
1724
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1725
if test -n "$ac_ct_CC"; then
 
1726
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1727
echo "${ECHO_T}$ac_ct_CC" >&6
 
1728
else
 
1729
  echo "$as_me:$LINENO: result: no" >&5
 
1730
echo "${ECHO_T}no" >&6
 
1731
fi
 
1732
 
 
1733
  test -n "$ac_ct_CC" && break
 
1734
done
 
1735
 
 
1736
  CC=$ac_ct_CC
 
1737
fi
 
1738
 
 
1739
fi
 
1740
 
 
1741
 
 
1742
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1743
See \`config.log' for more details." >&5
 
1744
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1745
See \`config.log' for more details." >&2;}
 
1746
   { (exit 1); exit 1; }; }
 
1747
 
 
1748
# Provide some information about the compiler.
 
1749
echo "$as_me:$LINENO:" \
 
1750
     "checking for C compiler version" >&5
 
1751
ac_compiler=`set X $ac_compile; echo $2`
 
1752
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1753
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1754
  ac_status=$?
 
1755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1756
  (exit $ac_status); }
 
1757
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1758
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1759
  ac_status=$?
 
1760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1761
  (exit $ac_status); }
 
1762
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1763
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1764
  ac_status=$?
 
1765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1766
  (exit $ac_status); }
 
1767
 
 
1768
cat >conftest.$ac_ext <<_ACEOF
 
1769
#line $LINENO "configure"
 
1770
/* confdefs.h.  */
 
1771
_ACEOF
 
1772
cat confdefs.h >>conftest.$ac_ext
 
1773
cat >>conftest.$ac_ext <<_ACEOF
 
1774
/* end confdefs.h.  */
 
1775
 
 
1776
int
 
1777
main ()
 
1778
{
 
1779
 
 
1780
  ;
 
1781
  return 0;
 
1782
}
 
1783
_ACEOF
 
1784
ac_clean_files_save=$ac_clean_files
 
1785
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1786
# Try to create an executable without -o first, disregard a.out.
 
1787
# It will help us diagnose broken compilers, and finding out an intuition
 
1788
# of exeext.
 
1789
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
1790
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1791
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1792
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1793
  (eval $ac_link_default) 2>&5
 
1794
  ac_status=$?
 
1795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1796
  (exit $ac_status); }; then
 
1797
  # Find the output, starting from the most likely.  This scheme is
 
1798
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1799
# resort.
 
1800
 
 
1801
# Be careful to initialize this variable, since it used to be cached.
 
1802
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1803
ac_cv_exeext=
 
1804
# b.out is created by i960 compilers.
 
1805
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1806
do
 
1807
  test -f "$ac_file" || continue
 
1808
  case $ac_file in
 
1809
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1810
        ;;
 
1811
    conftest.$ac_ext )
 
1812
        # This is the source file.
 
1813
        ;;
 
1814
    [ab].out )
 
1815
        # We found the default executable, but exeext='' is most
 
1816
        # certainly right.
 
1817
        break;;
 
1818
    *.* )
 
1819
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1820
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1821
        # but it would be cool to find out if it's true.  Does anybody
 
1822
        # maintain Libtool? --akim.
 
1823
        export ac_cv_exeext
 
1824
        break;;
 
1825
    * )
 
1826
        break;;
 
1827
  esac
 
1828
done
 
1829
else
 
1830
  echo "$as_me: failed program was:" >&5
 
1831
sed 's/^/| /' conftest.$ac_ext >&5
 
1832
 
 
1833
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1834
See \`config.log' for more details." >&5
 
1835
echo "$as_me: error: C compiler cannot create executables
 
1836
See \`config.log' for more details." >&2;}
 
1837
   { (exit 77); exit 77; }; }
 
1838
fi
 
1839
 
 
1840
ac_exeext=$ac_cv_exeext
 
1841
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1842
echo "${ECHO_T}$ac_file" >&6
 
1843
 
 
1844
# Check the compiler produces executables we can run.  If not, either
 
1845
# the compiler is broken, or we cross compile.
 
1846
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1847
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1848
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1849
# If not cross compiling, check that we can run a simple program.
 
1850
if test "$cross_compiling" != yes; then
 
1851
  if { ac_try='./$ac_file'
 
1852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1853
  (eval $ac_try) 2>&5
 
1854
  ac_status=$?
 
1855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1856
  (exit $ac_status); }; }; then
 
1857
    cross_compiling=no
757
1858
  else
758
 
    ac_cv_prog_cc_cross=yes
 
1859
    if test "$cross_compiling" = maybe; then
 
1860
        cross_compiling=yes
 
1861
    else
 
1862
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1863
If you meant to cross compile, use \`--host'.
 
1864
See \`config.log' for more details." >&5
 
1865
echo "$as_me: error: cannot run C compiled programs.
 
1866
If you meant to cross compile, use \`--host'.
 
1867
See \`config.log' for more details." >&2;}
 
1868
   { (exit 1); exit 1; }; }
 
1869
    fi
759
1870
  fi
760
 
else
761
 
  echo "configure: failed program was:" >&5
762
 
  cat conftest.$ac_ext >&5
763
 
  ac_cv_prog_cc_works=no
764
 
fi
765
 
rm -fr conftest*
766
 
ac_ext=c
767
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
768
 
ac_cpp='$CPP $CPPFLAGS'
769
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
770
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
771
 
cross_compiling=$ac_cv_prog_cc_cross
772
 
 
773
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774
 
if test $ac_cv_prog_cc_works = no; then
775
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776
 
fi
777
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
778
 
echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
779
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780
 
cross_compiling=$ac_cv_prog_cc_cross
781
 
 
782
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
783
 
echo "configure:784: checking whether we are using GNU C" >&5
784
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785
 
  echo $ac_n "(cached) $ac_c" 1>&6
786
 
else
787
 
  cat > conftest.c <<EOF
788
 
#ifdef __GNUC__
789
 
  yes;
 
1871
fi
 
1872
echo "$as_me:$LINENO: result: yes" >&5
 
1873
echo "${ECHO_T}yes" >&6
 
1874
 
 
1875
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1876
ac_clean_files=$ac_clean_files_save
 
1877
# Check the compiler produces executables we can run.  If not, either
 
1878
# the compiler is broken, or we cross compile.
 
1879
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1880
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1881
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1882
echo "${ECHO_T}$cross_compiling" >&6
 
1883
 
 
1884
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1885
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1887
  (eval $ac_link) 2>&5
 
1888
  ac_status=$?
 
1889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1890
  (exit $ac_status); }; then
 
1891
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1892
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1893
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1894
# `rm'.
 
1895
for ac_file in conftest.exe conftest conftest.*; do
 
1896
  test -f "$ac_file" || continue
 
1897
  case $ac_file in
 
1898
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1899
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1900
          export ac_cv_exeext
 
1901
          break;;
 
1902
    * ) break;;
 
1903
  esac
 
1904
done
 
1905
else
 
1906
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1907
See \`config.log' for more details." >&5
 
1908
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1909
See \`config.log' for more details." >&2;}
 
1910
   { (exit 1); exit 1; }; }
 
1911
fi
 
1912
 
 
1913
rm -f conftest$ac_cv_exeext
 
1914
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1915
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1916
 
 
1917
rm -f conftest.$ac_ext
 
1918
EXEEXT=$ac_cv_exeext
 
1919
ac_exeext=$EXEEXT
 
1920
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1921
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1922
if test "${ac_cv_objext+set}" = set; then
 
1923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1924
else
 
1925
  cat >conftest.$ac_ext <<_ACEOF
 
1926
#line $LINENO "configure"
 
1927
/* confdefs.h.  */
 
1928
_ACEOF
 
1929
cat confdefs.h >>conftest.$ac_ext
 
1930
cat >>conftest.$ac_ext <<_ACEOF
 
1931
/* end confdefs.h.  */
 
1932
 
 
1933
int
 
1934
main ()
 
1935
{
 
1936
 
 
1937
  ;
 
1938
  return 0;
 
1939
}
 
1940
_ACEOF
 
1941
rm -f conftest.o conftest.obj
 
1942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1943
  (eval $ac_compile) 2>&5
 
1944
  ac_status=$?
 
1945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1946
  (exit $ac_status); }; then
 
1947
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1948
  case $ac_file in
 
1949
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1950
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1951
       break;;
 
1952
  esac
 
1953
done
 
1954
else
 
1955
  echo "$as_me: failed program was:" >&5
 
1956
sed 's/^/| /' conftest.$ac_ext >&5
 
1957
 
 
1958
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1959
See \`config.log' for more details." >&5
 
1960
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1961
See \`config.log' for more details." >&2;}
 
1962
   { (exit 1); exit 1; }; }
 
1963
fi
 
1964
 
 
1965
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1966
fi
 
1967
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1968
echo "${ECHO_T}$ac_cv_objext" >&6
 
1969
OBJEXT=$ac_cv_objext
 
1970
ac_objext=$OBJEXT
 
1971
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1972
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1973
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1975
else
 
1976
  cat >conftest.$ac_ext <<_ACEOF
 
1977
#line $LINENO "configure"
 
1978
/* confdefs.h.  */
 
1979
_ACEOF
 
1980
cat confdefs.h >>conftest.$ac_ext
 
1981
cat >>conftest.$ac_ext <<_ACEOF
 
1982
/* end confdefs.h.  */
 
1983
 
 
1984
int
 
1985
main ()
 
1986
{
 
1987
#ifndef __GNUC__
 
1988
       choke me
790
1989
#endif
791
 
EOF
792
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
793
 
  ac_cv_prog_gcc=yes
794
 
else
795
 
  ac_cv_prog_gcc=no
796
 
fi
797
 
fi
798
 
 
799
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800
 
 
801
 
if test $ac_cv_prog_gcc = yes; then
802
 
  GCC=yes
803
 
else
804
 
  GCC=
805
 
fi
806
 
 
807
 
ac_test_CFLAGS="${CFLAGS+set}"
808
 
ac_save_CFLAGS="$CFLAGS"
809
 
CFLAGS=
810
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
811
 
echo "configure:812: checking whether ${CC-cc} accepts -g" >&5
812
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
813
 
  echo $ac_n "(cached) $ac_c" 1>&6
814
 
else
815
 
  echo 'void f(){}' > conftest.c
816
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1990
 
 
1991
  ;
 
1992
  return 0;
 
1993
}
 
1994
_ACEOF
 
1995
rm -f conftest.$ac_objext
 
1996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1997
  (eval $ac_compile) 2>&5
 
1998
  ac_status=$?
 
1999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2000
  (exit $ac_status); } &&
 
2001
         { ac_try='test -s conftest.$ac_objext'
 
2002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2003
  (eval $ac_try) 2>&5
 
2004
  ac_status=$?
 
2005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2006
  (exit $ac_status); }; }; then
 
2007
  ac_compiler_gnu=yes
 
2008
else
 
2009
  echo "$as_me: failed program was:" >&5
 
2010
sed 's/^/| /' conftest.$ac_ext >&5
 
2011
 
 
2012
ac_compiler_gnu=no
 
2013
fi
 
2014
rm -f conftest.$ac_objext conftest.$ac_ext
 
2015
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2016
 
 
2017
fi
 
2018
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2019
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2020
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2021
ac_test_CFLAGS=${CFLAGS+set}
 
2022
ac_save_CFLAGS=$CFLAGS
 
2023
CFLAGS="-g"
 
2024
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2025
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2026
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2028
else
 
2029
  cat >conftest.$ac_ext <<_ACEOF
 
2030
#line $LINENO "configure"
 
2031
/* confdefs.h.  */
 
2032
_ACEOF
 
2033
cat confdefs.h >>conftest.$ac_ext
 
2034
cat >>conftest.$ac_ext <<_ACEOF
 
2035
/* end confdefs.h.  */
 
2036
 
 
2037
int
 
2038
main ()
 
2039
{
 
2040
 
 
2041
  ;
 
2042
  return 0;
 
2043
}
 
2044
_ACEOF
 
2045
rm -f conftest.$ac_objext
 
2046
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2047
  (eval $ac_compile) 2>&5
 
2048
  ac_status=$?
 
2049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2050
  (exit $ac_status); } &&
 
2051
         { ac_try='test -s conftest.$ac_objext'
 
2052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2053
  (eval $ac_try) 2>&5
 
2054
  ac_status=$?
 
2055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2056
  (exit $ac_status); }; }; then
817
2057
  ac_cv_prog_cc_g=yes
818
2058
else
819
 
  ac_cv_prog_cc_g=no
820
 
fi
821
 
rm -f conftest*
822
 
 
823
 
fi
824
 
 
825
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2059
  echo "$as_me: failed program was:" >&5
 
2060
sed 's/^/| /' conftest.$ac_ext >&5
 
2061
 
 
2062
ac_cv_prog_cc_g=no
 
2063
fi
 
2064
rm -f conftest.$ac_objext conftest.$ac_ext
 
2065
fi
 
2066
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2067
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
826
2068
if test "$ac_test_CFLAGS" = set; then
827
 
  CFLAGS="$ac_save_CFLAGS"
 
2069
  CFLAGS=$ac_save_CFLAGS
828
2070
elif test $ac_cv_prog_cc_g = yes; then
829
2071
  if test "$GCC" = yes; then
830
2072
    CFLAGS="-g -O2"
838
2080
    CFLAGS=
839
2081
  fi
840
2082
fi
841
 
 
842
 
 
843
 
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
844
 
echo "configure:845: checking for sin in -lm" >&5
845
 
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
846
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
847
 
  echo $ac_n "(cached) $ac_c" 1>&6
848
 
else
849
 
  ac_save_LIBS="$LIBS"
850
 
LIBS="-lm  $LIBS"
851
 
cat > conftest.$ac_ext <<EOF
852
 
#line 853 "configure"
853
 
#include "confdefs.h"
854
 
/* Override any gcc2 internal prototype to avoid an error.  */
855
 
/* We use char because int might match the return type of a gcc2
856
 
    builtin and then its argument prototype would still apply.  */
857
 
char sin();
858
 
 
859
 
int main() {
860
 
sin()
861
 
; return 0; }
862
 
EOF
863
 
if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
864
 
  rm -rf conftest*
865
 
  eval "ac_cv_lib_$ac_lib_var=yes"
866
 
else
867
 
  echo "configure: failed program was:" >&5
868
 
  cat conftest.$ac_ext >&5
869
 
  rm -rf conftest*
870
 
  eval "ac_cv_lib_$ac_lib_var=no"
871
 
fi
 
2083
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2084
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2085
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2087
else
 
2088
  ac_cv_prog_cc_stdc=no
 
2089
ac_save_CC=$CC
 
2090
cat >conftest.$ac_ext <<_ACEOF
 
2091
#line $LINENO "configure"
 
2092
/* confdefs.h.  */
 
2093
_ACEOF
 
2094
cat confdefs.h >>conftest.$ac_ext
 
2095
cat >>conftest.$ac_ext <<_ACEOF
 
2096
/* end confdefs.h.  */
 
2097
#include <stdarg.h>
 
2098
#include <stdio.h>
 
2099
#include <sys/types.h>
 
2100
#include <sys/stat.h>
 
2101
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2102
struct buf { int x; };
 
2103
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2104
static char *e (p, i)
 
2105
     char **p;
 
2106
     int i;
 
2107
{
 
2108
  return p[i];
 
2109
}
 
2110
static char *f (char * (*g) (char **, int), char **p, ...)
 
2111
{
 
2112
  char *s;
 
2113
  va_list v;
 
2114
  va_start (v,p);
 
2115
  s = g (p, va_arg (v,int));
 
2116
  va_end (v);
 
2117
  return s;
 
2118
}
 
2119
int test (int i, double x);
 
2120
struct s1 {int (*f) (int a);};
 
2121
struct s2 {int (*f) (double a);};
 
2122
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2123
int argc;
 
2124
char **argv;
 
2125
int
 
2126
main ()
 
2127
{
 
2128
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2129
  ;
 
2130
  return 0;
 
2131
}
 
2132
_ACEOF
 
2133
# Don't try gcc -ansi; that turns off useful extensions and
 
2134
# breaks some systems' header files.
 
2135
# AIX                   -qlanglvl=ansi
 
2136
# Ultrix and OSF/1      -std1
 
2137
# HP-UX 10.20 and later -Ae
 
2138
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2139
# SVR4                  -Xc -D__EXTENSIONS__
 
2140
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2141
do
 
2142
  CC="$ac_save_CC $ac_arg"
 
2143
  rm -f conftest.$ac_objext
 
2144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2145
  (eval $ac_compile) 2>&5
 
2146
  ac_status=$?
 
2147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2148
  (exit $ac_status); } &&
 
2149
         { ac_try='test -s conftest.$ac_objext'
 
2150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2151
  (eval $ac_try) 2>&5
 
2152
  ac_status=$?
 
2153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2154
  (exit $ac_status); }; }; then
 
2155
  ac_cv_prog_cc_stdc=$ac_arg
 
2156
break
 
2157
else
 
2158
  echo "$as_me: failed program was:" >&5
 
2159
sed 's/^/| /' conftest.$ac_ext >&5
 
2160
 
 
2161
fi
 
2162
rm -f conftest.$ac_objext
 
2163
done
 
2164
rm -f conftest.$ac_ext conftest.$ac_objext
 
2165
CC=$ac_save_CC
 
2166
 
 
2167
fi
 
2168
 
 
2169
case "x$ac_cv_prog_cc_stdc" in
 
2170
  x|xno)
 
2171
    echo "$as_me:$LINENO: result: none needed" >&5
 
2172
echo "${ECHO_T}none needed" >&6 ;;
 
2173
  *)
 
2174
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2175
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2176
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2177
esac
 
2178
 
 
2179
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2180
# in C++ we need to declare it.  In case someone uses the same compiler
 
2181
# for both compiling C and C++ we need to have the C++ compiler decide
 
2182
# the declaration of exit, since it's the most demanding environment.
 
2183
cat >conftest.$ac_ext <<_ACEOF
 
2184
#ifndef __cplusplus
 
2185
  choke me
 
2186
#endif
 
2187
_ACEOF
 
2188
rm -f conftest.$ac_objext
 
2189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2190
  (eval $ac_compile) 2>&5
 
2191
  ac_status=$?
 
2192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2193
  (exit $ac_status); } &&
 
2194
         { ac_try='test -s conftest.$ac_objext'
 
2195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2196
  (eval $ac_try) 2>&5
 
2197
  ac_status=$?
 
2198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2199
  (exit $ac_status); }; }; then
 
2200
  for ac_declaration in \
 
2201
   ''\
 
2202
   '#include <stdlib.h>' \
 
2203
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2204
   'extern "C" void std::exit (int); using std::exit;' \
 
2205
   'extern "C" void exit (int) throw ();' \
 
2206
   'extern "C" void exit (int);' \
 
2207
   'void exit (int);'
 
2208
do
 
2209
  cat >conftest.$ac_ext <<_ACEOF
 
2210
#line $LINENO "configure"
 
2211
/* confdefs.h.  */
 
2212
_ACEOF
 
2213
cat confdefs.h >>conftest.$ac_ext
 
2214
cat >>conftest.$ac_ext <<_ACEOF
 
2215
/* end confdefs.h.  */
 
2216
#include <stdlib.h>
 
2217
$ac_declaration
 
2218
int
 
2219
main ()
 
2220
{
 
2221
exit (42);
 
2222
  ;
 
2223
  return 0;
 
2224
}
 
2225
_ACEOF
 
2226
rm -f conftest.$ac_objext
 
2227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2228
  (eval $ac_compile) 2>&5
 
2229
  ac_status=$?
 
2230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2231
  (exit $ac_status); } &&
 
2232
         { ac_try='test -s conftest.$ac_objext'
 
2233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2234
  (eval $ac_try) 2>&5
 
2235
  ac_status=$?
 
2236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2237
  (exit $ac_status); }; }; then
 
2238
  :
 
2239
else
 
2240
  echo "$as_me: failed program was:" >&5
 
2241
sed 's/^/| /' conftest.$ac_ext >&5
 
2242
 
 
2243
continue
 
2244
fi
 
2245
rm -f conftest.$ac_objext conftest.$ac_ext
 
2246
  cat >conftest.$ac_ext <<_ACEOF
 
2247
#line $LINENO "configure"
 
2248
/* confdefs.h.  */
 
2249
_ACEOF
 
2250
cat confdefs.h >>conftest.$ac_ext
 
2251
cat >>conftest.$ac_ext <<_ACEOF
 
2252
/* end confdefs.h.  */
 
2253
$ac_declaration
 
2254
int
 
2255
main ()
 
2256
{
 
2257
exit (42);
 
2258
  ;
 
2259
  return 0;
 
2260
}
 
2261
_ACEOF
 
2262
rm -f conftest.$ac_objext
 
2263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2264
  (eval $ac_compile) 2>&5
 
2265
  ac_status=$?
 
2266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2267
  (exit $ac_status); } &&
 
2268
         { ac_try='test -s conftest.$ac_objext'
 
2269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2270
  (eval $ac_try) 2>&5
 
2271
  ac_status=$?
 
2272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2273
  (exit $ac_status); }; }; then
 
2274
  break
 
2275
else
 
2276
  echo "$as_me: failed program was:" >&5
 
2277
sed 's/^/| /' conftest.$ac_ext >&5
 
2278
 
 
2279
fi
 
2280
rm -f conftest.$ac_objext conftest.$ac_ext
 
2281
done
872
2282
rm -f conftest*
873
 
LIBS="$ac_save_LIBS"
874
 
 
875
 
fi
876
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
877
 
  echo "$ac_t""yes" 1>&6
878
 
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
879
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
880
 
  cat >> confdefs.h <<EOF
881
 
#define $ac_tr_lib 1
882
 
EOF
883
 
 
884
 
  LIBS="-lm $LIBS"
885
 
 
886
 
else
887
 
  echo "$ac_t""no" 1>&6
888
 
fi
889
 
 
890
 
 
891
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
892
 
echo "configure:893: checking how to run the C preprocessor" >&5
 
2283
if test -n "$ac_declaration"; then
 
2284
  echo '#ifdef __cplusplus' >>confdefs.h
 
2285
  echo $ac_declaration      >>confdefs.h
 
2286
  echo '#endif'             >>confdefs.h
 
2287
fi
 
2288
 
 
2289
else
 
2290
  echo "$as_me: failed program was:" >&5
 
2291
sed 's/^/| /' conftest.$ac_ext >&5
 
2292
 
 
2293
fi
 
2294
rm -f conftest.$ac_objext conftest.$ac_ext
 
2295
ac_ext=c
 
2296
ac_cpp='$CPP $CPPFLAGS'
 
2297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2300
 
 
2301
case "$GCC" in
 
2302
yes)
 
2303
  GCCFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
 
2304
  ;;
 
2305
*)
 
2306
  GCCFLAGS=""
 
2307
esac
 
2308
 
 
2309
# Check whether --enable-shared or --disable-shared was given.
 
2310
if test "${enable_shared+set}" = set; then
 
2311
  enableval="$enable_shared"
 
2312
  p=${PACKAGE-default}
 
2313
case $enableval in
 
2314
yes) enable_shared=yes ;;
 
2315
no) enable_shared=no ;;
 
2316
*)
 
2317
  enable_shared=no
 
2318
  # Look at the argument we got.  We use all the common list separators.
 
2319
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2320
  for pkg in $enableval; do
 
2321
    if test "X$pkg" = "X$p"; then
 
2322
      enable_shared=yes
 
2323
    fi
 
2324
  done
 
2325
  IFS="$ac_save_ifs"
 
2326
  ;;
 
2327
esac
 
2328
else
 
2329
  enable_shared=yes
 
2330
fi;
 
2331
# Check whether --enable-static or --disable-static was given.
 
2332
if test "${enable_static+set}" = set; then
 
2333
  enableval="$enable_static"
 
2334
  p=${PACKAGE-default}
 
2335
case $enableval in
 
2336
yes) enable_static=yes ;;
 
2337
no) enable_static=no ;;
 
2338
*)
 
2339
  enable_static=no
 
2340
  # Look at the argument we got.  We use all the common list separators.
 
2341
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2342
  for pkg in $enableval; do
 
2343
    if test "X$pkg" = "X$p"; then
 
2344
      enable_static=yes
 
2345
    fi
 
2346
  done
 
2347
  IFS="$ac_save_ifs"
 
2348
  ;;
 
2349
esac
 
2350
else
 
2351
  enable_static=yes
 
2352
fi;
 
2353
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2354
if test "${enable_fast_install+set}" = set; then
 
2355
  enableval="$enable_fast_install"
 
2356
  p=${PACKAGE-default}
 
2357
case $enableval in
 
2358
yes) enable_fast_install=yes ;;
 
2359
no) enable_fast_install=no ;;
 
2360
*)
 
2361
  enable_fast_install=no
 
2362
  # Look at the argument we got.  We use all the common list separators.
 
2363
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2364
  for pkg in $enableval; do
 
2365
    if test "X$pkg" = "X$p"; then
 
2366
      enable_fast_install=yes
 
2367
    fi
 
2368
  done
 
2369
  IFS="$ac_save_ifs"
 
2370
  ;;
 
2371
esac
 
2372
else
 
2373
  enable_fast_install=yes
 
2374
fi;
 
2375
ac_aux_dir=
 
2376
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
2377
  if test -f $ac_dir/install-sh; then
 
2378
    ac_aux_dir=$ac_dir
 
2379
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2380
    break
 
2381
  elif test -f $ac_dir/install.sh; then
 
2382
    ac_aux_dir=$ac_dir
 
2383
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2384
    break
 
2385
  elif test -f $ac_dir/shtool; then
 
2386
    ac_aux_dir=$ac_dir
 
2387
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2388
    break
 
2389
  fi
 
2390
done
 
2391
if test -z "$ac_aux_dir"; then
 
2392
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
2393
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2394
   { (exit 1); exit 1; }; }
 
2395
fi
 
2396
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
2397
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
2398
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2399
 
 
2400
# Make sure we can run config.sub.
 
2401
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2402
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2403
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2404
   { (exit 1); exit 1; }; }
 
2405
 
 
2406
echo "$as_me:$LINENO: checking build system type" >&5
 
2407
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2408
if test "${ac_cv_build+set}" = set; then
 
2409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2410
else
 
2411
  ac_cv_build_alias=$build_alias
 
2412
test -z "$ac_cv_build_alias" &&
 
2413
  ac_cv_build_alias=`$ac_config_guess`
 
2414
test -z "$ac_cv_build_alias" &&
 
2415
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2416
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2417
   { (exit 1); exit 1; }; }
 
2418
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2419
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2420
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2421
   { (exit 1); exit 1; }; }
 
2422
 
 
2423
fi
 
2424
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2425
echo "${ECHO_T}$ac_cv_build" >&6
 
2426
build=$ac_cv_build
 
2427
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2428
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2429
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2430
 
 
2431
 
 
2432
echo "$as_me:$LINENO: checking host system type" >&5
 
2433
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2434
if test "${ac_cv_host+set}" = set; then
 
2435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2436
else
 
2437
  ac_cv_host_alias=$host_alias
 
2438
test -z "$ac_cv_host_alias" &&
 
2439
  ac_cv_host_alias=$ac_cv_build_alias
 
2440
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2441
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2442
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2443
   { (exit 1); exit 1; }; }
 
2444
 
 
2445
fi
 
2446
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2447
echo "${ECHO_T}$ac_cv_host" >&6
 
2448
host=$ac_cv_host
 
2449
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2450
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2451
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2452
 
 
2453
 
 
2454
# Find the correct PATH separator.  Usually this is `:', but
 
2455
# DJGPP uses `;' like DOS.
 
2456
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
2457
  UNAME=${UNAME-`uname 2>/dev/null`}
 
2458
  case X$UNAME in
 
2459
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
2460
    *)     lt_cv_sys_path_separator=':' ;;
 
2461
  esac
 
2462
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
2463
fi
 
2464
 
 
2465
 
 
2466
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
2467
if test "${with_gnu_ld+set}" = set; then
 
2468
  withval="$with_gnu_ld"
 
2469
  test "$withval" = no || with_gnu_ld=yes
 
2470
else
 
2471
  with_gnu_ld=no
 
2472
fi;
 
2473
ac_prog=ld
 
2474
if test "$GCC" = yes; then
 
2475
  # Check if gcc -print-prog-name=ld gives a path.
 
2476
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
2477
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
2478
  case $host in
 
2479
  *-*-mingw*)
 
2480
    # gcc leaves a trailing carriage return which upsets mingw
 
2481
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2482
  *)
 
2483
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2484
  esac
 
2485
  case $ac_prog in
 
2486
    # Accept absolute paths.
 
2487
    [\\/]* | [A-Za-z]:[\\/]*)
 
2488
      re_direlt='/[^/][^/]*/\.\./'
 
2489
      # Canonicalize the path of ld
 
2490
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
2491
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2492
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
2493
      done
 
2494
      test -z "$LD" && LD="$ac_prog"
 
2495
      ;;
 
2496
  "")
 
2497
    # If it fails, then pretend we aren't using GCC.
 
2498
    ac_prog=ld
 
2499
    ;;
 
2500
  *)
 
2501
    # If it is relative, then search for the first ld in PATH.
 
2502
    with_gnu_ld=unknown
 
2503
    ;;
 
2504
  esac
 
2505
elif test "$with_gnu_ld" = yes; then
 
2506
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
2507
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
2508
else
 
2509
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
2510
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
2511
fi
 
2512
if test "${lt_cv_path_LD+set}" = set; then
 
2513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2514
else
 
2515
  if test -z "$LD"; then
 
2516
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2517
  for ac_dir in $PATH; do
 
2518
    test -z "$ac_dir" && ac_dir=.
 
2519
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2520
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2521
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2522
      # but apparently some GNU ld's only accept -v.
 
2523
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2524
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
2525
        test "$with_gnu_ld" != no && break
 
2526
      else
 
2527
        test "$with_gnu_ld" != yes && break
 
2528
      fi
 
2529
    fi
 
2530
  done
 
2531
  IFS="$ac_save_ifs"
 
2532
else
 
2533
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2534
fi
 
2535
fi
 
2536
 
 
2537
LD="$lt_cv_path_LD"
 
2538
if test -n "$LD"; then
 
2539
  echo "$as_me:$LINENO: result: $LD" >&5
 
2540
echo "${ECHO_T}$LD" >&6
 
2541
else
 
2542
  echo "$as_me:$LINENO: result: no" >&5
 
2543
echo "${ECHO_T}no" >&6
 
2544
fi
 
2545
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
2546
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
2547
   { (exit 1); exit 1; }; }
 
2548
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
2549
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
2550
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
2551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2552
else
 
2553
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2554
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
2555
  lt_cv_prog_gnu_ld=yes
 
2556
else
 
2557
  lt_cv_prog_gnu_ld=no
 
2558
fi
 
2559
fi
 
2560
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
2561
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
2562
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2563
 
 
2564
 
 
2565
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
2566
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
2567
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
2568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2569
else
 
2570
  lt_cv_ld_reload_flag='-r'
 
2571
fi
 
2572
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
2573
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
2574
reload_flag=$lt_cv_ld_reload_flag
 
2575
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
2576
 
 
2577
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
2578
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
2579
if test "${lt_cv_path_NM+set}" = set; then
 
2580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2581
else
 
2582
  if test -n "$NM"; then
 
2583
  # Let the user override the test.
 
2584
  lt_cv_path_NM="$NM"
 
2585
else
 
2586
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2587
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2588
    test -z "$ac_dir" && ac_dir=.
 
2589
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
2590
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
2591
      # Check to see if the nm accepts a BSD-compat flag.
 
2592
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2593
      #   nm: unknown option "B" ignored
 
2594
      # Tru64's nm complains that /dev/null is an invalid object file
 
2595
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
2596
        lt_cv_path_NM="$tmp_nm -B"
 
2597
        break
 
2598
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
2599
        lt_cv_path_NM="$tmp_nm -p"
 
2600
        break
 
2601
      else
 
2602
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2603
        continue # so that we can try to find one that supports BSD flags
 
2604
      fi
 
2605
    fi
 
2606
  done
 
2607
  IFS="$ac_save_ifs"
 
2608
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2609
fi
 
2610
fi
 
2611
 
 
2612
NM="$lt_cv_path_NM"
 
2613
echo "$as_me:$LINENO: result: $NM" >&5
 
2614
echo "${ECHO_T}$NM" >&6
 
2615
 
 
2616
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
2617
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
2618
if test "${lt_cv_path_SED+set}" = set; then
 
2619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2620
else
 
2621
  # Loop through the user's path and test for sed and gsed.
 
2622
# Then use that list of sed's as ones to test for truncation.
 
2623
as_executable_p="test -f"
 
2624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2625
for as_dir in $PATH
 
2626
do
 
2627
  IFS=$as_save_IFS
 
2628
  test -z "$as_dir" && as_dir=.
 
2629
  for ac_prog in sed gsed; do
 
2630
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2631
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2632
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 
2633
      fi
 
2634
    done
 
2635
  done
 
2636
done
 
2637
 
 
2638
  # Create a temporary directory, and hook for its removal unless debugging.
 
2639
$debug ||
 
2640
{
 
2641
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
2642
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
2643
}
 
2644
 
 
2645
# Create a (secure) tmp directory for tmp files.
 
2646
: ${TMPDIR=/tmp}
 
2647
{
 
2648
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
 
2649
  test -n "$tmp" && test -d "$tmp"
 
2650
}  ||
 
2651
{
 
2652
  tmp=$TMPDIR/sed$$-$RANDOM
 
2653
  (umask 077 && mkdir $tmp)
 
2654
} ||
 
2655
{
 
2656
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
2657
   { (exit 1); exit 1; }
 
2658
}
 
2659
  _max=0
 
2660
  _count=0
 
2661
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
2662
  # along with /bin/sed that truncates output.
 
2663
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
 
2664
    test ! -f ${_sed} && break
 
2665
    cat /dev/null > "$tmp/sed.in"
 
2666
    _count=0
 
2667
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
 
2668
    # Check for GNU sed and select it if it is found.
 
2669
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
 
2670
      lt_cv_path_SED=${_sed}
 
2671
      break
 
2672
    fi
 
2673
    while true; do
 
2674
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
 
2675
      mv "$tmp/sed.tmp" "$tmp/sed.in"
 
2676
      cp "$tmp/sed.in" "$tmp/sed.nl"
 
2677
      echo >>"$tmp/sed.nl"
 
2678
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
 
2679
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
 
2680
      # 40000 chars as input seems more than enough
 
2681
      test $_count -gt 10 && break
 
2682
      _count=`expr $_count + 1`
 
2683
      if test $_count -gt $_max; then
 
2684
        _max=$_count
 
2685
        lt_cv_path_SED=$_sed
 
2686
      fi
 
2687
    done
 
2688
  done
 
2689
  rm -rf "$tmp"
 
2690
 
 
2691
fi
 
2692
 
 
2693
if test "X$SED" != "X"; then
 
2694
  lt_cv_path_SED=$SED
 
2695
else
 
2696
  SED=$lt_cv_path_SED
 
2697
fi
 
2698
echo "$as_me:$LINENO: result: $SED" >&5
 
2699
echo "${ECHO_T}$SED" >&6
 
2700
 
 
2701
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
2702
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
2703
LN_S=$as_ln_s
 
2704
if test "$LN_S" = "ln -s"; then
 
2705
  echo "$as_me:$LINENO: result: yes" >&5
 
2706
echo "${ECHO_T}yes" >&6
 
2707
else
 
2708
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
2709
echo "${ECHO_T}no, using $LN_S" >&6
 
2710
fi
 
2711
 
 
2712
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
2713
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
2714
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
2715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2716
else
 
2717
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2718
lt_cv_file_magic_test_file=
 
2719
lt_cv_deplibs_check_method='unknown'
 
2720
# Need to set the preceding variable on all platforms that support
 
2721
# interlibrary dependencies.
 
2722
# 'none' -- dependencies not supported.
 
2723
# `unknown' -- same as none, but documents that we really don't know.
 
2724
# 'pass_all' -- all dependencies passed with no checks.
 
2725
# 'test_compile' -- check by making test program.
 
2726
# 'file_magic [[regex]]' -- check by looking for files in library path
 
2727
# which responds to the $file_magic_cmd with a given egrep regex.
 
2728
# If you have `file' or equivalent on your system and you're not sure
 
2729
# whether `pass_all' will *always* work, you probably want this one.
 
2730
 
 
2731
case $host_os in
 
2732
aix4* | aix5*)
 
2733
  lt_cv_deplibs_check_method=pass_all
 
2734
  ;;
 
2735
 
 
2736
beos*)
 
2737
  lt_cv_deplibs_check_method=pass_all
 
2738
  ;;
 
2739
 
 
2740
bsdi4*)
 
2741
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
2742
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2743
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2744
  ;;
 
2745
 
 
2746
cygwin* | mingw* | pw32*)
 
2747
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2748
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2749
  ;;
 
2750
 
 
2751
darwin* | rhapsody*)
 
2752
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
2753
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2754
  case "$host_os" in
 
2755
  rhapsody* | darwin1.[012])
 
2756
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
2757
    ;;
 
2758
  *) # Darwin 1.3 on
 
2759
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
2760
    ;;
 
2761
  esac
 
2762
  ;;
 
2763
 
 
2764
freebsd*)
 
2765
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2766
    case $host_cpu in
 
2767
    i*86 )
 
2768
      # Not sure whether the presence of OpenBSD here was a mistake.
 
2769
      # Let's accept both of them until this is cleared up.
 
2770
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
2771
      lt_cv_file_magic_cmd=/usr/bin/file
 
2772
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2773
      ;;
 
2774
    esac
 
2775
  else
 
2776
    lt_cv_deplibs_check_method=pass_all
 
2777
  fi
 
2778
  ;;
 
2779
 
 
2780
gnu*)
 
2781
  lt_cv_deplibs_check_method=pass_all
 
2782
  ;;
 
2783
 
 
2784
hpux10.20*|hpux11*)
 
2785
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
2786
  lt_cv_file_magic_cmd=/usr/bin/file
 
2787
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
2788
  ;;
 
2789
 
 
2790
irix5* | irix6* | nonstopux*)
 
2791
  case $host_os in
 
2792
  irix5* | nonstopux*)
 
2793
    # this will be overridden with pass_all, but let us keep it just in case
 
2794
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
2795
    ;;
 
2796
  *)
 
2797
    case $LD in
 
2798
    *-32|*"-32 ") libmagic=32-bit;;
 
2799
    *-n32|*"-n32 ") libmagic=N32;;
 
2800
    *-64|*"-64 ") libmagic=64-bit;;
 
2801
    *) libmagic=never-match;;
 
2802
    esac
 
2803
    # this will be overridden with pass_all, but let us keep it just in case
 
2804
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
2805
    ;;
 
2806
  esac
 
2807
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
2808
  lt_cv_deplibs_check_method=pass_all
 
2809
  ;;
 
2810
 
 
2811
# This must be Linux ELF.
 
2812
linux*)
 
2813
  case $host_cpu in
 
2814
  alpha* | hppa* | i*86 | m68* | mips | mipsel | powerpc* | s390* | sparc* | ia64* | x86_64*)
 
2815
    lt_cv_deplibs_check_method=pass_all ;;
 
2816
  *)
 
2817
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
2818
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
2819
  esac
 
2820
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
2821
  ;;
 
2822
 
 
2823
netbsd*)
 
2824
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2825
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
2826
  else
 
2827
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
2828
  fi
 
2829
  ;;
 
2830
 
 
2831
newos6*)
 
2832
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
2833
  lt_cv_file_magic_cmd=/usr/bin/file
 
2834
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
2835
  ;;
 
2836
 
 
2837
openbsd*)
 
2838
  lt_cv_file_magic_cmd=/usr/bin/file
 
2839
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2840
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2841
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
2842
  else
 
2843
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2844
  fi
 
2845
  ;;
 
2846
 
 
2847
osf3* | osf4* | osf5*)
 
2848
  # this will be overridden with pass_all, but let us keep it just in case
 
2849
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
2850
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2851
  lt_cv_deplibs_check_method=pass_all
 
2852
  ;;
 
2853
 
 
2854
sco3.2v5*)
 
2855
  lt_cv_deplibs_check_method=pass_all
 
2856
  ;;
 
2857
 
 
2858
solaris*)
 
2859
  lt_cv_deplibs_check_method=pass_all
 
2860
  lt_cv_file_magic_test_file=/lib/libc.so
 
2861
  ;;
 
2862
 
 
2863
sysv5uw[78]* | sysv4*uw2*)
 
2864
  lt_cv_deplibs_check_method=pass_all
 
2865
  ;;
 
2866
 
 
2867
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2868
  case $host_vendor in
 
2869
  motorola)
 
2870
    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]'
 
2871
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
2872
    ;;
 
2873
  ncr)
 
2874
    lt_cv_deplibs_check_method=pass_all
 
2875
    ;;
 
2876
  sequent)
 
2877
    lt_cv_file_magic_cmd='/bin/file'
 
2878
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
2879
    ;;
 
2880
  sni)
 
2881
    lt_cv_file_magic_cmd='/bin/file'
 
2882
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
2883
    lt_cv_file_magic_test_file=/lib/libc.so
 
2884
    ;;
 
2885
  siemens)
 
2886
    lt_cv_deplibs_check_method=pass_all
 
2887
    ;;
 
2888
  esac
 
2889
  ;;
 
2890
esac
 
2891
 
 
2892
fi
 
2893
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
2894
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
2895
file_magic_cmd=$lt_cv_file_magic_cmd
 
2896
deplibs_check_method=$lt_cv_deplibs_check_method
 
2897
 
 
2898
 
 
2899
 
 
2900
 
 
2901
 
 
2902
 
 
2903
 
 
2904
 
 
2905
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
2906
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
 
2907
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
2908
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
2909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2910
else
 
2911
 
 
2912
# These are sane defaults that work on at least a few old systems.
 
2913
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
2914
 
 
2915
# Character class describing NM global symbol codes.
 
2916
symcode='[BCDEGRST]'
 
2917
 
 
2918
# Regexp to match symbols that can be accessed directly from C.
 
2919
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
2920
 
 
2921
# Transform the above into a raw symbol and a C symbol.
 
2922
symxfrm='\1 \2\3 \3'
 
2923
 
 
2924
# Transform an extracted symbol line into a proper C declaration
 
2925
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
2926
 
 
2927
# Transform an extracted symbol line into symbol name and symbol address
 
2928
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
2929
 
 
2930
# Define system-specific variables.
 
2931
case $host_os in
 
2932
aix*)
 
2933
  symcode='[BCDT]'
 
2934
  ;;
 
2935
cygwin* | mingw* | pw32*)
 
2936
  symcode='[ABCDGISTW]'
 
2937
  ;;
 
2938
hpux*) # Its linker distinguishes data from code symbols
 
2939
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
2940
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
2941
  ;;
 
2942
irix* | nonstopux*)
 
2943
  symcode='[BCDEGRST]'
 
2944
  ;;
 
2945
osf*)
 
2946
  symcode='[BCDEGQRST]'
 
2947
  ;;
 
2948
solaris* | sysv5*)
 
2949
  symcode='[BDT]'
 
2950
  ;;
 
2951
sysv4)
 
2952
  symcode='[DFNSTU]'
 
2953
  ;;
 
2954
esac
 
2955
 
 
2956
# Handle CRLF in mingw tool chain
 
2957
opt_cr=
 
2958
case $host_os in
 
2959
mingw*)
 
2960
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
2961
  ;;
 
2962
esac
 
2963
 
 
2964
# If we're using GNU nm, then use its standard symbol codes.
 
2965
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
2966
  symcode='[ABCDGISTW]'
 
2967
fi
 
2968
 
 
2969
# Try without a prefix undercore, then with it.
 
2970
for ac_symprfx in "" "_"; do
 
2971
 
 
2972
  # Write the raw and C identifiers.
 
2973
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
2974
 
 
2975
  # Check to see that the pipe works correctly.
 
2976
  pipe_works=no
 
2977
  rm -f conftest*
 
2978
  cat > conftest.$ac_ext <<EOF
 
2979
#ifdef __cplusplus
 
2980
extern "C" {
 
2981
#endif
 
2982
char nm_test_var;
 
2983
void nm_test_func(){}
 
2984
#ifdef __cplusplus
 
2985
}
 
2986
#endif
 
2987
int main(){nm_test_var='a';nm_test_func();return(0);}
 
2988
EOF
 
2989
 
 
2990
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2991
  (eval $ac_compile) 2>&5
 
2992
  ac_status=$?
 
2993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2994
  (exit $ac_status); }; then
 
2995
    # Now try to grab the symbols.
 
2996
    nlist=conftest.nm
 
2997
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
2998
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
2999
  ac_status=$?
 
3000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3001
  (exit $ac_status); } && test -s "$nlist"; then
 
3002
      # Try sorting and uniquifying the output.
 
3003
      if sort "$nlist" | uniq > "$nlist"T; then
 
3004
        mv -f "$nlist"T "$nlist"
 
3005
      else
 
3006
        rm -f "$nlist"T
 
3007
      fi
 
3008
 
 
3009
      # Make sure that we snagged all the symbols we need.
 
3010
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
3011
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
3012
          cat <<EOF > conftest.$ac_ext
 
3013
#ifdef __cplusplus
 
3014
extern "C" {
 
3015
#endif
 
3016
 
 
3017
EOF
 
3018
          # Now generate the symbol file.
 
3019
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
3020
 
 
3021
          cat <<EOF >> conftest.$ac_ext
 
3022
#if defined (__STDC__) && __STDC__
 
3023
# define lt_ptr void *
 
3024
#else
 
3025
# define lt_ptr char *
 
3026
# define const
 
3027
#endif
 
3028
 
 
3029
/* The mapping between symbol names and symbols. */
 
3030
const struct {
 
3031
  const char *name;
 
3032
  lt_ptr address;
 
3033
}
 
3034
lt_preloaded_symbols[] =
 
3035
{
 
3036
EOF
 
3037
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
3038
          cat <<\EOF >> conftest.$ac_ext
 
3039
  {0, (lt_ptr) 0}
 
3040
};
 
3041
 
 
3042
#ifdef __cplusplus
 
3043
}
 
3044
#endif
 
3045
EOF
 
3046
          # Now try linking the two files.
 
3047
          mv conftest.$ac_objext conftstm.$ac_objext
 
3048
          save_LIBS="$LIBS"
 
3049
          save_CFLAGS="$CFLAGS"
 
3050
          LIBS="conftstm.$ac_objext"
 
3051
          CFLAGS="$CFLAGS$no_builtin_flag"
 
3052
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3053
  (eval $ac_link) 2>&5
 
3054
  ac_status=$?
 
3055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3056
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
3057
            pipe_works=yes
 
3058
          fi
 
3059
          LIBS="$save_LIBS"
 
3060
          CFLAGS="$save_CFLAGS"
 
3061
        else
 
3062
          echo "cannot find nm_test_func in $nlist" >&5
 
3063
        fi
 
3064
      else
 
3065
        echo "cannot find nm_test_var in $nlist" >&5
 
3066
      fi
 
3067
    else
 
3068
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
3069
    fi
 
3070
  else
 
3071
    echo "$progname: failed program was:" >&5
 
3072
    cat conftest.$ac_ext >&5
 
3073
  fi
 
3074
  rm -f conftest* conftst*
 
3075
 
 
3076
  # Do not use the global_symbol_pipe unless it works.
 
3077
  if test "$pipe_works" = yes; then
 
3078
    break
 
3079
  else
 
3080
    lt_cv_sys_global_symbol_pipe=
 
3081
  fi
 
3082
done
 
3083
 
 
3084
fi
 
3085
 
 
3086
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
3087
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
3088
  global_symbol_to_cdecl=
 
3089
  global_symbol_to_c_name_address=
 
3090
else
 
3091
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
3092
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
3093
fi
 
3094
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
3095
then
 
3096
  echo "$as_me:$LINENO: result: failed" >&5
 
3097
echo "${ECHO_T}failed" >&6
 
3098
else
 
3099
  echo "$as_me:$LINENO: result: ok" >&5
 
3100
echo "${ECHO_T}ok" >&6
 
3101
fi
 
3102
 
 
3103
ac_ext=c
 
3104
ac_cpp='$CPP $CPPFLAGS'
 
3105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3108
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3109
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
893
3110
# On Suns, sometimes $CPP names a directory.
894
3111
if test -n "$CPP" && test -d "$CPP"; then
895
3112
  CPP=
896
3113
fi
897
3114
if test -z "$CPP"; then
898
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
899
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3115
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3116
  echo $ECHO_N "(cached) $ECHO_C" >&6
900
3117
else
901
 
    # This must be in double quotes, not single quotes, because CPP may get
902
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
903
 
  CPP="${CC-cc} -E"
 
3118
      # Double quotes because CPP needs to be expanded
 
3119
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3120
    do
 
3121
      ac_preproc_ok=false
 
3122
for ac_c_preproc_warn_flag in '' yes
 
3123
do
 
3124
  # Use a header file that comes with gcc, so configuring glibc
 
3125
  # with a fresh cross-compiler works.
 
3126
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3127
  # <limits.h> exists even on freestanding compilers.
904
3128
  # On the NeXT, cc -E runs the code through the compiler's parser,
905
 
  # not just through cpp.
906
 
  cat > conftest.$ac_ext <<EOF
907
 
#line 908 "configure"
908
 
#include "confdefs.h"
909
 
#include <assert.h>
910
 
Syntax Error
911
 
EOF
912
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
913
 
{ (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
914
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
915
 
if test -z "$ac_err"; then
916
 
  :
917
 
else
918
 
  echo "$ac_err" >&5
919
 
  echo "configure: failed program was:" >&5
920
 
  cat conftest.$ac_ext >&5
921
 
  rm -rf conftest*
922
 
  CPP="${CC-cc} -E -traditional-cpp"
923
 
  cat > conftest.$ac_ext <<EOF
924
 
#line 925 "configure"
925
 
#include "confdefs.h"
926
 
#include <assert.h>
927
 
Syntax Error
928
 
EOF
929
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
930
 
{ (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
931
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
932
 
if test -z "$ac_err"; then
933
 
  :
934
 
else
935
 
  echo "$ac_err" >&5
936
 
  echo "configure: failed program was:" >&5
937
 
  cat conftest.$ac_ext >&5
938
 
  rm -rf conftest*
939
 
  CPP="${CC-cc} -nologo -E"
940
 
  cat > conftest.$ac_ext <<EOF
941
 
#line 942 "configure"
942
 
#include "confdefs.h"
943
 
#include <assert.h>
944
 
Syntax Error
945
 
EOF
946
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
947
 
{ (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
948
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
949
 
if test -z "$ac_err"; then
950
 
  :
951
 
else
952
 
  echo "$ac_err" >&5
953
 
  echo "configure: failed program was:" >&5
954
 
  cat conftest.$ac_ext >&5
955
 
  rm -rf conftest*
956
 
  CPP=/lib/cpp
957
 
fi
958
 
rm -f conftest*
959
 
fi
960
 
rm -f conftest*
961
 
fi
962
 
rm -f conftest*
963
 
  ac_cv_prog_CPP="$CPP"
964
 
fi
965
 
  CPP="$ac_cv_prog_CPP"
966
 
else
967
 
  ac_cv_prog_CPP="$CPP"
968
 
fi
969
 
echo "$ac_t""$CPP" 1>&6
970
 
 
971
 
# If we find X, set shell vars x_includes and x_libraries to the
972
 
# paths, otherwise set no_x=yes.
973
 
# Uses ac_ vars as temps to allow command line to override cache and checks.
974
 
# --without-x overrides everything else, but does not touch the cache.
975
 
echo $ac_n "checking for X""... $ac_c" 1>&6
976
 
echo "configure:977: checking for X" >&5
977
 
 
978
 
# Check whether --with-x or --without-x was given.
979
 
if test "${with_x+set}" = set; then
980
 
  withval="$with_x"
981
 
  :
982
 
fi
983
 
 
984
 
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
985
 
if test "x$with_x" = xno; then
986
 
  # The user explicitly disabled X.
987
 
  have_x=disabled
988
 
else
989
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
990
 
    # Both variables are already set.
991
 
    have_x=yes
992
 
  else
993
 
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
994
 
  echo $ac_n "(cached) $ac_c" 1>&6
995
 
else
996
 
  # One or both of the vars are not set, and there is no cached value.
997
 
ac_x_includes=NO ac_x_libraries=NO
998
 
rm -fr conftestdir
999
 
if mkdir conftestdir; then
1000
 
  cd conftestdir
1001
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1002
 
  cat > Imakefile <<'EOF'
1003
 
acfindx:
1004
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1005
 
EOF
1006
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1007
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1008
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1009
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1010
 
    for ac_extension in a so sl; do
1011
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1012
 
        test -f $ac_im_libdir/libX11.$ac_extension; then
1013
 
        ac_im_usrlibdir=$ac_im_libdir; break
1014
 
      fi
 
3129
  # not just through cpp. "Syntax error" is here to catch this case.
 
3130
  cat >conftest.$ac_ext <<_ACEOF
 
3131
#line $LINENO "configure"
 
3132
/* confdefs.h.  */
 
3133
_ACEOF
 
3134
cat confdefs.h >>conftest.$ac_ext
 
3135
cat >>conftest.$ac_ext <<_ACEOF
 
3136
/* end confdefs.h.  */
 
3137
#ifdef __STDC__
 
3138
# include <limits.h>
 
3139
#else
 
3140
# include <assert.h>
 
3141
#endif
 
3142
                     Syntax error
 
3143
_ACEOF
 
3144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3145
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3146
  ac_status=$?
 
3147
  grep -v '^ *+' conftest.er1 >conftest.err
 
3148
  rm -f conftest.er1
 
3149
  cat conftest.err >&5
 
3150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3151
  (exit $ac_status); } >/dev/null; then
 
3152
  if test -s conftest.err; then
 
3153
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3154
  else
 
3155
    ac_cpp_err=
 
3156
  fi
 
3157
else
 
3158
  ac_cpp_err=yes
 
3159
fi
 
3160
if test -z "$ac_cpp_err"; then
 
3161
  :
 
3162
else
 
3163
  echo "$as_me: failed program was:" >&5
 
3164
sed 's/^/| /' conftest.$ac_ext >&5
 
3165
 
 
3166
  # Broken: fails on valid input.
 
3167
continue
 
3168
fi
 
3169
rm -f conftest.err conftest.$ac_ext
 
3170
 
 
3171
  # OK, works on sane cases.  Now check whether non-existent headers
 
3172
  # can be detected and how.
 
3173
  cat >conftest.$ac_ext <<_ACEOF
 
3174
#line $LINENO "configure"
 
3175
/* confdefs.h.  */
 
3176
_ACEOF
 
3177
cat confdefs.h >>conftest.$ac_ext
 
3178
cat >>conftest.$ac_ext <<_ACEOF
 
3179
/* end confdefs.h.  */
 
3180
#include <ac_nonexistent.h>
 
3181
_ACEOF
 
3182
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3183
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3184
  ac_status=$?
 
3185
  grep -v '^ *+' conftest.er1 >conftest.err
 
3186
  rm -f conftest.er1
 
3187
  cat conftest.err >&5
 
3188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3189
  (exit $ac_status); } >/dev/null; then
 
3190
  if test -s conftest.err; then
 
3191
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3192
  else
 
3193
    ac_cpp_err=
 
3194
  fi
 
3195
else
 
3196
  ac_cpp_err=yes
 
3197
fi
 
3198
if test -z "$ac_cpp_err"; then
 
3199
  # Broken: success on invalid input.
 
3200
continue
 
3201
else
 
3202
  echo "$as_me: failed program was:" >&5
 
3203
sed 's/^/| /' conftest.$ac_ext >&5
 
3204
 
 
3205
  # Passes both tests.
 
3206
ac_preproc_ok=:
 
3207
break
 
3208
fi
 
3209
rm -f conftest.err conftest.$ac_ext
 
3210
 
 
3211
done
 
3212
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3213
rm -f conftest.err conftest.$ac_ext
 
3214
if $ac_preproc_ok; then
 
3215
  break
 
3216
fi
 
3217
 
1015
3218
    done
1016
 
    # Screen out bogus values from the imake configuration.  They are
1017
 
    # bogus both because they are the default anyway, and because
1018
 
    # using them would break gcc on systems where it needs fixed includes.
1019
 
    case "$ac_im_incroot" in
1020
 
        /usr/include) ;;
1021
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1022
 
    esac
1023
 
    case "$ac_im_usrlibdir" in
1024
 
        /usr/lib | /lib) ;;
1025
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1026
 
    esac
1027
 
  fi
1028
 
  cd ..
1029
 
  rm -fr conftestdir
1030
 
fi
1031
 
 
1032
 
if test "$ac_x_includes" = NO; then
1033
 
  # Guess where to find include files, by looking for this one X11 .h file.
1034
 
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1035
 
 
1036
 
  # First, try using that file with no special directory specified.
1037
 
cat > conftest.$ac_ext <<EOF
1038
 
#line 1039 "configure"
1039
 
#include "confdefs.h"
1040
 
#include <$x_direct_test_include>
1041
 
EOF
1042
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1043
 
{ (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1044
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045
 
if test -z "$ac_err"; then
1046
 
  rm -rf conftest*
1047
 
  # We can compile using X headers with no special include directory.
1048
 
ac_x_includes=
1049
 
else
1050
 
  echo "$ac_err" >&5
1051
 
  echo "configure: failed program was:" >&5
1052
 
  cat conftest.$ac_ext >&5
1053
 
  rm -rf conftest*
1054
 
  # Look for the header file in a standard set of common directories.
1055
 
# Check X11 before X11Rn because it is often a symlink to the current release.
1056
 
  for ac_dir in               \
1057
 
    /usr/X11/include          \
1058
 
    /usr/X11R6/include        \
1059
 
    /usr/X11R5/include        \
1060
 
    /usr/X11R4/include        \
1061
 
                              \
1062
 
    /usr/include/X11          \
1063
 
    /usr/include/X11R6        \
1064
 
    /usr/include/X11R5        \
1065
 
    /usr/include/X11R4        \
1066
 
                              \
1067
 
    /usr/local/X11/include    \
1068
 
    /usr/local/X11R6/include  \
1069
 
    /usr/local/X11R5/include  \
1070
 
    /usr/local/X11R4/include  \
1071
 
                              \
1072
 
    /usr/local/include/X11    \
1073
 
    /usr/local/include/X11R6  \
1074
 
    /usr/local/include/X11R5  \
1075
 
    /usr/local/include/X11R4  \
1076
 
                              \
1077
 
    /usr/X386/include         \
1078
 
    /usr/x386/include         \
1079
 
    /usr/XFree86/include/X11  \
1080
 
                              \
1081
 
    /usr/include              \
1082
 
    /usr/local/include        \
1083
 
    /usr/unsupported/include  \
1084
 
    /usr/athena/include       \
1085
 
    /usr/local/x11r5/include  \
1086
 
    /usr/lpp/Xamples/include  \
1087
 
                              \
1088
 
    /usr/openwin/include      \
1089
 
    /usr/openwin/share/include \
1090
 
    ; \
1091
 
  do
1092
 
    if test -r "$ac_dir/$x_direct_test_include"; then
1093
 
      ac_x_includes=$ac_dir
1094
 
      break
1095
 
    fi
1096
 
  done
1097
 
fi
1098
 
rm -f conftest*
1099
 
fi # $ac_x_includes = NO
1100
 
 
1101
 
if test "$ac_x_libraries" = NO; then
1102
 
  # Check for the libraries.
1103
 
 
1104
 
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
1105
 
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1106
 
 
1107
 
  # See if we find them without any special options.
1108
 
  # Don't add to $LIBS permanently.
1109
 
  ac_save_LIBS="$LIBS"
1110
 
  LIBS="-l$x_direct_test_library $LIBS"
1111
 
cat > conftest.$ac_ext <<EOF
1112
 
#line 1113 "configure"
1113
 
#include "confdefs.h"
1114
 
 
1115
 
int main() {
1116
 
${x_direct_test_function}()
1117
 
; return 0; }
1118
 
EOF
1119
 
if { (eval echo configure:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1120
 
  rm -rf conftest*
1121
 
  LIBS="$ac_save_LIBS"
1122
 
# We can link X programs with no special library path.
1123
 
ac_x_libraries=
1124
 
else
1125
 
  echo "configure: failed program was:" >&5
1126
 
  cat conftest.$ac_ext >&5
1127
 
  rm -rf conftest*
1128
 
  LIBS="$ac_save_LIBS"
1129
 
# First see if replacing the include by lib works.
1130
 
# Check X11 before X11Rn because it is often a symlink to the current release.
1131
 
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1132
 
    /usr/X11/lib          \
1133
 
    /usr/X11R6/lib        \
1134
 
    /usr/X11R5/lib        \
1135
 
    /usr/X11R4/lib        \
1136
 
                          \
1137
 
    /usr/lib/X11          \
1138
 
    /usr/lib/X11R6        \
1139
 
    /usr/lib/X11R5        \
1140
 
    /usr/lib/X11R4        \
1141
 
                          \
1142
 
    /usr/local/X11/lib    \
1143
 
    /usr/local/X11R6/lib  \
1144
 
    /usr/local/X11R5/lib  \
1145
 
    /usr/local/X11R4/lib  \
1146
 
                          \
1147
 
    /usr/local/lib/X11    \
1148
 
    /usr/local/lib/X11R6  \
1149
 
    /usr/local/lib/X11R5  \
1150
 
    /usr/local/lib/X11R4  \
1151
 
                          \
1152
 
    /usr/X386/lib         \
1153
 
    /usr/x386/lib         \
1154
 
    /usr/XFree86/lib/X11  \
1155
 
                          \
1156
 
    /usr/lib              \
1157
 
    /usr/local/lib        \
1158
 
    /usr/unsupported/lib  \
1159
 
    /usr/athena/lib       \
1160
 
    /usr/local/x11r5/lib  \
1161
 
    /usr/lpp/Xamples/lib  \
1162
 
    /lib/usr/lib/X11      \
1163
 
                          \
1164
 
    /usr/openwin/lib      \
1165
 
    /usr/openwin/share/lib \
1166
 
    ; \
 
3219
    ac_cv_prog_CPP=$CPP
 
3220
 
 
3221
fi
 
3222
  CPP=$ac_cv_prog_CPP
 
3223
else
 
3224
  ac_cv_prog_CPP=$CPP
 
3225
fi
 
3226
echo "$as_me:$LINENO: result: $CPP" >&5
 
3227
echo "${ECHO_T}$CPP" >&6
 
3228
ac_preproc_ok=false
 
3229
for ac_c_preproc_warn_flag in '' yes
1167
3230
do
1168
 
  for ac_extension in a so sl; do
1169
 
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1170
 
      ac_x_libraries=$ac_dir
1171
 
      break 2
1172
 
    fi
1173
 
  done
 
3231
  # Use a header file that comes with gcc, so configuring glibc
 
3232
  # with a fresh cross-compiler works.
 
3233
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3234
  # <limits.h> exists even on freestanding compilers.
 
3235
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3236
  # not just through cpp. "Syntax error" is here to catch this case.
 
3237
  cat >conftest.$ac_ext <<_ACEOF
 
3238
#line $LINENO "configure"
 
3239
/* confdefs.h.  */
 
3240
_ACEOF
 
3241
cat confdefs.h >>conftest.$ac_ext
 
3242
cat >>conftest.$ac_ext <<_ACEOF
 
3243
/* end confdefs.h.  */
 
3244
#ifdef __STDC__
 
3245
# include <limits.h>
 
3246
#else
 
3247
# include <assert.h>
 
3248
#endif
 
3249
                     Syntax error
 
3250
_ACEOF
 
3251
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3252
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3253
  ac_status=$?
 
3254
  grep -v '^ *+' conftest.er1 >conftest.err
 
3255
  rm -f conftest.er1
 
3256
  cat conftest.err >&5
 
3257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3258
  (exit $ac_status); } >/dev/null; then
 
3259
  if test -s conftest.err; then
 
3260
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3261
  else
 
3262
    ac_cpp_err=
 
3263
  fi
 
3264
else
 
3265
  ac_cpp_err=yes
 
3266
fi
 
3267
if test -z "$ac_cpp_err"; then
 
3268
  :
 
3269
else
 
3270
  echo "$as_me: failed program was:" >&5
 
3271
sed 's/^/| /' conftest.$ac_ext >&5
 
3272
 
 
3273
  # Broken: fails on valid input.
 
3274
continue
 
3275
fi
 
3276
rm -f conftest.err conftest.$ac_ext
 
3277
 
 
3278
  # OK, works on sane cases.  Now check whether non-existent headers
 
3279
  # can be detected and how.
 
3280
  cat >conftest.$ac_ext <<_ACEOF
 
3281
#line $LINENO "configure"
 
3282
/* confdefs.h.  */
 
3283
_ACEOF
 
3284
cat confdefs.h >>conftest.$ac_ext
 
3285
cat >>conftest.$ac_ext <<_ACEOF
 
3286
/* end confdefs.h.  */
 
3287
#include <ac_nonexistent.h>
 
3288
_ACEOF
 
3289
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3290
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3291
  ac_status=$?
 
3292
  grep -v '^ *+' conftest.er1 >conftest.err
 
3293
  rm -f conftest.er1
 
3294
  cat conftest.err >&5
 
3295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3296
  (exit $ac_status); } >/dev/null; then
 
3297
  if test -s conftest.err; then
 
3298
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3299
  else
 
3300
    ac_cpp_err=
 
3301
  fi
 
3302
else
 
3303
  ac_cpp_err=yes
 
3304
fi
 
3305
if test -z "$ac_cpp_err"; then
 
3306
  # Broken: success on invalid input.
 
3307
continue
 
3308
else
 
3309
  echo "$as_me: failed program was:" >&5
 
3310
sed 's/^/| /' conftest.$ac_ext >&5
 
3311
 
 
3312
  # Passes both tests.
 
3313
ac_preproc_ok=:
 
3314
break
 
3315
fi
 
3316
rm -f conftest.err conftest.$ac_ext
 
3317
 
1174
3318
done
1175
 
fi
1176
 
rm -f conftest*
1177
 
fi # $ac_x_libraries = NO
1178
 
 
1179
 
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1180
 
  # Didn't find X anywhere.  Cache the known absence of X.
1181
 
  ac_cv_have_x="have_x=no"
1182
 
else
1183
 
  # Record where we found X for the cache.
1184
 
  ac_cv_have_x="have_x=yes \
1185
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1186
 
fi
1187
 
fi
1188
 
  fi
1189
 
  eval "$ac_cv_have_x"
1190
 
fi # $with_x != no
1191
 
 
1192
 
if test "$have_x" != yes; then
1193
 
  echo "$ac_t""$have_x" 1>&6
1194
 
  no_x=yes
1195
 
else
1196
 
  # If each of the values was on the command line, it overrides each guess.
1197
 
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1198
 
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1199
 
  # Update the cache value to reflect the command line values.
1200
 
  ac_cv_have_x="have_x=yes \
1201
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1202
 
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1203
 
fi
1204
 
 
1205
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1206
 
echo "configure:1207: checking for ANSI C header files" >&5
1207
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1208
 
  echo $ac_n "(cached) $ac_c" 1>&6
1209
 
else
1210
 
  cat > conftest.$ac_ext <<EOF
1211
 
#line 1212 "configure"
1212
 
#include "confdefs.h"
 
3319
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3320
rm -f conftest.err conftest.$ac_ext
 
3321
if $ac_preproc_ok; then
 
3322
  :
 
3323
else
 
3324
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3325
See \`config.log' for more details." >&5
 
3326
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3327
See \`config.log' for more details." >&2;}
 
3328
   { (exit 1); exit 1; }; }
 
3329
fi
 
3330
 
 
3331
ac_ext=c
 
3332
ac_cpp='$CPP $CPPFLAGS'
 
3333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3336
 
 
3337
 
 
3338
echo "$as_me:$LINENO: checking for egrep" >&5
 
3339
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3340
if test "${ac_cv_prog_egrep+set}" = set; then
 
3341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3342
else
 
3343
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3344
    then ac_cv_prog_egrep='grep -E'
 
3345
    else ac_cv_prog_egrep='egrep'
 
3346
    fi
 
3347
fi
 
3348
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3349
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3350
 EGREP=$ac_cv_prog_egrep
 
3351
 
 
3352
 
 
3353
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3354
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3355
if test "${ac_cv_header_stdc+set}" = set; then
 
3356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3357
else
 
3358
  cat >conftest.$ac_ext <<_ACEOF
 
3359
#line $LINENO "configure"
 
3360
/* confdefs.h.  */
 
3361
_ACEOF
 
3362
cat confdefs.h >>conftest.$ac_ext
 
3363
cat >>conftest.$ac_ext <<_ACEOF
 
3364
/* end confdefs.h.  */
1213
3365
#include <stdlib.h>
1214
3366
#include <stdarg.h>
1215
3367
#include <string.h>
1216
3368
#include <float.h>
1217
 
EOF
1218
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219
 
{ (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1221
 
if test -z "$ac_err"; then
1222
 
  rm -rf conftest*
 
3369
 
 
3370
int
 
3371
main ()
 
3372
{
 
3373
 
 
3374
  ;
 
3375
  return 0;
 
3376
}
 
3377
_ACEOF
 
3378
rm -f conftest.$ac_objext
 
3379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3380
  (eval $ac_compile) 2>&5
 
3381
  ac_status=$?
 
3382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3383
  (exit $ac_status); } &&
 
3384
         { ac_try='test -s conftest.$ac_objext'
 
3385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3386
  (eval $ac_try) 2>&5
 
3387
  ac_status=$?
 
3388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3389
  (exit $ac_status); }; }; then
1223
3390
  ac_cv_header_stdc=yes
1224
3391
else
1225
 
  echo "$ac_err" >&5
1226
 
  echo "configure: failed program was:" >&5
1227
 
  cat conftest.$ac_ext >&5
1228
 
  rm -rf conftest*
1229
 
  ac_cv_header_stdc=no
 
3392
  echo "$as_me: failed program was:" >&5
 
3393
sed 's/^/| /' conftest.$ac_ext >&5
 
3394
 
 
3395
ac_cv_header_stdc=no
1230
3396
fi
1231
 
rm -f conftest*
 
3397
rm -f conftest.$ac_objext conftest.$ac_ext
1232
3398
 
1233
3399
if test $ac_cv_header_stdc = yes; then
1234
3400
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1235
 
cat > conftest.$ac_ext <<EOF
1236
 
#line 1237 "configure"
1237
 
#include "confdefs.h"
 
3401
  cat >conftest.$ac_ext <<_ACEOF
 
3402
#line $LINENO "configure"
 
3403
/* confdefs.h.  */
 
3404
_ACEOF
 
3405
cat confdefs.h >>conftest.$ac_ext
 
3406
cat >>conftest.$ac_ext <<_ACEOF
 
3407
/* end confdefs.h.  */
1238
3408
#include <string.h>
1239
 
EOF
 
3409
 
 
3410
_ACEOF
1240
3411
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1241
 
  egrep "memchr" >/dev/null 2>&1; then
 
3412
  $EGREP "memchr" >/dev/null 2>&1; then
1242
3413
  :
1243
3414
else
1244
 
  rm -rf conftest*
1245
3415
  ac_cv_header_stdc=no
1246
3416
fi
1247
3417
rm -f conftest*
1250
3420
 
1251
3421
if test $ac_cv_header_stdc = yes; then
1252
3422
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1253
 
cat > conftest.$ac_ext <<EOF
1254
 
#line 1255 "configure"
1255
 
#include "confdefs.h"
 
3423
  cat >conftest.$ac_ext <<_ACEOF
 
3424
#line $LINENO "configure"
 
3425
/* confdefs.h.  */
 
3426
_ACEOF
 
3427
cat confdefs.h >>conftest.$ac_ext
 
3428
cat >>conftest.$ac_ext <<_ACEOF
 
3429
/* end confdefs.h.  */
1256
3430
#include <stdlib.h>
1257
 
EOF
 
3431
 
 
3432
_ACEOF
1258
3433
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1259
 
  egrep "free" >/dev/null 2>&1; then
 
3434
  $EGREP "free" >/dev/null 2>&1; then
1260
3435
  :
1261
3436
else
1262
 
  rm -rf conftest*
1263
3437
  ac_cv_header_stdc=no
1264
3438
fi
1265
3439
rm -f conftest*
1268
3442
 
1269
3443
if test $ac_cv_header_stdc = yes; then
1270
3444
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1271
 
if test "$cross_compiling" = yes; then
 
3445
  if test "$cross_compiling" = yes; then
1272
3446
  :
1273
3447
else
1274
 
  cat > conftest.$ac_ext <<EOF
1275
 
#line 1276 "configure"
1276
 
#include "confdefs.h"
 
3448
  cat >conftest.$ac_ext <<_ACEOF
 
3449
#line $LINENO "configure"
 
3450
/* confdefs.h.  */
 
3451
_ACEOF
 
3452
cat confdefs.h >>conftest.$ac_ext
 
3453
cat >>conftest.$ac_ext <<_ACEOF
 
3454
/* end confdefs.h.  */
1277
3455
#include <ctype.h>
1278
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1279
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3456
#if ((' ' & 0x0FF) == 0x020)
 
3457
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3458
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3459
#else
 
3460
# define ISLOWER(c) \
 
3461
                   (('a' <= (c) && (c) <= 'i') \
 
3462
                     || ('j' <= (c) && (c) <= 'r') \
 
3463
                     || ('s' <= (c) && (c) <= 'z'))
 
3464
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3465
#endif
 
3466
 
1280
3467
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1281
 
int main () { int i; for (i = 0; i < 256; i++)
1282
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1283
 
exit (0); }
1284
 
 
1285
 
EOF
1286
 
if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1287
 
then
 
3468
int
 
3469
main ()
 
3470
{
 
3471
  int i;
 
3472
  for (i = 0; i < 256; i++)
 
3473
    if (XOR (islower (i), ISLOWER (i))
 
3474
        || toupper (i) != TOUPPER (i))
 
3475
      exit(2);
 
3476
  exit (0);
 
3477
}
 
3478
_ACEOF
 
3479
rm -f conftest$ac_exeext
 
3480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3481
  (eval $ac_link) 2>&5
 
3482
  ac_status=$?
 
3483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3484
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3486
  (eval $ac_try) 2>&5
 
3487
  ac_status=$?
 
3488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3489
  (exit $ac_status); }; }; then
1288
3490
  :
1289
3491
else
1290
 
  echo "configure: failed program was:" >&5
1291
 
  cat conftest.$ac_ext >&5
1292
 
  rm -fr conftest*
1293
 
  ac_cv_header_stdc=no
1294
 
fi
1295
 
rm -fr conftest*
1296
 
fi
1297
 
 
1298
 
fi
1299
 
fi
1300
 
 
1301
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
3492
  echo "$as_me: program exited with status $ac_status" >&5
 
3493
echo "$as_me: failed program was:" >&5
 
3494
sed 's/^/| /' conftest.$ac_ext >&5
 
3495
 
 
3496
( exit $ac_status )
 
3497
ac_cv_header_stdc=no
 
3498
fi
 
3499
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3500
fi
 
3501
fi
 
3502
fi
 
3503
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3504
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1302
3505
if test $ac_cv_header_stdc = yes; then
1303
 
  cat >> confdefs.h <<\EOF
 
3506
 
 
3507
cat >>confdefs.h <<\_ACEOF
1304
3508
#define STDC_HEADERS 1
1305
 
EOF
1306
 
 
1307
 
fi
1308
 
 
1309
 
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1310
 
echo "configure:1311: checking for sys/wait.h that is POSIX.1 compatible" >&5
1311
 
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1312
 
  echo $ac_n "(cached) $ac_c" 1>&6
1313
 
else
1314
 
  cat > conftest.$ac_ext <<EOF
1315
 
#line 1316 "configure"
1316
 
#include "confdefs.h"
1317
 
#include <sys/types.h>
1318
 
#include <sys/wait.h>
1319
 
#ifndef WEXITSTATUS
1320
 
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1321
 
#endif
1322
 
#ifndef WIFEXITED
1323
 
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1324
 
#endif
1325
 
int main() {
1326
 
int s;
1327
 
wait (&s);
1328
 
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1329
 
; return 0; }
1330
 
EOF
1331
 
if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332
 
  rm -rf conftest*
1333
 
  ac_cv_header_sys_wait_h=yes
1334
 
else
1335
 
  echo "configure: failed program was:" >&5
1336
 
  cat conftest.$ac_ext >&5
1337
 
  rm -rf conftest*
1338
 
  ac_cv_header_sys_wait_h=no
1339
 
fi
1340
 
rm -f conftest*
1341
 
fi
1342
 
 
1343
 
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1344
 
if test $ac_cv_header_sys_wait_h = yes; then
1345
 
  cat >> confdefs.h <<\EOF
1346
 
#define HAVE_SYS_WAIT_H 1
1347
 
EOF
1348
 
 
1349
 
fi
1350
 
 
1351
 
for ac_hdr in fcntl.h unistd.h
1352
 
do
1353
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1354
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1355
 
echo "configure:1356: checking for $ac_hdr" >&5
1356
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1357
 
  echo $ac_n "(cached) $ac_c" 1>&6
1358
 
else
1359
 
  cat > conftest.$ac_ext <<EOF
1360
 
#line 1361 "configure"
1361
 
#include "confdefs.h"
1362
 
#include <$ac_hdr>
1363
 
EOF
1364
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1365
 
{ (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1366
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1367
 
if test -z "$ac_err"; then
1368
 
  rm -rf conftest*
1369
 
  eval "ac_cv_header_$ac_safe=yes"
1370
 
else
1371
 
  echo "$ac_err" >&5
1372
 
  echo "configure: failed program was:" >&5
1373
 
  cat conftest.$ac_ext >&5
1374
 
  rm -rf conftest*
1375
 
  eval "ac_cv_header_$ac_safe=no"
1376
 
fi
1377
 
rm -f conftest*
1378
 
fi
1379
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1380
 
  echo "$ac_t""yes" 1>&6
1381
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1382
 
  cat >> confdefs.h <<EOF
1383
 
#define $ac_tr_hdr 1
1384
 
EOF
1385
 
 
1386
 
else
1387
 
  echo "$ac_t""no" 1>&6
1388
 
fi
1389
 
done
1390
 
 
1391
 
for ac_hdr in tcl.h tk.h
1392
 
do
1393
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1394
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1395
 
echo "configure:1396: checking for $ac_hdr" >&5
1396
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1397
 
  echo $ac_n "(cached) $ac_c" 1>&6
1398
 
else
1399
 
  cat > conftest.$ac_ext <<EOF
1400
 
#line 1401 "configure"
1401
 
#include "confdefs.h"
1402
 
#include <$ac_hdr>
1403
 
EOF
1404
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405
 
{ (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1407
 
if test -z "$ac_err"; then
1408
 
  rm -rf conftest*
1409
 
  eval "ac_cv_header_$ac_safe=yes"
1410
 
else
1411
 
  echo "$ac_err" >&5
1412
 
  echo "configure: failed program was:" >&5
1413
 
  cat conftest.$ac_ext >&5
1414
 
  rm -rf conftest*
1415
 
  eval "ac_cv_header_$ac_safe=no"
1416
 
fi
1417
 
rm -f conftest*
1418
 
fi
1419
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1420
 
  echo "$ac_t""yes" 1>&6
1421
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1422
 
  cat >> confdefs.h <<EOF
1423
 
#define $ac_tr_hdr 1
1424
 
EOF
1425
 
 
1426
 
else
1427
 
  echo "$ac_t""no" 1>&6
1428
 
fi
1429
 
done
1430
 
 
1431
 
 
1432
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
1433
 
echo "configure:1434: checking for working const" >&5
1434
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1435
 
  echo $ac_n "(cached) $ac_c" 1>&6
1436
 
else
1437
 
  cat > conftest.$ac_ext <<EOF
1438
 
#line 1439 "configure"
1439
 
#include "confdefs.h"
1440
 
 
1441
 
int main() {
1442
 
 
1443
 
/* Ultrix mips cc rejects this.  */
1444
 
typedef int charset[2]; const charset x = {0,0};
1445
 
/* SunOS 4.1.1 cc rejects this.  */
1446
 
char const *const *ccp;
1447
 
char **p;
1448
 
/* NEC SVR4.0.2 mips cc rejects this.  */
1449
 
struct point {int x, y;};
1450
 
static struct point const zero = {0,0};
1451
 
/* AIX XL C 1.02.0.0 rejects this.
1452
 
   It does not let you subtract one const X* pointer from another in an arm
1453
 
   of an if-expression whose if-part is not a constant expression */
1454
 
const char *g = "string";
1455
 
ccp = &g + (g ? g-g : 0);
1456
 
/* HPUX 7.0 cc rejects these. */
1457
 
++ccp;
1458
 
p = (char**) ccp;
1459
 
ccp = (char const *const *) p;
1460
 
{ /* SCO 3.2v4 cc rejects this.  */
1461
 
  char *t;
1462
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1463
 
 
1464
 
  *t++ = 0;
1465
 
}
1466
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1467
 
  int x[] = {25, 17};
1468
 
  const int *foo = &x[0];
1469
 
  ++foo;
1470
 
}
1471
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1472
 
  typedef const int *iptr;
1473
 
  iptr p = 0;
1474
 
  ++p;
1475
 
}
1476
 
{ /* AIX XL C 1.02.0.0 rejects this saying
1477
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1478
 
  struct s { int j; const int *ap[3]; };
1479
 
  struct s *b; b->j = 5;
1480
 
}
1481
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1482
 
  const int foo = 10;
1483
 
}
1484
 
 
1485
 
; return 0; }
1486
 
EOF
1487
 
if { (eval echo configure:1488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488
 
  rm -rf conftest*
1489
 
  ac_cv_c_const=yes
1490
 
else
1491
 
  echo "configure: failed program was:" >&5
1492
 
  cat conftest.$ac_ext >&5
1493
 
  rm -rf conftest*
1494
 
  ac_cv_c_const=no
1495
 
fi
1496
 
rm -f conftest*
1497
 
fi
1498
 
 
1499
 
echo "$ac_t""$ac_cv_c_const" 1>&6
1500
 
if test $ac_cv_c_const = no; then
1501
 
  cat >> confdefs.h <<\EOF
1502
 
#define const 
1503
 
EOF
1504
 
 
1505
 
fi
1506
 
 
1507
 
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1508
 
echo "configure:1509: checking for pid_t" >&5
1509
 
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1510
 
  echo $ac_n "(cached) $ac_c" 1>&6
1511
 
else
1512
 
  cat > conftest.$ac_ext <<EOF
1513
 
#line 1514 "configure"
1514
 
#include "confdefs.h"
1515
 
#include <sys/types.h>
1516
 
#if STDC_HEADERS
1517
 
#include <stdlib.h>
1518
 
#include <stddef.h>
1519
 
#endif
1520
 
EOF
1521
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1522
 
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1523
 
  rm -rf conftest*
1524
 
  ac_cv_type_pid_t=yes
1525
 
else
1526
 
  rm -rf conftest*
1527
 
  ac_cv_type_pid_t=no
1528
 
fi
1529
 
rm -f conftest*
1530
 
 
1531
 
fi
1532
 
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1533
 
if test $ac_cv_type_pid_t = no; then
1534
 
  cat >> confdefs.h <<\EOF
1535
 
#define pid_t int
1536
 
EOF
1537
 
 
1538
 
fi
1539
 
 
1540
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1541
 
echo "configure:1542: checking for size_t" >&5
1542
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1543
 
  echo $ac_n "(cached) $ac_c" 1>&6
1544
 
else
1545
 
  cat > conftest.$ac_ext <<EOF
1546
 
#line 1547 "configure"
1547
 
#include "confdefs.h"
1548
 
#include <sys/types.h>
1549
 
#if STDC_HEADERS
1550
 
#include <stdlib.h>
1551
 
#include <stddef.h>
1552
 
#endif
1553
 
EOF
1554
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1556
 
  rm -rf conftest*
1557
 
  ac_cv_type_size_t=yes
1558
 
else
1559
 
  rm -rf conftest*
1560
 
  ac_cv_type_size_t=no
1561
 
fi
1562
 
rm -f conftest*
1563
 
 
1564
 
fi
1565
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1566
 
if test $ac_cv_type_size_t = no; then
1567
 
  cat >> confdefs.h <<\EOF
1568
 
#define size_t unsigned
1569
 
EOF
1570
 
 
1571
 
fi
1572
 
 
1573
 
 
1574
 
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1575
 
echo "configure:1576: checking for 8-bit clean memcmp" >&5
1576
 
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1577
 
  echo $ac_n "(cached) $ac_c" 1>&6
1578
 
else
1579
 
  if test "$cross_compiling" = yes; then
1580
 
  ac_cv_func_memcmp_clean=no
1581
 
else
1582
 
  cat > conftest.$ac_ext <<EOF
1583
 
#line 1584 "configure"
1584
 
#include "confdefs.h"
1585
 
 
1586
 
main()
1587
 
{
1588
 
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1589
 
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1590
 
}
1591
 
 
1592
 
EOF
1593
 
if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1594
 
then
1595
 
  ac_cv_func_memcmp_clean=yes
1596
 
else
1597
 
  echo "configure: failed program was:" >&5
1598
 
  cat conftest.$ac_ext >&5
1599
 
  rm -fr conftest*
1600
 
  ac_cv_func_memcmp_clean=no
1601
 
fi
1602
 
rm -fr conftest*
1603
 
fi
1604
 
 
1605
 
fi
1606
 
 
1607
 
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1608
 
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1609
 
 
1610
 
for ac_hdr in unistd.h
1611
 
do
1612
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1613
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1614
 
echo "configure:1615: checking for $ac_hdr" >&5
1615
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1616
 
  echo $ac_n "(cached) $ac_c" 1>&6
1617
 
else
1618
 
  cat > conftest.$ac_ext <<EOF
1619
 
#line 1620 "configure"
1620
 
#include "confdefs.h"
1621
 
#include <$ac_hdr>
1622
 
EOF
1623
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1624
 
{ (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1625
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1626
 
if test -z "$ac_err"; then
1627
 
  rm -rf conftest*
1628
 
  eval "ac_cv_header_$ac_safe=yes"
1629
 
else
1630
 
  echo "$ac_err" >&5
1631
 
  echo "configure: failed program was:" >&5
1632
 
  cat conftest.$ac_ext >&5
1633
 
  rm -rf conftest*
1634
 
  eval "ac_cv_header_$ac_safe=no"
1635
 
fi
1636
 
rm -f conftest*
1637
 
fi
1638
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1639
 
  echo "$ac_t""yes" 1>&6
1640
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1641
 
  cat >> confdefs.h <<EOF
1642
 
#define $ac_tr_hdr 1
1643
 
EOF
1644
 
 
1645
 
else
1646
 
  echo "$ac_t""no" 1>&6
1647
 
fi
1648
 
done
1649
 
 
1650
 
for ac_func in getpagesize
1651
 
do
1652
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653
 
echo "configure:1654: checking for $ac_func" >&5
1654
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655
 
  echo $ac_n "(cached) $ac_c" 1>&6
1656
 
else
1657
 
  cat > conftest.$ac_ext <<EOF
1658
 
#line 1659 "configure"
1659
 
#include "confdefs.h"
1660
 
/* System header to define __stub macros and hopefully few prototypes,
1661
 
    which can conflict with char $ac_func(); below.  */
1662
 
#include <assert.h>
1663
 
/* Override any gcc2 internal prototype to avoid an error.  */
1664
 
/* We use char because int might match the return type of a gcc2
1665
 
    builtin and then its argument prototype would still apply.  */
1666
 
char $ac_func();
1667
 
 
1668
 
int main() {
1669
 
 
1670
 
/* The GNU C library defines this for functions which it implements
1671
 
    to always fail with ENOSYS.  Some functions are actually named
1672
 
    something starting with __ and the normal name is an alias.  */
1673
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1674
 
choke me
1675
 
#else
1676
 
$ac_func();
1677
 
#endif
1678
 
 
1679
 
; return 0; }
1680
 
EOF
1681
 
if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1682
 
  rm -rf conftest*
1683
 
  eval "ac_cv_func_$ac_func=yes"
1684
 
else
1685
 
  echo "configure: failed program was:" >&5
1686
 
  cat conftest.$ac_ext >&5
1687
 
  rm -rf conftest*
1688
 
  eval "ac_cv_func_$ac_func=no"
1689
 
fi
1690
 
rm -f conftest*
1691
 
fi
1692
 
 
1693
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694
 
  echo "$ac_t""yes" 1>&6
1695
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1696
 
  cat >> confdefs.h <<EOF
1697
 
#define $ac_tr_func 1
1698
 
EOF
1699
 
 
1700
 
else
1701
 
  echo "$ac_t""no" 1>&6
1702
 
fi
1703
 
done
1704
 
 
1705
 
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1706
 
echo "configure:1707: checking for working mmap" >&5
1707
 
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1708
 
  echo $ac_n "(cached) $ac_c" 1>&6
1709
 
else
1710
 
  if test "$cross_compiling" = yes; then
1711
 
  ac_cv_func_mmap_fixed_mapped=no
1712
 
else
1713
 
  cat > conftest.$ac_ext <<EOF
1714
 
#line 1715 "configure"
1715
 
#include "confdefs.h"
1716
 
 
1717
 
/* Thanks to Mike Haertel and Jim Avera for this test.
1718
 
   Here is a matrix of mmap possibilities:
1719
 
        mmap private not fixed
1720
 
        mmap private fixed at somewhere currently unmapped
1721
 
        mmap private fixed at somewhere already mapped
1722
 
        mmap shared not fixed
1723
 
        mmap shared fixed at somewhere currently unmapped
1724
 
        mmap shared fixed at somewhere already mapped
1725
 
   For private mappings, we should verify that changes cannot be read()
1726
 
   back from the file, nor mmap's back from the file at a different
1727
 
   address.  (There have been systems where private was not correctly
1728
 
   implemented like the infamous i386 svr4.0, and systems where the
1729
 
   VM page cache was not coherent with the filesystem buffer cache
1730
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
1731
 
   For shared mappings, we should conversely verify that changes get
1732
 
   propogated back to all the places they're supposed to be.
1733
 
 
1734
 
   Grep wants private fixed already mapped.
1735
 
   The main things grep needs to know about mmap are:
1736
 
   * does it exist and is it safe to write into the mmap'd area
1737
 
   * how to use it (BSD variants)  */
1738
 
#include <sys/types.h>
1739
 
#include <fcntl.h>
1740
 
#include <sys/mman.h>
1741
 
 
1742
 
/* This mess was copied from the GNU getpagesize.h.  */
1743
 
#ifndef HAVE_GETPAGESIZE
1744
 
# ifdef HAVE_UNISTD_H
1745
 
#  include <unistd.h>
1746
 
# endif
1747
 
 
1748
 
/* Assume that all systems that can run configure have sys/param.h.  */
1749
 
# ifndef HAVE_SYS_PARAM_H
1750
 
#  define HAVE_SYS_PARAM_H 1
1751
 
# endif
1752
 
 
1753
 
# ifdef _SC_PAGESIZE
1754
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
1755
 
# else /* no _SC_PAGESIZE */
1756
 
#  ifdef HAVE_SYS_PARAM_H
1757
 
#   include <sys/param.h>
1758
 
#   ifdef EXEC_PAGESIZE
1759
 
#    define getpagesize() EXEC_PAGESIZE
1760
 
#   else /* no EXEC_PAGESIZE */
1761
 
#    ifdef NBPG
1762
 
#     define getpagesize() NBPG * CLSIZE
1763
 
#     ifndef CLSIZE
1764
 
#      define CLSIZE 1
1765
 
#     endif /* no CLSIZE */
1766
 
#    else /* no NBPG */
1767
 
#     ifdef NBPC
1768
 
#      define getpagesize() NBPC
1769
 
#     else /* no NBPC */
1770
 
#      ifdef PAGESIZE
1771
 
#       define getpagesize() PAGESIZE
1772
 
#      endif /* PAGESIZE */
1773
 
#     endif /* no NBPC */
1774
 
#    endif /* no NBPG */
1775
 
#   endif /* no EXEC_PAGESIZE */
1776
 
#  else /* no HAVE_SYS_PARAM_H */
1777
 
#   define getpagesize() 8192   /* punt totally */
1778
 
#  endif /* no HAVE_SYS_PARAM_H */
1779
 
# endif /* no _SC_PAGESIZE */
1780
 
 
1781
 
#endif /* no HAVE_GETPAGESIZE */
1782
 
 
1783
 
#ifdef __cplusplus
1784
 
extern "C" { void *malloc(unsigned); }
1785
 
#else
1786
 
char *malloc();
1787
 
#endif
1788
 
 
1789
 
int
1790
 
main()
1791
 
{
1792
 
        char *data, *data2, *data3;
1793
 
        int i, pagesize;
1794
 
        int fd;
1795
 
 
1796
 
        pagesize = getpagesize();
1797
 
 
1798
 
        /*
1799
 
         * First, make a file with some known garbage in it.
1800
 
         */
1801
 
        data = malloc(pagesize);
1802
 
        if (!data)
1803
 
                exit(1);
1804
 
        for (i = 0; i < pagesize; ++i)
1805
 
                *(data + i) = rand();
1806
 
        umask(0);
1807
 
        fd = creat("conftestmmap", 0600);
1808
 
        if (fd < 0)
1809
 
                exit(1);
1810
 
        if (write(fd, data, pagesize) != pagesize)
1811
 
                exit(1);
1812
 
        close(fd);
1813
 
 
1814
 
        /*
1815
 
         * Next, try to mmap the file at a fixed address which
1816
 
         * already has something else allocated at it.  If we can,
1817
 
         * also make sure that we see the same garbage.
1818
 
         */
1819
 
        fd = open("conftestmmap", O_RDWR);
1820
 
        if (fd < 0)
1821
 
                exit(1);
1822
 
        data2 = malloc(2 * pagesize);
1823
 
        if (!data2)
1824
 
                exit(1);
1825
 
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1826
 
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1827
 
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
1828
 
                exit(1);
1829
 
        for (i = 0; i < pagesize; ++i)
1830
 
                if (*(data + i) != *(data2 + i))
1831
 
                        exit(1);
1832
 
 
1833
 
        /*
1834
 
         * Finally, make sure that changes to the mapped area
1835
 
         * do not percolate back to the file as seen by read().
1836
 
         * (This is a bug on some variants of i386 svr4.0.)
1837
 
         */
1838
 
        for (i = 0; i < pagesize; ++i)
1839
 
                *(data2 + i) = *(data2 + i) + 1;
1840
 
        data3 = malloc(pagesize);
1841
 
        if (!data3)
1842
 
                exit(1);
1843
 
        if (read(fd, data3, pagesize) != pagesize)
1844
 
                exit(1);
1845
 
        for (i = 0; i < pagesize; ++i)
1846
 
                if (*(data + i) != *(data3 + i))
1847
 
                        exit(1);
1848
 
        close(fd);
1849
 
        unlink("conftestmmap");
1850
 
        exit(0);
1851
 
}
1852
 
 
1853
 
EOF
1854
 
if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1855
 
then
1856
 
  ac_cv_func_mmap_fixed_mapped=yes
1857
 
else
1858
 
  echo "configure: failed program was:" >&5
1859
 
  cat conftest.$ac_ext >&5
1860
 
  rm -fr conftest*
1861
 
  ac_cv_func_mmap_fixed_mapped=no
1862
 
fi
1863
 
rm -fr conftest*
1864
 
fi
1865
 
 
1866
 
fi
1867
 
 
1868
 
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1869
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1870
 
  cat >> confdefs.h <<\EOF
1871
 
#define HAVE_MMAP 1
1872
 
EOF
1873
 
 
1874
 
fi
1875
 
 
1876
 
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1877
 
echo "configure:1878: checking return type of signal handlers" >&5
1878
 
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1879
 
  echo $ac_n "(cached) $ac_c" 1>&6
1880
 
else
1881
 
  cat > conftest.$ac_ext <<EOF
1882
 
#line 1883 "configure"
1883
 
#include "confdefs.h"
1884
 
#include <sys/types.h>
1885
 
#include <signal.h>
1886
 
#ifdef signal
1887
 
#undef signal
1888
 
#endif
1889
 
#ifdef __cplusplus
1890
 
extern "C" void (*signal (int, void (*)(int)))(int);
1891
 
#else
1892
 
void (*signal ()) ();
1893
 
#endif
1894
 
 
1895
 
int main() {
1896
 
int i;
1897
 
; return 0; }
1898
 
EOF
1899
 
if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1900
 
  rm -rf conftest*
1901
 
  ac_cv_type_signal=void
1902
 
else
1903
 
  echo "configure: failed program was:" >&5
1904
 
  cat conftest.$ac_ext >&5
1905
 
  rm -rf conftest*
1906
 
  ac_cv_type_signal=int
1907
 
fi
1908
 
rm -f conftest*
1909
 
fi
1910
 
 
1911
 
echo "$ac_t""$ac_cv_type_signal" 1>&6
1912
 
cat >> confdefs.h <<EOF
1913
 
#define RETSIGTYPE $ac_cv_type_signal
1914
 
EOF
1915
 
 
1916
 
 
1917
 
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1918
 
echo "configure:1919: checking for vprintf" >&5
1919
 
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1920
 
  echo $ac_n "(cached) $ac_c" 1>&6
1921
 
else
1922
 
  cat > conftest.$ac_ext <<EOF
1923
 
#line 1924 "configure"
1924
 
#include "confdefs.h"
1925
 
/* System header to define __stub macros and hopefully few prototypes,
1926
 
    which can conflict with char vprintf(); below.  */
1927
 
#include <assert.h>
1928
 
/* Override any gcc2 internal prototype to avoid an error.  */
1929
 
/* We use char because int might match the return type of a gcc2
1930
 
    builtin and then its argument prototype would still apply.  */
1931
 
char vprintf();
1932
 
 
1933
 
int main() {
1934
 
 
1935
 
/* The GNU C library defines this for functions which it implements
1936
 
    to always fail with ENOSYS.  Some functions are actually named
1937
 
    something starting with __ and the normal name is an alias.  */
1938
 
#if defined (__stub_vprintf) || defined (__stub___vprintf)
1939
 
choke me
1940
 
#else
1941
 
vprintf();
1942
 
#endif
1943
 
 
1944
 
; return 0; }
1945
 
EOF
1946
 
if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1947
 
  rm -rf conftest*
1948
 
  eval "ac_cv_func_vprintf=yes"
1949
 
else
1950
 
  echo "configure: failed program was:" >&5
1951
 
  cat conftest.$ac_ext >&5
1952
 
  rm -rf conftest*
1953
 
  eval "ac_cv_func_vprintf=no"
1954
 
fi
1955
 
rm -f conftest*
1956
 
fi
1957
 
 
1958
 
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1959
 
  echo "$ac_t""yes" 1>&6
1960
 
  cat >> confdefs.h <<\EOF
1961
 
#define HAVE_VPRINTF 1
1962
 
EOF
1963
 
 
1964
 
else
1965
 
  echo "$ac_t""no" 1>&6
1966
 
fi
1967
 
 
1968
 
if test "$ac_cv_func_vprintf" != yes; then
1969
 
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1970
 
echo "configure:1971: checking for _doprnt" >&5
1971
 
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1972
 
  echo $ac_n "(cached) $ac_c" 1>&6
1973
 
else
1974
 
  cat > conftest.$ac_ext <<EOF
1975
 
#line 1976 "configure"
1976
 
#include "confdefs.h"
1977
 
/* System header to define __stub macros and hopefully few prototypes,
1978
 
    which can conflict with char _doprnt(); below.  */
1979
 
#include <assert.h>
1980
 
/* Override any gcc2 internal prototype to avoid an error.  */
1981
 
/* We use char because int might match the return type of a gcc2
1982
 
    builtin and then its argument prototype would still apply.  */
1983
 
char _doprnt();
1984
 
 
1985
 
int main() {
1986
 
 
1987
 
/* The GNU C library defines this for functions which it implements
1988
 
    to always fail with ENOSYS.  Some functions are actually named
1989
 
    something starting with __ and the normal name is an alias.  */
1990
 
#if defined (__stub__doprnt) || defined (__stub____doprnt)
1991
 
choke me
1992
 
#else
1993
 
_doprnt();
1994
 
#endif
1995
 
 
1996
 
; return 0; }
1997
 
EOF
1998
 
if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999
 
  rm -rf conftest*
2000
 
  eval "ac_cv_func__doprnt=yes"
2001
 
else
2002
 
  echo "configure: failed program was:" >&5
2003
 
  cat conftest.$ac_ext >&5
2004
 
  rm -rf conftest*
2005
 
  eval "ac_cv_func__doprnt=no"
2006
 
fi
2007
 
rm -f conftest*
2008
 
fi
2009
 
 
2010
 
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2011
 
  echo "$ac_t""yes" 1>&6
2012
 
  cat >> confdefs.h <<\EOF
2013
 
#define HAVE_DOPRNT 1
2014
 
EOF
2015
 
 
2016
 
else
2017
 
  echo "$ac_t""no" 1>&6
2018
 
fi
2019
 
 
2020
 
fi
2021
 
 
2022
 
for ac_func in getcwd strerror
2023
 
do
2024
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2025
 
echo "configure:2026: checking for $ac_func" >&5
2026
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2027
 
  echo $ac_n "(cached) $ac_c" 1>&6
2028
 
else
2029
 
  cat > conftest.$ac_ext <<EOF
2030
 
#line 2031 "configure"
2031
 
#include "confdefs.h"
2032
 
/* System header to define __stub macros and hopefully few prototypes,
2033
 
    which can conflict with char $ac_func(); below.  */
2034
 
#include <assert.h>
2035
 
/* Override any gcc2 internal prototype to avoid an error.  */
2036
 
/* We use char because int might match the return type of a gcc2
2037
 
    builtin and then its argument prototype would still apply.  */
2038
 
char $ac_func();
2039
 
 
2040
 
int main() {
2041
 
 
2042
 
/* The GNU C library defines this for functions which it implements
2043
 
    to always fail with ENOSYS.  Some functions are actually named
2044
 
    something starting with __ and the normal name is an alias.  */
2045
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2046
 
choke me
2047
 
#else
2048
 
$ac_func();
2049
 
#endif
2050
 
 
2051
 
; return 0; }
2052
 
EOF
2053
 
if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054
 
  rm -rf conftest*
2055
 
  eval "ac_cv_func_$ac_func=yes"
2056
 
else
2057
 
  echo "configure: failed program was:" >&5
2058
 
  cat conftest.$ac_ext >&5
2059
 
  rm -rf conftest*
2060
 
  eval "ac_cv_func_$ac_func=no"
2061
 
fi
2062
 
rm -f conftest*
2063
 
fi
2064
 
 
2065
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2066
 
  echo "$ac_t""yes" 1>&6
2067
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068
 
  cat >> confdefs.h <<EOF
2069
 
#define $ac_tr_func 1
2070
 
EOF
2071
 
 
2072
 
else
2073
 
  echo "$ac_t""no" 1>&6
2074
 
fi
2075
 
done
2076
 
 
2077
 
 
2078
 
trap '' 1 2 15
2079
 
cat > confcache <<\EOF
 
3509
_ACEOF
 
3510
 
 
3511
fi
 
3512
 
 
3513
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3514
 
 
3515
 
 
3516
 
 
3517
 
 
3518
 
 
3519
 
 
3520
 
 
3521
 
 
3522
 
 
3523
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3524
                  inttypes.h stdint.h unistd.h
 
3525
do
 
3526
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3527
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3528
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3529
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3530
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3531
else
 
3532
  cat >conftest.$ac_ext <<_ACEOF
 
3533
#line $LINENO "configure"
 
3534
/* confdefs.h.  */
 
3535
_ACEOF
 
3536
cat confdefs.h >>conftest.$ac_ext
 
3537
cat >>conftest.$ac_ext <<_ACEOF
 
3538
/* end confdefs.h.  */
 
3539
$ac_includes_default
 
3540
 
 
3541
#include <$ac_header>
 
3542
_ACEOF
 
3543
rm -f conftest.$ac_objext
 
3544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3545
  (eval $ac_compile) 2>&5
 
3546
  ac_status=$?
 
3547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3548
  (exit $ac_status); } &&
 
3549
         { ac_try='test -s conftest.$ac_objext'
 
3550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3551
  (eval $ac_try) 2>&5
 
3552
  ac_status=$?
 
3553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3554
  (exit $ac_status); }; }; then
 
3555
  eval "$as_ac_Header=yes"
 
3556
else
 
3557
  echo "$as_me: failed program was:" >&5
 
3558
sed 's/^/| /' conftest.$ac_ext >&5
 
3559
 
 
3560
eval "$as_ac_Header=no"
 
3561
fi
 
3562
rm -f conftest.$ac_objext conftest.$ac_ext
 
3563
fi
 
3564
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3565
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3566
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3567
  cat >>confdefs.h <<_ACEOF
 
3568
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3569
_ACEOF
 
3570
 
 
3571
fi
 
3572
 
 
3573
done
 
3574
 
 
3575
 
 
3576
 
 
3577
for ac_header in dlfcn.h
 
3578
do
 
3579
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3580
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3581
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3582
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3583
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3585
fi
 
3586
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3587
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3588
else
 
3589
  # Is the header compilable?
 
3590
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3591
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3592
cat >conftest.$ac_ext <<_ACEOF
 
3593
#line $LINENO "configure"
 
3594
/* confdefs.h.  */
 
3595
_ACEOF
 
3596
cat confdefs.h >>conftest.$ac_ext
 
3597
cat >>conftest.$ac_ext <<_ACEOF
 
3598
/* end confdefs.h.  */
 
3599
$ac_includes_default
 
3600
#include <$ac_header>
 
3601
_ACEOF
 
3602
rm -f conftest.$ac_objext
 
3603
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3604
  (eval $ac_compile) 2>&5
 
3605
  ac_status=$?
 
3606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3607
  (exit $ac_status); } &&
 
3608
         { ac_try='test -s conftest.$ac_objext'
 
3609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3610
  (eval $ac_try) 2>&5
 
3611
  ac_status=$?
 
3612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3613
  (exit $ac_status); }; }; then
 
3614
  ac_header_compiler=yes
 
3615
else
 
3616
  echo "$as_me: failed program was:" >&5
 
3617
sed 's/^/| /' conftest.$ac_ext >&5
 
3618
 
 
3619
ac_header_compiler=no
 
3620
fi
 
3621
rm -f conftest.$ac_objext conftest.$ac_ext
 
3622
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3623
echo "${ECHO_T}$ac_header_compiler" >&6
 
3624
 
 
3625
# Is the header present?
 
3626
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3627
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3628
cat >conftest.$ac_ext <<_ACEOF
 
3629
#line $LINENO "configure"
 
3630
/* confdefs.h.  */
 
3631
_ACEOF
 
3632
cat confdefs.h >>conftest.$ac_ext
 
3633
cat >>conftest.$ac_ext <<_ACEOF
 
3634
/* end confdefs.h.  */
 
3635
#include <$ac_header>
 
3636
_ACEOF
 
3637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3638
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3639
  ac_status=$?
 
3640
  grep -v '^ *+' conftest.er1 >conftest.err
 
3641
  rm -f conftest.er1
 
3642
  cat conftest.err >&5
 
3643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3644
  (exit $ac_status); } >/dev/null; then
 
3645
  if test -s conftest.err; then
 
3646
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3647
  else
 
3648
    ac_cpp_err=
 
3649
  fi
 
3650
else
 
3651
  ac_cpp_err=yes
 
3652
fi
 
3653
if test -z "$ac_cpp_err"; then
 
3654
  ac_header_preproc=yes
 
3655
else
 
3656
  echo "$as_me: failed program was:" >&5
 
3657
sed 's/^/| /' conftest.$ac_ext >&5
 
3658
 
 
3659
  ac_header_preproc=no
 
3660
fi
 
3661
rm -f conftest.err conftest.$ac_ext
 
3662
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3663
echo "${ECHO_T}$ac_header_preproc" >&6
 
3664
 
 
3665
# So?  What about this header?
 
3666
case $ac_header_compiler:$ac_header_preproc in
 
3667
  yes:no )
 
3668
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3669
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3670
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3671
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3672
    (
 
3673
      cat <<\_ASBOX
 
3674
## ------------------------------------ ##
 
3675
## Report this to bug-autoconf@gnu.org. ##
 
3676
## ------------------------------------ ##
 
3677
_ASBOX
 
3678
    ) |
 
3679
      sed "s/^/$as_me: WARNING:     /" >&2
 
3680
    ;;
 
3681
  no:yes )
 
3682
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3683
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3684
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
3685
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
3686
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3687
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3688
    (
 
3689
      cat <<\_ASBOX
 
3690
## ------------------------------------ ##
 
3691
## Report this to bug-autoconf@gnu.org. ##
 
3692
## ------------------------------------ ##
 
3693
_ASBOX
 
3694
    ) |
 
3695
      sed "s/^/$as_me: WARNING:     /" >&2
 
3696
    ;;
 
3697
esac
 
3698
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3699
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3700
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3702
else
 
3703
  eval "$as_ac_Header=$ac_header_preproc"
 
3704
fi
 
3705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3706
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3707
 
 
3708
fi
 
3709
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3710
  cat >>confdefs.h <<_ACEOF
 
3711
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3712
_ACEOF
 
3713
 
 
3714
fi
 
3715
 
 
3716
done
 
3717
 
 
3718
 
 
3719
 
 
3720
 
 
3721
 
 
3722
 
 
3723
# Only perform the check for file, if the check method requires it
 
3724
case $deplibs_check_method in
 
3725
file_magic*)
 
3726
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
3727
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
3728
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
3729
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
3730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3731
else
 
3732
  case $MAGIC_CMD in
 
3733
  /*)
 
3734
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
3735
  ;;
 
3736
  ?:/*)
 
3737
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
3738
  ;;
 
3739
  *)
 
3740
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
3741
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
3742
  ac_dummy="/usr/bin:$PATH"
 
3743
  for ac_dir in $ac_dummy; do
 
3744
    test -z "$ac_dir" && ac_dir=.
 
3745
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
3746
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
3747
      if test -n "$file_magic_test_file"; then
 
3748
        case $deplibs_check_method in
 
3749
        "file_magic "*)
 
3750
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
3751
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3752
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
3753
            egrep "$file_magic_regex" > /dev/null; then
 
3754
            :
 
3755
          else
 
3756
            cat <<EOF 1>&2
 
3757
 
 
3758
*** Warning: the command libtool uses to detect shared libraries,
 
3759
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
3760
*** The result is that libtool may fail to recognize shared libraries
 
3761
*** as such.  This will affect the creation of libtool libraries that
 
3762
*** depend on shared libraries, but programs linked with such libtool
 
3763
*** libraries will work regardless of this problem.  Nevertheless, you
 
3764
*** may want to report the problem to your system manager and/or to
 
3765
*** bug-libtool@gnu.org
 
3766
 
 
3767
EOF
 
3768
          fi ;;
 
3769
        esac
 
3770
      fi
 
3771
      break
 
3772
    fi
 
3773
  done
 
3774
  IFS="$ac_save_ifs"
 
3775
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
3776
  ;;
 
3777
esac
 
3778
fi
 
3779
 
 
3780
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3781
if test -n "$MAGIC_CMD"; then
 
3782
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
3783
echo "${ECHO_T}$MAGIC_CMD" >&6
 
3784
else
 
3785
  echo "$as_me:$LINENO: result: no" >&5
 
3786
echo "${ECHO_T}no" >&6
 
3787
fi
 
3788
 
 
3789
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
3790
  if test -n "$ac_tool_prefix"; then
 
3791
    echo "$as_me:$LINENO: checking for file" >&5
 
3792
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
3793
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
3794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3795
else
 
3796
  case $MAGIC_CMD in
 
3797
  /*)
 
3798
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
3799
  ;;
 
3800
  ?:/*)
 
3801
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
3802
  ;;
 
3803
  *)
 
3804
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
3805
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
3806
  ac_dummy="/usr/bin:$PATH"
 
3807
  for ac_dir in $ac_dummy; do
 
3808
    test -z "$ac_dir" && ac_dir=.
 
3809
    if test -f $ac_dir/file; then
 
3810
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
3811
      if test -n "$file_magic_test_file"; then
 
3812
        case $deplibs_check_method in
 
3813
        "file_magic "*)
 
3814
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
3815
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3816
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
3817
            egrep "$file_magic_regex" > /dev/null; then
 
3818
            :
 
3819
          else
 
3820
            cat <<EOF 1>&2
 
3821
 
 
3822
*** Warning: the command libtool uses to detect shared libraries,
 
3823
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
3824
*** The result is that libtool may fail to recognize shared libraries
 
3825
*** as such.  This will affect the creation of libtool libraries that
 
3826
*** depend on shared libraries, but programs linked with such libtool
 
3827
*** libraries will work regardless of this problem.  Nevertheless, you
 
3828
*** may want to report the problem to your system manager and/or to
 
3829
*** bug-libtool@gnu.org
 
3830
 
 
3831
EOF
 
3832
          fi ;;
 
3833
        esac
 
3834
      fi
 
3835
      break
 
3836
    fi
 
3837
  done
 
3838
  IFS="$ac_save_ifs"
 
3839
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
3840
  ;;
 
3841
esac
 
3842
fi
 
3843
 
 
3844
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3845
if test -n "$MAGIC_CMD"; then
 
3846
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
3847
echo "${ECHO_T}$MAGIC_CMD" >&6
 
3848
else
 
3849
  echo "$as_me:$LINENO: result: no" >&5
 
3850
echo "${ECHO_T}no" >&6
 
3851
fi
 
3852
 
 
3853
  else
 
3854
    MAGIC_CMD=:
 
3855
  fi
 
3856
fi
 
3857
 
 
3858
  fi
 
3859
  ;;
 
3860
esac
 
3861
 
 
3862
if test -n "$ac_tool_prefix"; then
 
3863
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3864
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3865
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3867
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3869
else
 
3870
  if test -n "$RANLIB"; then
 
3871
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3872
else
 
3873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3874
for as_dir in $PATH
 
3875
do
 
3876
  IFS=$as_save_IFS
 
3877
  test -z "$as_dir" && as_dir=.
 
3878
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3879
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3880
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3881
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3882
    break 2
 
3883
  fi
 
3884
done
 
3885
done
 
3886
 
 
3887
fi
 
3888
fi
 
3889
RANLIB=$ac_cv_prog_RANLIB
 
3890
if test -n "$RANLIB"; then
 
3891
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3892
echo "${ECHO_T}$RANLIB" >&6
 
3893
else
 
3894
  echo "$as_me:$LINENO: result: no" >&5
 
3895
echo "${ECHO_T}no" >&6
 
3896
fi
 
3897
 
 
3898
fi
 
3899
if test -z "$ac_cv_prog_RANLIB"; then
 
3900
  ac_ct_RANLIB=$RANLIB
 
3901
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3902
set dummy ranlib; ac_word=$2
 
3903
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3905
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3907
else
 
3908
  if test -n "$ac_ct_RANLIB"; then
 
3909
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3910
else
 
3911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3912
for as_dir in $PATH
 
3913
do
 
3914
  IFS=$as_save_IFS
 
3915
  test -z "$as_dir" && as_dir=.
 
3916
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3917
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3918
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3919
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3920
    break 2
 
3921
  fi
 
3922
done
 
3923
done
 
3924
 
 
3925
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3926
fi
 
3927
fi
 
3928
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3929
if test -n "$ac_ct_RANLIB"; then
 
3930
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3931
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3932
else
 
3933
  echo "$as_me:$LINENO: result: no" >&5
 
3934
echo "${ECHO_T}no" >&6
 
3935
fi
 
3936
 
 
3937
  RANLIB=$ac_ct_RANLIB
 
3938
else
 
3939
  RANLIB="$ac_cv_prog_RANLIB"
 
3940
fi
 
3941
 
 
3942
if test -n "$ac_tool_prefix"; then
 
3943
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3944
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3945
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3947
if test "${ac_cv_prog_STRIP+set}" = set; then
 
3948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3949
else
 
3950
  if test -n "$STRIP"; then
 
3951
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3952
else
 
3953
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3954
for as_dir in $PATH
 
3955
do
 
3956
  IFS=$as_save_IFS
 
3957
  test -z "$as_dir" && as_dir=.
 
3958
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3959
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3960
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3961
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3962
    break 2
 
3963
  fi
 
3964
done
 
3965
done
 
3966
 
 
3967
fi
 
3968
fi
 
3969
STRIP=$ac_cv_prog_STRIP
 
3970
if test -n "$STRIP"; then
 
3971
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
3972
echo "${ECHO_T}$STRIP" >&6
 
3973
else
 
3974
  echo "$as_me:$LINENO: result: no" >&5
 
3975
echo "${ECHO_T}no" >&6
 
3976
fi
 
3977
 
 
3978
fi
 
3979
if test -z "$ac_cv_prog_STRIP"; then
 
3980
  ac_ct_STRIP=$STRIP
 
3981
  # Extract the first word of "strip", so it can be a program name with args.
 
3982
set dummy strip; ac_word=$2
 
3983
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3985
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
3986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3987
else
 
3988
  if test -n "$ac_ct_STRIP"; then
 
3989
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3990
else
 
3991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3992
for as_dir in $PATH
 
3993
do
 
3994
  IFS=$as_save_IFS
 
3995
  test -z "$as_dir" && as_dir=.
 
3996
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3997
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3998
    ac_cv_prog_ac_ct_STRIP="strip"
 
3999
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4000
    break 2
 
4001
  fi
 
4002
done
 
4003
done
 
4004
 
 
4005
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
4006
fi
 
4007
fi
 
4008
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4009
if test -n "$ac_ct_STRIP"; then
 
4010
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
4011
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
4012
else
 
4013
  echo "$as_me:$LINENO: result: no" >&5
 
4014
echo "${ECHO_T}no" >&6
 
4015
fi
 
4016
 
 
4017
  STRIP=$ac_ct_STRIP
 
4018
else
 
4019
  STRIP="$ac_cv_prog_STRIP"
 
4020
fi
 
4021
 
 
4022
 
 
4023
enable_dlopen=no
 
4024
enable_win32_dll=no
 
4025
 
 
4026
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4027
if test "${enable_libtool_lock+set}" = set; then
 
4028
  enableval="$enable_libtool_lock"
 
4029
 
 
4030
fi;
 
4031
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4032
 
 
4033
# Some flags need to be propagated to the compiler or linker for good
 
4034
# libtool support.
 
4035
case $host in
 
4036
*-*-irix6*)
 
4037
  # Find out which ABI we are using.
 
4038
  echo '#line 4038 "configure"' > conftest.$ac_ext
 
4039
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4040
  (eval $ac_compile) 2>&5
 
4041
  ac_status=$?
 
4042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4043
  (exit $ac_status); }; then
 
4044
    case `/usr/bin/file conftest.$ac_objext` in
 
4045
    *32-bit*)
 
4046
      LD="${LD-ld} -32"
 
4047
      ;;
 
4048
    *N32*)
 
4049
      LD="${LD-ld} -n32"
 
4050
      ;;
 
4051
    *64-bit*)
 
4052
      LD="${LD-ld} -64"
 
4053
      ;;
 
4054
    esac
 
4055
  fi
 
4056
  rm -rf conftest*
 
4057
  ;;
 
4058
 
 
4059
*-*-linux*)
 
4060
  # Test if the compiler is 64bit
 
4061
  echo 'int i;' > conftest.$ac_ext
 
4062
  lt_cv_cc_64bit_output=no
 
4063
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4064
  (eval $ac_compile) 2>&5
 
4065
  ac_status=$?
 
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4067
  (exit $ac_status); }; then
 
4068
    case `/usr/bin/file conftest.$ac_objext` in
 
4069
    *"ELF 64"*)
 
4070
      lt_cv_cc_64bit_output=yes
 
4071
      ;;
 
4072
    esac
 
4073
  fi
 
4074
  rm -rf conftest*
 
4075
  ;;
 
4076
 
 
4077
*-*-sco3.2v5*)
 
4078
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4079
  SAVE_CFLAGS="$CFLAGS"
 
4080
  CFLAGS="$CFLAGS -belf"
 
4081
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4082
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4083
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4085
else
 
4086
 
 
4087
 
 
4088
     ac_ext=c
 
4089
ac_cpp='$CPP $CPPFLAGS'
 
4090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4093
 
 
4094
     cat >conftest.$ac_ext <<_ACEOF
 
4095
#line $LINENO "configure"
 
4096
/* confdefs.h.  */
 
4097
_ACEOF
 
4098
cat confdefs.h >>conftest.$ac_ext
 
4099
cat >>conftest.$ac_ext <<_ACEOF
 
4100
/* end confdefs.h.  */
 
4101
 
 
4102
int
 
4103
main ()
 
4104
{
 
4105
 
 
4106
  ;
 
4107
  return 0;
 
4108
}
 
4109
_ACEOF
 
4110
rm -f conftest.$ac_objext conftest$ac_exeext
 
4111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4112
  (eval $ac_link) 2>&5
 
4113
  ac_status=$?
 
4114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4115
  (exit $ac_status); } &&
 
4116
         { ac_try='test -s conftest$ac_exeext'
 
4117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4118
  (eval $ac_try) 2>&5
 
4119
  ac_status=$?
 
4120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4121
  (exit $ac_status); }; }; then
 
4122
  lt_cv_cc_needs_belf=yes
 
4123
else
 
4124
  echo "$as_me: failed program was:" >&5
 
4125
sed 's/^/| /' conftest.$ac_ext >&5
 
4126
 
 
4127
lt_cv_cc_needs_belf=no
 
4128
fi
 
4129
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4130
     ac_ext=c
 
4131
ac_cpp='$CPP $CPPFLAGS'
 
4132
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4133
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4134
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4135
 
 
4136
fi
 
4137
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4138
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4139
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4140
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4141
    CFLAGS="$SAVE_CFLAGS"
 
4142
  fi
 
4143
  ;;
 
4144
 
 
4145
 
 
4146
esac
 
4147
 
 
4148
# Sed substitution that helps us do robust quoting.  It backslashifies
 
4149
# metacharacters that are still active within double-quoted strings.
 
4150
Xsed='sed -e s/^X//'
 
4151
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
4152
 
 
4153
# Same as above, but do not quote variable references.
 
4154
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
4155
 
 
4156
# Sed substitution to delay expansion of an escaped shell variable in a
 
4157
# double_quote_subst'ed string.
 
4158
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4159
 
 
4160
# Constants:
 
4161
rm="rm -f"
 
4162
 
 
4163
# Global variables:
 
4164
default_ofile=libtool
 
4165
can_build_shared=yes
 
4166
 
 
4167
# All known linkers require a `.a' archive for static linking (except M$VC,
 
4168
# which needs '.lib').
 
4169
libext=a
 
4170
ltmain="$ac_aux_dir/ltmain.sh"
 
4171
ofile="$default_ofile"
 
4172
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
4173
need_locks="$enable_libtool_lock"
 
4174
 
 
4175
old_CC="$CC"
 
4176
old_CFLAGS="$CFLAGS"
 
4177
 
 
4178
# Set sane defaults for various variables
 
4179
test -z "$AR" && AR=ar
 
4180
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
4181
test -z "$AS" && AS=as
 
4182
test -z "$CC" && CC=cc
 
4183
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
4184
test -z "$LD" && LD=ld
 
4185
test -z "$LN_S" && LN_S="ln -s"
 
4186
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
4187
test -z "$NM" && NM=nm
 
4188
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4189
test -z "$RANLIB" && RANLIB=:
 
4190
test -z "$STRIP" && STRIP=:
 
4191
test -z "$ac_objext" && ac_objext=o
 
4192
 
 
4193
if test x"$host" != x"$build"; then
 
4194
  ac_tool_prefix=${host_alias}-
 
4195
else
 
4196
  ac_tool_prefix=
 
4197
fi
 
4198
 
 
4199
case $host_os in
 
4200
aix3*)
 
4201
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
4202
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
4203
  # vanish in a puff of smoke.
 
4204
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
4205
    COLLECT_NAMES=
 
4206
    export COLLECT_NAMES
 
4207
  fi
 
4208
  ;;
 
4209
esac
 
4210
 
 
4211
# Determine commands to create old-style static archives.
 
4212
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
4213
old_postinstall_cmds='chmod 644 $oldlib'
 
4214
old_postuninstall_cmds=
 
4215
 
 
4216
if test -n "$RANLIB"; then
 
4217
  case $host_os in
 
4218
  openbsd*)
 
4219
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
4220
    ;;
 
4221
  *)
 
4222
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
4223
    ;;
 
4224
  esac
 
4225
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
4226
fi
 
4227
 
 
4228
# Allow CC to be a program name with arguments.
 
4229
set dummy $CC
 
4230
compiler="$2"
 
4231
 
 
4232
echo "$as_me:$LINENO: checking for objdir" >&5
 
4233
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
4234
rm -f .libs 2>/dev/null
 
4235
mkdir .libs 2>/dev/null
 
4236
if test -d .libs; then
 
4237
  objdir=.libs
 
4238
else
 
4239
  # MS-DOS does not allow filenames that begin with a dot.
 
4240
  objdir=_libs
 
4241
fi
 
4242
rmdir .libs 2>/dev/null
 
4243
echo "$as_me:$LINENO: result: $objdir" >&5
 
4244
echo "${ECHO_T}$objdir" >&6
 
4245
 
 
4246
 
 
4247
 
 
4248
# Check whether --with-pic or --without-pic was given.
 
4249
if test "${with_pic+set}" = set; then
 
4250
  withval="$with_pic"
 
4251
  pic_mode="$withval"
 
4252
else
 
4253
  pic_mode=default
 
4254
fi;
 
4255
test -z "$pic_mode" && pic_mode=default
 
4256
 
 
4257
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
4258
# in isolation, and that seeing it set (from the cache) indicates that
 
4259
# the associated values are set (in the cache) correctly too.
 
4260
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
4261
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
4262
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
4263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4264
else
 
4265
   lt_cv_prog_cc_pic=
 
4266
  lt_cv_prog_cc_shlib=
 
4267
  lt_cv_prog_cc_wl=
 
4268
  lt_cv_prog_cc_static=
 
4269
  lt_cv_prog_cc_no_builtin=
 
4270
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
4271
 
 
4272
  if test "$GCC" = yes; then
 
4273
    lt_cv_prog_cc_wl='-Wl,'
 
4274
    lt_cv_prog_cc_static='-static'
 
4275
 
 
4276
    case $host_os in
 
4277
    aix*)
 
4278
      # Below there is a dirty hack to force normal static linking with -ldl
 
4279
      # The problem is because libdl dynamically linked with both libc and
 
4280
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
4281
      # list by gcc. This cause undefined symbols with -static flags.
 
4282
      # This hack allows C programs to be linked with "-static -ldl", but
 
4283
      # not sure about C++ programs.
 
4284
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
4285
      ;;
 
4286
    amigaos*)
 
4287
      # FIXME: we need at least 68020 code to build shared libraries, but
 
4288
      # adding the `-m68020' flag to GCC prevents building anything better,
 
4289
      # like `-m68040'.
 
4290
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
4291
      ;;
 
4292
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4293
      # PIC is the default for these OSes.
 
4294
      ;;
 
4295
    darwin* | rhapsody*)
 
4296
      # PIC is the default on this platform
 
4297
      # Common symbols not allowed in MH_DYLIB files
 
4298
      lt_cv_prog_cc_pic='-fno-common'
 
4299
      ;;
 
4300
    cygwin* | mingw* | pw32* | os2*)
 
4301
      # This hack is so that the source file can tell whether it is being
 
4302
      # built for inclusion in a dll (and should export symbols for example).
 
4303
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4304
      ;;
 
4305
    sysv4*MP*)
 
4306
      if test -d /usr/nec; then
 
4307
         lt_cv_prog_cc_pic=-Kconform_pic
 
4308
      fi
 
4309
      ;;
 
4310
    *)
 
4311
      lt_cv_prog_cc_pic='-fPIC'
 
4312
      ;;
 
4313
    esac
 
4314
  else
 
4315
    # PORTME Check for PIC flags for the system compiler.
 
4316
    case $host_os in
 
4317
    aix3* | aix4* | aix5*)
 
4318
      lt_cv_prog_cc_wl='-Wl,'
 
4319
      # All AIX code is PIC.
 
4320
      if test "$host_cpu" = ia64; then
 
4321
        # AIX 5 now supports IA64 processor
 
4322
        lt_cv_prog_cc_static='-Bstatic'
 
4323
      else
 
4324
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
4325
      fi
 
4326
      ;;
 
4327
 
 
4328
    hpux9* | hpux10* | hpux11*)
 
4329
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
4330
      lt_cv_prog_cc_wl='-Wl,'
 
4331
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
4332
      lt_cv_prog_cc_pic='+Z'
 
4333
      ;;
 
4334
 
 
4335
    irix5* | irix6* | nonstopux*)
 
4336
      lt_cv_prog_cc_wl='-Wl,'
 
4337
      lt_cv_prog_cc_static='-non_shared'
 
4338
      # PIC (with -KPIC) is the default.
 
4339
      ;;
 
4340
 
 
4341
    cygwin* | mingw* | pw32* | os2*)
 
4342
      # This hack is so that the source file can tell whether it is being
 
4343
      # built for inclusion in a dll (and should export symbols for example).
 
4344
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4345
      ;;
 
4346
 
 
4347
    newsos6)
 
4348
      lt_cv_prog_cc_pic='-KPIC'
 
4349
      lt_cv_prog_cc_static='-Bstatic'
 
4350
      ;;
 
4351
 
 
4352
    osf3* | osf4* | osf5*)
 
4353
      # All OSF/1 code is PIC.
 
4354
      lt_cv_prog_cc_wl='-Wl,'
 
4355
      lt_cv_prog_cc_static='-non_shared'
 
4356
      ;;
 
4357
 
 
4358
    sco3.2v5*)
 
4359
      lt_cv_prog_cc_pic='-Kpic'
 
4360
      lt_cv_prog_cc_static='-dn'
 
4361
      lt_cv_prog_cc_shlib='-belf'
 
4362
      ;;
 
4363
 
 
4364
    solaris*)
 
4365
      lt_cv_prog_cc_pic='-KPIC'
 
4366
      lt_cv_prog_cc_static='-Bstatic'
 
4367
      lt_cv_prog_cc_wl='-Wl,'
 
4368
      ;;
 
4369
 
 
4370
    sunos4*)
 
4371
      lt_cv_prog_cc_pic='-PIC'
 
4372
      lt_cv_prog_cc_static='-Bstatic'
 
4373
      lt_cv_prog_cc_wl='-Qoption ld '
 
4374
      ;;
 
4375
 
 
4376
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4377
      lt_cv_prog_cc_pic='-KPIC'
 
4378
      lt_cv_prog_cc_static='-Bstatic'
 
4379
      lt_cv_prog_cc_wl='-Wl,'
 
4380
      ;;
 
4381
 
 
4382
    uts4*)
 
4383
      lt_cv_prog_cc_pic='-pic'
 
4384
      lt_cv_prog_cc_static='-Bstatic'
 
4385
      ;;
 
4386
 
 
4387
    sysv4*MP*)
 
4388
      if test -d /usr/nec ;then
 
4389
        lt_cv_prog_cc_pic='-Kconform_pic'
 
4390
        lt_cv_prog_cc_static='-Bstatic'
 
4391
      fi
 
4392
      ;;
 
4393
 
 
4394
    *)
 
4395
      lt_cv_prog_cc_can_build_shared=no
 
4396
      ;;
 
4397
    esac
 
4398
  fi
 
4399
 
 
4400
fi
 
4401
 
 
4402
if test -z "$lt_cv_prog_cc_pic"; then
 
4403
  echo "$as_me:$LINENO: result: none" >&5
 
4404
echo "${ECHO_T}none" >&6
 
4405
else
 
4406
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
 
4407
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
4408
 
 
4409
  # Check to make sure the pic_flag actually works.
 
4410
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
4411
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
4412
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
4413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4414
else
 
4415
      save_CFLAGS="$CFLAGS"
 
4416
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
4417
    cat >conftest.$ac_ext <<_ACEOF
 
4418
#line $LINENO "configure"
 
4419
/* confdefs.h.  */
 
4420
_ACEOF
 
4421
cat confdefs.h >>conftest.$ac_ext
 
4422
cat >>conftest.$ac_ext <<_ACEOF
 
4423
/* end confdefs.h.  */
 
4424
 
 
4425
int
 
4426
main ()
 
4427
{
 
4428
 
 
4429
  ;
 
4430
  return 0;
 
4431
}
 
4432
_ACEOF
 
4433
rm -f conftest.$ac_objext
 
4434
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4435
  (eval $ac_compile) 2>&5
 
4436
  ac_status=$?
 
4437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4438
  (exit $ac_status); } &&
 
4439
         { ac_try='test -s conftest.$ac_objext'
 
4440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4441
  (eval $ac_try) 2>&5
 
4442
  ac_status=$?
 
4443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4444
  (exit $ac_status); }; }; then
 
4445
        case $host_os in
 
4446
      hpux9* | hpux10* | hpux11*)
 
4447
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
4448
        # they create non-PIC objects.  So, if there were any warnings, we
 
4449
        # assume that PIC is not supported.
 
4450
        if test -s conftest.err; then
 
4451
          lt_cv_prog_cc_pic_works=no
 
4452
        else
 
4453
          lt_cv_prog_cc_pic_works=yes
 
4454
        fi
 
4455
        ;;
 
4456
      *)
 
4457
        lt_cv_prog_cc_pic_works=yes
 
4458
        ;;
 
4459
      esac
 
4460
 
 
4461
else
 
4462
  echo "$as_me: failed program was:" >&5
 
4463
sed 's/^/| /' conftest.$ac_ext >&5
 
4464
 
 
4465
      lt_cv_prog_cc_pic_works=no
 
4466
 
 
4467
fi
 
4468
rm -f conftest.$ac_objext conftest.$ac_ext
 
4469
    CFLAGS="$save_CFLAGS"
 
4470
 
 
4471
fi
 
4472
 
 
4473
 
 
4474
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
4475
    lt_cv_prog_cc_pic=
 
4476
    lt_cv_prog_cc_can_build_shared=no
 
4477
  else
 
4478
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
4479
  fi
 
4480
 
 
4481
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
 
4482
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
4483
fi
 
4484
 
 
4485
# Check for any special shared library compilation flags.
 
4486
if test -n "$lt_cv_prog_cc_shlib"; then
 
4487
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
4488
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
4489
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
4490
  else
 
4491
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
4492
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
4493
    lt_cv_prog_cc_can_build_shared=no
 
4494
  fi
 
4495
fi
 
4496
 
 
4497
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
4498
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
4499
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
4500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4501
else
 
4502
    lt_cv_prog_cc_static_works=no
 
4503
  save_LDFLAGS="$LDFLAGS"
 
4504
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
4505
  cat >conftest.$ac_ext <<_ACEOF
 
4506
#line $LINENO "configure"
 
4507
/* confdefs.h.  */
 
4508
_ACEOF
 
4509
cat confdefs.h >>conftest.$ac_ext
 
4510
cat >>conftest.$ac_ext <<_ACEOF
 
4511
/* end confdefs.h.  */
 
4512
 
 
4513
int
 
4514
main ()
 
4515
{
 
4516
 
 
4517
  ;
 
4518
  return 0;
 
4519
}
 
4520
_ACEOF
 
4521
rm -f conftest.$ac_objext conftest$ac_exeext
 
4522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4523
  (eval $ac_link) 2>&5
 
4524
  ac_status=$?
 
4525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4526
  (exit $ac_status); } &&
 
4527
         { ac_try='test -s conftest$ac_exeext'
 
4528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4529
  (eval $ac_try) 2>&5
 
4530
  ac_status=$?
 
4531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4532
  (exit $ac_status); }; }; then
 
4533
  lt_cv_prog_cc_static_works=yes
 
4534
else
 
4535
  echo "$as_me: failed program was:" >&5
 
4536
sed 's/^/| /' conftest.$ac_ext >&5
 
4537
 
 
4538
fi
 
4539
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4540
  LDFLAGS="$save_LDFLAGS"
 
4541
 
 
4542
fi
 
4543
 
 
4544
 
 
4545
# Belt *and* braces to stop my trousers falling down:
 
4546
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
4547
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
 
4548
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
4549
 
 
4550
pic_flag="$lt_cv_prog_cc_pic"
 
4551
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
4552
wl="$lt_cv_prog_cc_wl"
 
4553
link_static_flag="$lt_cv_prog_cc_static"
 
4554
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
4555
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
4556
 
 
4557
 
 
4558
# Check to see if options -o and -c are simultaneously supported by compiler
 
4559
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
4560
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
4561
if test "${lt_cv_compiler_c_o+set}" = set; then
 
4562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4563
else
 
4564
 
 
4565
$rm -r conftest 2>/dev/null
 
4566
mkdir conftest
 
4567
cd conftest
 
4568
echo "int some_variable = 0;" > conftest.$ac_ext
 
4569
mkdir out
 
4570
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
4571
# that will create temporary files in the current directory regardless of
 
4572
# the output directory.  Thus, making CWD read-only will cause this test
 
4573
# to fail, enabling locking or at least warning the user not to do parallel
 
4574
# builds.
 
4575
chmod -w .
 
4576
save_CFLAGS="$CFLAGS"
 
4577
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
4578
compiler_c_o=no
 
4579
if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
4580
  # The compiler can only warn and ignore the option if not recognized
 
4581
  # So say no if there are warnings
 
4582
  if test -s out/conftest.err; then
 
4583
    lt_cv_compiler_c_o=no
 
4584
  else
 
4585
    lt_cv_compiler_c_o=yes
 
4586
  fi
 
4587
else
 
4588
  # Append any errors to the config.log.
 
4589
  cat out/conftest.err 1>&5
 
4590
  lt_cv_compiler_c_o=no
 
4591
fi
 
4592
CFLAGS="$save_CFLAGS"
 
4593
chmod u+w .
 
4594
$rm conftest* out/*
 
4595
rmdir out
 
4596
cd ..
 
4597
rmdir conftest
 
4598
$rm -r conftest 2>/dev/null
 
4599
 
 
4600
fi
 
4601
 
 
4602
compiler_c_o=$lt_cv_compiler_c_o
 
4603
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
 
4604
echo "${ECHO_T}$compiler_c_o" >&6
 
4605
 
 
4606
if test x"$compiler_c_o" = x"yes"; then
 
4607
  # Check to see if we can write to a .lo
 
4608
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
 
4609
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
4610
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
4611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4612
else
 
4613
 
 
4614
  lt_cv_compiler_o_lo=no
 
4615
  save_CFLAGS="$CFLAGS"
 
4616
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
4617
  save_objext="$ac_objext"
 
4618
  ac_objext=lo
 
4619
  cat >conftest.$ac_ext <<_ACEOF
 
4620
#line $LINENO "configure"
 
4621
/* confdefs.h.  */
 
4622
_ACEOF
 
4623
cat confdefs.h >>conftest.$ac_ext
 
4624
cat >>conftest.$ac_ext <<_ACEOF
 
4625
/* end confdefs.h.  */
 
4626
 
 
4627
int
 
4628
main ()
 
4629
{
 
4630
int some_variable = 0;
 
4631
  ;
 
4632
  return 0;
 
4633
}
 
4634
_ACEOF
 
4635
rm -f conftest.$ac_objext
 
4636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4637
  (eval $ac_compile) 2>&5
 
4638
  ac_status=$?
 
4639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4640
  (exit $ac_status); } &&
 
4641
         { ac_try='test -s conftest.$ac_objext'
 
4642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4643
  (eval $ac_try) 2>&5
 
4644
  ac_status=$?
 
4645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4646
  (exit $ac_status); }; }; then
 
4647
      # The compiler can only warn and ignore the option if not recognized
 
4648
    # So say no if there are warnings
 
4649
    if test -s conftest.err; then
 
4650
      lt_cv_compiler_o_lo=no
 
4651
    else
 
4652
      lt_cv_compiler_o_lo=yes
 
4653
    fi
 
4654
 
 
4655
else
 
4656
  echo "$as_me: failed program was:" >&5
 
4657
sed 's/^/| /' conftest.$ac_ext >&5
 
4658
 
 
4659
fi
 
4660
rm -f conftest.$ac_objext conftest.$ac_ext
 
4661
  ac_objext="$save_objext"
 
4662
  CFLAGS="$save_CFLAGS"
 
4663
 
 
4664
fi
 
4665
 
 
4666
  compiler_o_lo=$lt_cv_compiler_o_lo
 
4667
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
 
4668
echo "${ECHO_T}$compiler_o_lo" >&6
 
4669
else
 
4670
  compiler_o_lo=no
 
4671
fi
 
4672
 
 
4673
# Check to see if we can do hard links to lock some files if needed
 
4674
hard_links="nottested"
 
4675
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
4676
  # do not overwrite the value of need_locks provided by the user
 
4677
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
4678
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
4679
  hard_links=yes
 
4680
  $rm conftest*
 
4681
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
4682
  touch conftest.a
 
4683
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
4684
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
4685
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
4686
echo "${ECHO_T}$hard_links" >&6
 
4687
  if test "$hard_links" = no; then
 
4688
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
4689
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
4690
    need_locks=warn
 
4691
  fi
 
4692
else
 
4693
  need_locks=no
 
4694
fi
 
4695
 
 
4696
if test "$GCC" = yes; then
 
4697
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
4698
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
4699
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
4700
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4701
  save_CFLAGS="$CFLAGS"
 
4702
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
4703
  compiler_rtti_exceptions=no
 
4704
  cat >conftest.$ac_ext <<_ACEOF
 
4705
#line $LINENO "configure"
 
4706
/* confdefs.h.  */
 
4707
_ACEOF
 
4708
cat confdefs.h >>conftest.$ac_ext
 
4709
cat >>conftest.$ac_ext <<_ACEOF
 
4710
/* end confdefs.h.  */
 
4711
 
 
4712
int
 
4713
main ()
 
4714
{
 
4715
int some_variable = 0;
 
4716
  ;
 
4717
  return 0;
 
4718
}
 
4719
_ACEOF
 
4720
rm -f conftest.$ac_objext
 
4721
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4722
  (eval $ac_compile) 2>&5
 
4723
  ac_status=$?
 
4724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4725
  (exit $ac_status); } &&
 
4726
         { ac_try='test -s conftest.$ac_objext'
 
4727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4728
  (eval $ac_try) 2>&5
 
4729
  ac_status=$?
 
4730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); }; }; then
 
4732
      # The compiler can only warn and ignore the option if not recognized
 
4733
    # So say no if there are warnings
 
4734
    if test -s conftest.err; then
 
4735
      compiler_rtti_exceptions=no
 
4736
    else
 
4737
      compiler_rtti_exceptions=yes
 
4738
    fi
 
4739
 
 
4740
else
 
4741
  echo "$as_me: failed program was:" >&5
 
4742
sed 's/^/| /' conftest.$ac_ext >&5
 
4743
 
 
4744
fi
 
4745
rm -f conftest.$ac_objext conftest.$ac_ext
 
4746
  CFLAGS="$save_CFLAGS"
 
4747
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
 
4748
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
4749
 
 
4750
  if test "$compiler_rtti_exceptions" = "yes"; then
 
4751
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
4752
  else
 
4753
    no_builtin_flag=' -fno-builtin'
 
4754
  fi
 
4755
fi
 
4756
 
 
4757
# See if the linker supports building shared libraries.
 
4758
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
 
4759
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
4760
 
 
4761
allow_undefined_flag=
 
4762
no_undefined_flag=
 
4763
need_lib_prefix=unknown
 
4764
need_version=unknown
 
4765
# when you set need_version to no, make sure it does not cause -set_version
 
4766
# flags to be left without arguments
 
4767
archive_cmds=
 
4768
archive_expsym_cmds=
 
4769
old_archive_from_new_cmds=
 
4770
old_archive_from_expsyms_cmds=
 
4771
export_dynamic_flag_spec=
 
4772
whole_archive_flag_spec=
 
4773
thread_safe_flag_spec=
 
4774
hardcode_into_libs=no
 
4775
hardcode_libdir_flag_spec=
 
4776
hardcode_libdir_separator=
 
4777
hardcode_direct=no
 
4778
hardcode_minus_L=no
 
4779
hardcode_shlibpath_var=unsupported
 
4780
runpath_var=
 
4781
link_all_deplibs=unknown
 
4782
always_export_symbols=no
 
4783
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4784
# include_expsyms should be a list of space-separated symbols to be *always*
 
4785
# included in the symbol list
 
4786
include_expsyms=
 
4787
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
4788
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
4789
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
4790
# as well as any symbol that contains `d'.
 
4791
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
4792
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
4793
# platforms (ab)use it in PIC code, but their linkers get confused if
 
4794
# the symbol is explicitly referenced.  Since portable code cannot
 
4795
# rely on this symbol name, it's probably fine to never include it in
 
4796
# preloaded symbol tables.
 
4797
extract_expsyms_cmds=
 
4798
 
 
4799
case $host_os in
 
4800
cygwin* | mingw* | pw32*)
 
4801
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
4802
  # When not using gcc, we currently assume that we are using
 
4803
  # Microsoft Visual C++.
 
4804
  if test "$GCC" != yes; then
 
4805
    with_gnu_ld=no
 
4806
  fi
 
4807
  ;;
 
4808
openbsd*)
 
4809
  with_gnu_ld=no
 
4810
  ;;
 
4811
esac
 
4812
 
 
4813
ld_shlibs=yes
 
4814
if test "$with_gnu_ld" = yes; then
 
4815
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
4816
  wlarc='${wl}'
 
4817
 
 
4818
  # See if GNU ld supports shared libraries.
 
4819
  case $host_os in
 
4820
  aix3* | aix4* | aix5*)
 
4821
    # On AIX, the GNU linker is very broken
 
4822
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
4823
    ld_shlibs=no
 
4824
    cat <<EOF 1>&2
 
4825
 
 
4826
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4827
*** to be unable to reliably create shared libraries on AIX.
 
4828
*** Therefore, libtool is disabling shared libraries support.  If you
 
4829
*** really care for shared libraries, you may want to modify your PATH
 
4830
*** so that a non-GNU linker is found, and then restart.
 
4831
 
 
4832
EOF
 
4833
    ;;
 
4834
 
 
4835
  amigaos*)
 
4836
    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)'
 
4837
    hardcode_libdir_flag_spec='-L$libdir'
 
4838
    hardcode_minus_L=yes
 
4839
 
 
4840
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
4841
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
4842
    # to version 4, is to share data among multiple programs linked
 
4843
    # with the same dynamic library.  Since this doesn't match the
 
4844
    # behavior of shared libraries on other platforms, we can use
 
4845
    # them.
 
4846
    ld_shlibs=no
 
4847
    ;;
 
4848
 
 
4849
  beos*)
 
4850
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
4851
      allow_undefined_flag=unsupported
 
4852
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
4853
      # support --undefined.  This deserves some investigation.  FIXME
 
4854
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4855
    else
 
4856
      ld_shlibs=no
 
4857
    fi
 
4858
    ;;
 
4859
 
 
4860
  cygwin* | mingw* | pw32*)
 
4861
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
4862
    # no search path for DLLs.
 
4863
    hardcode_libdir_flag_spec='-L$libdir'
 
4864
    allow_undefined_flag=unsupported
 
4865
    always_export_symbols=yes
 
4866
 
 
4867
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
4868
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
4869
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
4870
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
4871
      else $CC -o impgen impgen.c ; fi)~
 
4872
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
4873
 
 
4874
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
4875
 
 
4876
    # cygwin and mingw dlls have different entry points and sets of symbols
 
4877
    # to exclude.
 
4878
    # FIXME: what about values for MSVC?
 
4879
    dll_entry=__cygwin_dll_entry@12
 
4880
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
4881
    case $host_os in
 
4882
    mingw*)
 
4883
      # mingw values
 
4884
      dll_entry=_DllMainCRTStartup@12
 
4885
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
4886
      ;;
 
4887
    esac
 
4888
 
 
4889
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
4890
    # of the two symbol sets.
 
4891
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
4892
 
 
4893
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
4894
    # can override, but on older systems we have to supply one (in ltdll.c)
 
4895
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
4896
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
4897
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 
4898
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
4899
    else
 
4900
      ltdll_obj=
 
4901
      ltdll_cmds=
 
4902
    fi
 
4903
 
 
4904
    # Extract the symbol export list from an `--export-all' def file,
 
4905
    # then regenerate the def file from the symbol export list, so that
 
4906
    # the compiled dll only exports the symbol export list.
 
4907
    # Be careful not to strip the DATA tag left be newer dlltools.
 
4908
    export_symbols_cmds="$ltdll_cmds"'
 
4909
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
4910
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
4911
 
 
4912
    # If the export-symbols file already is a .def file (1st line
 
4913
    # is EXPORTS), use it as is.
 
4914
    # If DATA tags from a recent dlltool are present, honour them!
 
4915
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
 
4916
        cp $export_symbols $output_objdir/$soname-def;
 
4917
      else
 
4918
        echo EXPORTS > $output_objdir/$soname-def;
 
4919
        _lt_hint=1;
 
4920
        cat $export_symbols | while read symbol; do
 
4921
         set dummy \$symbol;
 
4922
         case \$# in
 
4923
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
4924
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
 
4925
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
4926
         esac;
 
4927
         _lt_hint=`expr 1 + \$_lt_hint`;
 
4928
        done;
 
4929
      fi~
 
4930
      '"$ltdll_cmds"'
 
4931
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
4932
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 
4933
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
4934
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 
4935
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
4936
    ;;
 
4937
 
 
4938
  netbsd*)
 
4939
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4940
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
4941
      wlarc=
 
4942
    else
 
4943
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4944
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4945
    fi
 
4946
    ;;
 
4947
 
 
4948
  solaris* | sysv5*)
 
4949
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
4950
      ld_shlibs=no
 
4951
      cat <<EOF 1>&2
 
4952
 
 
4953
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
4954
*** create shared libraries on Solaris systems.  Therefore, libtool
 
4955
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
4956
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
4957
*** your PATH or compiler configuration so that the native linker is
 
4958
*** used, and then restart.
 
4959
 
 
4960
EOF
 
4961
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
4962
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4963
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4964
    else
 
4965
      ld_shlibs=no
 
4966
    fi
 
4967
    ;;
 
4968
 
 
4969
  sunos4*)
 
4970
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4971
    wlarc=
 
4972
    hardcode_direct=yes
 
4973
    hardcode_shlibpath_var=no
 
4974
    ;;
 
4975
 
 
4976
  *)
 
4977
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
4978
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4979
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4980
    else
 
4981
      ld_shlibs=no
 
4982
    fi
 
4983
    ;;
 
4984
  esac
 
4985
 
 
4986
  if test "$ld_shlibs" = yes; then
 
4987
    runpath_var=LD_RUN_PATH
 
4988
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
4989
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
4990
    case $host_os in
 
4991
    cygwin* | mingw* | pw32*)
 
4992
      # dlltool doesn't understand --whole-archive et. al.
 
4993
      whole_archive_flag_spec=
 
4994
      ;;
 
4995
    *)
 
4996
      # ancient GNU ld didn't support --whole-archive et. al.
 
4997
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
4998
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4999
      else
 
5000
        whole_archive_flag_spec=
 
5001
      fi
 
5002
      ;;
 
5003
    esac
 
5004
  fi
 
5005
else
 
5006
  # PORTME fill in a description of your system's linker (not GNU ld)
 
5007
  case $host_os in
 
5008
  aix3*)
 
5009
    allow_undefined_flag=unsupported
 
5010
    always_export_symbols=yes
 
5011
    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'
 
5012
    # Note: this linker hardcodes the directories in LIBPATH if there
 
5013
    # are no directories specified by -L.
 
5014
    hardcode_minus_L=yes
 
5015
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5016
      # Neither direct hardcoding nor static linking is supported with a
 
5017
      # broken collect2.
 
5018
      hardcode_direct=unsupported
 
5019
    fi
 
5020
    ;;
 
5021
 
 
5022
  aix4* | aix5*)
 
5023
    if test "$host_cpu" = ia64; then
 
5024
      # On IA64, the linker does run time linking by default, so we don't
 
5025
      # have to do anything special.
 
5026
      aix_use_runtimelinking=no
 
5027
      exp_sym_flag='-Bexport'
 
5028
      no_entry_flag=""
 
5029
    else
 
5030
      aix_use_runtimelinking=no
 
5031
 
 
5032
      # Test if we are trying to use run time linking or normal
 
5033
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5034
      # need to do runtime linking.
 
5035
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
5036
        for ld_flag in $LDFLAGS; do
 
5037
          case $ld_flag in
 
5038
          *-brtl*)
 
5039
            aix_use_runtimelinking=yes
 
5040
            break
 
5041
          ;;
 
5042
          esac
 
5043
        done
 
5044
      esac
 
5045
 
 
5046
      exp_sym_flag='-bexport'
 
5047
      no_entry_flag='-bnoentry'
 
5048
    fi
 
5049
 
 
5050
    # When large executables or shared objects are built, AIX ld can
 
5051
    # have problems creating the table of contents.  If linking a library
 
5052
    # or program results in "error TOC overflow" add -mminimal-toc to
 
5053
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5054
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5055
 
 
5056
    hardcode_direct=yes
 
5057
    archive_cmds=''
 
5058
    hardcode_libdir_separator=':'
 
5059
    if test "$GCC" = yes; then
 
5060
      case $host_os in aix4.[012]|aix4.[012].*)
 
5061
        collect2name=`${CC} -print-prog-name=collect2`
 
5062
        if test -f "$collect2name" && \
 
5063
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5064
        then
 
5065
          # We have reworked collect2
 
5066
          hardcode_direct=yes
 
5067
        else
 
5068
          # We have old collect2
 
5069
          hardcode_direct=unsupported
 
5070
          # It fails to find uninstalled libraries when the uninstalled
 
5071
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5072
          # to unsupported forces relinking
 
5073
          hardcode_minus_L=yes
 
5074
          hardcode_libdir_flag_spec='-L$libdir'
 
5075
          hardcode_libdir_separator=
 
5076
        fi
 
5077
      esac
 
5078
 
 
5079
      shared_flag='-shared'
 
5080
    else
 
5081
      # not using gcc
 
5082
      if test "$host_cpu" = ia64; then
 
5083
        shared_flag='${wl}-G'
 
5084
      else
 
5085
        if test "$aix_use_runtimelinking" = yes; then
 
5086
          shared_flag='${wl}-G'
 
5087
        else
 
5088
          shared_flag='${wl}-bM:SRE'
 
5089
        fi
 
5090
      fi
 
5091
    fi
 
5092
 
 
5093
    # It seems that -bexpall can do strange things, so it is better to
 
5094
    # generate a list of symbols to export.
 
5095
    always_export_symbols=yes
 
5096
    if test "$aix_use_runtimelinking" = yes; then
 
5097
      # Warning - without using the other runtime loading flags (-brtl),
 
5098
      # -berok will link without error, but may produce a broken library.
 
5099
      allow_undefined_flag='-berok'
 
5100
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5101
      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"
 
5102
    else
 
5103
      if test "$host_cpu" = ia64; then
 
5104
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
5105
        allow_undefined_flag="-z nodefs"
 
5106
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5107
      else
 
5108
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5109
        # Warning - without using the other run time loading flags,
 
5110
        # -berok will link without error, but may produce a broken library.
 
5111
        allow_undefined_flag='${wl}-berok'
 
5112
        # This is a bit strange, but is similar to how AIX traditionally builds
 
5113
        # it's shared libraries.
 
5114
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
5115
      fi
 
5116
    fi
 
5117
    ;;
 
5118
 
 
5119
  amigaos*)
 
5120
    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)'
 
5121
    hardcode_libdir_flag_spec='-L$libdir'
 
5122
    hardcode_minus_L=yes
 
5123
    # see comment about different semantics on the GNU ld section
 
5124
    ld_shlibs=no
 
5125
    ;;
 
5126
 
 
5127
  cygwin* | mingw* | pw32*)
 
5128
    # When not using gcc, we currently assume that we are using
 
5129
    # Microsoft Visual C++.
 
5130
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5131
    # no search path for DLLs.
 
5132
    hardcode_libdir_flag_spec=' '
 
5133
    allow_undefined_flag=unsupported
 
5134
    # Tell ltmain to make .lib files, not .a files.
 
5135
    libext=lib
 
5136
    # FIXME: Setting linknames here is a bad hack.
 
5137
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5138
    # The linker will automatically build a .lib file if we build a DLL.
 
5139
    old_archive_from_new_cmds='true'
 
5140
    # FIXME: Should let the user specify the lib program.
 
5141
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5142
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5143
    ;;
 
5144
 
 
5145
  darwin* | rhapsody*)
 
5146
    case "$host_os" in
 
5147
    rhapsody* | darwin1.[012])
 
5148
      allow_undefined_flag='-undefined suppress'
 
5149
      ;;
 
5150
    *) # Darwin 1.3 on
 
5151
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
5152
      ;;
 
5153
    esac
 
5154
    # FIXME: Relying on posixy $() will cause problems for
 
5155
    #        cross-compilation, but unfortunately the echo tests do not
 
5156
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
5157
    #        `"' quotes if we put them in here... so don't!
 
5158
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
 
5159
    # We need to add '_' to the symbols in $export_symbols first
 
5160
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
5161
    hardcode_direct=yes
 
5162
    hardcode_shlibpath_var=no
 
5163
    whole_archive_flag_spec='-all_load $convenience'
 
5164
    ;;
 
5165
 
 
5166
  freebsd1*)
 
5167
    ld_shlibs=no
 
5168
    ;;
 
5169
 
 
5170
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
5171
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
5172
  # does not break anything, and helps significantly (at the cost of a little
 
5173
  # extra space).
 
5174
  freebsd2.2*)
 
5175
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5176
    hardcode_libdir_flag_spec='-R$libdir'
 
5177
    hardcode_direct=yes
 
5178
    hardcode_shlibpath_var=no
 
5179
    ;;
 
5180
 
 
5181
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
5182
  freebsd2*)
 
5183
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5184
    hardcode_direct=yes
 
5185
    hardcode_minus_L=yes
 
5186
    hardcode_shlibpath_var=no
 
5187
    ;;
 
5188
 
 
5189
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5190
  freebsd*)
 
5191
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5192
    hardcode_libdir_flag_spec='-R$libdir'
 
5193
    hardcode_direct=yes
 
5194
    hardcode_shlibpath_var=no
 
5195
    ;;
 
5196
 
 
5197
  hpux9* | hpux10* | hpux11*)
 
5198
    case $host_os in
 
5199
    hpux9*) 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' ;;
 
5200
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
5201
    esac
 
5202
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
5203
    hardcode_libdir_separator=:
 
5204
    hardcode_direct=yes
 
5205
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
5206
                         # location of the library.
 
5207
    export_dynamic_flag_spec='${wl}-E'
 
5208
    ;;
 
5209
 
 
5210
  irix5* | irix6* | nonstopux*)
 
5211
    if test "$GCC" = yes; then
 
5212
      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'
 
5213
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5214
    else
 
5215
      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'
 
5216
      hardcode_libdir_flag_spec='-rpath $libdir'
 
5217
    fi
 
5218
    hardcode_libdir_separator=:
 
5219
    link_all_deplibs=yes
 
5220
    ;;
 
5221
 
 
5222
  netbsd*)
 
5223
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5224
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5225
    else
 
5226
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5227
    fi
 
5228
    hardcode_libdir_flag_spec='-R$libdir'
 
5229
    hardcode_direct=yes
 
5230
    hardcode_shlibpath_var=no
 
5231
    ;;
 
5232
 
 
5233
  newsos6)
 
5234
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5235
    hardcode_direct=yes
 
5236
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5237
    hardcode_libdir_separator=:
 
5238
    hardcode_shlibpath_var=no
 
5239
    ;;
 
5240
 
 
5241
  openbsd*)
 
5242
    hardcode_direct=yes
 
5243
    hardcode_shlibpath_var=no
 
5244
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5245
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5246
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5247
      export_dynamic_flag_spec='${wl}-E'
 
5248
    else
 
5249
      case "$host_os" in
 
5250
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
5251
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5252
        hardcode_libdir_flag_spec='-R$libdir'
 
5253
        ;;
 
5254
      *)
 
5255
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5256
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5257
        ;;
 
5258
      esac
 
5259
    fi
 
5260
    ;;
 
5261
 
 
5262
  os2*)
 
5263
    hardcode_libdir_flag_spec='-L$libdir'
 
5264
    hardcode_minus_L=yes
 
5265
    allow_undefined_flag=unsupported
 
5266
    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'
 
5267
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5268
    ;;
 
5269
 
 
5270
  osf3*)
 
5271
    if test "$GCC" = yes; then
 
5272
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5273
      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'
 
5274
    else
 
5275
      allow_undefined_flag=' -expect_unresolved \*'
 
5276
      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'
 
5277
    fi
 
5278
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5279
    hardcode_libdir_separator=:
 
5280
    ;;
 
5281
 
 
5282
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
5283
    if test "$GCC" = yes; then
 
5284
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5285
      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'
 
5286
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5287
    else
 
5288
      allow_undefined_flag=' -expect_unresolved \*'
 
5289
      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'
 
5290
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
5291
      $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'
 
5292
 
 
5293
      #Both c and cxx compiler support -rpath directly
 
5294
      hardcode_libdir_flag_spec='-rpath $libdir'
 
5295
    fi
 
5296
    hardcode_libdir_separator=:
 
5297
    ;;
 
5298
 
 
5299
  sco3.2v5*)
 
5300
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5301
    hardcode_shlibpath_var=no
 
5302
    runpath_var=LD_RUN_PATH
 
5303
    hardcode_runpath_var=yes
 
5304
    export_dynamic_flag_spec='${wl}-Bexport'
 
5305
    ;;
 
5306
 
 
5307
  solaris*)
 
5308
    # gcc --version < 3.0 without binutils cannot create self contained
 
5309
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
5310
    # the object symbols generated in some cases.  Libraries that use
 
5311
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
5312
    # a copy of libgcc.a into every shared library to guarantee resolving
 
5313
    # such symbols causes other problems:  According to Tim Van Holder
 
5314
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
5315
    # (to the application) exception stack for one thing.
 
5316
    no_undefined_flag=' -z defs'
 
5317
    if test "$GCC" = yes; then
 
5318
      case `$CC --version 2>/dev/null` in
 
5319
      [12].*)
 
5320
        cat <<EOF 1>&2
 
5321
 
 
5322
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
5323
*** create self contained shared libraries on Solaris systems, without
 
5324
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
5325
*** -no-undefined support, which will at least allow you to build shared
 
5326
*** libraries.  However, you may find that when you link such libraries
 
5327
*** into an application without using GCC, you have to manually add
 
5328
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
5329
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
5330
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
5331
 
 
5332
EOF
 
5333
        no_undefined_flag=
 
5334
        ;;
 
5335
      esac
 
5336
    fi
 
5337
    # $CC -shared without GNU ld will not create a library from C++
 
5338
    # object files and a static libstdc++, better avoid it by now
 
5339
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5340
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5341
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5342
    hardcode_libdir_flag_spec='-R$libdir'
 
5343
    hardcode_shlibpath_var=no
 
5344
    case $host_os in
 
5345
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
5346
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5347
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
5348
    esac
 
5349
    link_all_deplibs=yes
 
5350
    ;;
 
5351
 
 
5352
  sunos4*)
 
5353
    if test "x$host_vendor" = xsequent; then
 
5354
      # Use $CC to link under sequent, because it throws in some extra .o
 
5355
      # files that make .init and .fini sections work.
 
5356
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5357
    else
 
5358
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5359
    fi
 
5360
    hardcode_libdir_flag_spec='-L$libdir'
 
5361
    hardcode_direct=yes
 
5362
    hardcode_minus_L=yes
 
5363
    hardcode_shlibpath_var=no
 
5364
    ;;
 
5365
 
 
5366
  sysv4)
 
5367
    case $host_vendor in
 
5368
      sni)
 
5369
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5370
        hardcode_direct=yes # is this really true???
 
5371
        ;;
 
5372
      siemens)
 
5373
        ## LD is ld it makes a PLAMLIB
 
5374
        ## CC just makes a GrossModule.
 
5375
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5376
        reload_cmds='$CC -r -o $output$reload_objs'
 
5377
        hardcode_direct=no
 
5378
        ;;
 
5379
      motorola)
 
5380
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5381
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
5382
        ;;
 
5383
    esac
 
5384
    runpath_var='LD_RUN_PATH'
 
5385
    hardcode_shlibpath_var=no
 
5386
    ;;
 
5387
 
 
5388
  sysv4.3*)
 
5389
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5390
    hardcode_shlibpath_var=no
 
5391
    export_dynamic_flag_spec='-Bexport'
 
5392
    ;;
 
5393
 
 
5394
  sysv5*)
 
5395
    no_undefined_flag=' -z text'
 
5396
    # $CC -shared without GNU ld will not create a library from C++
 
5397
    # object files and a static libstdc++, better avoid it by now
 
5398
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5399
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5400
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5401
    hardcode_libdir_flag_spec=
 
5402
    hardcode_shlibpath_var=no
 
5403
    runpath_var='LD_RUN_PATH'
 
5404
    ;;
 
5405
 
 
5406
  uts4*)
 
5407
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5408
    hardcode_libdir_flag_spec='-L$libdir'
 
5409
    hardcode_shlibpath_var=no
 
5410
    ;;
 
5411
 
 
5412
  dgux*)
 
5413
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5414
    hardcode_libdir_flag_spec='-L$libdir'
 
5415
    hardcode_shlibpath_var=no
 
5416
    ;;
 
5417
 
 
5418
  sysv4*MP*)
 
5419
    if test -d /usr/nec; then
 
5420
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5421
      hardcode_shlibpath_var=no
 
5422
      runpath_var=LD_RUN_PATH
 
5423
      hardcode_runpath_var=yes
 
5424
      ld_shlibs=yes
 
5425
    fi
 
5426
    ;;
 
5427
 
 
5428
  sysv4.2uw2*)
 
5429
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5430
    hardcode_direct=yes
 
5431
    hardcode_minus_L=no
 
5432
    hardcode_shlibpath_var=no
 
5433
    hardcode_runpath_var=yes
 
5434
    runpath_var=LD_RUN_PATH
 
5435
    ;;
 
5436
 
 
5437
  sysv5uw7* | unixware7*)
 
5438
    no_undefined_flag='${wl}-z ${wl}text'
 
5439
    if test "$GCC" = yes; then
 
5440
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5441
    else
 
5442
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5443
    fi
 
5444
    runpath_var='LD_RUN_PATH'
 
5445
    hardcode_shlibpath_var=no
 
5446
    ;;
 
5447
 
 
5448
  *)
 
5449
    ld_shlibs=no
 
5450
    ;;
 
5451
  esac
 
5452
fi
 
5453
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
5454
echo "${ECHO_T}$ld_shlibs" >&6
 
5455
test "$ld_shlibs" = no && can_build_shared=no
 
5456
 
 
5457
# Check hardcoding attributes.
 
5458
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
5459
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
5460
hardcode_action=
 
5461
if test -n "$hardcode_libdir_flag_spec" || \
 
5462
   test -n "$runpath_var"; then
 
5463
 
 
5464
  # We can hardcode non-existant directories.
 
5465
  if test "$hardcode_direct" != no &&
 
5466
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
5467
     # have to relink, otherwise we might link with an installed library
 
5468
     # when we should be linking with a yet-to-be-installed one
 
5469
     ## test "$hardcode_shlibpath_var" != no &&
 
5470
     test "$hardcode_minus_L" != no; then
 
5471
    # Linking always hardcodes the temporary library directory.
 
5472
    hardcode_action=relink
 
5473
  else
 
5474
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
5475
    hardcode_action=immediate
 
5476
  fi
 
5477
else
 
5478
  # We cannot hardcode anything, or else we can only hardcode existing
 
5479
  # directories.
 
5480
  hardcode_action=unsupported
 
5481
fi
 
5482
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
5483
echo "${ECHO_T}$hardcode_action" >&6
 
5484
 
 
5485
striplib=
 
5486
old_striplib=
 
5487
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
5488
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
5489
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
5490
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
5491
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
5492
  echo "$as_me:$LINENO: result: yes" >&5
 
5493
echo "${ECHO_T}yes" >&6
 
5494
else
 
5495
  echo "$as_me:$LINENO: result: no" >&5
 
5496
echo "${ECHO_T}no" >&6
 
5497
fi
 
5498
 
 
5499
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5500
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5501
 
 
5502
# PORTME Fill in your ld.so characteristics
 
5503
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
5504
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
5505
library_names_spec=
 
5506
libname_spec='lib$name'
 
5507
soname_spec=
 
5508
postinstall_cmds=
 
5509
postuninstall_cmds=
 
5510
finish_cmds=
 
5511
finish_eval=
 
5512
shlibpath_var=
 
5513
shlibpath_overrides_runpath=unknown
 
5514
version_type=none
 
5515
dynamic_linker="$host_os ld.so"
 
5516
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
5517
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
5518
 
 
5519
case $host_os in
 
5520
aix3*)
 
5521
  version_type=linux
 
5522
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
5523
  shlibpath_var=LIBPATH
 
5524
 
 
5525
  # AIX has no versioning support, so we append a major version to the name.
 
5526
  soname_spec='${libname}${release}.so$major'
 
5527
  ;;
 
5528
 
 
5529
aix4* | aix5*)
 
5530
  version_type=linux
 
5531
  need_lib_prefix=no
 
5532
  need_version=no
 
5533
  hardcode_into_libs=yes
 
5534
  if test "$host_cpu" = ia64; then
 
5535
    # AIX 5 supports IA64
 
5536
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
5537
    shlibpath_var=LD_LIBRARY_PATH
 
5538
  else
 
5539
    # With GCC up to 2.95.x, collect2 would create an import file
 
5540
    # for dependence libraries.  The import file would start with
 
5541
    # the line `#! .'.  This would cause the generated library to
 
5542
    # depend on `.', always an invalid library.  This was fixed in
 
5543
    # development snapshots of GCC prior to 3.0.
 
5544
    case $host_os in
 
5545
      aix4 | aix4.[01] | aix4.[01].*)
 
5546
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
5547
             echo ' yes '
 
5548
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
5549
          :
 
5550
        else
 
5551
          can_build_shared=no
 
5552
        fi
 
5553
        ;;
 
5554
    esac
 
5555
    # AIX (on Power*) has no versioning support, so currently we can
 
5556
    # not hardcode correct soname into executable. Probably we can
 
5557
    # add versioning support to collect2, so additional links can
 
5558
    # be useful in future.
 
5559
    if test "$aix_use_runtimelinking" = yes; then
 
5560
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
5561
      # instead of lib<name>.a to let people know that these are not
 
5562
      # typical AIX shared libraries.
 
5563
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5564
    else
 
5565
      # We preserve .a as extension for shared libraries through AIX4.2
 
5566
      # and later when we are not doing run time linking.
 
5567
      library_names_spec='${libname}${release}.a $libname.a'
 
5568
      soname_spec='${libname}${release}.so$major'
 
5569
    fi
 
5570
    shlibpath_var=LIBPATH
 
5571
  fi
 
5572
  hardcode_into_libs=yes
 
5573
  ;;
 
5574
 
 
5575
amigaos*)
 
5576
  library_names_spec='$libname.ixlibrary $libname.a'
 
5577
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
5578
  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'
 
5579
  ;;
 
5580
 
 
5581
beos*)
 
5582
  library_names_spec='${libname}.so'
 
5583
  dynamic_linker="$host_os ld.so"
 
5584
  shlibpath_var=LIBRARY_PATH
 
5585
  ;;
 
5586
 
 
5587
bsdi4*)
 
5588
  version_type=linux
 
5589
  need_version=no
 
5590
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5591
  soname_spec='${libname}${release}.so$major'
 
5592
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
5593
  shlibpath_var=LD_LIBRARY_PATH
 
5594
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
5595
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
5596
  export_dynamic_flag_spec=-rdynamic
 
5597
  # the default ld.so.conf also contains /usr/contrib/lib and
 
5598
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
5599
  # libtool to hard-code these into programs
 
5600
  ;;
 
5601
 
 
5602
cygwin* | mingw* | pw32*)
 
5603
  version_type=windows
 
5604
  need_version=no
 
5605
  need_lib_prefix=no
 
5606
  case $GCC,$host_os in
 
5607
  yes,cygwin*)
 
5608
    library_names_spec='$libname.dll.a'
 
5609
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
5610
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
5611
      dldir=$destdir/`dirname \$dlpath`~
 
5612
      test -d \$dldir || mkdir -p \$dldir~
 
5613
      $install_prog .libs/$dlname \$dldir/$dlname'
 
5614
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
5615
      dlpath=$dir/\$dldll~
 
5616
       $rm \$dlpath'
 
5617
    ;;
 
5618
  yes,mingw*)
 
5619
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
5620
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
 
5621
    ;;
 
5622
  yes,pw32*)
 
5623
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
5624
    ;;
 
5625
  *)
 
5626
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
5627
    ;;
 
5628
  esac
 
5629
  dynamic_linker='Win32 ld.exe'
 
5630
  # FIXME: first we should search . and the directory the executable is in
 
5631
  shlibpath_var=PATH
 
5632
  ;;
 
5633
 
 
5634
darwin* | rhapsody*)
 
5635
  dynamic_linker="$host_os dyld"
 
5636
  version_type=darwin
 
5637
  need_lib_prefix=no
 
5638
  need_version=no
 
5639
  # FIXME: Relying on posixy $() will cause problems for
 
5640
  #        cross-compilation, but unfortunately the echo tests do not
 
5641
  #        yet detect zsh echo's removal of \ escapes.
 
5642
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
5643
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
5644
  shlibpath_overrides_runpath=yes
 
5645
  shlibpath_var=DYLD_LIBRARY_PATH
 
5646
  ;;
 
5647
 
 
5648
freebsd1*)
 
5649
  dynamic_linker=no
 
5650
  ;;
 
5651
 
 
5652
freebsd*)
 
5653
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
5654
  version_type=freebsd-$objformat
 
5655
  case $version_type in
 
5656
    freebsd-elf*)
 
5657
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
5658
      need_version=no
 
5659
      need_lib_prefix=no
 
5660
      ;;
 
5661
    freebsd-*)
 
5662
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
5663
      need_version=yes
 
5664
      ;;
 
5665
  esac
 
5666
  shlibpath_var=LD_LIBRARY_PATH
 
5667
  case $host_os in
 
5668
  freebsd2*)
 
5669
    shlibpath_overrides_runpath=yes
 
5670
    ;;
 
5671
  *)
 
5672
    shlibpath_overrides_runpath=no
 
5673
    hardcode_into_libs=yes
 
5674
    ;;
 
5675
  esac
 
5676
  ;;
 
5677
 
 
5678
gnu*)
 
5679
  version_type=linux
 
5680
  need_lib_prefix=no
 
5681
  need_version=no
 
5682
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
5683
  soname_spec='${libname}${release}.so$major'
 
5684
  shlibpath_var=LD_LIBRARY_PATH
 
5685
  hardcode_into_libs=yes
 
5686
  ;;
 
5687
 
 
5688
hpux9* | hpux10* | hpux11*)
 
5689
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
5690
  # link against other versions.
 
5691
  dynamic_linker="$host_os dld.sl"
 
5692
  version_type=sunos
 
5693
  need_lib_prefix=no
 
5694
  need_version=no
 
5695
  shlibpath_var=SHLIB_PATH
 
5696
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
5697
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
5698
  soname_spec='${libname}${release}.sl$major'
 
5699
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
5700
  postinstall_cmds='chmod 555 $lib'
 
5701
  ;;
 
5702
 
 
5703
irix5* | irix6* | nonstopux*)
 
5704
  case $host_os in
 
5705
    nonstopux*) version_type=nonstopux ;;
 
5706
    *)          version_type=irix ;;
 
5707
  esac
 
5708
  need_lib_prefix=no
 
5709
  need_version=no
 
5710
  soname_spec='${libname}${release}.so$major'
 
5711
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
5712
  case $host_os in
 
5713
  irix5* | nonstopux*)
 
5714
    libsuff= shlibsuff=
 
5715
    ;;
 
5716
  *)
 
5717
    case $LD in # libtool.m4 will add one of these switches to LD
 
5718
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
5719
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
5720
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
5721
    *) libsuff= shlibsuff= libmagic=never-match;;
 
5722
    esac
 
5723
    ;;
 
5724
  esac
 
5725
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
5726
  shlibpath_overrides_runpath=no
 
5727
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
5728
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
5729
  ;;
 
5730
 
 
5731
# No shared lib support for Linux oldld, aout, or coff.
 
5732
linux*oldld* | linux*aout* | linux*coff*)
 
5733
  dynamic_linker=no
 
5734
  ;;
 
5735
 
 
5736
# This must be Linux ELF.
 
5737
linux*)
 
5738
  version_type=linux
 
5739
  need_lib_prefix=no
 
5740
  need_version=no
 
5741
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5742
  soname_spec='${libname}${release}.so$major'
 
5743
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
5744
  shlibpath_var=LD_LIBRARY_PATH
 
5745
  shlibpath_overrides_runpath=no
 
5746
  # This implies no fast_install, which is unacceptable.
 
5747
  # Some rework will be needed to allow for fast_install
 
5748
  # before this can be enabled.
 
5749
  hardcode_into_libs=yes
 
5750
 
 
5751
  case $host_cpu:$lt_cv_cc_64bit_output in
 
5752
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 
5753
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
 
5754
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
 
5755
    ;;
 
5756
  esac
 
5757
 
 
5758
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
5759
  # powerpc, because MkLinux only supported shared libraries with the
 
5760
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
5761
  # most powerpc-linux boxes support dynamic linking these days and
 
5762
  # people can always --disable-shared, the test was removed, and we
 
5763
  # assume the GNU/Linux dynamic linker is in use.
 
5764
  dynamic_linker='GNU/Linux ld.so'
 
5765
  ;;
 
5766
 
 
5767
netbsd*)
 
5768
  version_type=sunos
 
5769
  need_lib_prefix=no
 
5770
  need_version=no
 
5771
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5772
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
5773
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
5774
    dynamic_linker='NetBSD (a.out) ld.so'
 
5775
  else
 
5776
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
5777
    soname_spec='${libname}${release}.so$major'
 
5778
    dynamic_linker='NetBSD ld.elf_so'
 
5779
  fi
 
5780
  shlibpath_var=LD_LIBRARY_PATH
 
5781
  shlibpath_overrides_runpath=yes
 
5782
  hardcode_into_libs=yes
 
5783
  ;;
 
5784
 
 
5785
newsos6)
 
5786
  version_type=linux
 
5787
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5788
  shlibpath_var=LD_LIBRARY_PATH
 
5789
  shlibpath_overrides_runpath=yes
 
5790
  ;;
 
5791
 
 
5792
openbsd*)
 
5793
  version_type=sunos
 
5794
  need_lib_prefix=no
 
5795
  need_version=no
 
5796
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5797
    case "$host_os" in
 
5798
    openbsd2.[89] | openbsd2.[89].*)
 
5799
      shlibpath_overrides_runpath=no
 
5800
      ;;
 
5801
    *)
 
5802
      shlibpath_overrides_runpath=yes
 
5803
      ;;
 
5804
    esac
 
5805
  else
 
5806
    shlibpath_overrides_runpath=yes
 
5807
  fi
 
5808
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
5809
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
5810
  shlibpath_var=LD_LIBRARY_PATH
 
5811
  ;;
 
5812
 
 
5813
os2*)
 
5814
  libname_spec='$name'
 
5815
  need_lib_prefix=no
 
5816
  library_names_spec='$libname.dll $libname.a'
 
5817
  dynamic_linker='OS/2 ld.exe'
 
5818
  shlibpath_var=LIBPATH
 
5819
  ;;
 
5820
 
 
5821
osf3* | osf4* | osf5*)
 
5822
  version_type=osf
 
5823
  need_version=no
 
5824
  soname_spec='${libname}${release}.so$major'
 
5825
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5826
  shlibpath_var=LD_LIBRARY_PATH
 
5827
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
5828
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
5829
  hardcode_into_libs=yes
 
5830
  ;;
 
5831
 
 
5832
sco3.2v5*)
 
5833
  version_type=osf
 
5834
  soname_spec='${libname}${release}.so$major'
 
5835
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5836
  shlibpath_var=LD_LIBRARY_PATH
 
5837
  ;;
 
5838
 
 
5839
solaris*)
 
5840
  version_type=linux
 
5841
  need_lib_prefix=no
 
5842
  need_version=no
 
5843
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5844
  soname_spec='${libname}${release}.so$major'
 
5845
  shlibpath_var=LD_LIBRARY_PATH
 
5846
  shlibpath_overrides_runpath=yes
 
5847
  hardcode_into_libs=yes
 
5848
  # ldd complains unless libraries are executable
 
5849
  postinstall_cmds='chmod +x $lib'
 
5850
  ;;
 
5851
 
 
5852
sunos4*)
 
5853
  version_type=sunos
 
5854
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
5855
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
5856
  shlibpath_var=LD_LIBRARY_PATH
 
5857
  shlibpath_overrides_runpath=yes
 
5858
  if test "$with_gnu_ld" = yes; then
 
5859
    need_lib_prefix=no
 
5860
  fi
 
5861
  need_version=yes
 
5862
  ;;
 
5863
 
 
5864
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5865
  version_type=linux
 
5866
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5867
  soname_spec='${libname}${release}.so$major'
 
5868
  shlibpath_var=LD_LIBRARY_PATH
 
5869
  case $host_vendor in
 
5870
    sni)
 
5871
      shlibpath_overrides_runpath=no
 
5872
      need_lib_prefix=no
 
5873
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
5874
      runpath_var=LD_RUN_PATH
 
5875
      ;;
 
5876
    siemens)
 
5877
      need_lib_prefix=no
 
5878
      ;;
 
5879
    motorola)
 
5880
      need_lib_prefix=no
 
5881
      need_version=no
 
5882
      shlibpath_overrides_runpath=no
 
5883
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
5884
      ;;
 
5885
  esac
 
5886
  ;;
 
5887
 
 
5888
uts4*)
 
5889
  version_type=linux
 
5890
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5891
  soname_spec='${libname}${release}.so$major'
 
5892
  shlibpath_var=LD_LIBRARY_PATH
 
5893
  ;;
 
5894
 
 
5895
dgux*)
 
5896
  version_type=linux
 
5897
  need_lib_prefix=no
 
5898
  need_version=no
 
5899
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5900
  soname_spec='${libname}${release}.so$major'
 
5901
  shlibpath_var=LD_LIBRARY_PATH
 
5902
  ;;
 
5903
 
 
5904
sysv4*MP*)
 
5905
  if test -d /usr/nec ;then
 
5906
    version_type=linux
 
5907
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
5908
    soname_spec='$libname.so.$major'
 
5909
    shlibpath_var=LD_LIBRARY_PATH
 
5910
  fi
 
5911
  ;;
 
5912
 
 
5913
*)
 
5914
  dynamic_linker=no
 
5915
  ;;
 
5916
esac
 
5917
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
5918
echo "${ECHO_T}$dynamic_linker" >&6
 
5919
test "$dynamic_linker" = no && can_build_shared=no
 
5920
 
 
5921
# Report the final consequences.
 
5922
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
5923
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
5924
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
5925
echo "${ECHO_T}$can_build_shared" >&6
 
5926
 
 
5927
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
5928
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
5929
test "$can_build_shared" = "no" && enable_shared=no
 
5930
 
 
5931
# On AIX, shared libraries and static libraries use the same namespace, and
 
5932
# are all built from PIC.
 
5933
case "$host_os" in
 
5934
aix3*)
 
5935
  test "$enable_shared" = yes && enable_static=no
 
5936
  if test -n "$RANLIB"; then
 
5937
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5938
    postinstall_cmds='$RANLIB $lib'
 
5939
  fi
 
5940
  ;;
 
5941
 
 
5942
aix4*)
 
5943
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5944
    test "$enable_shared" = yes && enable_static=no
 
5945
  fi
 
5946
  ;;
 
5947
esac
 
5948
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
5949
echo "${ECHO_T}$enable_shared" >&6
 
5950
 
 
5951
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
5952
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
5953
# Make sure either enable_shared or enable_static is yes.
 
5954
test "$enable_shared" = yes || enable_static=yes
 
5955
echo "$as_me:$LINENO: result: $enable_static" >&5
 
5956
echo "${ECHO_T}$enable_static" >&6
 
5957
 
 
5958
if test "$hardcode_action" = relink; then
 
5959
  # Fast installation is not supported
 
5960
  enable_fast_install=no
 
5961
elif test "$shlibpath_overrides_runpath" = yes ||
 
5962
     test "$enable_shared" = no; then
 
5963
  # Fast installation is not necessary
 
5964
  enable_fast_install=needless
 
5965
fi
 
5966
 
 
5967
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
5968
if test "$GCC" = yes; then
 
5969
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
5970
fi
 
5971
 
 
5972
if test "x$enable_dlopen" != xyes; then
 
5973
  enable_dlopen=unknown
 
5974
  enable_dlopen_self=unknown
 
5975
  enable_dlopen_self_static=unknown
 
5976
else
 
5977
  lt_cv_dlopen=no
 
5978
  lt_cv_dlopen_libs=
 
5979
 
 
5980
  case $host_os in
 
5981
  beos*)
 
5982
    lt_cv_dlopen="load_add_on"
 
5983
    lt_cv_dlopen_libs=
 
5984
    lt_cv_dlopen_self=yes
 
5985
    ;;
 
5986
 
 
5987
  cygwin* | mingw* | pw32*)
 
5988
    lt_cv_dlopen="LoadLibrary"
 
5989
    lt_cv_dlopen_libs=
 
5990
   ;;
 
5991
 
 
5992
  *)
 
5993
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
5994
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
5995
if test "${ac_cv_func_shl_load+set}" = set; then
 
5996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5997
else
 
5998
  cat >conftest.$ac_ext <<_ACEOF
 
5999
#line $LINENO "configure"
 
6000
/* confdefs.h.  */
 
6001
_ACEOF
 
6002
cat confdefs.h >>conftest.$ac_ext
 
6003
cat >>conftest.$ac_ext <<_ACEOF
 
6004
/* end confdefs.h.  */
 
6005
/* System header to define __stub macros and hopefully few prototypes,
 
6006
    which can conflict with char shl_load (); below.
 
6007
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6008
    <limits.h> exists even on freestanding compilers.  */
 
6009
#ifdef __STDC__
 
6010
# include <limits.h>
 
6011
#else
 
6012
# include <assert.h>
 
6013
#endif
 
6014
/* Override any gcc2 internal prototype to avoid an error.  */
 
6015
#ifdef __cplusplus
 
6016
extern "C"
 
6017
{
 
6018
#endif
 
6019
/* We use char because int might match the return type of a gcc2
 
6020
   builtin and then its argument prototype would still apply.  */
 
6021
char shl_load ();
 
6022
/* The GNU C library defines this for functions which it implements
 
6023
    to always fail with ENOSYS.  Some functions are actually named
 
6024
    something starting with __ and the normal name is an alias.  */
 
6025
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
6026
choke me
 
6027
#else
 
6028
char (*f) () = shl_load;
 
6029
#endif
 
6030
#ifdef __cplusplus
 
6031
}
 
6032
#endif
 
6033
 
 
6034
int
 
6035
main ()
 
6036
{
 
6037
return f != shl_load;
 
6038
  ;
 
6039
  return 0;
 
6040
}
 
6041
_ACEOF
 
6042
rm -f conftest.$ac_objext conftest$ac_exeext
 
6043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6044
  (eval $ac_link) 2>&5
 
6045
  ac_status=$?
 
6046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6047
  (exit $ac_status); } &&
 
6048
         { ac_try='test -s conftest$ac_exeext'
 
6049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6050
  (eval $ac_try) 2>&5
 
6051
  ac_status=$?
 
6052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6053
  (exit $ac_status); }; }; then
 
6054
  ac_cv_func_shl_load=yes
 
6055
else
 
6056
  echo "$as_me: failed program was:" >&5
 
6057
sed 's/^/| /' conftest.$ac_ext >&5
 
6058
 
 
6059
ac_cv_func_shl_load=no
 
6060
fi
 
6061
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6062
fi
 
6063
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
6064
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
6065
if test $ac_cv_func_shl_load = yes; then
 
6066
  lt_cv_dlopen="shl_load"
 
6067
else
 
6068
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
6069
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
6070
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
6071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6072
else
 
6073
  ac_check_lib_save_LIBS=$LIBS
 
6074
LIBS="-ldld  $LIBS"
 
6075
cat >conftest.$ac_ext <<_ACEOF
 
6076
#line $LINENO "configure"
 
6077
/* confdefs.h.  */
 
6078
_ACEOF
 
6079
cat confdefs.h >>conftest.$ac_ext
 
6080
cat >>conftest.$ac_ext <<_ACEOF
 
6081
/* end confdefs.h.  */
 
6082
 
 
6083
/* Override any gcc2 internal prototype to avoid an error.  */
 
6084
#ifdef __cplusplus
 
6085
extern "C"
 
6086
#endif
 
6087
/* We use char because int might match the return type of a gcc2
 
6088
   builtin and then its argument prototype would still apply.  */
 
6089
char shl_load ();
 
6090
int
 
6091
main ()
 
6092
{
 
6093
shl_load ();
 
6094
  ;
 
6095
  return 0;
 
6096
}
 
6097
_ACEOF
 
6098
rm -f conftest.$ac_objext conftest$ac_exeext
 
6099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6100
  (eval $ac_link) 2>&5
 
6101
  ac_status=$?
 
6102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6103
  (exit $ac_status); } &&
 
6104
         { ac_try='test -s conftest$ac_exeext'
 
6105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6106
  (eval $ac_try) 2>&5
 
6107
  ac_status=$?
 
6108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6109
  (exit $ac_status); }; }; then
 
6110
  ac_cv_lib_dld_shl_load=yes
 
6111
else
 
6112
  echo "$as_me: failed program was:" >&5
 
6113
sed 's/^/| /' conftest.$ac_ext >&5
 
6114
 
 
6115
ac_cv_lib_dld_shl_load=no
 
6116
fi
 
6117
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6118
LIBS=$ac_check_lib_save_LIBS
 
6119
fi
 
6120
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
6121
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
6122
if test $ac_cv_lib_dld_shl_load = yes; then
 
6123
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
6124
else
 
6125
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
6126
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
6127
if test "${ac_cv_func_dlopen+set}" = set; then
 
6128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6129
else
 
6130
  cat >conftest.$ac_ext <<_ACEOF
 
6131
#line $LINENO "configure"
 
6132
/* confdefs.h.  */
 
6133
_ACEOF
 
6134
cat confdefs.h >>conftest.$ac_ext
 
6135
cat >>conftest.$ac_ext <<_ACEOF
 
6136
/* end confdefs.h.  */
 
6137
/* System header to define __stub macros and hopefully few prototypes,
 
6138
    which can conflict with char dlopen (); below.
 
6139
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6140
    <limits.h> exists even on freestanding compilers.  */
 
6141
#ifdef __STDC__
 
6142
# include <limits.h>
 
6143
#else
 
6144
# include <assert.h>
 
6145
#endif
 
6146
/* Override any gcc2 internal prototype to avoid an error.  */
 
6147
#ifdef __cplusplus
 
6148
extern "C"
 
6149
{
 
6150
#endif
 
6151
/* We use char because int might match the return type of a gcc2
 
6152
   builtin and then its argument prototype would still apply.  */
 
6153
char dlopen ();
 
6154
/* The GNU C library defines this for functions which it implements
 
6155
    to always fail with ENOSYS.  Some functions are actually named
 
6156
    something starting with __ and the normal name is an alias.  */
 
6157
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
6158
choke me
 
6159
#else
 
6160
char (*f) () = dlopen;
 
6161
#endif
 
6162
#ifdef __cplusplus
 
6163
}
 
6164
#endif
 
6165
 
 
6166
int
 
6167
main ()
 
6168
{
 
6169
return f != dlopen;
 
6170
  ;
 
6171
  return 0;
 
6172
}
 
6173
_ACEOF
 
6174
rm -f conftest.$ac_objext conftest$ac_exeext
 
6175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6176
  (eval $ac_link) 2>&5
 
6177
  ac_status=$?
 
6178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6179
  (exit $ac_status); } &&
 
6180
         { ac_try='test -s conftest$ac_exeext'
 
6181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6182
  (eval $ac_try) 2>&5
 
6183
  ac_status=$?
 
6184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6185
  (exit $ac_status); }; }; then
 
6186
  ac_cv_func_dlopen=yes
 
6187
else
 
6188
  echo "$as_me: failed program was:" >&5
 
6189
sed 's/^/| /' conftest.$ac_ext >&5
 
6190
 
 
6191
ac_cv_func_dlopen=no
 
6192
fi
 
6193
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6194
fi
 
6195
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
6196
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
6197
if test $ac_cv_func_dlopen = yes; then
 
6198
  lt_cv_dlopen="dlopen"
 
6199
else
 
6200
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
6201
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
6202
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
6203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6204
else
 
6205
  ac_check_lib_save_LIBS=$LIBS
 
6206
LIBS="-ldl  $LIBS"
 
6207
cat >conftest.$ac_ext <<_ACEOF
 
6208
#line $LINENO "configure"
 
6209
/* confdefs.h.  */
 
6210
_ACEOF
 
6211
cat confdefs.h >>conftest.$ac_ext
 
6212
cat >>conftest.$ac_ext <<_ACEOF
 
6213
/* end confdefs.h.  */
 
6214
 
 
6215
/* Override any gcc2 internal prototype to avoid an error.  */
 
6216
#ifdef __cplusplus
 
6217
extern "C"
 
6218
#endif
 
6219
/* We use char because int might match the return type of a gcc2
 
6220
   builtin and then its argument prototype would still apply.  */
 
6221
char dlopen ();
 
6222
int
 
6223
main ()
 
6224
{
 
6225
dlopen ();
 
6226
  ;
 
6227
  return 0;
 
6228
}
 
6229
_ACEOF
 
6230
rm -f conftest.$ac_objext conftest$ac_exeext
 
6231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6232
  (eval $ac_link) 2>&5
 
6233
  ac_status=$?
 
6234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6235
  (exit $ac_status); } &&
 
6236
         { ac_try='test -s conftest$ac_exeext'
 
6237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6238
  (eval $ac_try) 2>&5
 
6239
  ac_status=$?
 
6240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6241
  (exit $ac_status); }; }; then
 
6242
  ac_cv_lib_dl_dlopen=yes
 
6243
else
 
6244
  echo "$as_me: failed program was:" >&5
 
6245
sed 's/^/| /' conftest.$ac_ext >&5
 
6246
 
 
6247
ac_cv_lib_dl_dlopen=no
 
6248
fi
 
6249
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6250
LIBS=$ac_check_lib_save_LIBS
 
6251
fi
 
6252
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
6253
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
6254
if test $ac_cv_lib_dl_dlopen = yes; then
 
6255
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
6256
else
 
6257
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
6258
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
6259
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
6260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6261
else
 
6262
  ac_check_lib_save_LIBS=$LIBS
 
6263
LIBS="-lsvld  $LIBS"
 
6264
cat >conftest.$ac_ext <<_ACEOF
 
6265
#line $LINENO "configure"
 
6266
/* confdefs.h.  */
 
6267
_ACEOF
 
6268
cat confdefs.h >>conftest.$ac_ext
 
6269
cat >>conftest.$ac_ext <<_ACEOF
 
6270
/* end confdefs.h.  */
 
6271
 
 
6272
/* Override any gcc2 internal prototype to avoid an error.  */
 
6273
#ifdef __cplusplus
 
6274
extern "C"
 
6275
#endif
 
6276
/* We use char because int might match the return type of a gcc2
 
6277
   builtin and then its argument prototype would still apply.  */
 
6278
char dlopen ();
 
6279
int
 
6280
main ()
 
6281
{
 
6282
dlopen ();
 
6283
  ;
 
6284
  return 0;
 
6285
}
 
6286
_ACEOF
 
6287
rm -f conftest.$ac_objext conftest$ac_exeext
 
6288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6289
  (eval $ac_link) 2>&5
 
6290
  ac_status=$?
 
6291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6292
  (exit $ac_status); } &&
 
6293
         { ac_try='test -s conftest$ac_exeext'
 
6294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6295
  (eval $ac_try) 2>&5
 
6296
  ac_status=$?
 
6297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6298
  (exit $ac_status); }; }; then
 
6299
  ac_cv_lib_svld_dlopen=yes
 
6300
else
 
6301
  echo "$as_me: failed program was:" >&5
 
6302
sed 's/^/| /' conftest.$ac_ext >&5
 
6303
 
 
6304
ac_cv_lib_svld_dlopen=no
 
6305
fi
 
6306
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6307
LIBS=$ac_check_lib_save_LIBS
 
6308
fi
 
6309
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
6310
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
6311
if test $ac_cv_lib_svld_dlopen = yes; then
 
6312
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
6313
else
 
6314
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
6315
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
6316
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
6317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6318
else
 
6319
  ac_check_lib_save_LIBS=$LIBS
 
6320
LIBS="-ldld  $LIBS"
 
6321
cat >conftest.$ac_ext <<_ACEOF
 
6322
#line $LINENO "configure"
 
6323
/* confdefs.h.  */
 
6324
_ACEOF
 
6325
cat confdefs.h >>conftest.$ac_ext
 
6326
cat >>conftest.$ac_ext <<_ACEOF
 
6327
/* end confdefs.h.  */
 
6328
 
 
6329
/* Override any gcc2 internal prototype to avoid an error.  */
 
6330
#ifdef __cplusplus
 
6331
extern "C"
 
6332
#endif
 
6333
/* We use char because int might match the return type of a gcc2
 
6334
   builtin and then its argument prototype would still apply.  */
 
6335
char dld_link ();
 
6336
int
 
6337
main ()
 
6338
{
 
6339
dld_link ();
 
6340
  ;
 
6341
  return 0;
 
6342
}
 
6343
_ACEOF
 
6344
rm -f conftest.$ac_objext conftest$ac_exeext
 
6345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6346
  (eval $ac_link) 2>&5
 
6347
  ac_status=$?
 
6348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6349
  (exit $ac_status); } &&
 
6350
         { ac_try='test -s conftest$ac_exeext'
 
6351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6352
  (eval $ac_try) 2>&5
 
6353
  ac_status=$?
 
6354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6355
  (exit $ac_status); }; }; then
 
6356
  ac_cv_lib_dld_dld_link=yes
 
6357
else
 
6358
  echo "$as_me: failed program was:" >&5
 
6359
sed 's/^/| /' conftest.$ac_ext >&5
 
6360
 
 
6361
ac_cv_lib_dld_dld_link=no
 
6362
fi
 
6363
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6364
LIBS=$ac_check_lib_save_LIBS
 
6365
fi
 
6366
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
6367
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
6368
if test $ac_cv_lib_dld_dld_link = yes; then
 
6369
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
6370
fi
 
6371
 
 
6372
 
 
6373
fi
 
6374
 
 
6375
 
 
6376
fi
 
6377
 
 
6378
 
 
6379
fi
 
6380
 
 
6381
 
 
6382
fi
 
6383
 
 
6384
 
 
6385
fi
 
6386
 
 
6387
    ;;
 
6388
  esac
 
6389
 
 
6390
  if test "x$lt_cv_dlopen" != xno; then
 
6391
    enable_dlopen=yes
 
6392
  else
 
6393
    enable_dlopen=no
 
6394
  fi
 
6395
 
 
6396
  case $lt_cv_dlopen in
 
6397
  dlopen)
 
6398
    save_CPPFLAGS="$CPPFLAGS"
 
6399
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
6400
 
 
6401
    save_LDFLAGS="$LDFLAGS"
 
6402
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
6403
 
 
6404
    save_LIBS="$LIBS"
 
6405
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
6406
 
 
6407
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
6408
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
6409
if test "${lt_cv_dlopen_self+set}" = set; then
 
6410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6411
else
 
6412
          if test "$cross_compiling" = yes; then :
 
6413
  lt_cv_dlopen_self=cross
 
6414
else
 
6415
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
6416
  lt_status=$lt_dlunknown
 
6417
  cat > conftest.$ac_ext <<EOF
 
6418
#line 6418 "configure"
 
6419
#include "confdefs.h"
 
6420
 
 
6421
#if HAVE_DLFCN_H
 
6422
#include <dlfcn.h>
 
6423
#endif
 
6424
 
 
6425
#include <stdio.h>
 
6426
 
 
6427
#ifdef RTLD_GLOBAL
 
6428
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
6429
#else
 
6430
#  ifdef DL_GLOBAL
 
6431
#    define LT_DLGLOBAL         DL_GLOBAL
 
6432
#  else
 
6433
#    define LT_DLGLOBAL         0
 
6434
#  endif
 
6435
#endif
 
6436
 
 
6437
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
6438
   find out it does not work in some platform. */
 
6439
#ifndef LT_DLLAZY_OR_NOW
 
6440
#  ifdef RTLD_LAZY
 
6441
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
6442
#  else
 
6443
#    ifdef DL_LAZY
 
6444
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
6445
#    else
 
6446
#      ifdef RTLD_NOW
 
6447
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
6448
#      else
 
6449
#        ifdef DL_NOW
 
6450
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
6451
#        else
 
6452
#          define LT_DLLAZY_OR_NOW      0
 
6453
#        endif
 
6454
#      endif
 
6455
#    endif
 
6456
#  endif
 
6457
#endif
 
6458
 
 
6459
#ifdef __cplusplus
 
6460
extern "C" void exit (int);
 
6461
#endif
 
6462
 
 
6463
void fnord() { int i=42;}
 
6464
int main ()
 
6465
{
 
6466
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
6467
  int status = $lt_dlunknown;
 
6468
 
 
6469
  if (self)
 
6470
    {
 
6471
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
6472
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
6473
      /* dlclose (self); */
 
6474
    }
 
6475
 
 
6476
    exit (status);
 
6477
}
 
6478
EOF
 
6479
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6480
  (eval $ac_link) 2>&5
 
6481
  ac_status=$?
 
6482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6483
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
6484
    (./conftest; exit; ) 2>/dev/null
 
6485
    lt_status=$?
 
6486
    case x$lt_status in
 
6487
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
6488
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
6489
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
6490
    esac
 
6491
  else :
 
6492
    # compilation failed
 
6493
    lt_cv_dlopen_self=no
 
6494
  fi
 
6495
fi
 
6496
rm -fr conftest*
 
6497
 
 
6498
 
 
6499
fi
 
6500
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
6501
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
6502
 
 
6503
    if test "x$lt_cv_dlopen_self" = xyes; then
 
6504
      LDFLAGS="$LDFLAGS $link_static_flag"
 
6505
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
6506
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
6507
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
6508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6509
else
 
6510
          if test "$cross_compiling" = yes; then :
 
6511
  lt_cv_dlopen_self_static=cross
 
6512
else
 
6513
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
6514
  lt_status=$lt_dlunknown
 
6515
  cat > conftest.$ac_ext <<EOF
 
6516
#line 6516 "configure"
 
6517
#include "confdefs.h"
 
6518
 
 
6519
#if HAVE_DLFCN_H
 
6520
#include <dlfcn.h>
 
6521
#endif
 
6522
 
 
6523
#include <stdio.h>
 
6524
 
 
6525
#ifdef RTLD_GLOBAL
 
6526
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
6527
#else
 
6528
#  ifdef DL_GLOBAL
 
6529
#    define LT_DLGLOBAL         DL_GLOBAL
 
6530
#  else
 
6531
#    define LT_DLGLOBAL         0
 
6532
#  endif
 
6533
#endif
 
6534
 
 
6535
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
6536
   find out it does not work in some platform. */
 
6537
#ifndef LT_DLLAZY_OR_NOW
 
6538
#  ifdef RTLD_LAZY
 
6539
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
6540
#  else
 
6541
#    ifdef DL_LAZY
 
6542
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
6543
#    else
 
6544
#      ifdef RTLD_NOW
 
6545
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
6546
#      else
 
6547
#        ifdef DL_NOW
 
6548
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
6549
#        else
 
6550
#          define LT_DLLAZY_OR_NOW      0
 
6551
#        endif
 
6552
#      endif
 
6553
#    endif
 
6554
#  endif
 
6555
#endif
 
6556
 
 
6557
#ifdef __cplusplus
 
6558
extern "C" void exit (int);
 
6559
#endif
 
6560
 
 
6561
void fnord() { int i=42;}
 
6562
int main ()
 
6563
{
 
6564
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
6565
  int status = $lt_dlunknown;
 
6566
 
 
6567
  if (self)
 
6568
    {
 
6569
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
6570
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
6571
      /* dlclose (self); */
 
6572
    }
 
6573
 
 
6574
    exit (status);
 
6575
}
 
6576
EOF
 
6577
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6578
  (eval $ac_link) 2>&5
 
6579
  ac_status=$?
 
6580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6581
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
6582
    (./conftest; exit; ) 2>/dev/null
 
6583
    lt_status=$?
 
6584
    case x$lt_status in
 
6585
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
6586
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
6587
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
6588
    esac
 
6589
  else :
 
6590
    # compilation failed
 
6591
    lt_cv_dlopen_self_static=no
 
6592
  fi
 
6593
fi
 
6594
rm -fr conftest*
 
6595
 
 
6596
 
 
6597
fi
 
6598
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
6599
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
6600
    fi
 
6601
 
 
6602
    CPPFLAGS="$save_CPPFLAGS"
 
6603
    LDFLAGS="$save_LDFLAGS"
 
6604
    LIBS="$save_LIBS"
 
6605
    ;;
 
6606
  esac
 
6607
 
 
6608
  case $lt_cv_dlopen_self in
 
6609
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
6610
  *) enable_dlopen_self=unknown ;;
 
6611
  esac
 
6612
 
 
6613
  case $lt_cv_dlopen_self_static in
 
6614
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
6615
  *) enable_dlopen_self_static=unknown ;;
 
6616
  esac
 
6617
fi
 
6618
 
 
6619
 
 
6620
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6621
  case $archive_cmds in
 
6622
  *'~'*)
 
6623
    # FIXME: we may have to deal with multi-command sequences.
 
6624
    ;;
 
6625
  '$CC '*)
 
6626
    # Test whether the compiler implicitly links with -lc since on some
 
6627
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6628
    # to ld, don't add -lc before -lgcc.
 
6629
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6630
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
6631
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
6632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6633
else
 
6634
  $rm conftest*
 
6635
    echo 'static int dummy;' > conftest.$ac_ext
 
6636
 
 
6637
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6638
  (eval $ac_compile) 2>&5
 
6639
  ac_status=$?
 
6640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6641
  (exit $ac_status); }; then
 
6642
      soname=conftest
 
6643
      lib=conftest
 
6644
      libobjs=conftest.$ac_objext
 
6645
      deplibs=
 
6646
      wl=$lt_cv_prog_cc_wl
 
6647
      compiler_flags=-v
 
6648
      linker_flags=-v
 
6649
      verstring=
 
6650
      output_objdir=.
 
6651
      libname=conftest
 
6652
      save_allow_undefined_flag=$allow_undefined_flag
 
6653
      allow_undefined_flag=
 
6654
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
6655
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
6656
  ac_status=$?
 
6657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6658
  (exit $ac_status); }
 
6659
      then
 
6660
        lt_cv_archive_cmds_need_lc=no
 
6661
      else
 
6662
        lt_cv_archive_cmds_need_lc=yes
 
6663
      fi
 
6664
      allow_undefined_flag=$save_allow_undefined_flag
 
6665
    else
 
6666
      cat conftest.err 1>&5
 
6667
    fi
 
6668
fi
 
6669
 
 
6670
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
 
6671
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
6672
    ;;
 
6673
  esac
 
6674
fi
 
6675
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
6676
 
 
6677
# The second clause should only fire when bootstrapping the
 
6678
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
6679
# with your package, and you will get complaints that there are
 
6680
# no rules to generate ltmain.sh.
 
6681
if test -f "$ltmain"; then
 
6682
  :
 
6683
else
 
6684
  # If there is no Makefile yet, we rely on a make rule to execute
 
6685
  # `config.status --recheck' to rerun these tests and create the
 
6686
  # libtool script then.
 
6687
  test -f Makefile && make "$ltmain"
 
6688
fi
 
6689
 
 
6690
if test -f "$ltmain"; then
 
6691
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
6692
  $rm -f "${ofile}T"
 
6693
 
 
6694
  echo creating $ofile
 
6695
 
 
6696
  # Now quote all the things that may contain metacharacters while being
 
6697
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
6698
  # variables and quote the copies for generation of the libtool script.
 
6699
  for var in echo old_CC old_CFLAGS SED \
 
6700
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
6701
    reload_flag reload_cmds wl \
 
6702
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
6703
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
6704
    library_names_spec soname_spec \
 
6705
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
6706
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
6707
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
6708
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
6709
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
6710
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
6711
    global_symbol_to_c_name_address \
 
6712
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
6713
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
6714
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
6715
 
 
6716
    case $var in
 
6717
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
6718
    old_postinstall_cmds | old_postuninstall_cmds | \
 
6719
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
6720
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
6721
    postinstall_cmds | postuninstall_cmds | \
 
6722
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
6723
      # Double-quote double-evaled strings.
 
6724
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
6725
      ;;
 
6726
    *)
 
6727
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
6728
      ;;
 
6729
    esac
 
6730
  done
 
6731
 
 
6732
  cat <<__EOF__ > "${ofile}T"
 
6733
#! $SHELL
 
6734
 
 
6735
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
6736
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
6737
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
6738
#
 
6739
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
6740
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
6741
#
 
6742
# This program is free software; you can redistribute it and/or modify
 
6743
# it under the terms of the GNU General Public License as published by
 
6744
# the Free Software Foundation; either version 2 of the License, or
 
6745
# (at your option) any later version.
 
6746
#
 
6747
# This program is distributed in the hope that it will be useful, but
 
6748
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
6749
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
6750
# General Public License for more details.
 
6751
#
 
6752
# You should have received a copy of the GNU General Public License
 
6753
# along with this program; if not, write to the Free Software
 
6754
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
6755
#
 
6756
# As a special exception to the GNU General Public License, if you
 
6757
# distribute this file as part of a program that contains a
 
6758
# configuration script generated by Autoconf, you may include it under
 
6759
# the same distribution terms that you use for the rest of that program.
 
6760
 
 
6761
# A sed that does not truncate output.
 
6762
SED=$lt_SED
 
6763
 
 
6764
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
6765
Xsed="${SED} -e s/^X//"
 
6766
 
 
6767
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
6768
# if CDPATH is set.
 
6769
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
6770
 
 
6771
# ### BEGIN LIBTOOL CONFIG
 
6772
 
 
6773
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
6774
 
 
6775
# Shell to use when invoking shell scripts.
 
6776
SHELL=$lt_SHELL
 
6777
 
 
6778
# Whether or not to build shared libraries.
 
6779
build_libtool_libs=$enable_shared
 
6780
 
 
6781
# Whether or not to build static libraries.
 
6782
build_old_libs=$enable_static
 
6783
 
 
6784
# Whether or not to add -lc for building shared libraries.
 
6785
build_libtool_need_lc=$need_lc
 
6786
 
 
6787
# Whether or not to optimize for fast installation.
 
6788
fast_install=$enable_fast_install
 
6789
 
 
6790
# The host system.
 
6791
host_alias=$host_alias
 
6792
host=$host
 
6793
 
 
6794
# An echo program that does not interpret backslashes.
 
6795
echo=$lt_echo
 
6796
 
 
6797
# The archiver.
 
6798
AR=$lt_AR
 
6799
AR_FLAGS=$lt_AR_FLAGS
 
6800
 
 
6801
# The default C compiler.
 
6802
CC=$lt_CC
 
6803
 
 
6804
# Is the compiler the GNU C compiler?
 
6805
with_gcc=$GCC
 
6806
 
 
6807
# The linker used to build libraries.
 
6808
LD=$lt_LD
 
6809
 
 
6810
# Whether we need hard or soft links.
 
6811
LN_S=$lt_LN_S
 
6812
 
 
6813
# A BSD-compatible nm program.
 
6814
NM=$lt_NM
 
6815
 
 
6816
# A symbol stripping program
 
6817
STRIP=$STRIP
 
6818
 
 
6819
# Used to examine libraries when file_magic_cmd begins "file"
 
6820
MAGIC_CMD=$MAGIC_CMD
 
6821
 
 
6822
# Used on cygwin: DLL creation program.
 
6823
DLLTOOL="$DLLTOOL"
 
6824
 
 
6825
# Used on cygwin: object dumper.
 
6826
OBJDUMP="$OBJDUMP"
 
6827
 
 
6828
# Used on cygwin: assembler.
 
6829
AS=$lt_AS
 
6830
 
 
6831
# The name of the directory that contains temporary libtool files.
 
6832
objdir=$objdir
 
6833
 
 
6834
# How to create reloadable object files.
 
6835
reload_flag=$lt_reload_flag
 
6836
reload_cmds=$lt_reload_cmds
 
6837
 
 
6838
# How to pass a linker flag through the compiler.
 
6839
wl=$lt_wl
 
6840
 
 
6841
# Object file suffix (normally "o").
 
6842
objext="$ac_objext"
 
6843
 
 
6844
# Old archive suffix (normally "a").
 
6845
libext="$libext"
 
6846
 
 
6847
# Executable file suffix (normally "").
 
6848
exeext="$exeext"
 
6849
 
 
6850
# Additional compiler flags for building library objects.
 
6851
pic_flag=$lt_pic_flag
 
6852
pic_mode=$pic_mode
 
6853
 
 
6854
# Does compiler simultaneously support -c and -o options?
 
6855
compiler_c_o=$lt_compiler_c_o
 
6856
 
 
6857
# Can we write directly to a .lo ?
 
6858
compiler_o_lo=$lt_compiler_o_lo
 
6859
 
 
6860
# Must we lock files when doing compilation ?
 
6861
need_locks=$lt_need_locks
 
6862
 
 
6863
# Do we need the lib prefix for modules?
 
6864
need_lib_prefix=$need_lib_prefix
 
6865
 
 
6866
# Do we need a version for libraries?
 
6867
need_version=$need_version
 
6868
 
 
6869
# Whether dlopen is supported.
 
6870
dlopen_support=$enable_dlopen
 
6871
 
 
6872
# Whether dlopen of programs is supported.
 
6873
dlopen_self=$enable_dlopen_self
 
6874
 
 
6875
# Whether dlopen of statically linked programs is supported.
 
6876
dlopen_self_static=$enable_dlopen_self_static
 
6877
 
 
6878
# Compiler flag to prevent dynamic linking.
 
6879
link_static_flag=$lt_link_static_flag
 
6880
 
 
6881
# Compiler flag to turn off builtin functions.
 
6882
no_builtin_flag=$lt_no_builtin_flag
 
6883
 
 
6884
# Compiler flag to allow reflexive dlopens.
 
6885
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
6886
 
 
6887
# Compiler flag to generate shared objects directly from archives.
 
6888
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
6889
 
 
6890
# Compiler flag to generate thread-safe objects.
 
6891
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
6892
 
 
6893
# Library versioning type.
 
6894
version_type=$version_type
 
6895
 
 
6896
# Format of library name prefix.
 
6897
libname_spec=$lt_libname_spec
 
6898
 
 
6899
# List of archive names.  First name is the real one, the rest are links.
 
6900
# The last name is the one that the linker finds with -lNAME.
 
6901
library_names_spec=$lt_library_names_spec
 
6902
 
 
6903
# The coded name of the library, if different from the real name.
 
6904
soname_spec=$lt_soname_spec
 
6905
 
 
6906
# Commands used to build and install an old-style archive.
 
6907
RANLIB=$lt_RANLIB
 
6908
old_archive_cmds=$lt_old_archive_cmds
 
6909
old_postinstall_cmds=$lt_old_postinstall_cmds
 
6910
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
6911
 
 
6912
# Create an old-style archive from a shared archive.
 
6913
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
6914
 
 
6915
# Create a temporary old-style archive to link instead of a shared archive.
 
6916
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
6917
 
 
6918
# Commands used to build and install a shared archive.
 
6919
archive_cmds=$lt_archive_cmds
 
6920
archive_expsym_cmds=$lt_archive_expsym_cmds
 
6921
postinstall_cmds=$lt_postinstall_cmds
 
6922
postuninstall_cmds=$lt_postuninstall_cmds
 
6923
 
 
6924
# Commands to strip libraries.
 
6925
old_striplib=$lt_old_striplib
 
6926
striplib=$lt_striplib
 
6927
 
 
6928
# Method to check whether dependent libraries are shared objects.
 
6929
deplibs_check_method=$lt_deplibs_check_method
 
6930
 
 
6931
# Command to use when deplibs_check_method == file_magic.
 
6932
file_magic_cmd=$lt_file_magic_cmd
 
6933
 
 
6934
# Flag that allows shared libraries with undefined symbols to be built.
 
6935
allow_undefined_flag=$lt_allow_undefined_flag
 
6936
 
 
6937
# Flag that forces no undefined symbols.
 
6938
no_undefined_flag=$lt_no_undefined_flag
 
6939
 
 
6940
# Commands used to finish a libtool library installation in a directory.
 
6941
finish_cmds=$lt_finish_cmds
 
6942
 
 
6943
# Same as above, but a single script fragment to be evaled but not shown.
 
6944
finish_eval=$lt_finish_eval
 
6945
 
 
6946
# Take the output of nm and produce a listing of raw symbols and C names.
 
6947
global_symbol_pipe=$lt_global_symbol_pipe
 
6948
 
 
6949
# Transform the output of nm in a proper C declaration
 
6950
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
6951
 
 
6952
# Transform the output of nm in a C name address pair
 
6953
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
6954
 
 
6955
# This is the shared library runtime path variable.
 
6956
runpath_var=$runpath_var
 
6957
 
 
6958
# This is the shared library path variable.
 
6959
shlibpath_var=$shlibpath_var
 
6960
 
 
6961
# Is shlibpath searched before the hard-coded library search path?
 
6962
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
6963
 
 
6964
# How to hardcode a shared library path into an executable.
 
6965
hardcode_action=$hardcode_action
 
6966
 
 
6967
# Whether we should hardcode library paths into libraries.
 
6968
hardcode_into_libs=$hardcode_into_libs
 
6969
 
 
6970
# Flag to hardcode \$libdir into a binary during linking.
 
6971
# This must work even if \$libdir does not exist.
 
6972
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
6973
 
 
6974
# Whether we need a single -rpath flag with a separated argument.
 
6975
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
6976
 
 
6977
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
6978
# resulting binary.
 
6979
hardcode_direct=$hardcode_direct
 
6980
 
 
6981
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
6982
# resulting binary.
 
6983
hardcode_minus_L=$hardcode_minus_L
 
6984
 
 
6985
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
6986
# the resulting binary.
 
6987
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
6988
 
 
6989
# Variables whose values should be saved in libtool wrapper scripts and
 
6990
# restored at relink time.
 
6991
variables_saved_for_relink="$variables_saved_for_relink"
 
6992
 
 
6993
# Whether libtool must link a program against all its dependency libraries.
 
6994
link_all_deplibs=$link_all_deplibs
 
6995
 
 
6996
# Compile-time system search path for libraries
 
6997
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
6998
 
 
6999
# Run-time system search path for libraries
 
7000
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
7001
 
 
7002
# Fix the shell variable \$srcfile for the compiler.
 
7003
fix_srcfile_path="$fix_srcfile_path"
 
7004
 
 
7005
# Set to yes if exported symbols are required.
 
7006
always_export_symbols=$always_export_symbols
 
7007
 
 
7008
# The commands to list exported symbols.
 
7009
export_symbols_cmds=$lt_export_symbols_cmds
 
7010
 
 
7011
# The commands to extract the exported symbol list from a shared archive.
 
7012
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
7013
 
 
7014
# Symbols that should not be listed in the preloaded symbols.
 
7015
exclude_expsyms=$lt_exclude_expsyms
 
7016
 
 
7017
# Symbols that must always be exported.
 
7018
include_expsyms=$lt_include_expsyms
 
7019
 
 
7020
# ### END LIBTOOL CONFIG
 
7021
 
 
7022
__EOF__
 
7023
 
 
7024
  case $host_os in
 
7025
  aix3*)
 
7026
    cat <<\EOF >> "${ofile}T"
 
7027
 
 
7028
# AIX sometimes has problems with the GCC collect2 program.  For some
 
7029
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
7030
# vanish in a puff of smoke.
 
7031
if test "X${COLLECT_NAMES+set}" != Xset; then
 
7032
  COLLECT_NAMES=
 
7033
  export COLLECT_NAMES
 
7034
fi
 
7035
EOF
 
7036
    ;;
 
7037
  esac
 
7038
 
 
7039
  case $host_os in
 
7040
  cygwin* | mingw* | pw32* | os2*)
 
7041
    cat <<'EOF' >> "${ofile}T"
 
7042
      # This is a source program that is used to create dlls on Windows
 
7043
      # Don't remove nor modify the starting and closing comments
 
7044
# /* ltdll.c starts here */
 
7045
# #define WIN32_LEAN_AND_MEAN
 
7046
# #include <windows.h>
 
7047
# #undef WIN32_LEAN_AND_MEAN
 
7048
# #include <stdio.h>
 
7049
#
 
7050
# #ifndef __CYGWIN__
 
7051
# #  ifdef __CYGWIN32__
 
7052
# #    define __CYGWIN__ __CYGWIN32__
 
7053
# #  endif
 
7054
# #endif
 
7055
#
 
7056
# #ifdef __cplusplus
 
7057
# extern "C" {
 
7058
# #endif
 
7059
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7060
# #ifdef __cplusplus
 
7061
# }
 
7062
# #endif
 
7063
#
 
7064
# #ifdef __CYGWIN__
 
7065
# #include <cygwin/cygwin_dll.h>
 
7066
# DECLARE_CYGWIN_DLL( DllMain );
 
7067
# #endif
 
7068
# HINSTANCE __hDllInstance_base;
 
7069
#
 
7070
# BOOL APIENTRY
 
7071
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7072
# {
 
7073
#   __hDllInstance_base = hInst;
 
7074
#   return TRUE;
 
7075
# }
 
7076
# /* ltdll.c ends here */
 
7077
        # This is a source program that is used to create import libraries
 
7078
        # on Windows for dlls which lack them. Don't remove nor modify the
 
7079
        # starting and closing comments
 
7080
# /* impgen.c starts here */
 
7081
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
7082
#
 
7083
#  This file is part of GNU libtool.
 
7084
#
 
7085
#  This program is free software; you can redistribute it and/or modify
 
7086
#  it under the terms of the GNU General Public License as published by
 
7087
#  the Free Software Foundation; either version 2 of the License, or
 
7088
#  (at your option) any later version.
 
7089
#
 
7090
#  This program is distributed in the hope that it will be useful,
 
7091
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7092
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7093
#  GNU General Public License for more details.
 
7094
#
 
7095
#  You should have received a copy of the GNU General Public License
 
7096
#  along with this program; if not, write to the Free Software
 
7097
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7098
#  */
 
7099
#
 
7100
# #include <stdio.h>            /* for printf() */
 
7101
# #include <unistd.h>           /* for open(), lseek(), read() */
 
7102
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
7103
# #include <string.h>           /* for strdup() */
 
7104
#
 
7105
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
7106
# #ifndef O_BINARY
 
7107
# #define O_BINARY 0
 
7108
# #endif
 
7109
#
 
7110
# static unsigned int
 
7111
# pe_get16 (fd, offset)
 
7112
#      int fd;
 
7113
#      int offset;
 
7114
# {
 
7115
#   unsigned char b[2];
 
7116
#   lseek (fd, offset, SEEK_SET);
 
7117
#   read (fd, b, 2);
 
7118
#   return b[0] + (b[1]<<8);
 
7119
# }
 
7120
#
 
7121
# static unsigned int
 
7122
# pe_get32 (fd, offset)
 
7123
#     int fd;
 
7124
#     int offset;
 
7125
# {
 
7126
#   unsigned char b[4];
 
7127
#   lseek (fd, offset, SEEK_SET);
 
7128
#   read (fd, b, 4);
 
7129
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7130
# }
 
7131
#
 
7132
# static unsigned int
 
7133
# pe_as32 (ptr)
 
7134
#      void *ptr;
 
7135
# {
 
7136
#   unsigned char *b = ptr;
 
7137
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7138
# }
 
7139
#
 
7140
# int
 
7141
# main (argc, argv)
 
7142
#     int argc;
 
7143
#     char *argv[];
 
7144
# {
 
7145
#     int dll;
 
7146
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
7147
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
7148
#     unsigned long name_rvas, nexp;
 
7149
#     unsigned char *expdata, *erva;
 
7150
#     char *filename, *dll_name;
 
7151
#
 
7152
#     filename = argv[1];
 
7153
#
 
7154
#     dll = open(filename, O_RDONLY|O_BINARY);
 
7155
#     if (dll < 1)
 
7156
#       return 1;
 
7157
#
 
7158
#     dll_name = filename;
 
7159
#
 
7160
#     for (i=0; filename[i]; i++)
 
7161
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
7162
#           dll_name = filename + i +1;
 
7163
#
 
7164
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
7165
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
7166
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
7167
#
 
7168
#     if (num_entries < 1) /* no exports */
 
7169
#       return 1;
 
7170
#
 
7171
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
7172
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
7173
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
7174
#     secptr = (pe_header_offset + 4 + 20 +
 
7175
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
7176
#
 
7177
#     expptr = 0;
 
7178
#     for (i = 0; i < nsections; i++)
 
7179
#     {
 
7180
#       char sname[8];
 
7181
#       unsigned long secptr1 = secptr + 40 * i;
 
7182
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
7183
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
7184
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
7185
#       lseek(dll, secptr1, SEEK_SET);
 
7186
#       read(dll, sname, 8);
 
7187
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
7188
#       {
 
7189
#           expptr = fptr + (export_rva - vaddr);
 
7190
#           if (export_rva + export_size > vaddr + vsize)
 
7191
#               export_size = vsize - (export_rva - vaddr);
 
7192
#           break;
 
7193
#       }
 
7194
#     }
 
7195
#
 
7196
#     expdata = (unsigned char*)malloc(export_size);
 
7197
#     lseek (dll, expptr, SEEK_SET);
 
7198
#     read (dll, expdata, export_size);
 
7199
#     erva = expdata - export_rva;
 
7200
#
 
7201
#     nexp = pe_as32 (expdata+24);
 
7202
#     name_rvas = pe_as32 (expdata+32);
 
7203
#
 
7204
#     printf ("EXPORTS\n");
 
7205
#     for (i = 0; i<nexp; i++)
 
7206
#     {
 
7207
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
7208
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
7209
#     }
 
7210
#
 
7211
#     return 0;
 
7212
# }
 
7213
# /* impgen.c ends here */
 
7214
 
 
7215
EOF
 
7216
    ;;
 
7217
  esac
 
7218
 
 
7219
  # We use sed instead of cat because bash on DJGPP gets confused if
 
7220
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
7221
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
7222
  # is reportedly fixed, but why not run on old versions too?
 
7223
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
7224
 
 
7225
  mv -f "${ofile}T" "$ofile" || \
 
7226
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
7227
  chmod +x "$ofile"
 
7228
fi
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
# This can be used to rebuild libtool when needed
 
7235
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
7236
 
 
7237
# Always use our own libtool.
 
7238
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7239
 
 
7240
# Prevent multiple expansion
 
7241
 
 
7242
 
 
7243
 
 
7244
echo "$as_me:$LINENO: checking for Win32" >&5
 
7245
echo $ECHO_N "checking for Win32... $ECHO_C" >&6
 
7246
case "$host" in
 
7247
*-*-mingw*)
 
7248
  SYS_CFLAGS="-DWINDOWS -mms-bitfields"
 
7249
  use_windows=yes
 
7250
  ;;
 
7251
*)
 
7252
  SYS_CFLAGS="-DUNIX"
 
7253
  use_windows=no
 
7254
esac
 
7255
echo "$as_me:$LINENO: result: $use_windows" >&5
 
7256
echo "${ECHO_T}$use_windows" >&6
 
7257
 
 
7258
echo "$as_me:$LINENO: checking for GTK+" >&5
 
7259
echo $ECHO_N "checking for GTK+... $ECHO_C" >&6
 
7260
if $SHELL -c 'gtk-config --version' >/dev/null 2>/dev/null
 
7261
then
 
7262
  MALSHOW="malshow"
 
7263
  GTK_CONFIG="gtk-config"
 
7264
  use_gtk="GTK+ 1.2"
 
7265
elif $SHELL -c 'pkg-config gtk+-2.0' >/dev/null 2>/dev/null
 
7266
then
 
7267
  MALSHOW="malshow"
 
7268
  GTK_CONFIG="pkg-config gtk+-2.0"
 
7269
  use_gtk="GTK+ 2.0"
 
7270
elif $SHELL -c 'pkg-config gtk+-1.3-win32-production' >/dev/null 2>/dev/null
 
7271
then
 
7272
  MALSHOW="malshow"
 
7273
  GTK_CONFIG="pkg-config gtk+-1.3-win32-production gthread-2.0"
 
7274
  use_gtk="GTK+ 1.3 for Windows"
 
7275
else
 
7276
  MALSHOW=""
 
7277
  GTK_CONFIG=""
 
7278
  use_gtk=no
 
7279
fi
 
7280
echo "$as_me:$LINENO: result: $use_gtk" >&5
 
7281
echo "${ECHO_T}$use_gtk" >&6
 
7282
 
 
7283
 
 
7284
 
 
7285
 
 
7286
 
 
7287
          ac_config_files="$ac_config_files Makefile"
 
7288
 
 
7289
cat >confcache <<\_ACEOF
2080
7290
# This file is a shell script that caches the results of configure
2081
7291
# tests run on this system so they can be shared between configure
2082
 
# scripts and configure runs.  It is not useful on other systems.
2083
 
# If it contains results you don't want to keep, you may remove or edit it.
2084
 
#
2085
 
# By default, configure uses ./config.cache as the cache file,
2086
 
# creating it if it does not exist already.  You can give configure
2087
 
# the --cache-file=FILE option to use a different cache file; that is
2088
 
# what configure does when it calls configure scripts in
2089
 
# subdirectories, so they share the cache.
2090
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2091
 
# config.status only pays attention to the cache file if you give it the
2092
 
# --recheck option to rerun configure.
2093
 
#
2094
 
EOF
 
7292
# scripts and configure runs, see configure's option --config-cache.
 
7293
# It is not useful on other systems.  If it contains results you don't
 
7294
# want to keep, you may remove or edit it.
 
7295
#
 
7296
# config.status only pays attention to the cache file if you give it
 
7297
# the --recheck option to rerun configure.
 
7298
#
 
7299
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
7300
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
7301
# following values.
 
7302
 
 
7303
_ACEOF
 
7304
 
2095
7305
# The following way of writing the cache mishandles newlines in values,
2096
7306
# but we know of no workaround that is simple, portable, and efficient.
2097
7307
# So, don't put newlines in cache variables' values.
2098
7308
# Ultrix sh set writes to stderr and can't be redirected directly,
2099
7309
# and sets the high bit in the cache file unless we assign to the vars.
2100
 
(set) 2>&1 |
2101
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2102
 
  *ac_space=\ *)
2103
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
2104
 
    # turns \\\\ into \\, and sed turns \\ into \).
2105
 
    sed -n \
2106
 
      -e "s/'/'\\\\''/g" \
2107
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2108
 
    ;;
2109
 
  *)
2110
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2111
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2112
 
    ;;
2113
 
  esac >> confcache
2114
 
if cmp -s $cache_file confcache; then
2115
 
  :
2116
 
else
 
7310
{
 
7311
  (set) 2>&1 |
 
7312
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
7313
    *ac_space=\ *)
 
7314
      # `set' does not quote correctly, so add quotes (double-quote
 
7315
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7316
      sed -n \
 
7317
        "s/'/'\\\\''/g;
 
7318
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
7319
      ;;
 
7320
    *)
 
7321
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
7322
      sed -n \
 
7323
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
7324
      ;;
 
7325
    esac;
 
7326
} |
 
7327
  sed '
 
7328
     t clear
 
7329
     : clear
 
7330
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
7331
     t end
 
7332
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
7333
     : end' >>confcache
 
7334
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2117
7335
  if test -w $cache_file; then
2118
 
    echo "updating cache $cache_file"
2119
 
    cat confcache > $cache_file
 
7336
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
7337
    cat confcache >$cache_file
2120
7338
  else
2121
7339
    echo "not updating unwritable cache $cache_file"
2122
7340
  fi
2123
7341
fi
2124
7342
rm -f confcache
2125
7343
 
2126
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2127
 
 
2128
7344
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2129
7345
# Let make expand exec_prefix.
2130
7346
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2131
7347
 
2132
 
# Any assignment to VPATH causes Sun make to only execute
2133
 
# the first set of double-colon rules, so remove it if not needed.
2134
 
# If there is a colon in the path, we need to keep it.
 
7348
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
7349
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
7350
# trailing colons and then remove the whole line if VPATH becomes empty
 
7351
# (actually we leave an empty line to preserve line numbers).
2135
7352
if test "x$srcdir" = x.; then
2136
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
7353
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
7354
s/:*\$(srcdir):*/:/;
 
7355
s/:*\${srcdir}:*/:/;
 
7356
s/:*@srcdir@:*/:/;
 
7357
s/^\([^=]*=[    ]*\):*/\1/;
 
7358
s/:*$//;
 
7359
s/^[^=]*=[      ]*$//;
 
7360
}'
2137
7361
fi
2138
7362
 
2139
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2140
 
 
2141
7363
# Transform confdefs.h into DEFS.
2142
7364
# Protect against shell expansion while executing Makefile rules.
2143
7365
# Protect against Makefile macro expansion.
2144
 
cat > conftest.defs <<\EOF
2145
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2146
 
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2147
 
s%\[%\\&%g
2148
 
s%\]%\\&%g
2149
 
s%\$%$$%g
2150
 
EOF
2151
 
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2152
 
rm -f conftest.defs
2153
 
 
2154
 
 
2155
 
# Without the "./", some shells look in PATH for config.status.
 
7366
#
 
7367
# If the first sed substitution is executed (which looks for macros that
 
7368
# take arguments), then we branch to the quote section.  Otherwise,
 
7369
# look for a macro that doesn't take arguments.
 
7370
cat >confdef2opt.sed <<\_ACEOF
 
7371
t clear
 
7372
: clear
 
7373
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
7374
t quote
 
7375
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
7376
t quote
 
7377
d
 
7378
: quote
 
7379
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
7380
s,\[,\\&,g
 
7381
s,\],\\&,g
 
7382
s,\$,$$,g
 
7383
p
 
7384
_ACEOF
 
7385
# We use echo to avoid assuming a particular line-breaking character.
 
7386
# The extra dot is to prevent the shell from consuming trailing
 
7387
# line-breaks from the sub-command output.  A line-break within
 
7388
# single-quotes doesn't work because, if this script is created in a
 
7389
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
7390
# would break.
 
7391
ac_LF_and_DOT=`echo; echo .`
 
7392
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
7393
rm -f confdef2opt.sed
 
7394
 
 
7395
 
 
7396
ac_libobjs=
 
7397
ac_ltlibobjs=
 
7398
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
7399
  # 1. Remove the extension, and $U if already installed.
 
7400
  ac_i=`echo "$ac_i" |
 
7401
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
7402
  # 2. Add them.
 
7403
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
7404
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
7405
done
 
7406
LIBOBJS=$ac_libobjs
 
7407
 
 
7408
LTLIBOBJS=$ac_ltlibobjs
 
7409
 
 
7410
 
 
7411
 
2156
7412
: ${CONFIG_STATUS=./config.status}
2157
 
 
2158
 
echo creating $CONFIG_STATUS
2159
 
rm -f $CONFIG_STATUS
2160
 
cat > $CONFIG_STATUS <<EOF
2161
 
#! /bin/sh
2162
 
# Generated automatically by configure.
 
7413
ac_clean_files_save=$ac_clean_files
 
7414
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
7415
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
7416
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7417
cat >$CONFIG_STATUS <<_ACEOF
 
7418
#! $SHELL
 
7419
# Generated by $as_me.
2163
7420
# Run this file to recreate the current configuration.
2164
 
# This directory was configured as follows,
2165
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2166
 
#
2167
 
# $0 $ac_configure_args
2168
 
#
2169
7421
# Compiler output produced by configure, useful for debugging
2170
 
# configure, is in ./config.log if it exists.
2171
 
 
2172
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2173
 
for ac_option
2174
 
do
2175
 
  case "\$ac_option" in
 
7422
# configure, is in config.log if it exists.
 
7423
 
 
7424
debug=false
 
7425
ac_cs_recheck=false
 
7426
ac_cs_silent=false
 
7427
SHELL=\${CONFIG_SHELL-$SHELL}
 
7428
_ACEOF
 
7429
 
 
7430
cat >>$CONFIG_STATUS <<\_ACEOF
 
7431
## --------------------- ##
 
7432
## M4sh Initialization.  ##
 
7433
## --------------------- ##
 
7434
 
 
7435
# Be Bourne compatible
 
7436
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7437
  emulate sh
 
7438
  NULLCMD=:
 
7439
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
7440
  # is contrary to our usage.  Disable this feature.
 
7441
  alias -g '${1+"$@"}'='"$@"'
 
7442
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
7443
  set -o posix
 
7444
fi
 
7445
 
 
7446
# Support unset when possible.
 
7447
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
7448
  as_unset=unset
 
7449
else
 
7450
  as_unset=false
 
7451
fi
 
7452
 
 
7453
 
 
7454
# Work around bugs in pre-3.0 UWIN ksh.
 
7455
$as_unset ENV MAIL MAILPATH
 
7456
PS1='$ '
 
7457
PS2='> '
 
7458
PS4='+ '
 
7459
 
 
7460
# NLS nuisances.
 
7461
for as_var in \
 
7462
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
7463
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
7464
  LC_TELEPHONE LC_TIME
 
7465
do
 
7466
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
7467
    eval $as_var=C; export $as_var
 
7468
  else
 
7469
    $as_unset $as_var
 
7470
  fi
 
7471
done
 
7472
 
 
7473
# Required to use basename.
 
7474
if expr a : '\(a\)' >/dev/null 2>&1; then
 
7475
  as_expr=expr
 
7476
else
 
7477
  as_expr=false
 
7478
fi
 
7479
 
 
7480
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
7481
  as_basename=basename
 
7482
else
 
7483
  as_basename=false
 
7484
fi
 
7485
 
 
7486
 
 
7487
# Name of the executable.
 
7488
as_me=`$as_basename "$0" ||
 
7489
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
7490
         X"$0" : 'X\(//\)$' \| \
 
7491
         X"$0" : 'X\(/\)$' \| \
 
7492
         .     : '\(.\)' 2>/dev/null ||
 
7493
echo X/"$0" |
 
7494
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
7495
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
7496
          /^X\/\(\/\).*/{ s//\1/; q; }
 
7497
          s/.*/./; q'`
 
7498
 
 
7499
 
 
7500
# PATH needs CR, and LINENO needs CR and PATH.
 
7501
# Avoid depending upon Character Ranges.
 
7502
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
7503
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
7504
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
7505
as_cr_digits='0123456789'
 
7506
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
7507
 
 
7508
# The user is always right.
 
7509
if test "${PATH_SEPARATOR+set}" != set; then
 
7510
  echo "#! /bin/sh" >conf$$.sh
 
7511
  echo  "exit 0"   >>conf$$.sh
 
7512
  chmod +x conf$$.sh
 
7513
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7514
    PATH_SEPARATOR=';'
 
7515
  else
 
7516
    PATH_SEPARATOR=:
 
7517
  fi
 
7518
  rm -f conf$$.sh
 
7519
fi
 
7520
 
 
7521
 
 
7522
  as_lineno_1=$LINENO
 
7523
  as_lineno_2=$LINENO
 
7524
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
7525
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
7526
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
7527
  # Find who we are.  Look in the path if we contain no path at all
 
7528
  # relative or not.
 
7529
  case $0 in
 
7530
    *[\\/]* ) as_myself=$0 ;;
 
7531
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7532
for as_dir in $PATH
 
7533
do
 
7534
  IFS=$as_save_IFS
 
7535
  test -z "$as_dir" && as_dir=.
 
7536
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7537
done
 
7538
 
 
7539
       ;;
 
7540
  esac
 
7541
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
7542
  # in which case we are not to be found in the path.
 
7543
  if test "x$as_myself" = x; then
 
7544
    as_myself=$0
 
7545
  fi
 
7546
  if test ! -f "$as_myself"; then
 
7547
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
7548
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
7549
   { (exit 1); exit 1; }; }
 
7550
  fi
 
7551
  case $CONFIG_SHELL in
 
7552
  '')
 
7553
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7554
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
7555
do
 
7556
  IFS=$as_save_IFS
 
7557
  test -z "$as_dir" && as_dir=.
 
7558
  for as_base in sh bash ksh sh5; do
 
7559
         case $as_dir in
 
7560
         /*)
 
7561
           if ("$as_dir/$as_base" -c '
 
7562
  as_lineno_1=$LINENO
 
7563
  as_lineno_2=$LINENO
 
7564
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
7565
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
7566
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
7567
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
7568
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
7569
             CONFIG_SHELL=$as_dir/$as_base
 
7570
             export CONFIG_SHELL
 
7571
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
7572
           fi;;
 
7573
         esac
 
7574
       done
 
7575
done
 
7576
;;
 
7577
  esac
 
7578
 
 
7579
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
7580
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
7581
  # line-number line before each line; the second 'sed' does the real
 
7582
  # work.  The second script uses 'N' to pair each line-number line
 
7583
  # with the numbered line, and appends trailing '-' during
 
7584
  # substitution so that $LINENO is not a special case at line end.
 
7585
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
7586
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
7587
  sed '=' <$as_myself |
 
7588
    sed '
 
7589
      N
 
7590
      s,$,-,
 
7591
      : loop
 
7592
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
7593
      t loop
 
7594
      s,-$,,
 
7595
      s,^['$as_cr_digits']*\n,,
 
7596
    ' >$as_me.lineno &&
 
7597
  chmod +x $as_me.lineno ||
 
7598
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
7599
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
7600
   { (exit 1); exit 1; }; }
 
7601
 
 
7602
  # Don't try to exec as it changes $[0], causing all sort of problems
 
7603
  # (the dirname of $[0] is not the place where we might find the
 
7604
  # original and so on.  Autoconf is especially sensible to this).
 
7605
  . ./$as_me.lineno
 
7606
  # Exit status is that of the last command.
 
7607
  exit
 
7608
}
 
7609
 
 
7610
 
 
7611
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
7612
  *c*,-n*) ECHO_N= ECHO_C='
 
7613
' ECHO_T='      ' ;;
 
7614
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
7615
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
7616
esac
 
7617
 
 
7618
if expr a : '\(a\)' >/dev/null 2>&1; then
 
7619
  as_expr=expr
 
7620
else
 
7621
  as_expr=false
 
7622
fi
 
7623
 
 
7624
rm -f conf$$ conf$$.exe conf$$.file
 
7625
echo >conf$$.file
 
7626
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7627
  # We could just check for DJGPP; but this test a) works b) is more generic
 
7628
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
7629
  if test -f conf$$.exe; then
 
7630
    # Don't use ln at all; we don't have any links
 
7631
    as_ln_s='cp -p'
 
7632
  else
 
7633
    as_ln_s='ln -s'
 
7634
  fi
 
7635
elif ln conf$$.file conf$$ 2>/dev/null; then
 
7636
  as_ln_s=ln
 
7637
else
 
7638
  as_ln_s='cp -p'
 
7639
fi
 
7640
rm -f conf$$ conf$$.exe conf$$.file
 
7641
 
 
7642
if mkdir -p . 2>/dev/null; then
 
7643
  as_mkdir_p=:
 
7644
else
 
7645
  as_mkdir_p=false
 
7646
fi
 
7647
 
 
7648
as_executable_p="test -f"
 
7649
 
 
7650
# Sed expression to map a string onto a valid CPP name.
 
7651
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
7652
 
 
7653
# Sed expression to map a string onto a valid variable name.
 
7654
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
7655
 
 
7656
 
 
7657
# IFS
 
7658
# We need space, tab and new line, in precisely that order.
 
7659
as_nl='
 
7660
'
 
7661
IFS="   $as_nl"
 
7662
 
 
7663
# CDPATH.
 
7664
$as_unset CDPATH
 
7665
 
 
7666
exec 6>&1
 
7667
 
 
7668
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
7669
# report actual input values of CONFIG_FILES etc. instead of their
 
7670
# values after options handling.  Logging --version etc. is OK.
 
7671
exec 5>>config.log
 
7672
{
 
7673
  echo
 
7674
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
7675
## Running $as_me. ##
 
7676
_ASBOX
 
7677
} >&5
 
7678
cat >&5 <<_CSEOF
 
7679
 
 
7680
This file was extended by $as_me, which was
 
7681
generated by GNU Autoconf 2.57.  Invocation command line was
 
7682
 
 
7683
  CONFIG_FILES    = $CONFIG_FILES
 
7684
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
7685
  CONFIG_LINKS    = $CONFIG_LINKS
 
7686
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
7687
  $ $0 $@
 
7688
 
 
7689
_CSEOF
 
7690
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
7691
echo >&5
 
7692
_ACEOF
 
7693
 
 
7694
# Files that config.status was made for.
 
7695
if test -n "$ac_config_files"; then
 
7696
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
7697
fi
 
7698
 
 
7699
if test -n "$ac_config_headers"; then
 
7700
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
7701
fi
 
7702
 
 
7703
if test -n "$ac_config_links"; then
 
7704
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
7705
fi
 
7706
 
 
7707
if test -n "$ac_config_commands"; then
 
7708
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
7709
fi
 
7710
 
 
7711
cat >>$CONFIG_STATUS <<\_ACEOF
 
7712
 
 
7713
ac_cs_usage="\
 
7714
\`$as_me' instantiates files from templates according to the
 
7715
current configuration.
 
7716
 
 
7717
Usage: $0 [OPTIONS] [FILE]...
 
7718
 
 
7719
  -h, --help       print this help, then exit
 
7720
  -V, --version    print version number, then exit
 
7721
  -q, --quiet      do not print progress messages
 
7722
  -d, --debug      don't remove temporary files
 
7723
      --recheck    update $as_me by reconfiguring in the same conditions
 
7724
  --file=FILE[:TEMPLATE]
 
7725
                   instantiate the configuration file FILE
 
7726
 
 
7727
Configuration files:
 
7728
$config_files
 
7729
 
 
7730
Report bugs to <bug-autoconf@gnu.org>."
 
7731
_ACEOF
 
7732
 
 
7733
cat >>$CONFIG_STATUS <<_ACEOF
 
7734
ac_cs_version="\\
 
7735
config.status
 
7736
configured by $0, generated by GNU Autoconf 2.57,
 
7737
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
7738
 
 
7739
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
7740
Free Software Foundation, Inc.
 
7741
This config.status script is free software; the Free Software Foundation
 
7742
gives unlimited permission to copy, distribute and modify it."
 
7743
srcdir=$srcdir
 
7744
_ACEOF
 
7745
 
 
7746
cat >>$CONFIG_STATUS <<\_ACEOF
 
7747
# If no file are specified by the user, then we need to provide default
 
7748
# value.  By we need to know if files were specified by the user.
 
7749
ac_need_defaults=:
 
7750
while test $# != 0
 
7751
do
 
7752
  case $1 in
 
7753
  --*=*)
 
7754
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
7755
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
7756
    ac_shift=:
 
7757
    ;;
 
7758
  -*)
 
7759
    ac_option=$1
 
7760
    ac_optarg=$2
 
7761
    ac_shift=shift
 
7762
    ;;
 
7763
  *) # This is not an option, so the user has probably given explicit
 
7764
     # arguments.
 
7765
     ac_option=$1
 
7766
     ac_need_defaults=false;;
 
7767
  esac
 
7768
 
 
7769
  case $ac_option in
 
7770
  # Handling of the options.
 
7771
_ACEOF
 
7772
cat >>$CONFIG_STATUS <<\_ACEOF
2176
7773
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2177
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2178
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2179
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2180
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2181
 
    exit 0 ;;
2182
 
  -help | --help | --hel | --he | --h)
2183
 
    echo "\$ac_cs_usage"; exit 0 ;;
2184
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
2185
 
  esac
2186
 
done
2187
 
 
2188
 
ac_given_srcdir=$srcdir
2189
 
 
2190
 
trap 'rm -fr `echo "source/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2191
 
EOF
2192
 
cat >> $CONFIG_STATUS <<EOF
2193
 
 
2194
 
# Protect against being on the right side of a sed subst in config.status.
2195
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2196
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2197
 
$ac_vpsub
2198
 
$extrasub
2199
 
s%@SHELL@%$SHELL%g
2200
 
s%@CFLAGS@%$CFLAGS%g
2201
 
s%@CPPFLAGS@%$CPPFLAGS%g
2202
 
s%@CXXFLAGS@%$CXXFLAGS%g
2203
 
s%@FFLAGS@%$FFLAGS%g
2204
 
s%@DEFS@%$DEFS%g
2205
 
s%@LDFLAGS@%$LDFLAGS%g
2206
 
s%@LIBS@%$LIBS%g
2207
 
s%@exec_prefix@%$exec_prefix%g
2208
 
s%@prefix@%$prefix%g
2209
 
s%@program_transform_name@%$program_transform_name%g
2210
 
s%@bindir@%$bindir%g
2211
 
s%@sbindir@%$sbindir%g
2212
 
s%@libexecdir@%$libexecdir%g
2213
 
s%@datadir@%$datadir%g
2214
 
s%@sysconfdir@%$sysconfdir%g
2215
 
s%@sharedstatedir@%$sharedstatedir%g
2216
 
s%@localstatedir@%$localstatedir%g
2217
 
s%@libdir@%$libdir%g
2218
 
s%@includedir@%$includedir%g
2219
 
s%@oldincludedir@%$oldincludedir%g
2220
 
s%@infodir@%$infodir%g
2221
 
s%@mandir@%$mandir%g
2222
 
s%@host@%$host%g
2223
 
s%@host_alias@%$host_alias%g
2224
 
s%@host_cpu@%$host_cpu%g
2225
 
s%@host_vendor@%$host_vendor%g
2226
 
s%@host_os@%$host_os%g
2227
 
s%@D_HANGUL@%$D_HANGUL%g
2228
 
s%@HANGUL@%$HANGUL%g
2229
 
s%@HANGUL_O@%$HANGUL_O%g
2230
 
s%@TRIES_O@%$TRIES_O%g
2231
 
s%@OPTIONS@%$OPTIONS%g
2232
 
s%@VERSION@%$VERSION%g
2233
 
s%@LINK_SHARED@%$LINK_SHARED%g
2234
 
s%@SHARED_EXT@%$SHARED_EXT%g
2235
 
s%@CC@%$CC%g
2236
 
s%@CPP@%$CPP%g
2237
 
s%@LIBOBJS@%$LIBOBJS%g
2238
 
 
 
7774
    ac_cs_recheck=: ;;
 
7775
  --version | --vers* | -V )
 
7776
    echo "$ac_cs_version"; exit 0 ;;
 
7777
  --he | --h)
 
7778
    # Conflict between --help and --header
 
7779
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
7780
Try \`$0 --help' for more information." >&5
 
7781
echo "$as_me: error: ambiguous option: $1
 
7782
Try \`$0 --help' for more information." >&2;}
 
7783
   { (exit 1); exit 1; }; };;
 
7784
  --help | --hel | -h )
 
7785
    echo "$ac_cs_usage"; exit 0 ;;
 
7786
  --debug | --d* | -d )
 
7787
    debug=: ;;
 
7788
  --file | --fil | --fi | --f )
 
7789
    $ac_shift
 
7790
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
7791
    ac_need_defaults=false;;
 
7792
  --header | --heade | --head | --hea )
 
7793
    $ac_shift
 
7794
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
7795
    ac_need_defaults=false;;
 
7796
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
7797
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
7798
    ac_cs_silent=: ;;
 
7799
 
 
7800
  # This is an error.
 
7801
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
7802
Try \`$0 --help' for more information." >&5
 
7803
echo "$as_me: error: unrecognized option: $1
 
7804
Try \`$0 --help' for more information." >&2;}
 
7805
   { (exit 1); exit 1; }; } ;;
 
7806
 
 
7807
  *) ac_config_targets="$ac_config_targets $1" ;;
 
7808
 
 
7809
  esac
 
7810
  shift
 
7811
done
 
7812
 
 
7813
ac_configure_extra_args=
 
7814
 
 
7815
if $ac_cs_silent; then
 
7816
  exec 6>/dev/null
 
7817
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
7818
fi
 
7819
 
 
7820
_ACEOF
 
7821
cat >>$CONFIG_STATUS <<_ACEOF
 
7822
if \$ac_cs_recheck; then
 
7823
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
7824
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7825
fi
 
7826
 
 
7827
_ACEOF
 
7828
 
 
7829
 
 
7830
 
 
7831
 
 
7832
 
 
7833
cat >>$CONFIG_STATUS <<\_ACEOF
 
7834
for ac_config_target in $ac_config_targets
 
7835
do
 
7836
  case "$ac_config_target" in
 
7837
  # Handling of arguments.
 
7838
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
7839
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
7840
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
7841
   { (exit 1); exit 1; }; };;
 
7842
  esac
 
7843
done
 
7844
 
 
7845
# If the user did not use the arguments to specify the items to instantiate,
 
7846
# then the envvar interface is used.  Set only those that are not.
 
7847
# We use the long form for the default assignment because of an extremely
 
7848
# bizarre bug on SunOS 4.1.3.
 
7849
if $ac_need_defaults; then
 
7850
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
7851
fi
 
7852
 
 
7853
# Have a temporary directory for convenience.  Make it in the build tree
 
7854
# simply because there is no reason to put it here, and in addition,
 
7855
# creating and moving files from /tmp can sometimes cause problems.
 
7856
# Create a temporary directory, and hook for its removal unless debugging.
 
7857
$debug ||
 
7858
{
 
7859
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
7860
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7861
}
 
7862
 
 
7863
# Create a (secure) tmp directory for tmp files.
 
7864
 
 
7865
{
 
7866
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
7867
  test -n "$tmp" && test -d "$tmp"
 
7868
}  ||
 
7869
{
 
7870
  tmp=./confstat$$-$RANDOM
 
7871
  (umask 077 && mkdir $tmp)
 
7872
} ||
 
7873
{
 
7874
   echo "$me: cannot create a temporary directory in ." >&2
 
7875
   { (exit 1); exit 1; }
 
7876
}
 
7877
 
 
7878
_ACEOF
 
7879
 
 
7880
cat >>$CONFIG_STATUS <<_ACEOF
 
7881
 
 
7882
#
 
7883
# CONFIG_FILES section.
 
7884
#
 
7885
 
 
7886
# No need to generate the scripts if there are no CONFIG_FILES.
 
7887
# This happens for instance when ./config.status config.h
 
7888
if test -n "\$CONFIG_FILES"; then
 
7889
  # Protect against being on the right side of a sed subst in config.status.
 
7890
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
7891
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
7892
s,@SHELL@,$SHELL,;t t
 
7893
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
7894
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
7895
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
7896
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
7897
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
7898
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
7899
s,@exec_prefix@,$exec_prefix,;t t
 
7900
s,@prefix@,$prefix,;t t
 
7901
s,@program_transform_name@,$program_transform_name,;t t
 
7902
s,@bindir@,$bindir,;t t
 
7903
s,@sbindir@,$sbindir,;t t
 
7904
s,@libexecdir@,$libexecdir,;t t
 
7905
s,@datadir@,$datadir,;t t
 
7906
s,@sysconfdir@,$sysconfdir,;t t
 
7907
s,@sharedstatedir@,$sharedstatedir,;t t
 
7908
s,@localstatedir@,$localstatedir,;t t
 
7909
s,@libdir@,$libdir,;t t
 
7910
s,@includedir@,$includedir,;t t
 
7911
s,@oldincludedir@,$oldincludedir,;t t
 
7912
s,@infodir@,$infodir,;t t
 
7913
s,@mandir@,$mandir,;t t
 
7914
s,@build_alias@,$build_alias,;t t
 
7915
s,@host_alias@,$host_alias,;t t
 
7916
s,@target_alias@,$target_alias,;t t
 
7917
s,@DEFS@,$DEFS,;t t
 
7918
s,@ECHO_C@,$ECHO_C,;t t
 
7919
s,@ECHO_N@,$ECHO_N,;t t
 
7920
s,@ECHO_T@,$ECHO_T,;t t
 
7921
s,@LIBS@,$LIBS,;t t
 
7922
s,@CC@,$CC,;t t
 
7923
s,@CFLAGS@,$CFLAGS,;t t
 
7924
s,@LDFLAGS@,$LDFLAGS,;t t
 
7925
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
7926
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
7927
s,@EXEEXT@,$EXEEXT,;t t
 
7928
s,@OBJEXT@,$OBJEXT,;t t
 
7929
s,@build@,$build,;t t
 
7930
s,@build_cpu@,$build_cpu,;t t
 
7931
s,@build_vendor@,$build_vendor,;t t
 
7932
s,@build_os@,$build_os,;t t
 
7933
s,@host@,$host,;t t
 
7934
s,@host_cpu@,$host_cpu,;t t
 
7935
s,@host_vendor@,$host_vendor,;t t
 
7936
s,@host_os@,$host_os,;t t
 
7937
s,@LN_S@,$LN_S,;t t
 
7938
s,@ECHO@,$ECHO,;t t
 
7939
s,@RANLIB@,$RANLIB,;t t
 
7940
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
7941
s,@STRIP@,$STRIP,;t t
 
7942
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
7943
s,@CPP@,$CPP,;t t
 
7944
s,@EGREP@,$EGREP,;t t
 
7945
s,@LIBTOOL@,$LIBTOOL,;t t
 
7946
s,@GCCFLAGS@,$GCCFLAGS,;t t
 
7947
s,@MALSHOW@,$MALSHOW,;t t
 
7948
s,@GTK_CONFIG@,$GTK_CONFIG,;t t
 
7949
s,@SYS_CFLAGS@,$SYS_CFLAGS,;t t
 
7950
s,@LIBOBJS@,$LIBOBJS,;t t
 
7951
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2239
7952
CEOF
2240
 
EOF
2241
 
 
2242
 
cat >> $CONFIG_STATUS <<\EOF
2243
 
 
2244
 
# Split the substitutions into bite-sized pieces for seds with
2245
 
# small command number limits, like on Digital OSF/1 and HP-UX.
2246
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2247
 
ac_file=1 # Number of current file.
2248
 
ac_beg=1 # First line for current file.
2249
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2250
 
ac_more_lines=:
2251
 
ac_sed_cmds=""
2252
 
while $ac_more_lines; do
2253
 
  if test $ac_beg -gt 1; then
2254
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2255
 
  else
2256
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2257
 
  fi
2258
 
  if test ! -s conftest.s$ac_file; then
2259
 
    ac_more_lines=false
2260
 
    rm -f conftest.s$ac_file
2261
 
  else
2262
 
    if test -z "$ac_sed_cmds"; then
2263
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
2264
 
    else
2265
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2266
 
    fi
2267
 
    ac_file=`expr $ac_file + 1`
2268
 
    ac_beg=$ac_end
2269
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2270
 
  fi
2271
 
done
2272
 
if test -z "$ac_sed_cmds"; then
2273
 
  ac_sed_cmds=cat
2274
 
fi
2275
 
EOF
2276
 
 
2277
 
cat >> $CONFIG_STATUS <<EOF
2278
 
 
2279
 
CONFIG_FILES=\${CONFIG_FILES-"source/Makefile"}
2280
 
EOF
2281
 
cat >> $CONFIG_STATUS <<\EOF
2282
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
7953
 
 
7954
_ACEOF
 
7955
 
 
7956
  cat >>$CONFIG_STATUS <<\_ACEOF
 
7957
  # Split the substitutions into bite-sized pieces for seds with
 
7958
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
7959
  ac_max_sed_lines=48
 
7960
  ac_sed_frag=1 # Number of current file.
 
7961
  ac_beg=1 # First line for current file.
 
7962
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
7963
  ac_more_lines=:
 
7964
  ac_sed_cmds=
 
7965
  while $ac_more_lines; do
 
7966
    if test $ac_beg -gt 1; then
 
7967
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
7968
    else
 
7969
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
7970
    fi
 
7971
    if test ! -s $tmp/subs.frag; then
 
7972
      ac_more_lines=false
 
7973
    else
 
7974
      # The purpose of the label and of the branching condition is to
 
7975
      # speed up the sed processing (if there are no `@' at all, there
 
7976
      # is no need to browse any of the substitutions).
 
7977
      # These are the two extra sed commands mentioned above.
 
7978
      (echo ':t
 
7979
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
7980
      if test -z "$ac_sed_cmds"; then
 
7981
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
7982
      else
 
7983
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
7984
      fi
 
7985
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
7986
      ac_beg=$ac_end
 
7987
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
7988
    fi
 
7989
  done
 
7990
  if test -z "$ac_sed_cmds"; then
 
7991
    ac_sed_cmds=cat
 
7992
  fi
 
7993
fi # test -n "$CONFIG_FILES"
 
7994
 
 
7995
_ACEOF
 
7996
cat >>$CONFIG_STATUS <<\_ACEOF
 
7997
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2283
7998
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2284
 
  case "$ac_file" in
2285
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2286
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2287
 
  *) ac_file_in="${ac_file}.in" ;;
 
7999
  case $ac_file in
 
8000
  - | *:- | *:-:* ) # input from stdin
 
8001
        cat >$tmp/stdin
 
8002
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
8003
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
8004
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
8005
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
8006
  * )   ac_file_in=$ac_file.in ;;
2288
8007
  esac
2289
8008
 
2290
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2291
 
 
2292
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
2293
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2294
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2295
 
    # The file is in a subdirectory.
2296
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2297
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2298
 
    # A "../" for each directory in $ac_dir_suffix.
2299
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
8009
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
8010
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
8011
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8012
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8013
         X"$ac_file" : 'X\(//\)$' \| \
 
8014
         X"$ac_file" : 'X\(/\)' \| \
 
8015
         .     : '\(.\)' 2>/dev/null ||
 
8016
echo X"$ac_file" |
 
8017
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8018
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8019
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8020
          /^X\(\/\).*/{ s//\1/; q; }
 
8021
          s/.*/./; q'`
 
8022
  { if $as_mkdir_p; then
 
8023
    mkdir -p "$ac_dir"
2300
8024
  else
2301
 
    ac_dir_suffix= ac_dots=
2302
 
  fi
2303
 
 
2304
 
  case "$ac_given_srcdir" in
2305
 
  .)  srcdir=.
2306
 
      if test -z "$ac_dots"; then top_srcdir=.
2307
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2308
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
8025
    as_dir="$ac_dir"
 
8026
    as_dirs=
 
8027
    while test ! -d "$as_dir"; do
 
8028
      as_dirs="$as_dir $as_dirs"
 
8029
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
8030
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8031
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8032
         X"$as_dir" : 'X\(//\)$' \| \
 
8033
         X"$as_dir" : 'X\(/\)' \| \
 
8034
         .     : '\(.\)' 2>/dev/null ||
 
8035
echo X"$as_dir" |
 
8036
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8037
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8038
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8039
          /^X\(\/\).*/{ s//\1/; q; }
 
8040
          s/.*/./; q'`
 
8041
    done
 
8042
    test ! -n "$as_dirs" || mkdir $as_dirs
 
8043
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
8044
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
8045
   { (exit 1); exit 1; }; }; }
 
8046
 
 
8047
  ac_builddir=.
 
8048
 
 
8049
if test "$ac_dir" != .; then
 
8050
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
8051
  # A "../" for each directory in $ac_dir_suffix.
 
8052
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
8053
else
 
8054
  ac_dir_suffix= ac_top_builddir=
 
8055
fi
 
8056
 
 
8057
case $srcdir in
 
8058
  .)  # No --srcdir option.  We are building in place.
 
8059
    ac_srcdir=.
 
8060
    if test -z "$ac_top_builddir"; then
 
8061
       ac_top_srcdir=.
 
8062
    else
 
8063
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
8064
    fi ;;
 
8065
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
8066
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8067
    ac_top_srcdir=$srcdir ;;
2309
8068
  *) # Relative path.
2310
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2311
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2312
 
  esac
2313
 
 
2314
 
 
2315
 
  echo creating "$ac_file"
2316
 
  rm -f "$ac_file"
2317
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2318
 
  case "$ac_file" in
2319
 
  *Makefile*) ac_comsub="1i\\
2320
 
# $configure_input" ;;
2321
 
  *) ac_comsub= ;;
2322
 
  esac
2323
 
 
2324
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2325
 
  sed -e "$ac_comsub
2326
 
s%@configure_input@%$configure_input%g
2327
 
s%@srcdir@%$srcdir%g
2328
 
s%@top_srcdir@%$top_srcdir%g
2329
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2330
 
fi; done
2331
 
rm -f conftest.s*
2332
 
 
2333
 
EOF
2334
 
cat >> $CONFIG_STATUS <<EOF
2335
 
 
2336
 
EOF
2337
 
cat >> $CONFIG_STATUS <<\EOF
2338
 
 
2339
 
exit 0
2340
 
EOF
 
8069
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
8070
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
8071
esac
 
8072
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
8073
# absolute.
 
8074
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
8075
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
8076
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
8077
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
8078
 
 
8079
 
 
8080
 
 
8081
  if test x"$ac_file" != x-; then
 
8082
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
8083
echo "$as_me: creating $ac_file" >&6;}
 
8084
    rm -f "$ac_file"
 
8085
  fi
 
8086
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
8087
  # use $as_me), people would be surprised to read:
 
8088
  #    /* config.h.  Generated by config.status.  */
 
8089
  if test x"$ac_file" = x-; then
 
8090
    configure_input=
 
8091
  else
 
8092
    configure_input="$ac_file.  "
 
8093
  fi
 
8094
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
8095
                                     sed 's,.*/,,'` by configure."
 
8096
 
 
8097
  # First look for the input files in the build tree, otherwise in the
 
8098
  # src tree.
 
8099
  ac_file_inputs=`IFS=:
 
8100
    for f in $ac_file_in; do
 
8101
      case $f in
 
8102
      -) echo $tmp/stdin ;;
 
8103
      [\\/$]*)
 
8104
         # Absolute (can't be DOS-style, as IFS=:)
 
8105
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
8106
echo "$as_me: error: cannot find input file: $f" >&2;}
 
8107
   { (exit 1); exit 1; }; }
 
8108
         echo $f;;
 
8109
      *) # Relative
 
8110
         if test -f "$f"; then
 
8111
           # Build tree
 
8112
           echo $f
 
8113
         elif test -f "$srcdir/$f"; then
 
8114
           # Source tree
 
8115
           echo $srcdir/$f
 
8116
         else
 
8117
           # /dev/null tree
 
8118
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
8119
echo "$as_me: error: cannot find input file: $f" >&2;}
 
8120
   { (exit 1); exit 1; }; }
 
8121
         fi;;
 
8122
      esac
 
8123
    done` || { (exit 1); exit 1; }
 
8124
_ACEOF
 
8125
cat >>$CONFIG_STATUS <<_ACEOF
 
8126
  sed "$ac_vpsub
 
8127
$extrasub
 
8128
_ACEOF
 
8129
cat >>$CONFIG_STATUS <<\_ACEOF
 
8130
:t
 
8131
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8132
s,@configure_input@,$configure_input,;t t
 
8133
s,@srcdir@,$ac_srcdir,;t t
 
8134
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
8135
s,@top_srcdir@,$ac_top_srcdir,;t t
 
8136
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
8137
s,@builddir@,$ac_builddir,;t t
 
8138
s,@abs_builddir@,$ac_abs_builddir,;t t
 
8139
s,@top_builddir@,$ac_top_builddir,;t t
 
8140
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
8141
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
8142
  rm -f $tmp/stdin
 
8143
  if test x"$ac_file" != x-; then
 
8144
    mv $tmp/out $ac_file
 
8145
  else
 
8146
    cat $tmp/out
 
8147
    rm -f $tmp/out
 
8148
  fi
 
8149
 
 
8150
done
 
8151
_ACEOF
 
8152
 
 
8153
cat >>$CONFIG_STATUS <<\_ACEOF
 
8154
 
 
8155
{ (exit 0); exit 0; }
 
8156
_ACEOF
2341
8157
chmod +x $CONFIG_STATUS
2342
 
rm -fr confdefs* $ac_clean_files
2343
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
8158
ac_clean_files=$ac_clean_files_save
 
8159
 
 
8160
 
 
8161
# configure is writing to config.log, and then calls config.status.
 
8162
# config.status does its own redirection, appending to config.log.
 
8163
# Unfortunately, on DOS this fails, as config.log is still kept open
 
8164
# by configure, so config.status won't be able to write to it; its
 
8165
# output is simply discarded.  So we exec the FD to /dev/null,
 
8166
# effectively closing config.log, so it can be properly (re)opened and
 
8167
# appended to by config.status.  When coming back to configure, we
 
8168
# need to make the FD available again.
 
8169
if test "$no_create" != yes; then
 
8170
  ac_cs_success=:
 
8171
  ac_config_status_args=
 
8172
  test "$silent" = yes &&
 
8173
    ac_config_status_args="$ac_config_status_args --quiet"
 
8174
  exec 5>/dev/null
 
8175
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
8176
  exec 5>>config.log
 
8177
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
8178
  # would make configure fail if this is the last instruction.
 
8179
  $ac_cs_success || { (exit 1); exit 1; }
 
8180
fi
 
8181
 
2344
8182