~ubuntu-branches/ubuntu/warty/fluxbox/warty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matt Hope
  • Date: 2002-04-12 22:08:52 UTC
  • Revision ID: james.westby@ubuntu.com-20020412220852-0gbqxr57mgu63qdh
Tags: upstream-0.1.7
ImportĀ upstreamĀ versionĀ 0.1.7

Show diffs side-by-side

added added

removed removed

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