~ubuntu-branches/ubuntu/maverick/freecell-solver/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): RISKO Gergely
  • Date: 2002-04-06 11:35:18 UTC
  • Revision ID: james.westby@ubuntu.com-20020406113518-n398kvu45dixasoh
Tags: upstream-2.4.1
ImportĀ upstreamĀ versionĀ 2.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
 
16
ac_help="$ac_help
 
17
  --enable-static[=PKGS]  build static libraries [default=yes]"
 
18
ac_help="$ac_help
 
19
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
 
20
ac_help="$ac_help
 
21
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
 
22
 
 
23
# Find the correct PATH separator.  Usually this is `:', but
 
24
# DJGPP uses `;' like DOS.
 
25
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
26
  UNAME=${UNAME-`uname 2>/dev/null`}
 
27
  case X$UNAME in
 
28
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
29
    *)     lt_cv_sys_path_separator=':' ;;
 
30
  esac
 
31
fi
 
32
 
 
33
 
 
34
# Check that we are running under the correct shell.
 
35
SHELL=${CONFIG_SHELL-/bin/sh}
 
36
 
 
37
case X$ECHO in
 
38
X*--fallback-echo)
 
39
  # Remove one level of quotation (which was required for Make).
 
40
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
41
  ;;
 
42
esac
 
43
 
 
44
echo=${ECHO-echo}
 
45
if test "X$1" = X--no-reexec; then
 
46
  # Discard the --no-reexec flag, and continue.
 
47
  shift
 
48
elif test "X$1" = X--fallback-echo; then
 
49
  # Avoid inline document here, it may be left over
 
50
  :
 
51
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
52
  # Yippee, $echo works!
 
53
  :
 
54
else
 
55
  # Restart under the correct shell.
 
56
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
57
fi
 
58
 
 
59
if test "X$1" = X--fallback-echo; then
 
60
  # used as fallback echo
 
61
  shift
 
62
  cat <<EOF
 
63
 
 
64
EOF
 
65
  exit 0
 
66
fi
 
67
 
 
68
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
69
# if CDPATH is set.
 
70
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
71
 
 
72
if test -z "$ECHO"; then
 
73
if test "X${echo_test_string+set}" != Xset; then
 
74
# find a string as large as possible, as long as the shell can cope with it
 
75
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
76
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
77
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
78
       echo_test_string="`eval $cmd`" &&
 
79
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
80
    then
 
81
      break
 
82
    fi
 
83
  done
 
84
fi
 
85
 
 
86
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
87
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
88
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
89
  :
 
90
else
 
91
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
92
  # backslashes.  This makes it impossible to quote backslashes using
 
93
  #   echo "$something" | sed 's/\\/\\\\/g'
 
94
  #
 
95
  # So, first we look for a working echo in the user's PATH.
 
96
 
 
97
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 
98
  for dir in $PATH /usr/ucb; do
 
99
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
100
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
101
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
102
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
103
      echo="$dir/echo"
 
104
      break
 
105
    fi
 
106
  done
 
107
  IFS="$save_ifs"
 
108
 
 
109
  if test "X$echo" = Xecho; then
 
110
    # We didn't find a better echo, so look for alternatives.
 
111
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
112
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
113
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
114
      # This shell has a builtin print -r that does the trick.
 
115
      echo='print -r'
 
116
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
117
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
118
      # If we have ksh, try running configure again with it.
 
119
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
120
      export ORIGINAL_CONFIG_SHELL
 
121
      CONFIG_SHELL=/bin/ksh
 
122
      export CONFIG_SHELL
 
123
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
124
    else
 
125
      # Try using printf.
 
126
      echo='printf %s\n'
 
127
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
128
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
129
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
130
        # Cool, printf works
 
131
        :
 
132
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
133
           test "X$echo_testing_string" = 'X\t' &&
 
134
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
135
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
136
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
137
        export CONFIG_SHELL
 
138
        SHELL="$CONFIG_SHELL"
 
139
        export SHELL
 
140
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
141
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
142
           test "X$echo_testing_string" = 'X\t' &&
 
143
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
144
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
145
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
146
      else
 
147
        # maybe with a smaller string...
 
148
        prev=:
 
149
 
 
150
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
151
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
152
          then
 
153
            break
 
154
          fi
 
155
          prev="$cmd"
 
156
        done
 
157
 
 
158
        if test "$prev" != 'sed 50q "$0"'; then
 
159
          echo_test_string=`eval $prev`
 
160
          export echo_test_string
 
161
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
162
        else
 
163
          # Oops.  We lost completely, so just stick with echo.
 
164
          echo=echo
 
165
        fi
 
166
      fi
 
167
    fi
 
168
  fi
 
169
fi
 
170
fi
 
171
 
 
172
# Copy echo and quote the copy suitably for passing to libtool from
 
173
# the Makefile, instead of quoting the original, which is used later.
 
174
ECHO=$echo
 
175
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
176
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
177
fi
 
178
 
 
179
 
 
180
ac_help="$ac_help
 
181
  --disable-libtool-lock  avoid locking (might break parallel builds)"
 
182
ac_help="$ac_help
 
183
  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
 
184
ac_help="$ac_help
 
185
  --enable-state-storage[=storage type] Specify a storage types for the state collection:
 
186
                      glib_hash: Glib's hash 
 
187
                      glib_tree: Glib's binary tree 
 
188
                      indirect: By means of a sorted array with a sort margin
 
189
                      internal_hash: Internal Hash Storage (Default)
 
190
                      libavl_avl: libavl's AVL tree 
 
191
                      libavl_redblack: libavl's Red-Black tree
 
192
                      libredblack: The libredblack tree"
 
193
ac_help="$ac_help
 
194
  --enable-stack-storage[=storage type] Specify a storage types for the state collection:
 
195
                      glib_hash: Glib's hash 
 
196
                      glib_tree: Glib's binary tree 
 
197
                      internal_hash: Internal Hash Storage (Default)
 
198
                      libavl_avl: libavl's AVL tree 
 
199
                      libavl_redblack: libavl's Red-Black tree
 
200
                      libredblack: The libredblack tree"
 
201
ac_help="$ac_help
 
202
  --enable-states-type[=state type] Specify the states type:
 
203
                      compact [default]: Compact States
 
204
                      debug: Debug States (very slow)
 
205
                      indirect: Indirect Stack States"
 
206
ac_help="$ac_help
 
207
  --enable-max-num-freecells[=freecells num] Set the maximal number of Freecells"
 
208
ac_help="$ac_help
 
209
  --enable-max-num-stacks[=stacks num] Set the maximal number of Stacks"
 
210
ac_help="$ac_help
 
211
  --enable-max-num-initial-cards-per-stack[=number] Set the maximal number of Cards that can appear in a stack"
 
212
ac_help="$ac_help
 
213
  --enable-max-num-decks[=decks num] Set the maximal number of Decks"
 
214
ac_help="$ac_help
 
215
  --enable-card-debug-pres  Enable Card-Debug Presentation. This is a debugging feature which should not be usually enabled"
 
216
 
 
217
# Initialize some variables set by options.
 
218
# The variables have the same names as the options, with
 
219
# dashes changed to underlines.
 
220
build=NONE
 
221
cache_file=./config.cache
 
222
exec_prefix=NONE
 
223
host=NONE
 
224
no_create=
 
225
nonopt=NONE
 
226
no_recursion=
 
227
prefix=NONE
 
228
program_prefix=NONE
 
229
program_suffix=NONE
 
230
program_transform_name=s,x,x,
 
231
silent=
 
232
site=
 
233
srcdir=
 
234
target=NONE
 
235
verbose=
 
236
x_includes=NONE
 
237
x_libraries=NONE
 
238
bindir='${exec_prefix}/bin'
 
239
sbindir='${exec_prefix}/sbin'
 
240
libexecdir='${exec_prefix}/libexec'
 
241
datadir='${prefix}/share'
 
242
sysconfdir='${prefix}/etc'
 
243
sharedstatedir='${prefix}/com'
 
244
localstatedir='${prefix}/var'
 
245
libdir='${exec_prefix}/lib'
 
246
includedir='${prefix}/include'
 
247
oldincludedir='/usr/include'
 
248
infodir='${prefix}/info'
 
249
mandir='${prefix}/man'
 
250
 
 
251
# Initialize some other variables.
 
252
subdirs=
 
253
MFLAGS= MAKEFLAGS=
 
254
SHELL=${CONFIG_SHELL-/bin/sh}
 
255
# Maximum number of lines to put in a shell here document.
 
256
ac_max_here_lines=12
 
257
 
 
258
ac_prev=
 
259
for ac_option
 
260
do
 
261
 
 
262
  # If the previous option needs an argument, assign it.
 
263
  if test -n "$ac_prev"; then
 
264
    eval "$ac_prev=\$ac_option"
 
265
    ac_prev=
 
266
    continue
 
267
  fi
 
268
 
 
269
  case "$ac_option" in
 
270
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
271
  *) ac_optarg= ;;
 
272
  esac
 
273
 
 
274
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
275
 
 
276
  case "$ac_option" in
 
277
 
 
278
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
279
    ac_prev=bindir ;;
 
280
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
281
    bindir="$ac_optarg" ;;
 
282
 
 
283
  -build | --build | --buil | --bui | --bu)
 
284
    ac_prev=build ;;
 
285
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
286
    build="$ac_optarg" ;;
 
287
 
 
288
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
289
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
290
    ac_prev=cache_file ;;
 
291
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
292
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
293
    cache_file="$ac_optarg" ;;
 
294
 
 
295
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
296
    ac_prev=datadir ;;
 
297
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
298
  | --da=*)
 
299
    datadir="$ac_optarg" ;;
 
300
 
 
301
  -disable-* | --disable-*)
 
302
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
303
    # Reject names that are not valid shell variable names.
 
304
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
305
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
306
    fi
 
307
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
308
    eval "enable_${ac_feature}=no" ;;
 
309
 
 
310
  -enable-* | --enable-*)
 
311
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
312
    # Reject names that are not valid shell variable names.
 
313
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
314
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
315
    fi
 
316
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
317
    case "$ac_option" in
 
318
      *=*) ;;
 
319
      *) ac_optarg=yes ;;
 
320
    esac
 
321
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
322
 
 
323
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
324
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
325
  | --exec | --exe | --ex)
 
326
    ac_prev=exec_prefix ;;
 
327
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
328
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
329
  | --exec=* | --exe=* | --ex=*)
 
330
    exec_prefix="$ac_optarg" ;;
 
331
 
 
332
  -gas | --gas | --ga | --g)
 
333
    # Obsolete; use --with-gas.
 
334
    with_gas=yes ;;
 
335
 
 
336
  -help | --help | --hel | --he)
 
337
    # Omit some internal or obsolete options to make the list less imposing.
 
338
    # This message is too long to be a string in the A/UX 3.1 sh.
 
339
    cat << EOF
 
340
Usage: configure [options] [host]
 
341
Options: [defaults in brackets after descriptions]
 
342
Configuration:
 
343
  --cache-file=FILE       cache test results in FILE
 
344
  --help                  print this message
 
345
  --no-create             do not create output files
 
346
  --quiet, --silent       do not print \`checking...' messages
 
347
  --version               print the version of autoconf that created configure
 
348
Directory and file names:
 
349
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
350
                          [$ac_default_prefix]
 
351
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
352
                          [same as prefix]
 
353
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
354
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
355
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
356
  --datadir=DIR           read-only architecture-independent data in DIR
 
357
                          [PREFIX/share]
 
358
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
359
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
360
                          [PREFIX/com]
 
361
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
362
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
363
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
364
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
365
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
366
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
367
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
368
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
369
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
370
  --program-transform-name=PROGRAM
 
371
                          run sed PROGRAM on installed program names
 
372
EOF
 
373
    cat << EOF
 
374
Host type:
 
375
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
376
  --host=HOST             configure for HOST [guessed]
 
377
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
378
Features and packages:
 
379
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
380
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
381
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
382
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
383
  --x-includes=DIR        X include files are in DIR
 
384
  --x-libraries=DIR       X library files are in DIR
 
385
EOF
 
386
    if test -n "$ac_help"; then
 
387
      echo "--enable and --with options recognized:$ac_help"
 
388
    fi
 
389
    exit 0 ;;
 
390
 
 
391
  -host | --host | --hos | --ho)
 
392
    ac_prev=host ;;
 
393
  -host=* | --host=* | --hos=* | --ho=*)
 
394
    host="$ac_optarg" ;;
 
395
 
 
396
  -includedir | --includedir | --includedi | --included | --include \
 
397
  | --includ | --inclu | --incl | --inc)
 
398
    ac_prev=includedir ;;
 
399
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
400
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
401
    includedir="$ac_optarg" ;;
 
402
 
 
403
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
404
    ac_prev=infodir ;;
 
405
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
406
    infodir="$ac_optarg" ;;
 
407
 
 
408
  -libdir | --libdir | --libdi | --libd)
 
409
    ac_prev=libdir ;;
 
410
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
411
    libdir="$ac_optarg" ;;
 
412
 
 
413
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
414
  | --libexe | --libex | --libe)
 
415
    ac_prev=libexecdir ;;
 
416
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
417
  | --libexe=* | --libex=* | --libe=*)
 
418
    libexecdir="$ac_optarg" ;;
 
419
 
 
420
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
421
  | --localstate | --localstat | --localsta | --localst \
 
422
  | --locals | --local | --loca | --loc | --lo)
 
423
    ac_prev=localstatedir ;;
 
424
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
425
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
426
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
427
    localstatedir="$ac_optarg" ;;
 
428
 
 
429
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
430
    ac_prev=mandir ;;
 
431
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
432
    mandir="$ac_optarg" ;;
 
433
 
 
434
  -nfp | --nfp | --nf)
 
435
    # Obsolete; use --without-fp.
 
436
    with_fp=no ;;
 
437
 
 
438
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
439
  | --no-cr | --no-c)
 
440
    no_create=yes ;;
 
441
 
 
442
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
443
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
444
    no_recursion=yes ;;
 
445
 
 
446
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
447
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
448
  | --oldin | --oldi | --old | --ol | --o)
 
449
    ac_prev=oldincludedir ;;
 
450
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
451
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
452
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
453
    oldincludedir="$ac_optarg" ;;
 
454
 
 
455
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
456
    ac_prev=prefix ;;
 
457
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
458
    prefix="$ac_optarg" ;;
 
459
 
 
460
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
461
  | --program-pre | --program-pr | --program-p)
 
462
    ac_prev=program_prefix ;;
 
463
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
464
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
465
    program_prefix="$ac_optarg" ;;
 
466
 
 
467
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
468
  | --program-suf | --program-su | --program-s)
 
469
    ac_prev=program_suffix ;;
 
470
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
471
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
472
    program_suffix="$ac_optarg" ;;
 
473
 
 
474
  -program-transform-name | --program-transform-name \
 
475
  | --program-transform-nam | --program-transform-na \
 
476
  | --program-transform-n | --program-transform- \
 
477
  | --program-transform | --program-transfor \
 
478
  | --program-transfo | --program-transf \
 
479
  | --program-trans | --program-tran \
 
480
  | --progr-tra | --program-tr | --program-t)
 
481
    ac_prev=program_transform_name ;;
 
482
  -program-transform-name=* | --program-transform-name=* \
 
483
  | --program-transform-nam=* | --program-transform-na=* \
 
484
  | --program-transform-n=* | --program-transform-=* \
 
485
  | --program-transform=* | --program-transfor=* \
 
486
  | --program-transfo=* | --program-transf=* \
 
487
  | --program-trans=* | --program-tran=* \
 
488
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
489
    program_transform_name="$ac_optarg" ;;
 
490
 
 
491
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
492
  | -silent | --silent | --silen | --sile | --sil)
 
493
    silent=yes ;;
 
494
 
 
495
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
496
    ac_prev=sbindir ;;
 
497
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
498
  | --sbi=* | --sb=*)
 
499
    sbindir="$ac_optarg" ;;
 
500
 
 
501
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
502
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
503
  | --sharedst | --shareds | --shared | --share | --shar \
 
504
  | --sha | --sh)
 
505
    ac_prev=sharedstatedir ;;
 
506
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
507
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
508
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
509
  | --sha=* | --sh=*)
 
510
    sharedstatedir="$ac_optarg" ;;
 
511
 
 
512
  -site | --site | --sit)
 
513
    ac_prev=site ;;
 
514
  -site=* | --site=* | --sit=*)
 
515
    site="$ac_optarg" ;;
 
516
 
 
517
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
518
    ac_prev=srcdir ;;
 
519
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
520
    srcdir="$ac_optarg" ;;
 
521
 
 
522
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
523
  | --syscon | --sysco | --sysc | --sys | --sy)
 
524
    ac_prev=sysconfdir ;;
 
525
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
526
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
527
    sysconfdir="$ac_optarg" ;;
 
528
 
 
529
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
530
    ac_prev=target ;;
 
531
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
532
    target="$ac_optarg" ;;
 
533
 
 
534
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
535
    verbose=yes ;;
 
536
 
 
537
  -version | --version | --versio | --versi | --vers)
 
538
    echo "configure generated by autoconf version 2.13"
 
539
    exit 0 ;;
 
540
 
 
541
  -with-* | --with-*)
 
542
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
543
    # Reject names that are not valid shell variable names.
 
544
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
545
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
546
    fi
 
547
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
548
    case "$ac_option" in
 
549
      *=*) ;;
 
550
      *) ac_optarg=yes ;;
 
551
    esac
 
552
    eval "with_${ac_package}='$ac_optarg'" ;;
 
553
 
 
554
  -without-* | --without-*)
 
555
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
556
    # Reject names that are not valid shell variable names.
 
557
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
558
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
559
    fi
 
560
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
561
    eval "with_${ac_package}=no" ;;
 
562
 
 
563
  --x)
 
564
    # Obsolete; use --with-x.
 
565
    with_x=yes ;;
 
566
 
 
567
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
568
  | --x-incl | --x-inc | --x-in | --x-i)
 
569
    ac_prev=x_includes ;;
 
570
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
571
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
572
    x_includes="$ac_optarg" ;;
 
573
 
 
574
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
575
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
576
    ac_prev=x_libraries ;;
 
577
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
578
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
579
    x_libraries="$ac_optarg" ;;
 
580
 
 
581
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
582
    ;;
 
583
 
 
584
  *)
 
585
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
586
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
587
    fi
 
588
    if test "x$nonopt" != xNONE; then
 
589
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
590
    fi
 
591
    nonopt="$ac_option"
 
592
    ;;
 
593
 
 
594
  esac
 
595
done
 
596
 
 
597
if test -n "$ac_prev"; then
 
598
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
599
fi
 
600
 
 
601
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
602
 
 
603
# File descriptor usage:
 
604
# 0 standard input
 
605
# 1 file creation
 
606
# 2 errors and warnings
 
607
# 3 some systems may open it to /dev/tty
 
608
# 4 used on the Kubota Titan
 
609
# 6 checking for... messages and results
 
610
# 5 compiler messages saved in config.log
 
611
if test "$silent" = yes; then
 
612
  exec 6>/dev/null
 
613
else
 
614
  exec 6>&1
 
615
fi
 
616
exec 5>./config.log
 
617
 
 
618
echo "\
 
619
This file contains any messages produced by compilers while
 
620
running configure, to aid debugging if configure makes a mistake.
 
621
" 1>&5
 
622
 
 
623
# Strip out --no-create and --no-recursion so they do not pile up.
 
624
# Also quote any args containing shell metacharacters.
 
625
ac_configure_args=
 
626
for ac_arg
 
627
do
 
628
  case "$ac_arg" in
 
629
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
630
  | --no-cr | --no-c) ;;
 
631
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
632
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
633
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
634
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
635
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
636
  esac
 
637
done
 
638
 
 
639
# NLS nuisances.
 
640
# Only set these to C if already set.  These must not be set unconditionally
 
641
# because not all systems understand e.g. LANG=C (notably SCO).
 
642
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
643
# Non-C LC_CTYPE values break the ctype check.
 
644
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
645
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
646
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
647
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
648
 
 
649
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
650
rm -rf conftest* confdefs.h
 
651
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
652
echo > confdefs.h
 
653
 
 
654
# A filename unique to this package, relative to the directory that
 
655
# configure is in, which we can look for to find out if srcdir is correct.
 
656
ac_unique_file=pqueue.c
 
657
 
 
658
# Find the source files, if location was not specified.
 
659
if test -z "$srcdir"; then
 
660
  ac_srcdir_defaulted=yes
 
661
  # Try the directory containing this script, then its parent.
 
662
  ac_prog=$0
 
663
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
664
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
665
  srcdir=$ac_confdir
 
666
  if test ! -r $srcdir/$ac_unique_file; then
 
667
    srcdir=..
 
668
  fi
 
669
else
 
670
  ac_srcdir_defaulted=no
 
671
fi
 
672
if test ! -r $srcdir/$ac_unique_file; then
 
673
  if test "$ac_srcdir_defaulted" = yes; then
 
674
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
675
  else
 
676
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
677
  fi
 
678
fi
 
679
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
680
 
 
681
# Prefer explicitly selected file to automatically selected ones.
 
682
if test -z "$CONFIG_SITE"; then
 
683
  if test "x$prefix" != xNONE; then
 
684
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
685
  else
 
686
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
687
  fi
 
688
fi
 
689
for ac_site_file in $CONFIG_SITE; do
 
690
  if test -r "$ac_site_file"; then
 
691
    echo "loading site script $ac_site_file"
 
692
    . "$ac_site_file"
 
693
  fi
 
694
done
 
695
 
 
696
if test -r "$cache_file"; then
 
697
  echo "loading cache $cache_file"
 
698
  . $cache_file
 
699
else
 
700
  echo "creating cache $cache_file"
 
701
  > $cache_file
 
702
fi
 
703
 
 
704
ac_ext=c
 
705
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
706
ac_cpp='$CPP $CPPFLAGS'
 
707
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
708
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
709
cross_compiling=$ac_cv_prog_cc_cross
 
710
 
 
711
ac_exeext=
 
712
ac_objext=o
 
713
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
714
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
715
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
716
    ac_n= ac_c='
 
717
' ac_t='        '
 
718
  else
 
719
    ac_n=-n ac_c= ac_t=
 
720
  fi
 
721
else
 
722
  ac_n= ac_c='\c' ac_t=
 
723
fi
 
724
 
 
725
 
 
726
 
 
727
ac_aux_dir=
 
728
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
729
  if test -f $ac_dir/install-sh; then
 
730
    ac_aux_dir=$ac_dir
 
731
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
732
    break
 
733
  elif test -f $ac_dir/install.sh; then
 
734
    ac_aux_dir=$ac_dir
 
735
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
736
    break
 
737
  fi
 
738
done
 
739
if test -z "$ac_aux_dir"; then
 
740
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
741
fi
 
742
ac_config_guess=$ac_aux_dir/config.guess
 
743
ac_config_sub=$ac_aux_dir/config.sub
 
744
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
745
 
 
746
# Find a good install program.  We prefer a C program (faster),
 
747
# so one script is as good as another.  But avoid the broken or
 
748
# incompatible versions:
 
749
# SysV /etc/install, /usr/sbin/install
 
750
# SunOS /usr/etc/install
 
751
# IRIX /sbin/install
 
752
# AIX /bin/install
 
753
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
754
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
755
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
756
# ./install, which can be erroneously created by make from ./install.sh.
 
757
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
758
echo "configure:759: checking for a BSD compatible install" >&5
 
759
if test -z "$INSTALL"; then
 
760
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
761
  echo $ac_n "(cached) $ac_c" 1>&6
 
762
else
 
763
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
764
  for ac_dir in $PATH; do
 
765
    # Account for people who put trailing slashes in PATH elements.
 
766
    case "$ac_dir/" in
 
767
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
768
    *)
 
769
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
770
      # Don't use installbsd from OSF since it installs stuff as root
 
771
      # by default.
 
772
      for ac_prog in ginstall scoinst install; do
 
773
        if test -f $ac_dir/$ac_prog; then
 
774
          if test $ac_prog = install &&
 
775
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
776
            # AIX install.  It has an incompatible calling convention.
 
777
            :
 
778
          else
 
779
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
780
            break 2
 
781
          fi
 
782
        fi
 
783
      done
 
784
      ;;
 
785
    esac
 
786
  done
 
787
  IFS="$ac_save_IFS"
 
788
 
 
789
fi
 
790
  if test "${ac_cv_path_install+set}" = set; then
 
791
    INSTALL="$ac_cv_path_install"
 
792
  else
 
793
    # As a last resort, use the slow shell script.  We don't cache a
 
794
    # path for INSTALL within a source directory, because that will
 
795
    # break other packages using the cache if that directory is
 
796
    # removed, or if the path is relative.
 
797
    INSTALL="$ac_install_sh"
 
798
  fi
 
799
fi
 
800
echo "$ac_t""$INSTALL" 1>&6
 
801
 
 
802
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
803
# It thinks the first close brace ends the variable substitution.
 
804
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
805
 
 
806
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
807
 
 
808
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
809
 
 
810
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 
811
echo "configure:812: checking whether build environment is sane" >&5
 
812
# Just in case
 
813
sleep 1
 
814
echo timestamp > conftestfile
 
815
# Do `set' in a subshell so we don't clobber the current shell's
 
816
# arguments.  Must try -L first in case configure is actually a
 
817
# symlink; some systems play weird games with the mod time of symlinks
 
818
# (eg FreeBSD returns the mod time of the symlink's containing
 
819
# directory).
 
820
if (
 
821
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
822
   if test "$*" = "X"; then
 
823
      # -L didn't work.
 
824
      set X `ls -t $srcdir/configure conftestfile`
 
825
   fi
 
826
   if test "$*" != "X $srcdir/configure conftestfile" \
 
827
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
828
 
 
829
      # If neither matched, then we have a broken ls.  This can happen
 
830
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
831
      # broken ls alias from the environment.  This has actually
 
832
      # happened.  Such a system could not be considered "sane".
 
833
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
 
834
alias in your environment" 1>&2; exit 1; }
 
835
   fi
 
836
 
 
837
   test "$2" = conftestfile
 
838
   )
 
839
then
 
840
   # Ok.
 
841
   :
 
842
else
 
843
   { echo "configure: error: newly created file is older than distributed files!
 
844
Check your system clock" 1>&2; exit 1; }
 
845
fi
 
846
rm -f conftest*
 
847
echo "$ac_t""yes" 1>&6
 
848
if test "$program_transform_name" = s,x,x,; then
 
849
  program_transform_name=
 
850
else
 
851
  # Double any \ or $.  echo might interpret backslashes.
 
852
  cat <<\EOF_SED > conftestsed
 
853
s,\\,\\\\,g; s,\$,$$,g
 
854
EOF_SED
 
855
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
856
  rm -f conftestsed
 
857
fi
 
858
test "$program_prefix" != NONE &&
 
859
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
860
# Use a double $ so make ignores it.
 
861
test "$program_suffix" != NONE &&
 
862
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
863
 
 
864
# sed with no file args requires a program.
 
865
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
866
 
 
867
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
868
echo "configure:869: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
869
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
870
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
871
  echo $ac_n "(cached) $ac_c" 1>&6
 
872
else
 
873
  cat > conftestmake <<\EOF
 
874
all:
 
875
        @echo 'ac_maketemp="${MAKE}"'
 
876
EOF
 
877
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
878
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
879
if test -n "$ac_maketemp"; then
 
880
  eval ac_cv_prog_make_${ac_make}_set=yes
 
881
else
 
882
  eval ac_cv_prog_make_${ac_make}_set=no
 
883
fi
 
884
rm -f conftestmake
 
885
fi
 
886
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
887
  echo "$ac_t""yes" 1>&6
 
888
  SET_MAKE=
 
889
else
 
890
  echo "$ac_t""no" 1>&6
 
891
  SET_MAKE="MAKE=${MAKE-make}"
 
892
fi
 
893
 
 
894
 
 
895
PACKAGE=freecell-solver
 
896
 
 
897
VERSION=`cat ./ver.txt`
 
898
 
 
899
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
900
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
901
fi
 
902
cat >> confdefs.h <<EOF
 
903
#define PACKAGE "$PACKAGE"
 
904
EOF
 
905
 
 
906
cat >> confdefs.h <<EOF
 
907
#define VERSION "$VERSION"
 
908
EOF
 
909
 
 
910
 
 
911
 
 
912
missing_dir=`cd $ac_aux_dir && pwd`
 
913
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 
914
echo "configure:915: checking for working aclocal" >&5
 
915
# Run test in a subshell; some versions of sh will print an error if
 
916
# an executable is not found, even if stderr is redirected.
 
917
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
918
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
919
   ACLOCAL=aclocal
 
920
   echo "$ac_t""found" 1>&6
 
921
else
 
922
   ACLOCAL="$missing_dir/missing aclocal"
 
923
   echo "$ac_t""missing" 1>&6
 
924
fi
 
925
 
 
926
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 
927
echo "configure:928: checking for working autoconf" >&5
 
928
# Run test in a subshell; some versions of sh will print an error if
 
929
# an executable is not found, even if stderr is redirected.
 
930
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
931
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
932
   AUTOCONF=autoconf
 
933
   echo "$ac_t""found" 1>&6
 
934
else
 
935
   AUTOCONF="$missing_dir/missing autoconf"
 
936
   echo "$ac_t""missing" 1>&6
 
937
fi
 
938
 
 
939
echo $ac_n "checking for working automake""... $ac_c" 1>&6
 
940
echo "configure:941: checking for working automake" >&5
 
941
# Run test in a subshell; some versions of sh will print an error if
 
942
# an executable is not found, even if stderr is redirected.
 
943
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
944
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
945
   AUTOMAKE=automake
 
946
   echo "$ac_t""found" 1>&6
 
947
else
 
948
   AUTOMAKE="$missing_dir/missing automake"
 
949
   echo "$ac_t""missing" 1>&6
 
950
fi
 
951
 
 
952
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 
953
echo "configure:954: checking for working autoheader" >&5
 
954
# Run test in a subshell; some versions of sh will print an error if
 
955
# an executable is not found, even if stderr is redirected.
 
956
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
957
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
958
   AUTOHEADER=autoheader
 
959
   echo "$ac_t""found" 1>&6
 
960
else
 
961
   AUTOHEADER="$missing_dir/missing autoheader"
 
962
   echo "$ac_t""missing" 1>&6
 
963
fi
 
964
 
 
965
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 
966
echo "configure:967: checking for working makeinfo" >&5
 
967
# Run test in a subshell; some versions of sh will print an error if
 
968
# an executable is not found, even if stderr is redirected.
 
969
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
970
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
971
   MAKEINFO=makeinfo
 
972
   echo "$ac_t""found" 1>&6
 
973
else
 
974
   MAKEINFO="$missing_dir/missing makeinfo"
 
975
   echo "$ac_t""missing" 1>&6
 
976
fi
 
977
 
 
978
 
 
979
 
 
980
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 
981
echo "configure:982: checking for Cygwin environment" >&5
 
982
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 
983
  echo $ac_n "(cached) $ac_c" 1>&6
 
984
else
 
985
  cat > conftest.$ac_ext <<EOF
 
986
#line 987 "configure"
 
987
#include "confdefs.h"
 
988
 
 
989
int main() {
 
990
 
 
991
#ifndef __CYGWIN__
 
992
#define __CYGWIN__ __CYGWIN32__
 
993
#endif
 
994
return __CYGWIN__;
 
995
; return 0; }
 
996
EOF
 
997
if { (eval echo configure:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
998
  rm -rf conftest*
 
999
  ac_cv_cygwin=yes
 
1000
else
 
1001
  echo "configure: failed program was:" >&5
 
1002
  cat conftest.$ac_ext >&5
 
1003
  rm -rf conftest*
 
1004
  ac_cv_cygwin=no
 
1005
fi
 
1006
rm -f conftest*
 
1007
rm -f conftest*
 
1008
fi
 
1009
 
 
1010
echo "$ac_t""$ac_cv_cygwin" 1>&6
 
1011
CYGWIN=
 
1012
test "$ac_cv_cygwin" = yes && CYGWIN=yes
 
1013
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 
1014
echo "configure:1015: checking for mingw32 environment" >&5
 
1015
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 
1016
  echo $ac_n "(cached) $ac_c" 1>&6
 
1017
else
 
1018
  cat > conftest.$ac_ext <<EOF
 
1019
#line 1020 "configure"
 
1020
#include "confdefs.h"
 
1021
 
 
1022
int main() {
 
1023
return __MINGW32__;
 
1024
; return 0; }
 
1025
EOF
 
1026
if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1027
  rm -rf conftest*
 
1028
  ac_cv_mingw32=yes
 
1029
else
 
1030
  echo "configure: failed program was:" >&5
 
1031
  cat conftest.$ac_ext >&5
 
1032
  rm -rf conftest*
 
1033
  ac_cv_mingw32=no
 
1034
fi
 
1035
rm -f conftest*
 
1036
rm -f conftest*
 
1037
fi
 
1038
 
 
1039
echo "$ac_t""$ac_cv_mingw32" 1>&6
 
1040
MINGW32=
 
1041
test "$ac_cv_mingw32" = yes && MINGW32=yes
 
1042
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1043
echo "configure:1044: checking how to run the C preprocessor" >&5
 
1044
# On Suns, sometimes $CPP names a directory.
 
1045
if test -n "$CPP" && test -d "$CPP"; then
 
1046
  CPP=
 
1047
fi
 
1048
if test -z "$CPP"; then
 
1049
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1050
  echo $ac_n "(cached) $ac_c" 1>&6
 
1051
else
 
1052
    # This must be in double quotes, not single quotes, because CPP may get
 
1053
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1054
  CPP="${CC-cc} -E"
 
1055
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1056
  # not just through cpp.
 
1057
  cat > conftest.$ac_ext <<EOF
 
1058
#line 1059 "configure"
 
1059
#include "confdefs.h"
 
1060
#include <assert.h>
 
1061
Syntax Error
 
1062
EOF
 
1063
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1064
{ (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1065
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1066
if test -z "$ac_err"; then
 
1067
  :
 
1068
else
 
1069
  echo "$ac_err" >&5
 
1070
  echo "configure: failed program was:" >&5
 
1071
  cat conftest.$ac_ext >&5
 
1072
  rm -rf conftest*
 
1073
  CPP="${CC-cc} -E -traditional-cpp"
 
1074
  cat > conftest.$ac_ext <<EOF
 
1075
#line 1076 "configure"
 
1076
#include "confdefs.h"
 
1077
#include <assert.h>
 
1078
Syntax Error
 
1079
EOF
 
1080
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1081
{ (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1082
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1083
if test -z "$ac_err"; then
 
1084
  :
 
1085
else
 
1086
  echo "$ac_err" >&5
 
1087
  echo "configure: failed program was:" >&5
 
1088
  cat conftest.$ac_ext >&5
 
1089
  rm -rf conftest*
 
1090
  CPP="${CC-cc} -nologo -E"
 
1091
  cat > conftest.$ac_ext <<EOF
 
1092
#line 1093 "configure"
 
1093
#include "confdefs.h"
 
1094
#include <assert.h>
 
1095
Syntax Error
 
1096
EOF
 
1097
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1098
{ (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1099
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1100
if test -z "$ac_err"; then
 
1101
  :
 
1102
else
 
1103
  echo "$ac_err" >&5
 
1104
  echo "configure: failed program was:" >&5
 
1105
  cat conftest.$ac_ext >&5
 
1106
  rm -rf conftest*
 
1107
  CPP=/lib/cpp
 
1108
fi
 
1109
rm -f conftest*
 
1110
fi
 
1111
rm -f conftest*
 
1112
fi
 
1113
rm -f conftest*
 
1114
  ac_cv_prog_CPP="$CPP"
 
1115
fi
 
1116
  CPP="$ac_cv_prog_CPP"
 
1117
else
 
1118
  ac_cv_prog_CPP="$CPP"
 
1119
fi
 
1120
echo "$ac_t""$CPP" 1>&6
 
1121
 
 
1122
# Check whether --enable-shared or --disable-shared was given.
 
1123
if test "${enable_shared+set}" = set; then
 
1124
  enableval="$enable_shared"
 
1125
  p=${PACKAGE-default}
 
1126
case $enableval in
 
1127
yes) enable_shared=yes ;;
 
1128
no) enable_shared=no ;;
 
1129
*)
 
1130
  enable_shared=no
 
1131
  # Look at the argument we got.  We use all the common list separators.
 
1132
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
1133
  for pkg in $enableval; do
 
1134
    if test "X$pkg" = "X$p"; then
 
1135
      enable_shared=yes
 
1136
    fi
 
1137
  done
 
1138
  IFS="$ac_save_ifs"
 
1139
  ;;
 
1140
esac
 
1141
else
 
1142
  enable_shared=yes
 
1143
fi
 
1144
 
 
1145
# Check whether --enable-static or --disable-static was given.
 
1146
if test "${enable_static+set}" = set; then
 
1147
  enableval="$enable_static"
 
1148
  p=${PACKAGE-default}
 
1149
case $enableval in
 
1150
yes) enable_static=yes ;;
 
1151
no) enable_static=no ;;
 
1152
*)
 
1153
  enable_static=no
 
1154
  # Look at the argument we got.  We use all the common list separators.
 
1155
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
1156
  for pkg in $enableval; do
 
1157
    if test "X$pkg" = "X$p"; then
 
1158
      enable_static=yes
 
1159
    fi
 
1160
  done
 
1161
  IFS="$ac_save_ifs"
 
1162
  ;;
 
1163
esac
 
1164
else
 
1165
  enable_static=yes
 
1166
fi
 
1167
 
 
1168
# Check whether --enable-fast-install or --disable-fast-install was given.
 
1169
if test "${enable_fast_install+set}" = set; then
 
1170
  enableval="$enable_fast_install"
 
1171
  p=${PACKAGE-default}
 
1172
case $enableval in
 
1173
yes) enable_fast_install=yes ;;
 
1174
no) enable_fast_install=no ;;
 
1175
*)
 
1176
  enable_fast_install=no
 
1177
  # Look at the argument we got.  We use all the common list separators.
 
1178
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
1179
  for pkg in $enableval; do
 
1180
    if test "X$pkg" = "X$p"; then
 
1181
      enable_fast_install=yes
 
1182
    fi
 
1183
  done
 
1184
  IFS="$ac_save_ifs"
 
1185
  ;;
 
1186
esac
 
1187
else
 
1188
  enable_fast_install=yes
 
1189
fi
 
1190
 
 
1191
 
 
1192
# Make sure we can run config.sub.
 
1193
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
1194
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
1195
fi
 
1196
 
 
1197
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
1198
echo "configure:1199: checking host system type" >&5
 
1199
 
 
1200
host_alias=$host
 
1201
case "$host_alias" in
 
1202
NONE)
 
1203
  case $nonopt in
 
1204
  NONE)
 
1205
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
1206
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
1207
    fi ;;
 
1208
  *) host_alias=$nonopt ;;
 
1209
  esac ;;
 
1210
esac
 
1211
 
 
1212
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
1213
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1214
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1215
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1216
echo "$ac_t""$host" 1>&6
 
1217
 
 
1218
echo $ac_n "checking build system type""... $ac_c" 1>&6
 
1219
echo "configure:1220: checking build system type" >&5
 
1220
 
 
1221
build_alias=$build
 
1222
case "$build_alias" in
 
1223
NONE)
 
1224
  case $nonopt in
 
1225
  NONE) build_alias=$host_alias ;;
 
1226
  *) build_alias=$nonopt ;;
 
1227
  esac ;;
 
1228
esac
 
1229
 
 
1230
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 
1231
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1232
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1233
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1234
echo "$ac_t""$build" 1>&6
 
1235
 
 
1236
# Extract the first word of "gcc", so it can be a program name with args.
 
1237
set dummy gcc; ac_word=$2
 
1238
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1239
echo "configure:1240: checking for $ac_word" >&5
 
1240
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1241
  echo $ac_n "(cached) $ac_c" 1>&6
 
1242
else
 
1243
  if test -n "$CC"; then
 
1244
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1245
else
 
1246
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1247
  ac_dummy="$PATH"
 
1248
  for ac_dir in $ac_dummy; do
 
1249
    test -z "$ac_dir" && ac_dir=.
 
1250
    if test -f $ac_dir/$ac_word; then
 
1251
      ac_cv_prog_CC="gcc"
 
1252
      break
 
1253
    fi
 
1254
  done
 
1255
  IFS="$ac_save_ifs"
 
1256
fi
 
1257
fi
 
1258
CC="$ac_cv_prog_CC"
 
1259
if test -n "$CC"; then
 
1260
  echo "$ac_t""$CC" 1>&6
 
1261
else
 
1262
  echo "$ac_t""no" 1>&6
 
1263
fi
 
1264
 
 
1265
if test -z "$CC"; then
 
1266
  # Extract the first word of "cc", so it can be a program name with args.
 
1267
set dummy cc; ac_word=$2
 
1268
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1269
echo "configure:1270: checking for $ac_word" >&5
 
1270
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1271
  echo $ac_n "(cached) $ac_c" 1>&6
 
1272
else
 
1273
  if test -n "$CC"; then
 
1274
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1275
else
 
1276
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1277
  ac_prog_rejected=no
 
1278
  ac_dummy="$PATH"
 
1279
  for ac_dir in $ac_dummy; do
 
1280
    test -z "$ac_dir" && ac_dir=.
 
1281
    if test -f $ac_dir/$ac_word; then
 
1282
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1283
        ac_prog_rejected=yes
 
1284
        continue
 
1285
      fi
 
1286
      ac_cv_prog_CC="cc"
 
1287
      break
 
1288
    fi
 
1289
  done
 
1290
  IFS="$ac_save_ifs"
 
1291
if test $ac_prog_rejected = yes; then
 
1292
  # We found a bogon in the path, so make sure we never use it.
 
1293
  set dummy $ac_cv_prog_CC
 
1294
  shift
 
1295
  if test $# -gt 0; then
 
1296
    # We chose a different compiler from the bogus one.
 
1297
    # However, it has the same basename, so the bogon will be chosen
 
1298
    # first if we set CC to just the basename; use the full file name.
 
1299
    shift
 
1300
    set dummy "$ac_dir/$ac_word" "$@"
 
1301
    shift
 
1302
    ac_cv_prog_CC="$@"
 
1303
  fi
 
1304
fi
 
1305
fi
 
1306
fi
 
1307
CC="$ac_cv_prog_CC"
 
1308
if test -n "$CC"; then
 
1309
  echo "$ac_t""$CC" 1>&6
 
1310
else
 
1311
  echo "$ac_t""no" 1>&6
 
1312
fi
 
1313
 
 
1314
  if test -z "$CC"; then
 
1315
    case "`uname -s`" in
 
1316
    *win32* | *WIN32*)
 
1317
      # Extract the first word of "cl", so it can be a program name with args.
 
1318
set dummy cl; ac_word=$2
 
1319
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1320
echo "configure:1321: checking for $ac_word" >&5
 
1321
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1322
  echo $ac_n "(cached) $ac_c" 1>&6
 
1323
else
 
1324
  if test -n "$CC"; then
 
1325
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1326
else
 
1327
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1328
  ac_dummy="$PATH"
 
1329
  for ac_dir in $ac_dummy; do
 
1330
    test -z "$ac_dir" && ac_dir=.
 
1331
    if test -f $ac_dir/$ac_word; then
 
1332
      ac_cv_prog_CC="cl"
 
1333
      break
 
1334
    fi
 
1335
  done
 
1336
  IFS="$ac_save_ifs"
 
1337
fi
 
1338
fi
 
1339
CC="$ac_cv_prog_CC"
 
1340
if test -n "$CC"; then
 
1341
  echo "$ac_t""$CC" 1>&6
 
1342
else
 
1343
  echo "$ac_t""no" 1>&6
 
1344
fi
 
1345
 ;;
 
1346
    esac
 
1347
  fi
 
1348
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
1349
fi
 
1350
 
 
1351
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
1352
echo "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1353
 
 
1354
ac_ext=c
 
1355
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1356
ac_cpp='$CPP $CPPFLAGS'
 
1357
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1358
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1359
cross_compiling=$ac_cv_prog_cc_cross
 
1360
 
 
1361
cat > conftest.$ac_ext << EOF
 
1362
 
 
1363
#line 1364 "configure"
 
1364
#include "confdefs.h"
 
1365
 
 
1366
main(){return(0);}
 
1367
EOF
 
1368
if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1369
  ac_cv_prog_cc_works=yes
 
1370
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1371
  if (./conftest; exit) 2>/dev/null; then
 
1372
    ac_cv_prog_cc_cross=no
 
1373
  else
 
1374
    ac_cv_prog_cc_cross=yes
 
1375
  fi
 
1376
else
 
1377
  echo "configure: failed program was:" >&5
 
1378
  cat conftest.$ac_ext >&5
 
1379
  ac_cv_prog_cc_works=no
 
1380
fi
 
1381
rm -fr conftest*
 
1382
ac_ext=c
 
1383
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1384
ac_cpp='$CPP $CPPFLAGS'
 
1385
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1386
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1387
cross_compiling=$ac_cv_prog_cc_cross
 
1388
 
 
1389
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
1390
if test $ac_cv_prog_cc_works = no; then
 
1391
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
1392
fi
 
1393
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1394
echo "configure:1395: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1395
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
1396
cross_compiling=$ac_cv_prog_cc_cross
 
1397
 
 
1398
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
1399
echo "configure:1400: checking whether we are using GNU C" >&5
 
1400
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
1401
  echo $ac_n "(cached) $ac_c" 1>&6
 
1402
else
 
1403
  cat > conftest.c <<EOF
 
1404
#ifdef __GNUC__
 
1405
  yes;
 
1406
#endif
 
1407
EOF
 
1408
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1409
  ac_cv_prog_gcc=yes
 
1410
else
 
1411
  ac_cv_prog_gcc=no
 
1412
fi
 
1413
fi
 
1414
 
 
1415
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1416
 
 
1417
if test $ac_cv_prog_gcc = yes; then
 
1418
  GCC=yes
 
1419
else
 
1420
  GCC=
 
1421
fi
 
1422
 
 
1423
ac_test_CFLAGS="${CFLAGS+set}"
 
1424
ac_save_CFLAGS="$CFLAGS"
 
1425
CFLAGS=
 
1426
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1427
echo "configure:1428: checking whether ${CC-cc} accepts -g" >&5
 
1428
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1429
  echo $ac_n "(cached) $ac_c" 1>&6
 
1430
else
 
1431
  echo 'void f(){}' > conftest.c
 
1432
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1433
  ac_cv_prog_cc_g=yes
 
1434
else
 
1435
  ac_cv_prog_cc_g=no
 
1436
fi
 
1437
rm -f conftest*
 
1438
 
 
1439
fi
 
1440
 
 
1441
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1442
if test "$ac_test_CFLAGS" = set; then
 
1443
  CFLAGS="$ac_save_CFLAGS"
 
1444
elif test $ac_cv_prog_cc_g = yes; then
 
1445
  if test "$GCC" = yes; then
 
1446
    CFLAGS="-g -O2"
 
1447
  else
 
1448
    CFLAGS="-g"
 
1449
  fi
 
1450
else
 
1451
  if test "$GCC" = yes; then
 
1452
    CFLAGS="-O2"
 
1453
  else
 
1454
    CFLAGS=
 
1455
  fi
 
1456
fi
 
1457
 
 
1458
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
1459
if test "${with_gnu_ld+set}" = set; then
 
1460
  withval="$with_gnu_ld"
 
1461
  test "$withval" = no || with_gnu_ld=yes
 
1462
else
 
1463
  with_gnu_ld=no
 
1464
fi
 
1465
 
 
1466
ac_prog=ld
 
1467
if test "$GCC" = yes; then
 
1468
  # Check if gcc -print-prog-name=ld gives a path.
 
1469
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 
1470
echo "configure:1471: checking for ld used by GCC" >&5
 
1471
  case $host in
 
1472
  *-*-mingw*)
 
1473
    # gcc leaves a trailing carriage return which upsets mingw
 
1474
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
1475
  *)
 
1476
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
1477
  esac
 
1478
  case $ac_prog in
 
1479
    # Accept absolute paths.
 
1480
    [\\/]* | [A-Za-z]:[\\/]*)
 
1481
      re_direlt='/[^/][^/]*/\.\./'
 
1482
      # Canonicalize the path of ld
 
1483
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
1484
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
1485
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
1486
      done
 
1487
      test -z "$LD" && LD="$ac_prog"
 
1488
      ;;
 
1489
  "")
 
1490
    # If it fails, then pretend we aren't using GCC.
 
1491
    ac_prog=ld
 
1492
    ;;
 
1493
  *)
 
1494
    # If it is relative, then search for the first ld in PATH.
 
1495
    with_gnu_ld=unknown
 
1496
    ;;
 
1497
  esac
 
1498
elif test "$with_gnu_ld" = yes; then
 
1499
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 
1500
echo "configure:1501: checking for GNU ld" >&5
 
1501
else
 
1502
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 
1503
echo "configure:1504: checking for non-GNU ld" >&5
 
1504
fi
 
1505
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
 
1506
  echo $ac_n "(cached) $ac_c" 1>&6
 
1507
else
 
1508
  if test -z "$LD"; then
 
1509
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
1510
  for ac_dir in $PATH; do
 
1511
    test -z "$ac_dir" && ac_dir=.
 
1512
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
1513
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
1514
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
1515
      # but apparently some GNU ld's only accept -v.
 
1516
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
1517
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
1518
        test "$with_gnu_ld" != no && break
 
1519
      else
 
1520
        test "$with_gnu_ld" != yes && break
 
1521
      fi
 
1522
    fi
 
1523
  done
 
1524
  IFS="$ac_save_ifs"
 
1525
else
 
1526
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
1527
fi
 
1528
fi
 
1529
 
 
1530
LD="$lt_cv_path_LD"
 
1531
if test -n "$LD"; then
 
1532
  echo "$ac_t""$LD" 1>&6
 
1533
else
 
1534
  echo "$ac_t""no" 1>&6
 
1535
fi
 
1536
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 
1537
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 
1538
echo "configure:1539: checking if the linker ($LD) is GNU ld" >&5
 
1539
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
 
1540
  echo $ac_n "(cached) $ac_c" 1>&6
 
1541
else
 
1542
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
1543
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
1544
  lt_cv_prog_gnu_ld=yes
 
1545
else
 
1546
  lt_cv_prog_gnu_ld=no
 
1547
fi
 
1548
fi
 
1549
 
 
1550
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
 
1551
with_gnu_ld=$lt_cv_prog_gnu_ld
 
1552
 
 
1553
 
 
1554
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
 
1555
echo "configure:1556: checking for $LD option to reload object files" >&5
 
1556
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
 
1557
  echo $ac_n "(cached) $ac_c" 1>&6
 
1558
else
 
1559
  lt_cv_ld_reload_flag='-r'
 
1560
fi
 
1561
 
 
1562
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
 
1563
reload_flag=$lt_cv_ld_reload_flag
 
1564
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
1565
 
 
1566
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 
1567
echo "configure:1568: checking for BSD-compatible nm" >&5
 
1568
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
 
1569
  echo $ac_n "(cached) $ac_c" 1>&6
 
1570
else
 
1571
  if test -n "$NM"; then
 
1572
  # Let the user override the test.
 
1573
  lt_cv_path_NM="$NM"
 
1574
else
 
1575
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
1576
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
1577
    test -z "$ac_dir" && ac_dir=.
 
1578
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
1579
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
1580
      # Check to see if the nm accepts a BSD-compat flag.
 
1581
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
1582
      #   nm: unknown option "B" ignored
 
1583
      # Tru64's nm complains that /dev/null is an invalid object file
 
1584
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
1585
        lt_cv_path_NM="$tmp_nm -B"
 
1586
        break
 
1587
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
1588
        lt_cv_path_NM="$tmp_nm -p"
 
1589
        break
 
1590
      else
 
1591
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
1592
        continue # so that we can try to find one that supports BSD flags
 
1593
      fi
 
1594
    fi
 
1595
  done
 
1596
  IFS="$ac_save_ifs"
 
1597
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
1598
fi
 
1599
fi
 
1600
 
 
1601
NM="$lt_cv_path_NM"
 
1602
echo "$ac_t""$NM" 1>&6
 
1603
 
 
1604
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 
1605
echo "configure:1606: checking whether ln -s works" >&5
 
1606
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 
1607
  echo $ac_n "(cached) $ac_c" 1>&6
 
1608
else
 
1609
  rm -f conftestdata
 
1610
if ln -s X conftestdata 2>/dev/null
 
1611
then
 
1612
  rm -f conftestdata
 
1613
  ac_cv_prog_LN_S="ln -s"
 
1614
else
 
1615
  ac_cv_prog_LN_S=ln
 
1616
fi
 
1617
fi
 
1618
LN_S="$ac_cv_prog_LN_S"
 
1619
if test "$ac_cv_prog_LN_S" = "ln -s"; then
 
1620
  echo "$ac_t""yes" 1>&6
 
1621
else
 
1622
  echo "$ac_t""no" 1>&6
 
1623
fi
 
1624
 
 
1625
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
 
1626
echo "configure:1627: checking how to recognise dependant libraries" >&5
 
1627
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
 
1628
  echo $ac_n "(cached) $ac_c" 1>&6
 
1629
else
 
1630
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
1631
lt_cv_file_magic_test_file=
 
1632
lt_cv_deplibs_check_method='unknown'
 
1633
# Need to set the preceding variable on all platforms that support
 
1634
# interlibrary dependencies.
 
1635
# 'none' -- dependencies not supported.
 
1636
# `unknown' -- same as none, but documents that we really don't know.
 
1637
# 'pass_all' -- all dependencies passed with no checks.
 
1638
# 'test_compile' -- check by making test program.
 
1639
# ['file_magic [regex]'] -- check by looking for files in library path
 
1640
# which responds to the $file_magic_cmd with a given egrep regex.
 
1641
# If you have `file' or equivalent on your system and you're not sure
 
1642
# whether `pass_all' will *always* work, you probably want this one.
 
1643
 
 
1644
case $host_os in
 
1645
aix4* | aix5*)
 
1646
  lt_cv_deplibs_check_method=pass_all
 
1647
  ;;
 
1648
 
 
1649
beos*)
 
1650
  lt_cv_deplibs_check_method=pass_all
 
1651
  ;;
 
1652
 
 
1653
bsdi4*)
 
1654
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
1655
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
1656
  lt_cv_file_magic_test_file=/shlib/libc.so
 
1657
  ;;
 
1658
 
 
1659
cygwin* | mingw* | pw32*)
 
1660
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
1661
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
1662
  ;;
 
1663
 
 
1664
darwin* | rhapsody*)
 
1665
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
1666
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
1667
  case "$host_os" in
 
1668
  rhapsody* | darwin1.012)
 
1669
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
1670
    ;;
 
1671
  *) # Darwin 1.3 on
 
1672
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
1673
    ;;
 
1674
  esac
 
1675
  ;;
 
1676
 
 
1677
freebsd*)
 
1678
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
1679
    case $host_cpu in
 
1680
    i*86 )
 
1681
      # Not sure whether the presence of OpenBSD here was a mistake.
 
1682
      # Let's accept both of them until this is cleared up.
 
1683
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
1684
      lt_cv_file_magic_cmd=/usr/bin/file
 
1685
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
1686
      ;;
 
1687
    esac
 
1688
  else
 
1689
    lt_cv_deplibs_check_method=pass_all
 
1690
  fi
 
1691
  ;;
 
1692
 
 
1693
gnu*)
 
1694
  lt_cv_deplibs_check_method=pass_all
 
1695
  ;;
 
1696
 
 
1697
hpux10.20*|hpux11*)
 
1698
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
1699
  lt_cv_file_magic_cmd=/usr/bin/file
 
1700
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
1701
  ;;
 
1702
 
 
1703
irix5* | irix6*)
 
1704
  case $host_os in
 
1705
  irix5*)
 
1706
    # this will be overridden with pass_all, but let us keep it just in case
 
1707
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
1708
    ;;
 
1709
  *)
 
1710
    case $LD in
 
1711
    *-32|*"-32 ") libmagic=32-bit;;
 
1712
    *-n32|*"-n32 ") libmagic=N32;;
 
1713
    *-64|*"-64 ") libmagic=64-bit;;
 
1714
    *) libmagic=never-match;;
 
1715
    esac
 
1716
    # this will be overridden with pass_all, but let us keep it just in case
 
1717
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
1718
    ;;
 
1719
  esac
 
1720
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
1721
  lt_cv_deplibs_check_method=pass_all
 
1722
  ;;
 
1723
 
 
1724
# This must be Linux ELF.
 
1725
linux-gnu*)
 
1726
  case $host_cpu in
 
1727
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
 
1728
    lt_cv_deplibs_check_method=pass_all ;;
 
1729
  *)
 
1730
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
1731
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
1732
  esac
 
1733
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
1734
  ;;
 
1735
 
 
1736
netbsd*)
 
1737
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
1738
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
1739
  else
 
1740
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
1741
  fi
 
1742
  ;;
 
1743
 
 
1744
newos6*)
 
1745
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
1746
  lt_cv_file_magic_cmd=/usr/bin/file
 
1747
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
1748
  ;;
 
1749
 
 
1750
osf3* | osf4* | osf5*)
 
1751
  # this will be overridden with pass_all, but let us keep it just in case
 
1752
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
1753
  lt_cv_file_magic_test_file=/shlib/libc.so
 
1754
  lt_cv_deplibs_check_method=pass_all
 
1755
  ;;
 
1756
 
 
1757
sco3.2v5*)
 
1758
  lt_cv_deplibs_check_method=pass_all
 
1759
  ;;
 
1760
 
 
1761
solaris*)
 
1762
  lt_cv_deplibs_check_method=pass_all
 
1763
  lt_cv_file_magic_test_file=/lib/libc.so
 
1764
  ;;
 
1765
 
 
1766
sysv5uw[78]* | sysv4*uw2*)
 
1767
  lt_cv_deplibs_check_method=pass_all
 
1768
  ;;
 
1769
 
 
1770
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1771
  case $host_vendor in
 
1772
  motorola)
 
1773
    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]'
 
1774
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
1775
    ;;
 
1776
  ncr)
 
1777
    lt_cv_deplibs_check_method=pass_all
 
1778
    ;;
 
1779
  sequent)
 
1780
    lt_cv_file_magic_cmd='/bin/file'
 
1781
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
1782
    ;;
 
1783
  sni)
 
1784
    lt_cv_file_magic_cmd='/bin/file'
 
1785
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
1786
    lt_cv_file_magic_test_file=/lib/libc.so
 
1787
    ;;
 
1788
  esac
 
1789
  ;;
 
1790
esac
 
1791
 
 
1792
fi
 
1793
 
 
1794
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
 
1795
file_magic_cmd=$lt_cv_file_magic_cmd
 
1796
deplibs_check_method=$lt_cv_deplibs_check_method
 
1797
 
 
1798
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 
1799
echo "configure:1800: checking for object suffix" >&5
 
1800
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 
1801
  echo $ac_n "(cached) $ac_c" 1>&6
 
1802
else
 
1803
  rm -f conftest*
 
1804
echo 'int i = 1;' > conftest.$ac_ext
 
1805
if { (eval echo configure:1806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1806
  for ac_file in conftest.*; do
 
1807
    case $ac_file in
 
1808
    *.c) ;;
 
1809
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 
1810
    esac
 
1811
  done
 
1812
else
 
1813
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 
1814
fi
 
1815
rm -f conftest*
 
1816
fi
 
1817
 
 
1818
echo "$ac_t""$ac_cv_objext" 1>&6
 
1819
OBJEXT=$ac_cv_objext
 
1820
ac_objext=$ac_cv_objext
 
1821
 
 
1822
 
 
1823
 
 
1824
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 
1825
echo "configure:1826: checking for executable suffix" >&5
 
1826
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 
1827
  echo $ac_n "(cached) $ac_c" 1>&6
 
1828
else
 
1829
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 
1830
  ac_cv_exeext=.exe
 
1831
else
 
1832
  rm -f conftest*
 
1833
  echo 'int main () { return 0; }' > conftest.$ac_ext
 
1834
  ac_cv_exeext=
 
1835
  if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 
1836
    for file in conftest.*; do
 
1837
      case $file in
 
1838
      *.c | *.o | *.obj) ;;
 
1839
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 
1840
      esac
 
1841
    done
 
1842
  else
 
1843
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 
1844
  fi
 
1845
  rm -f conftest*
 
1846
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 
1847
fi
 
1848
fi
 
1849
 
 
1850
EXEEXT=""
 
1851
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 
1852
echo "$ac_t""${ac_cv_exeext}" 1>&6
 
1853
ac_exeext=$EXEEXT
 
1854
 
 
1855
if test $host != $build; then
 
1856
  ac_tool_prefix=${host_alias}-
 
1857
else
 
1858
  ac_tool_prefix=
 
1859
fi
 
1860
 
 
1861
 
 
1862
 
 
1863
 
 
1864
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
1865
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
 
1866
echo "configure:1867: checking command to parse $NM output" >&5
 
1867
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
 
1868
  echo $ac_n "(cached) $ac_c" 1>&6
 
1869
else
 
1870
  
 
1871
# These are sane defaults that work on at least a few old systems.
 
1872
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
1873
 
 
1874
# Character class describing NM global symbol codes.
 
1875
symcode='[BCDEGRST]'
 
1876
 
 
1877
# Regexp to match symbols that can be accessed directly from C.
 
1878
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
1879
 
 
1880
# Transform the above into a raw symbol and a C symbol.
 
1881
symxfrm='\1 \2\3 \3'
 
1882
 
 
1883
# Transform an extracted symbol line into a proper C declaration
 
1884
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
1885
 
 
1886
# Define system-specific variables.
 
1887
case $host_os in
 
1888
aix*)
 
1889
  symcode='[BCDT]'
 
1890
  ;;
 
1891
cygwin* | mingw* | pw32*)
 
1892
  symcode='[ABCDGISTW]'
 
1893
  ;;
 
1894
hpux*) # Its linker distinguishes data from code symbols
 
1895
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
1896
  ;;
 
1897
irix*)
 
1898
  symcode='[BCDEGRST]'
 
1899
  ;;
 
1900
solaris* | sysv5*)
 
1901
  symcode='[BDT]'
 
1902
  ;;
 
1903
sysv4)
 
1904
  symcode='[DFNSTU]'
 
1905
  ;;
 
1906
esac
 
1907
 
 
1908
# Handle CRLF in mingw tool chain
 
1909
opt_cr=
 
1910
case $host_os in
 
1911
mingw*)
 
1912
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
1913
  ;;
 
1914
esac
 
1915
 
 
1916
# If we're using GNU nm, then use its standard symbol codes.
 
1917
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
1918
  symcode='[ABCDGISTW]'
 
1919
fi
 
1920
 
 
1921
# Try without a prefix undercore, then with it.
 
1922
for ac_symprfx in "" "_"; do
 
1923
 
 
1924
  # Write the raw and C identifiers.
 
1925
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
1926
 
 
1927
  # Check to see that the pipe works correctly.
 
1928
  pipe_works=no
 
1929
  rm -f conftest*
 
1930
  cat > conftest.$ac_ext <<EOF
 
1931
#ifdef __cplusplus
 
1932
extern "C" {
 
1933
#endif
 
1934
char nm_test_var;
 
1935
void nm_test_func(){}
 
1936
#ifdef __cplusplus
 
1937
}
 
1938
#endif
 
1939
int main(){nm_test_var='a';nm_test_func();return(0);}
 
1940
EOF
 
1941
 
 
1942
  if { (eval echo configure:1943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1943
    # Now try to grab the symbols.
 
1944
    nlist=conftest.nm
 
1945
    if { (eval echo configure:1946: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
 
1946
      # Try sorting and uniquifying the output.
 
1947
      if sort "$nlist" | uniq > "$nlist"T; then
 
1948
        mv -f "$nlist"T "$nlist"
 
1949
      else
 
1950
        rm -f "$nlist"T
 
1951
      fi
 
1952
 
 
1953
      # Make sure that we snagged all the symbols we need.
 
1954
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
1955
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
1956
          cat <<EOF > conftest.$ac_ext
 
1957
#ifdef __cplusplus
 
1958
extern "C" {
 
1959
#endif
 
1960
 
 
1961
EOF
 
1962
          # Now generate the symbol file.
 
1963
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
1964
 
 
1965
          cat <<EOF >> conftest.$ac_ext
 
1966
#if defined (__STDC__) && __STDC__
 
1967
# define lt_ptr_t void *
 
1968
#else
 
1969
# define lt_ptr_t char *
 
1970
# define const
 
1971
#endif
 
1972
 
 
1973
/* The mapping between symbol names and symbols. */
 
1974
const struct {
 
1975
  const char *name;
 
1976
  lt_ptr_t address;
 
1977
}
 
1978
lt_preloaded_symbols[] =
 
1979
{
 
1980
EOF
 
1981
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
1982
          cat <<\EOF >> conftest.$ac_ext
 
1983
  {0, (lt_ptr_t) 0}
 
1984
};
 
1985
 
 
1986
#ifdef __cplusplus
 
1987
}
 
1988
#endif
 
1989
EOF
 
1990
          # Now try linking the two files.
 
1991
          mv conftest.$ac_objext conftstm.$ac_objext
 
1992
          save_LIBS="$LIBS"
 
1993
          save_CFLAGS="$CFLAGS"
 
1994
          LIBS="conftstm.$ac_objext"
 
1995
          CFLAGS="$CFLAGS$no_builtin_flag"
 
1996
          if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
1997
            pipe_works=yes
 
1998
          fi
 
1999
          LIBS="$save_LIBS"
 
2000
          CFLAGS="$save_CFLAGS"
 
2001
        else
 
2002
          echo "cannot find nm_test_func in $nlist" >&5
 
2003
        fi
 
2004
      else
 
2005
        echo "cannot find nm_test_var in $nlist" >&5
 
2006
      fi
 
2007
    else
 
2008
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
2009
    fi
 
2010
  else
 
2011
    echo "$progname: failed program was:" >&5
 
2012
    cat conftest.$ac_ext >&5
 
2013
  fi
 
2014
  rm -f conftest* conftst*
 
2015
 
 
2016
  # Do not use the global_symbol_pipe unless it works.
 
2017
  if test "$pipe_works" = yes; then
 
2018
    break
 
2019
  else
 
2020
    lt_cv_sys_global_symbol_pipe=
 
2021
  fi
 
2022
done
 
2023
 
 
2024
fi
 
2025
 
 
2026
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
2027
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
2028
  global_symbol_to_cdecl=
 
2029
else
 
2030
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
2031
fi
 
2032
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
 
2033
  echo "$ac_t""failed" 1>&6
 
2034
else
 
2035
  echo "$ac_t""ok" 1>&6
 
2036
fi
 
2037
 
 
2038
for ac_hdr in dlfcn.h
 
2039
do
 
2040
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
2041
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
2042
echo "configure:2043: checking for $ac_hdr" >&5
 
2043
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2044
  echo $ac_n "(cached) $ac_c" 1>&6
 
2045
else
 
2046
  cat > conftest.$ac_ext <<EOF
 
2047
#line 2048 "configure"
 
2048
#include "confdefs.h"
 
2049
#include <$ac_hdr>
 
2050
EOF
 
2051
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2052
{ (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2053
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2054
if test -z "$ac_err"; then
 
2055
  rm -rf conftest*
 
2056
  eval "ac_cv_header_$ac_safe=yes"
 
2057
else
 
2058
  echo "$ac_err" >&5
 
2059
  echo "configure: failed program was:" >&5
 
2060
  cat conftest.$ac_ext >&5
 
2061
  rm -rf conftest*
 
2062
  eval "ac_cv_header_$ac_safe=no"
 
2063
fi
 
2064
rm -f conftest*
 
2065
fi
 
2066
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2067
  echo "$ac_t""yes" 1>&6
 
2068
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
2069
  cat >> confdefs.h <<EOF
 
2070
#define $ac_tr_hdr 1
 
2071
EOF
 
2072
 
 
2073
else
 
2074
  echo "$ac_t""no" 1>&6
 
2075
fi
 
2076
done
 
2077
 
 
2078
 
 
2079
 
 
2080
 
 
2081
 
 
2082
# Only perform the check for file, if the check method requires it
 
2083
case $deplibs_check_method in
 
2084
file_magic*)
 
2085
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
2086
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
 
2087
echo "configure:2088: checking for ${ac_tool_prefix}file" >&5
 
2088
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 
2089
  echo $ac_n "(cached) $ac_c" 1>&6
 
2090
else
 
2091
  case $MAGIC_CMD in
 
2092
  /*)
 
2093
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2094
  ;;
 
2095
  ?:/*)
 
2096
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
2097
  ;;
 
2098
  *)
 
2099
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
2100
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2101
  ac_dummy="/usr/bin:$PATH"
 
2102
  for ac_dir in $ac_dummy; do
 
2103
    test -z "$ac_dir" && ac_dir=.
 
2104
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
2105
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
2106
      if test -n "$file_magic_test_file"; then
 
2107
        case $deplibs_check_method in
 
2108
        "file_magic "*)
 
2109
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2110
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2111
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2112
            egrep "$file_magic_regex" > /dev/null; then
 
2113
            :
 
2114
          else
 
2115
            cat <<EOF 1>&2
 
2116
 
 
2117
*** Warning: the command libtool uses to detect shared libraries,
 
2118
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2119
*** The result is that libtool may fail to recognize shared libraries
 
2120
*** as such.  This will affect the creation of libtool libraries that
 
2121
*** depend on shared libraries, but programs linked with such libtool
 
2122
*** libraries will work regardless of this problem.  Nevertheless, you
 
2123
*** may want to report the problem to your system manager and/or to
 
2124
*** bug-libtool@gnu.org
 
2125
 
 
2126
EOF
 
2127
          fi ;;
 
2128
        esac
 
2129
      fi
 
2130
      break
 
2131
    fi
 
2132
  done
 
2133
  IFS="$ac_save_ifs"
 
2134
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
2135
  ;;
 
2136
esac
 
2137
fi
 
2138
 
 
2139
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2140
if test -n "$MAGIC_CMD"; then
 
2141
  echo "$ac_t""$MAGIC_CMD" 1>&6
 
2142
else
 
2143
  echo "$ac_t""no" 1>&6
 
2144
fi
 
2145
 
 
2146
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
2147
  if test -n "$ac_tool_prefix"; then
 
2148
    echo $ac_n "checking for file""... $ac_c" 1>&6
 
2149
echo "configure:2150: checking for file" >&5
 
2150
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 
2151
  echo $ac_n "(cached) $ac_c" 1>&6
 
2152
else
 
2153
  case $MAGIC_CMD in
 
2154
  /*)
 
2155
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2156
  ;;
 
2157
  ?:/*)
 
2158
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
2159
  ;;
 
2160
  *)
 
2161
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
2162
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2163
  ac_dummy="/usr/bin:$PATH"
 
2164
  for ac_dir in $ac_dummy; do
 
2165
    test -z "$ac_dir" && ac_dir=.
 
2166
    if test -f $ac_dir/file; then
 
2167
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
2168
      if test -n "$file_magic_test_file"; then
 
2169
        case $deplibs_check_method in
 
2170
        "file_magic "*)
 
2171
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2172
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2173
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2174
            egrep "$file_magic_regex" > /dev/null; then
 
2175
            :
 
2176
          else
 
2177
            cat <<EOF 1>&2
 
2178
 
 
2179
*** Warning: the command libtool uses to detect shared libraries,
 
2180
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2181
*** The result is that libtool may fail to recognize shared libraries
 
2182
*** as such.  This will affect the creation of libtool libraries that
 
2183
*** depend on shared libraries, but programs linked with such libtool
 
2184
*** libraries will work regardless of this problem.  Nevertheless, you
 
2185
*** may want to report the problem to your system manager and/or to
 
2186
*** bug-libtool@gnu.org
 
2187
 
 
2188
EOF
 
2189
          fi ;;
 
2190
        esac
 
2191
      fi
 
2192
      break
 
2193
    fi
 
2194
  done
 
2195
  IFS="$ac_save_ifs"
 
2196
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
2197
  ;;
 
2198
esac
 
2199
fi
 
2200
 
 
2201
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2202
if test -n "$MAGIC_CMD"; then
 
2203
  echo "$ac_t""$MAGIC_CMD" 1>&6
 
2204
else
 
2205
  echo "$ac_t""no" 1>&6
 
2206
fi
 
2207
 
 
2208
  else
 
2209
    MAGIC_CMD=:
 
2210
  fi
 
2211
fi
 
2212
 
 
2213
  fi
 
2214
  ;;
 
2215
esac
 
2216
 
 
2217
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
2218
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
2219
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2220
echo "configure:2221: checking for $ac_word" >&5
 
2221
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
2222
  echo $ac_n "(cached) $ac_c" 1>&6
 
2223
else
 
2224
  if test -n "$RANLIB"; then
 
2225
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
2226
else
 
2227
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2228
  ac_dummy="$PATH"
 
2229
  for ac_dir in $ac_dummy; do
 
2230
    test -z "$ac_dir" && ac_dir=.
 
2231
    if test -f $ac_dir/$ac_word; then
 
2232
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
2233
      break
 
2234
    fi
 
2235
  done
 
2236
  IFS="$ac_save_ifs"
 
2237
fi
 
2238
fi
 
2239
RANLIB="$ac_cv_prog_RANLIB"
 
2240
if test -n "$RANLIB"; then
 
2241
  echo "$ac_t""$RANLIB" 1>&6
 
2242
else
 
2243
  echo "$ac_t""no" 1>&6
 
2244
fi
 
2245
 
 
2246
 
 
2247
if test -z "$ac_cv_prog_RANLIB"; then
 
2248
if test -n "$ac_tool_prefix"; then
 
2249
  # Extract the first word of "ranlib", so it can be a program name with args.
 
2250
set dummy ranlib; ac_word=$2
 
2251
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2252
echo "configure:2253: checking for $ac_word" >&5
 
2253
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
2254
  echo $ac_n "(cached) $ac_c" 1>&6
 
2255
else
 
2256
  if test -n "$RANLIB"; then
 
2257
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
2258
else
 
2259
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2260
  ac_dummy="$PATH"
 
2261
  for ac_dir in $ac_dummy; do
 
2262
    test -z "$ac_dir" && ac_dir=.
 
2263
    if test -f $ac_dir/$ac_word; then
 
2264
      ac_cv_prog_RANLIB="ranlib"
 
2265
      break
 
2266
    fi
 
2267
  done
 
2268
  IFS="$ac_save_ifs"
 
2269
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
2270
fi
 
2271
fi
 
2272
RANLIB="$ac_cv_prog_RANLIB"
 
2273
if test -n "$RANLIB"; then
 
2274
  echo "$ac_t""$RANLIB" 1>&6
 
2275
else
 
2276
  echo "$ac_t""no" 1>&6
 
2277
fi
 
2278
 
 
2279
else
 
2280
  RANLIB=":"
 
2281
fi
 
2282
fi
 
2283
 
 
2284
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2285
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2286
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2287
echo "configure:2288: checking for $ac_word" >&5
 
2288
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 
2289
  echo $ac_n "(cached) $ac_c" 1>&6
 
2290
else
 
2291
  if test -n "$STRIP"; then
 
2292
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2293
else
 
2294
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2295
  ac_dummy="$PATH"
 
2296
  for ac_dir in $ac_dummy; do
 
2297
    test -z "$ac_dir" && ac_dir=.
 
2298
    if test -f $ac_dir/$ac_word; then
 
2299
      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2300
      break
 
2301
    fi
 
2302
  done
 
2303
  IFS="$ac_save_ifs"
 
2304
fi
 
2305
fi
 
2306
STRIP="$ac_cv_prog_STRIP"
 
2307
if test -n "$STRIP"; then
 
2308
  echo "$ac_t""$STRIP" 1>&6
 
2309
else
 
2310
  echo "$ac_t""no" 1>&6
 
2311
fi
 
2312
 
 
2313
 
 
2314
if test -z "$ac_cv_prog_STRIP"; then
 
2315
if test -n "$ac_tool_prefix"; then
 
2316
  # Extract the first word of "strip", so it can be a program name with args.
 
2317
set dummy strip; ac_word=$2
 
2318
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2319
echo "configure:2320: checking for $ac_word" >&5
 
2320
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 
2321
  echo $ac_n "(cached) $ac_c" 1>&6
 
2322
else
 
2323
  if test -n "$STRIP"; then
 
2324
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2325
else
 
2326
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2327
  ac_dummy="$PATH"
 
2328
  for ac_dir in $ac_dummy; do
 
2329
    test -z "$ac_dir" && ac_dir=.
 
2330
    if test -f $ac_dir/$ac_word; then
 
2331
      ac_cv_prog_STRIP="strip"
 
2332
      break
 
2333
    fi
 
2334
  done
 
2335
  IFS="$ac_save_ifs"
 
2336
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
 
2337
fi
 
2338
fi
 
2339
STRIP="$ac_cv_prog_STRIP"
 
2340
if test -n "$STRIP"; then
 
2341
  echo "$ac_t""$STRIP" 1>&6
 
2342
else
 
2343
  echo "$ac_t""no" 1>&6
 
2344
fi
 
2345
 
 
2346
else
 
2347
  STRIP=":"
 
2348
fi
 
2349
fi
 
2350
 
 
2351
 
 
2352
enable_dlopen=no
 
2353
enable_win32_dll=no
 
2354
 
 
2355
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
2356
if test "${enable_libtool_lock+set}" = set; then
 
2357
  enableval="$enable_libtool_lock"
 
2358
  :
 
2359
fi
 
2360
 
 
2361
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
2362
 
 
2363
# Some flags need to be propagated to the compiler or linker for good
 
2364
# libtool support.
 
2365
case $host in
 
2366
*-*-irix6*)
 
2367
  # Find out which ABI we are using.
 
2368
  echo '#line 2369 "configure"' > conftest.$ac_ext
 
2369
  if { (eval echo configure:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2370
    case `/usr/bin/file conftest.$ac_objext` in
 
2371
    *32-bit*)
 
2372
      LD="${LD-ld} -32"
 
2373
      ;;
 
2374
    *N32*)
 
2375
      LD="${LD-ld} -n32"
 
2376
      ;;
 
2377
    *64-bit*)
 
2378
      LD="${LD-ld} -64"
 
2379
      ;;
 
2380
    esac
 
2381
  fi
 
2382
  rm -rf conftest*
 
2383
  ;;
 
2384
 
 
2385
*-*-sco3.2v5*)
 
2386
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
2387
  SAVE_CFLAGS="$CFLAGS"
 
2388
  CFLAGS="$CFLAGS -belf"
 
2389
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 
2390
echo "configure:2391: checking whether the C compiler needs -belf" >&5
 
2391
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
 
2392
  echo $ac_n "(cached) $ac_c" 1>&6
 
2393
else
 
2394
  
 
2395
     ac_ext=c
 
2396
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
2397
ac_cpp='$CPP $CPPFLAGS'
 
2398
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
2399
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
2400
cross_compiling=$ac_cv_prog_cc_cross
 
2401
 
 
2402
     cat > conftest.$ac_ext <<EOF
 
2403
#line 2404 "configure"
 
2404
#include "confdefs.h"
 
2405
 
 
2406
int main() {
 
2407
 
 
2408
; return 0; }
 
2409
EOF
 
2410
if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2411
  rm -rf conftest*
 
2412
  lt_cv_cc_needs_belf=yes
 
2413
else
 
2414
  echo "configure: failed program was:" >&5
 
2415
  cat conftest.$ac_ext >&5
 
2416
  rm -rf conftest*
 
2417
  lt_cv_cc_needs_belf=no
 
2418
fi
 
2419
rm -f conftest*
 
2420
     ac_ext=c
 
2421
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
2422
ac_cpp='$CPP $CPPFLAGS'
 
2423
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
2424
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
2425
cross_compiling=$ac_cv_prog_cc_cross
 
2426
 
 
2427
fi
 
2428
 
 
2429
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 
2430
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
2431
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
2432
    CFLAGS="$SAVE_CFLAGS"
 
2433
  fi
 
2434
  ;;
 
2435
 
 
2436
 
 
2437
esac
 
2438
 
 
2439
# Sed substitution that helps us do robust quoting.  It backslashifies
 
2440
# metacharacters that are still active within double-quoted strings.
 
2441
Xsed='sed -e s/^X//'
 
2442
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
2443
 
 
2444
# Same as above, but do not quote variable references.
 
2445
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
2446
 
 
2447
# Sed substitution to delay expansion of an escaped shell variable in a
 
2448
# double_quote_subst'ed string.
 
2449
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
2450
 
 
2451
# Constants:
 
2452
rm="rm -f"
 
2453
 
 
2454
# Global variables:
 
2455
default_ofile=libtool
 
2456
can_build_shared=yes
 
2457
 
 
2458
# All known linkers require a `.a' archive for static linking (except M$VC,
 
2459
# which needs '.lib').
 
2460
libext=a
 
2461
ltmain="$ac_aux_dir/ltmain.sh"
 
2462
ofile="$default_ofile"
 
2463
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
2464
need_locks="$enable_libtool_lock"
 
2465
 
 
2466
old_CC="$CC"
 
2467
old_CFLAGS="$CFLAGS"
 
2468
 
 
2469
# Set sane defaults for various variables
 
2470
test -z "$AR" && AR=ar
 
2471
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2472
test -z "$AS" && AS=as
 
2473
test -z "$CC" && CC=cc
 
2474
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
2475
test -z "$LD" && LD=ld
 
2476
test -z "$LN_S" && LN_S="ln -s"
 
2477
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
2478
test -z "$NM" && NM=nm
 
2479
test -z "$OBJDUMP" && OBJDUMP=objdump
 
2480
test -z "$RANLIB" && RANLIB=:
 
2481
test -z "$STRIP" && STRIP=:
 
2482
test -z "$ac_objext" && ac_objext=o
 
2483
 
 
2484
if test x"$host" != x"$build"; then
 
2485
  ac_tool_prefix=${host_alias}-
 
2486
else
 
2487
  ac_tool_prefix=
 
2488
fi
 
2489
 
 
2490
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
2491
case $host_os in
 
2492
linux-gnu*) ;;
 
2493
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
2494
esac
 
2495
 
 
2496
case $host_os in
 
2497
aix3*)
 
2498
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
2499
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
2500
  # vanish in a puff of smoke.
 
2501
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
2502
    COLLECT_NAMES=
 
2503
    export COLLECT_NAMES
 
2504
  fi
 
2505
  ;;
 
2506
esac
 
2507
 
 
2508
# Determine commands to create old-style static archives.
 
2509
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
2510
old_postinstall_cmds='chmod 644 $oldlib'
 
2511
old_postuninstall_cmds=
 
2512
 
 
2513
if test -n "$RANLIB"; then
 
2514
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2515
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
2516
fi
 
2517
 
 
2518
# Allow CC to be a program name with arguments.
 
2519
set dummy $CC
 
2520
compiler="$2"
 
2521
 
 
2522
echo $ac_n "checking for objdir""... $ac_c" 1>&6
 
2523
echo "configure:2524: checking for objdir" >&5
 
2524
rm -f .libs 2>/dev/null
 
2525
mkdir .libs 2>/dev/null
 
2526
if test -d .libs; then
 
2527
  objdir=.libs
 
2528
else
 
2529
  # MS-DOS does not allow filenames that begin with a dot.
 
2530
  objdir=_libs
 
2531
fi
 
2532
rmdir .libs 2>/dev/null
 
2533
echo "$ac_t""$objdir" 1>&6
 
2534
 
 
2535
 
 
2536
# Check whether --with-pic or --without-pic was given.
 
2537
if test "${with_pic+set}" = set; then
 
2538
  withval="$with_pic"
 
2539
  pic_mode="$withval"
 
2540
else
 
2541
  pic_mode=default
 
2542
fi
 
2543
 
 
2544
test -z "$pic_mode" && pic_mode=default
 
2545
 
 
2546
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
2547
# in isolation, and that seeing it set (from the cache) indicates that
 
2548
# the associated values are set (in the cache) correctly too.
 
2549
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
 
2550
echo "configure:2551: checking for $compiler option to produce PIC" >&5
 
2551
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
 
2552
  echo $ac_n "(cached) $ac_c" 1>&6
 
2553
else
 
2554
   lt_cv_prog_cc_pic=
 
2555
  lt_cv_prog_cc_shlib=
 
2556
  lt_cv_prog_cc_wl=
 
2557
  lt_cv_prog_cc_static=
 
2558
  lt_cv_prog_cc_no_builtin=
 
2559
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
2560
 
 
2561
  if test "$GCC" = yes; then
 
2562
    lt_cv_prog_cc_wl='-Wl,'
 
2563
    lt_cv_prog_cc_static='-static'
 
2564
 
 
2565
    case $host_os in
 
2566
    aix*)
 
2567
      # Below there is a dirty hack to force normal static linking with -ldl
 
2568
      # The problem is because libdl dynamically linked with both libc and
 
2569
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
2570
      # list by gcc. This cause undefined symbols with -static flags.
 
2571
      # This hack allows C programs to be linked with "-static -ldl", but
 
2572
      # we not sure about C++ programs.
 
2573
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
2574
      ;;
 
2575
    amigaos*)
 
2576
      # FIXME: we need at least 68020 code to build shared libraries, but
 
2577
      # adding the `-m68020' flag to GCC prevents building anything better,
 
2578
      # like `-m68040'.
 
2579
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
2580
      ;;
 
2581
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
2582
      # PIC is the default for these OSes.
 
2583
      ;;
 
2584
    darwin* | rhapsody*)
 
2585
      # PIC is the default on this platform
 
2586
      # Common symbols not allowed in MH_DYLIB files
 
2587
      lt_cv_prog_cc_pic='-fno-common'
 
2588
      ;;
 
2589
    cygwin* | mingw* | pw32* | os2*)
 
2590
      # This hack is so that the source file can tell whether it is being
 
2591
      # built for inclusion in a dll (and should export symbols for example).
 
2592
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
2593
      ;;
 
2594
    sysv4*MP*)
 
2595
      if test -d /usr/nec; then
 
2596
         lt_cv_prog_cc_pic=-Kconform_pic
 
2597
      fi
 
2598
      ;;
 
2599
    *)
 
2600
      lt_cv_prog_cc_pic='-fPIC'
 
2601
      ;;
 
2602
    esac
 
2603
  else
 
2604
    # PORTME Check for PIC flags for the system compiler.
 
2605
    case $host_os in
 
2606
    aix3* | aix4* | aix5*)
 
2607
      # All AIX code is PIC.
 
2608
      if test "$host_cpu" = ia64; then
 
2609
        # AIX 5 now supports IA64 processor
 
2610
        lt_cv_prog_cc_static='-Bstatic'
 
2611
        lt_cv_prog_cc_wl='-Wl,'
 
2612
      else
 
2613
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
2614
      fi
 
2615
      ;;
 
2616
 
 
2617
    hpux9* | hpux10* | hpux11*)
 
2618
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
2619
      lt_cv_prog_cc_wl='-Wl,'
 
2620
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
2621
      lt_cv_prog_cc_pic='+Z'
 
2622
      ;;
 
2623
 
 
2624
    irix5* | irix6*)
 
2625
      lt_cv_prog_cc_wl='-Wl,'
 
2626
      lt_cv_prog_cc_static='-non_shared'
 
2627
      # PIC (with -KPIC) is the default.
 
2628
      ;;
 
2629
 
 
2630
    cygwin* | mingw* | pw32* | os2*)
 
2631
      # This hack is so that the source file can tell whether it is being
 
2632
      # built for inclusion in a dll (and should export symbols for example).
 
2633
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
2634
      ;;
 
2635
 
 
2636
    newsos6)
 
2637
      lt_cv_prog_cc_pic='-KPIC'
 
2638
      lt_cv_prog_cc_static='-Bstatic'
 
2639
      ;;
 
2640
 
 
2641
    osf3* | osf4* | osf5*)
 
2642
      # All OSF/1 code is PIC.
 
2643
      lt_cv_prog_cc_wl='-Wl,'
 
2644
      lt_cv_prog_cc_static='-non_shared'
 
2645
      ;;
 
2646
 
 
2647
    sco3.2v5*)
 
2648
      lt_cv_prog_cc_pic='-Kpic'
 
2649
      lt_cv_prog_cc_static='-dn'
 
2650
      lt_cv_prog_cc_shlib='-belf'
 
2651
      ;;
 
2652
 
 
2653
    solaris*)
 
2654
      lt_cv_prog_cc_pic='-KPIC'
 
2655
      lt_cv_prog_cc_static='-Bstatic'
 
2656
      lt_cv_prog_cc_wl='-Wl,'
 
2657
      ;;
 
2658
 
 
2659
    sunos4*)
 
2660
      lt_cv_prog_cc_pic='-PIC'
 
2661
      lt_cv_prog_cc_static='-Bstatic'
 
2662
      lt_cv_prog_cc_wl='-Qoption ld '
 
2663
      ;;
 
2664
 
 
2665
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2666
      lt_cv_prog_cc_pic='-KPIC'
 
2667
      lt_cv_prog_cc_static='-Bstatic'
 
2668
      if test "x$host_vendor" = xsni; then
 
2669
        lt_cv_prog_cc_wl='-LD'
 
2670
      else
 
2671
        lt_cv_prog_cc_wl='-Wl,'
 
2672
      fi
 
2673
      ;;
 
2674
 
 
2675
    uts4*)
 
2676
      lt_cv_prog_cc_pic='-pic'
 
2677
      lt_cv_prog_cc_static='-Bstatic'
 
2678
      ;;
 
2679
 
 
2680
    sysv4*MP*)
 
2681
      if test -d /usr/nec ;then
 
2682
        lt_cv_prog_cc_pic='-Kconform_pic'
 
2683
        lt_cv_prog_cc_static='-Bstatic'
 
2684
      fi
 
2685
      ;;
 
2686
 
 
2687
    *)
 
2688
      lt_cv_prog_cc_can_build_shared=no
 
2689
      ;;
 
2690
    esac
 
2691
  fi
 
2692
 
 
2693
fi
 
2694
 
 
2695
if test -z "$lt_cv_prog_cc_pic"; then
 
2696
  echo "$ac_t""none" 1>&6
 
2697
else
 
2698
  echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
 
2699
 
 
2700
  # Check to make sure the pic_flag actually works.
 
2701
  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
 
2702
echo "configure:2703: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
2703
  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
 
2704
  echo $ac_n "(cached) $ac_c" 1>&6
 
2705
else
 
2706
      save_CFLAGS="$CFLAGS"
 
2707
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
2708
    cat > conftest.$ac_ext <<EOF
 
2709
#line 2710 "configure"
 
2710
#include "confdefs.h"
 
2711
 
 
2712
int main() {
 
2713
 
 
2714
; return 0; }
 
2715
EOF
 
2716
if { (eval echo configure:2717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2717
  rm -rf conftest*
 
2718
        case $host_os in
 
2719
      hpux9* | hpux10* | hpux11*)
 
2720
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
2721
        # they create non-PIC objects.  So, if there were any warnings, we
 
2722
        # assume that PIC is not supported.
 
2723
        if test -s conftest.err; then
 
2724
          lt_cv_prog_cc_pic_works=no
 
2725
        else
 
2726
          lt_cv_prog_cc_pic_works=yes
 
2727
        fi
 
2728
        ;;
 
2729
      *)
 
2730
        lt_cv_prog_cc_pic_works=yes
 
2731
        ;;
 
2732
      esac
 
2733
    
 
2734
else
 
2735
  echo "configure: failed program was:" >&5
 
2736
  cat conftest.$ac_ext >&5
 
2737
  rm -rf conftest*
 
2738
        lt_cv_prog_cc_pic_works=no
 
2739
    
 
2740
fi
 
2741
rm -f conftest*
 
2742
    CFLAGS="$save_CFLAGS"
 
2743
  
 
2744
fi
 
2745
 
 
2746
 
 
2747
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
2748
    lt_cv_prog_cc_pic=
 
2749
    lt_cv_prog_cc_can_build_shared=no
 
2750
  else
 
2751
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
2752
  fi
 
2753
 
 
2754
  echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
 
2755
fi
 
2756
 
 
2757
# Check for any special shared library compilation flags.
 
2758
if test -n "$lt_cv_prog_cc_shlib"; then
 
2759
  echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
 
2760
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
2761
  else
 
2762
   echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
 
2763
    lt_cv_prog_cc_can_build_shared=no
 
2764
  fi
 
2765
fi
 
2766
 
 
2767
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
 
2768
echo "configure:2769: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
2769
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
 
2770
  echo $ac_n "(cached) $ac_c" 1>&6
 
2771
else
 
2772
    lt_cv_prog_cc_static_works=no
 
2773
  save_LDFLAGS="$LDFLAGS"
 
2774
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
2775
  cat > conftest.$ac_ext <<EOF
 
2776
#line 2777 "configure"
 
2777
#include "confdefs.h"
 
2778
 
 
2779
int main() {
 
2780
 
 
2781
; return 0; }
 
2782
EOF
 
2783
if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2784
  rm -rf conftest*
 
2785
  lt_cv_prog_cc_static_works=yes
 
2786
else
 
2787
  echo "configure: failed program was:" >&5
 
2788
  cat conftest.$ac_ext >&5
 
2789
fi
 
2790
rm -f conftest*
 
2791
  LDFLAGS="$save_LDFLAGS"
 
2792
 
 
2793
fi
 
2794
 
 
2795
 
 
2796
# Belt *and* braces to stop my trousers falling down:
 
2797
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
2798
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
 
2799
 
 
2800
pic_flag="$lt_cv_prog_cc_pic"
 
2801
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
2802
wl="$lt_cv_prog_cc_wl"
 
2803
link_static_flag="$lt_cv_prog_cc_static"
 
2804
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
2805
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
2806
 
 
2807
 
 
2808
# Check to see if options -o and -c are simultaneously supported by compiler
 
2809
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
 
2810
echo "configure:2811: checking if $compiler supports -c -o file.$ac_objext" >&5
 
2811
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
 
2812
  echo $ac_n "(cached) $ac_c" 1>&6
 
2813
else
 
2814
  
 
2815
$rm -r conftest 2>/dev/null
 
2816
mkdir conftest
 
2817
cd conftest
 
2818
echo "int some_variable = 0;" > conftest.$ac_ext
 
2819
mkdir out
 
2820
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
2821
# that will create temporary files in the current directory regardless of
 
2822
# the output directory.  Thus, making CWD read-only will cause this test
 
2823
# to fail, enabling locking or at least warning the user not to do parallel
 
2824
# builds.
 
2825
chmod -w .
 
2826
save_CFLAGS="$CFLAGS"
 
2827
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
2828
compiler_c_o=no
 
2829
if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
2830
  # The compiler can only warn and ignore the option if not recognized
 
2831
  # So say no if there are warnings
 
2832
  if test -s out/conftest.err; then
 
2833
    lt_cv_compiler_c_o=no
 
2834
  else
 
2835
    lt_cv_compiler_c_o=yes
 
2836
  fi
 
2837
else
 
2838
  # Append any errors to the config.log.
 
2839
  cat out/conftest.err 1>&5
 
2840
  lt_cv_compiler_c_o=no
 
2841
fi
 
2842
CFLAGS="$save_CFLAGS"
 
2843
chmod u+w .
 
2844
$rm conftest* out/*
 
2845
rmdir out
 
2846
cd ..
 
2847
rmdir conftest
 
2848
$rm -r conftest 2>/dev/null
 
2849
 
 
2850
fi
 
2851
 
 
2852
compiler_c_o=$lt_cv_compiler_c_o
 
2853
echo "$ac_t""$compiler_c_o" 1>&6
 
2854
 
 
2855
if test x"$compiler_c_o" = x"yes"; then
 
2856
  # Check to see if we can write to a .lo
 
2857
  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
 
2858
echo "configure:2859: checking if $compiler supports -c -o file.lo" >&5
 
2859
  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
 
2860
  echo $ac_n "(cached) $ac_c" 1>&6
 
2861
else
 
2862
  
 
2863
  lt_cv_compiler_o_lo=no
 
2864
  save_CFLAGS="$CFLAGS"
 
2865
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
2866
  cat > conftest.$ac_ext <<EOF
 
2867
#line 2868 "configure"
 
2868
#include "confdefs.h"
 
2869
 
 
2870
int main() {
 
2871
int some_variable = 0;
 
2872
; return 0; }
 
2873
EOF
 
2874
if { (eval echo configure:2875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2875
  rm -rf conftest*
 
2876
      # The compiler can only warn and ignore the option if not recognized
 
2877
    # So say no if there are warnings
 
2878
    if test -s conftest.err; then
 
2879
      lt_cv_compiler_o_lo=no
 
2880
    else
 
2881
      lt_cv_compiler_o_lo=yes
 
2882
    fi
 
2883
  
 
2884
else
 
2885
  echo "configure: failed program was:" >&5
 
2886
  cat conftest.$ac_ext >&5
 
2887
fi
 
2888
rm -f conftest*
 
2889
  CFLAGS="$save_CFLAGS"
 
2890
  
 
2891
fi
 
2892
 
 
2893
  compiler_o_lo=$lt_cv_compiler_o_lo
 
2894
  echo "$ac_t""$compiler_o_lo" 1>&6
 
2895
else
 
2896
  compiler_o_lo=no
 
2897
fi
 
2898
 
 
2899
# Check to see if we can do hard links to lock some files if needed
 
2900
hard_links="nottested"
 
2901
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
2902
  # do not overwrite the value of need_locks provided by the user
 
2903
  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
 
2904
echo "configure:2905: checking if we can lock with hard links" >&5
 
2905
  hard_links=yes
 
2906
  $rm conftest*
 
2907
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
2908
  touch conftest.a
 
2909
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
2910
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
2911
  echo "$ac_t""$hard_links" 1>&6
 
2912
  if test "$hard_links" = no; then
 
2913
    echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
 
2914
    need_locks=warn
 
2915
  fi
 
2916
else
 
2917
  need_locks=no
 
2918
fi
 
2919
 
 
2920
if test "$GCC" = yes; then
 
2921
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
2922
  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
 
2923
echo "configure:2924: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
2924
  echo "int some_variable = 0;" > conftest.$ac_ext
 
2925
  save_CFLAGS="$CFLAGS"
 
2926
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
2927
  compiler_rtti_exceptions=no
 
2928
  cat > conftest.$ac_ext <<EOF
 
2929
#line 2930 "configure"
 
2930
#include "confdefs.h"
 
2931
 
 
2932
int main() {
 
2933
int some_variable = 0;
 
2934
; return 0; }
 
2935
EOF
 
2936
if { (eval echo configure:2937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2937
  rm -rf conftest*
 
2938
      # The compiler can only warn and ignore the option if not recognized
 
2939
    # So say no if there are warnings
 
2940
    if test -s conftest.err; then
 
2941
      compiler_rtti_exceptions=no
 
2942
    else
 
2943
      compiler_rtti_exceptions=yes
 
2944
    fi
 
2945
  
 
2946
else
 
2947
  echo "configure: failed program was:" >&5
 
2948
  cat conftest.$ac_ext >&5
 
2949
fi
 
2950
rm -f conftest*
 
2951
  CFLAGS="$save_CFLAGS"
 
2952
  echo "$ac_t""$compiler_rtti_exceptions" 1>&6
 
2953
 
 
2954
  if test "$compiler_rtti_exceptions" = "yes"; then
 
2955
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
2956
  else
 
2957
    no_builtin_flag=' -fno-builtin'
 
2958
  fi
 
2959
fi
 
2960
 
 
2961
# See if the linker supports building shared libraries.
 
2962
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
 
2963
echo "configure:2964: checking whether the linker ($LD) supports shared libraries" >&5
 
2964
 
 
2965
allow_undefined_flag=
 
2966
no_undefined_flag=
 
2967
need_lib_prefix=unknown
 
2968
need_version=unknown
 
2969
# when you set need_version to no, make sure it does not cause -set_version
 
2970
# flags to be left without arguments
 
2971
archive_cmds=
 
2972
archive_expsym_cmds=
 
2973
old_archive_from_new_cmds=
 
2974
old_archive_from_expsyms_cmds=
 
2975
export_dynamic_flag_spec=
 
2976
whole_archive_flag_spec=
 
2977
thread_safe_flag_spec=
 
2978
hardcode_into_libs=no
 
2979
hardcode_libdir_flag_spec=
 
2980
hardcode_libdir_separator=
 
2981
hardcode_direct=no
 
2982
hardcode_minus_L=no
 
2983
hardcode_shlibpath_var=unsupported
 
2984
runpath_var=
 
2985
link_all_deplibs=unknown
 
2986
always_export_symbols=no
 
2987
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
2988
# include_expsyms should be a list of space-separated symbols to be *always*
 
2989
# included in the symbol list
 
2990
include_expsyms=
 
2991
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
2992
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
2993
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
2994
# as well as any symbol that contains `d'.
 
2995
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
2996
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
2997
# platforms (ab)use it in PIC code, but their linkers get confused if
 
2998
# the symbol is explicitly referenced.  Since portable code cannot
 
2999
# rely on this symbol name, it's probably fine to never include it in
 
3000
# preloaded symbol tables.
 
3001
extract_expsyms_cmds=
 
3002
 
 
3003
case $host_os in
 
3004
cygwin* | mingw* | pw32* )
 
3005
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
3006
  # When not using gcc, we currently assume that we are using
 
3007
  # Microsoft Visual C++.
 
3008
  if test "$GCC" != yes; then
 
3009
    with_gnu_ld=no
 
3010
  fi
 
3011
  ;;
 
3012
 
 
3013
esac
 
3014
 
 
3015
ld_shlibs=yes
 
3016
if test "$with_gnu_ld" = yes; then
 
3017
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
3018
  wlarc='${wl}'
 
3019
 
 
3020
  # See if GNU ld supports shared libraries.
 
3021
  case $host_os in
 
3022
  aix3* | aix4* | aix5*)
 
3023
    # On AIX, the GNU linker is very broken
 
3024
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
3025
    ld_shlibs=no
 
3026
    cat <<EOF 1>&2
 
3027
 
 
3028
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
3029
*** to be unable to reliably create shared libraries on AIX.
 
3030
*** Therefore, libtool is disabling shared libraries support.  If you
 
3031
*** really care for shared libraries, you may want to modify your PATH
 
3032
*** so that a non-GNU linker is found, and then restart.
 
3033
 
 
3034
EOF
 
3035
    ;;
 
3036
 
 
3037
  amigaos*)
 
3038
    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)'
 
3039
    hardcode_libdir_flag_spec='-L$libdir'
 
3040
    hardcode_minus_L=yes
 
3041
 
 
3042
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
3043
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
3044
    # to version 4, is to share data among multiple programs linked
 
3045
    # with the same dynamic library.  Since this doesn't match the
 
3046
    # behavior of shared libraries on other platforms, we can use
 
3047
    # them.
 
3048
    ld_shlibs=no
 
3049
    ;;
 
3050
 
 
3051
  beos*)
 
3052
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
3053
      allow_undefined_flag=unsupported
 
3054
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3055
      # support --undefined.  This deserves some investigation.  FIXME
 
3056
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3057
    else
 
3058
      ld_shlibs=no
 
3059
    fi
 
3060
    ;;
 
3061
 
 
3062
  cygwin* | mingw* | pw32*)
 
3063
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
3064
    # no search path for DLLs.
 
3065
    hardcode_libdir_flag_spec='-L$libdir'
 
3066
    allow_undefined_flag=unsupported
 
3067
    always_export_symbols=yes
 
3068
 
 
3069
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
3070
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
3071
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
3072
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
3073
      else $CC -o impgen impgen.c ; fi)~
 
3074
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
3075
 
 
3076
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
3077
 
 
3078
    # cygwin and mingw dlls have different entry points and sets of symbols
 
3079
    # to exclude.
 
3080
    # FIXME: what about values for MSVC?
 
3081
    dll_entry=__cygwin_dll_entry@12
 
3082
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
3083
    case $host_os in
 
3084
    mingw*)
 
3085
      # mingw values
 
3086
      dll_entry=_DllMainCRTStartup@12
 
3087
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
3088
      ;;
 
3089
    esac
 
3090
 
 
3091
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
3092
    # of the two symbol sets.
 
3093
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
3094
 
 
3095
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
3096
    # can override, but on older systems we have to supply one (in ltdll.c)
 
3097
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
3098
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
3099
      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~
 
3100
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
3101
    else
 
3102
      ltdll_obj=
 
3103
      ltdll_cmds=
 
3104
    fi
 
3105
 
 
3106
    # Extract the symbol export list from an `--export-all' def file,
 
3107
    # then regenerate the def file from the symbol export list, so that
 
3108
    # the compiled dll only exports the symbol export list.
 
3109
    # Be careful not to strip the DATA tag left be newer dlltools.
 
3110
    export_symbols_cmds="$ltdll_cmds"'
 
3111
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
3112
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
3113
 
 
3114
    # If the export-symbols file already is a .def file (1st line
 
3115
    # is EXPORTS), use it as is.
 
3116
    # If DATA tags from a recent dlltool are present, honour them!
 
3117
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 
3118
        cp $export_symbols $output_objdir/$soname-def;
 
3119
      else
 
3120
        echo EXPORTS > $output_objdir/$soname-def;
 
3121
        _lt_hint=1;
 
3122
        cat $export_symbols | while read symbol; do
 
3123
         set dummy \$symbol;
 
3124
         case \$# in
 
3125
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
3126
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
3127
         esac;
 
3128
         _lt_hint=`expr 1 + \$_lt_hint`;
 
3129
        done;
 
3130
      fi~
 
3131
      '"$ltdll_cmds"'
 
3132
      $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~
 
3133
      $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~
 
3134
      $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~
 
3135
      $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~
 
3136
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
3137
    ;;
 
3138
 
 
3139
  netbsd*)
 
3140
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3141
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
3142
      wlarc=
 
3143
    else
 
3144
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3145
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3146
    fi
 
3147
    ;;
 
3148
 
 
3149
  solaris* | sysv5*)
 
3150
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
3151
      ld_shlibs=no
 
3152
      cat <<EOF 1>&2
 
3153
 
 
3154
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
3155
*** create shared libraries on Solaris systems.  Therefore, libtool
 
3156
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
3157
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
3158
*** your PATH or compiler configuration so that the native linker is
 
3159
*** used, and then restart.
 
3160
 
 
3161
EOF
 
3162
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
3163
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3164
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3165
    else
 
3166
      ld_shlibs=no
 
3167
    fi
 
3168
    ;;
 
3169
 
 
3170
  sunos4*)
 
3171
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
3172
    wlarc=
 
3173
    hardcode_direct=yes
 
3174
    hardcode_shlibpath_var=no
 
3175
    ;;
 
3176
 
 
3177
  *)
 
3178
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
3179
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3180
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3181
    else
 
3182
      ld_shlibs=no
 
3183
    fi
 
3184
    ;;
 
3185
  esac
 
3186
 
 
3187
  if test "$ld_shlibs" = yes; then
 
3188
    runpath_var=LD_RUN_PATH
 
3189
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
3190
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
3191
    case $host_os in
 
3192
    cygwin* | mingw* | pw32*)
 
3193
      # dlltool doesn't understand --whole-archive et. al.
 
3194
      whole_archive_flag_spec=
 
3195
      ;;
 
3196
    *)
 
3197
      # ancient GNU ld didn't support --whole-archive et. al.
 
3198
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
3199
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3200
      else
 
3201
        whole_archive_flag_spec=
 
3202
      fi
 
3203
      ;;
 
3204
    esac
 
3205
  fi
 
3206
else
 
3207
  # PORTME fill in a description of your system's linker (not GNU ld)
 
3208
  case $host_os in
 
3209
  aix3*)
 
3210
    allow_undefined_flag=unsupported
 
3211
    always_export_symbols=yes
 
3212
    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'
 
3213
    # Note: this linker hardcodes the directories in LIBPATH if there
 
3214
    # are no directories specified by -L.
 
3215
    hardcode_minus_L=yes
 
3216
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
3217
      # Neither direct hardcoding nor static linking is supported with a
 
3218
      # broken collect2.
 
3219
      hardcode_direct=unsupported
 
3220
    fi
 
3221
    ;;
 
3222
 
 
3223
  aix4* | aix5*)
 
3224
    # When large executables or shared objects are built, AIX ld can
 
3225
    # have problems creating the table of contents.  If linking a library
 
3226
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3227
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3228
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3229
 
 
3230
    archive_cmds=''
 
3231
    hardcode_libdir_separator=':'
 
3232
    if test "$GCC" = yes; then
 
3233
      collect2name=`${CC} -print-prog-name=collect2`
 
3234
      if test -f "$collect2name" && \
 
3235
         strings "$collect2name" | grep resolve_lib_name >/dev/null
 
3236
      then
 
3237
        # We have reworked collect2
 
3238
        hardcode_direct=yes
 
3239
      else
 
3240
        # We have old collect2
 
3241
        hardcode_direct=unsupported
 
3242
        # It fails to find uninstalled libraries when the uninstalled
 
3243
        # path is not listed in the libpath.  Setting hardcode_minus_L
 
3244
        # to unsupported forces relinking
 
3245
        hardcode_minus_L=yes
 
3246
        hardcode_libdir_flag_spec='-L$libdir'
 
3247
        hardcode_libdir_separator=
 
3248
      fi
 
3249
      shared_flag='-shared'
 
3250
    else
 
3251
      if test "$host_cpu" = ia64; then
 
3252
        shared_flag='-G'
 
3253
      else
 
3254
        shared_flag='${wl}-bM:SRE'
 
3255
      fi
 
3256
      hardcode_direct=yes
 
3257
    fi
 
3258
 
 
3259
    if test "$host_cpu" = ia64; then
 
3260
      # On IA64, the linker does run time linking by default, so we don't
 
3261
      # have to do anything special.
 
3262
      aix_use_runtimelinking=no
 
3263
      exp_sym_flag='-Bexport'
 
3264
      no_entry_flag=""
 
3265
    else
 
3266
      # Test if we are trying to use run time linking, or normal AIX style linking.
 
3267
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
 
3268
      aix_use_runtimelinking=no
 
3269
      for ld_flag in $LDFLAGS; do
 
3270
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
 
3271
          aix_use_runtimelinking=yes
 
3272
          break
 
3273
        fi
 
3274
      done
 
3275
      exp_sym_flag='-bexport'
 
3276
      no_entry_flag='-bnoentry'
 
3277
    fi
 
3278
    # It seems that -bexpall can do strange things, so it is better to
 
3279
    # generate a list of symbols to export.
 
3280
    always_export_symbols=yes
 
3281
    if test "$aix_use_runtimelinking" = yes; then
 
3282
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
3283
      allow_undefined_flag=' -Wl,-G'
 
3284
      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"
 
3285
    else
 
3286
      if test "$host_cpu" = ia64; then
 
3287
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
3288
       allow_undefined_flag="-znodefs"
 
3289
        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"
 
3290
      else
 
3291
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
3292
        # Warning - without using the other run time loading flags, -berok will
 
3293
        #           link without error, but may produce a broken library.
 
3294
        allow_undefined_flag='${wl}-berok'
 
3295
        # This is a bit strange, but is similar to how AIX traditionally builds
 
3296
        # it's shared libraries.
 
3297
        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'
 
3298
      fi
 
3299
    fi
 
3300
    ;;
 
3301
 
 
3302
  amigaos*)
 
3303
    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)'
 
3304
    hardcode_libdir_flag_spec='-L$libdir'
 
3305
    hardcode_minus_L=yes
 
3306
    # see comment about different semantics on the GNU ld section
 
3307
    ld_shlibs=no
 
3308
    ;;
 
3309
 
 
3310
  cygwin* | mingw* | pw32*)
 
3311
    # When not using gcc, we currently assume that we are using
 
3312
    # Microsoft Visual C++.
 
3313
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
3314
    # no search path for DLLs.
 
3315
    hardcode_libdir_flag_spec=' '
 
3316
    allow_undefined_flag=unsupported
 
3317
    # Tell ltmain to make .lib files, not .a files.
 
3318
    libext=lib
 
3319
    # FIXME: Setting linknames here is a bad hack.
 
3320
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
3321
    # The linker will automatically build a .lib file if we build a DLL.
 
3322
    old_archive_from_new_cmds='true'
 
3323
    # FIXME: Should let the user specify the lib program.
 
3324
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
3325
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
3326
    ;;
 
3327
 
 
3328
  darwin* | rhapsody*)
 
3329
    allow_undefined_flag='-undefined suppress'
 
3330
    # FIXME: Relying on posixy $() will cause problems for
 
3331
    #        cross-compilation, but unfortunately the echo tests do not
 
3332
    #        yet detect zsh echo's removal of \ escapes.
 
3333
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
 
3334
    # We need to add '_' to the symbols in $export_symbols first
 
3335
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
3336
    hardcode_direct=yes
 
3337
    hardcode_shlibpath_var=no
 
3338
    whole_archive_flag_spec='-all_load $convenience'
 
3339
    ;;
 
3340
 
 
3341
  freebsd1*)
 
3342
    ld_shlibs=no
 
3343
    ;;
 
3344
 
 
3345
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
3346
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
3347
  # does not break anything, and helps significantly (at the cost of a little
 
3348
  # extra space).
 
3349
  freebsd2.2*)
 
3350
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
3351
    hardcode_libdir_flag_spec='-R$libdir'
 
3352
    hardcode_direct=yes
 
3353
    hardcode_shlibpath_var=no
 
3354
    ;;
 
3355
 
 
3356
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
3357
  freebsd2*)
 
3358
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
3359
    hardcode_direct=yes
 
3360
    hardcode_minus_L=yes
 
3361
    hardcode_shlibpath_var=no
 
3362
    ;;
 
3363
 
 
3364
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
3365
  freebsd*)
 
3366
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
3367
    hardcode_libdir_flag_spec='-R$libdir'
 
3368
    hardcode_direct=yes
 
3369
    hardcode_shlibpath_var=no
 
3370
    ;;
 
3371
 
 
3372
  hpux9* | hpux10* | hpux11*)
 
3373
    case $host_os in
 
3374
    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' ;;
 
3375
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
3376
    esac
 
3377
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
3378
    hardcode_libdir_separator=:
 
3379
    hardcode_direct=yes
 
3380
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
3381
                         # location of the library.
 
3382
    export_dynamic_flag_spec='${wl}-E'
 
3383
    ;;
 
3384
 
 
3385
  irix5* | irix6*)
 
3386
    if test "$GCC" = yes; then
 
3387
      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'
 
3388
    else
 
3389
      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'
 
3390
    fi
 
3391
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
3392
    hardcode_libdir_separator=:
 
3393
    link_all_deplibs=yes
 
3394
    ;;
 
3395
 
 
3396
  netbsd*)
 
3397
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3398
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
3399
    else
 
3400
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
3401
    fi
 
3402
    hardcode_libdir_flag_spec='-R$libdir'
 
3403
    hardcode_direct=yes
 
3404
    hardcode_shlibpath_var=no
 
3405
    ;;
 
3406
 
 
3407
  newsos6)
 
3408
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 
3409
    hardcode_direct=yes
 
3410
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
3411
    hardcode_libdir_separator=:
 
3412
    hardcode_shlibpath_var=no
 
3413
    ;;
 
3414
 
 
3415
  openbsd*)
 
3416
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
3417
    hardcode_libdir_flag_spec='-R$libdir'
 
3418
    hardcode_direct=yes
 
3419
    hardcode_shlibpath_var=no
 
3420
    ;;
 
3421
 
 
3422
  os2*)
 
3423
    hardcode_libdir_flag_spec='-L$libdir'
 
3424
    hardcode_minus_L=yes
 
3425
    allow_undefined_flag=unsupported
 
3426
    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'
 
3427
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
3428
    ;;
 
3429
 
 
3430
  osf3*)
 
3431
    if test "$GCC" = yes; then
 
3432
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
3433
      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'
 
3434
    else
 
3435
      allow_undefined_flag=' -expect_unresolved \*'
 
3436
      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'
 
3437
    fi
 
3438
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
3439
    hardcode_libdir_separator=:
 
3440
    ;;
 
3441
 
 
3442
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
3443
    if test "$GCC" = yes; then
 
3444
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
3445
      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'
 
3446
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
3447
    else
 
3448
      allow_undefined_flag=' -expect_unresolved \*'
 
3449
      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'
 
3450
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
3451
      $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'
 
3452
 
 
3453
      #Both c and cxx compiler support -rpath directly
 
3454
      hardcode_libdir_flag_spec='-rpath $libdir'
 
3455
    fi
 
3456
    hardcode_libdir_separator=:
 
3457
    ;;
 
3458
 
 
3459
  sco3.2v5*)
 
3460
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3461
    hardcode_shlibpath_var=no
 
3462
    runpath_var=LD_RUN_PATH
 
3463
    hardcode_runpath_var=yes
 
3464
    ;;
 
3465
 
 
3466
  solaris*)
 
3467
    no_undefined_flag=' -z defs'
 
3468
    # $CC -shared without GNU ld will not create a library from C++
 
3469
    # object files and a static libstdc++, better avoid it by now
 
3470
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3471
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3472
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
3473
    hardcode_libdir_flag_spec='-R$libdir'
 
3474
    hardcode_shlibpath_var=no
 
3475
    case $host_os in
 
3476
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3477
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
3478
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
3479
    esac
 
3480
    link_all_deplibs=yes
 
3481
    ;;
 
3482
 
 
3483
  sunos4*)
 
3484
    if test "x$host_vendor" = xsequent; then
 
3485
      # Use $CC to link under sequent, because it throws in some extra .o
 
3486
      # files that make .init and .fini sections work.
 
3487
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
3488
    else
 
3489
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
3490
    fi
 
3491
    hardcode_libdir_flag_spec='-L$libdir'
 
3492
    hardcode_direct=yes
 
3493
    hardcode_minus_L=yes
 
3494
    hardcode_shlibpath_var=no
 
3495
    ;;
 
3496
 
 
3497
  sysv4)
 
3498
    if test "x$host_vendor" = xsno; then
 
3499
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
 
3500
      hardcode_direct=yes # is this really true???
 
3501
    else
 
3502
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3503
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
3504
    fi
 
3505
    runpath_var='LD_RUN_PATH'
 
3506
    hardcode_shlibpath_var=no
 
3507
    ;;
 
3508
 
 
3509
  sysv4.3*)
 
3510
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3511
    hardcode_shlibpath_var=no
 
3512
    export_dynamic_flag_spec='-Bexport'
 
3513
    ;;
 
3514
 
 
3515
  sysv5*)
 
3516
    no_undefined_flag=' -z text'
 
3517
    # $CC -shared without GNU ld will not create a library from C++
 
3518
    # object files and a static libstdc++, better avoid it by now
 
3519
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3520
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3521
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
3522
    hardcode_libdir_flag_spec=
 
3523
    hardcode_shlibpath_var=no
 
3524
    runpath_var='LD_RUN_PATH'
 
3525
    ;;
 
3526
 
 
3527
  uts4*)
 
3528
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3529
    hardcode_libdir_flag_spec='-L$libdir'
 
3530
    hardcode_shlibpath_var=no
 
3531
    ;;
 
3532
 
 
3533
  dgux*)
 
3534
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3535
    hardcode_libdir_flag_spec='-L$libdir'
 
3536
    hardcode_shlibpath_var=no
 
3537
    ;;
 
3538
 
 
3539
  sysv4*MP*)
 
3540
    if test -d /usr/nec; then
 
3541
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
3542
      hardcode_shlibpath_var=no
 
3543
      runpath_var=LD_RUN_PATH
 
3544
      hardcode_runpath_var=yes
 
3545
      ld_shlibs=yes
 
3546
    fi
 
3547
    ;;
 
3548
 
 
3549
  sysv4.2uw2*)
 
3550
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
3551
    hardcode_direct=yes
 
3552
    hardcode_minus_L=no
 
3553
    hardcode_shlibpath_var=no
 
3554
    hardcode_runpath_var=yes
 
3555
    runpath_var=LD_RUN_PATH
 
3556
    ;;
 
3557
 
 
3558
  sysv5uw7* | unixware7*)
 
3559
    no_undefined_flag='${wl}-z ${wl}text'
 
3560
    if test "$GCC" = yes; then
 
3561
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3562
    else
 
3563
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3564
    fi
 
3565
    runpath_var='LD_RUN_PATH'
 
3566
    hardcode_shlibpath_var=no
 
3567
    ;;
 
3568
 
 
3569
  *)
 
3570
    ld_shlibs=no
 
3571
    ;;
 
3572
  esac
 
3573
fi
 
3574
echo "$ac_t""$ld_shlibs" 1>&6
 
3575
test "$ld_shlibs" = no && can_build_shared=no
 
3576
 
 
3577
# Check hardcoding attributes.
 
3578
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
 
3579
echo "configure:3580: checking how to hardcode library paths into programs" >&5
 
3580
hardcode_action=
 
3581
if test -n "$hardcode_libdir_flag_spec" || \
 
3582
   test -n "$runpath_var"; then
 
3583
 
 
3584
  # We can hardcode non-existant directories.
 
3585
  if test "$hardcode_direct" != no &&
 
3586
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
3587
     # have to relink, otherwise we might link with an installed library
 
3588
     # when we should be linking with a yet-to-be-installed one
 
3589
     ## test "$hardcode_shlibpath_var" != no &&
 
3590
     test "$hardcode_minus_L" != no; then
 
3591
    # Linking always hardcodes the temporary library directory.
 
3592
    hardcode_action=relink
 
3593
  else
 
3594
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
3595
    hardcode_action=immediate
 
3596
  fi
 
3597
else
 
3598
  # We cannot hardcode anything, or else we can only hardcode existing
 
3599
  # directories.
 
3600
  hardcode_action=unsupported
 
3601
fi
 
3602
echo "$ac_t""$hardcode_action" 1>&6
 
3603
 
 
3604
striplib=
 
3605
old_striplib=
 
3606
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
 
3607
echo "configure:3608: checking whether stripping libraries is possible" >&5
 
3608
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
3609
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
3610
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
3611
  echo "$ac_t""yes" 1>&6
 
3612
else
 
3613
  echo "$ac_t""no" 1>&6
 
3614
fi
 
3615
 
 
3616
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3617
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3618
 
 
3619
# PORTME Fill in your ld.so characteristics
 
3620
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
 
3621
echo "configure:3622: checking dynamic linker characteristics" >&5
 
3622
library_names_spec=
 
3623
libname_spec='lib$name'
 
3624
soname_spec=
 
3625
postinstall_cmds=
 
3626
postuninstall_cmds=
 
3627
finish_cmds=
 
3628
finish_eval=
 
3629
shlibpath_var=
 
3630
shlibpath_overrides_runpath=unknown
 
3631
version_type=none
 
3632
dynamic_linker="$host_os ld.so"
 
3633
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
3634
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
3635
 
 
3636
case $host_os in
 
3637
aix3*)
 
3638
  version_type=linux
 
3639
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
3640
  shlibpath_var=LIBPATH
 
3641
 
 
3642
  # AIX has no versioning support, so we append a major version to the name.
 
3643
  soname_spec='${libname}${release}.so$major'
 
3644
  ;;
 
3645
 
 
3646
aix4* | aix5*)
 
3647
  version_type=linux
 
3648
  if test "$host_cpu" = ia64; then
 
3649
    # AIX 5 supports IA64
 
3650
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
3651
    shlibpath_var=LD_LIBRARY_PATH
 
3652
  else
 
3653
    # With GCC up to 2.95.x, collect2 would create an import file
 
3654
    # for dependence libraries.  The import file would start with
 
3655
    # the line `#! .'.  This would cause the generated library to
 
3656
    # depend on `.', always an invalid library.  This was fixed in
 
3657
    # development snapshots of GCC prior to 3.0.
 
3658
    case $host_os in
 
3659
       aix4 | aix4.[01] | aix4.[01].*)
 
3660
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
3661
           echo ' yes '
 
3662
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3663
        :
 
3664
      else
 
3665
        can_build_shared=no
 
3666
      fi
 
3667
      ;;
 
3668
    esac
 
3669
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
3670
    # soname into executable. Probably we can add versioning support to
 
3671
    # collect2, so additional links can be useful in future.
 
3672
    if test "$aix_use_runtimelinking" = yes; then
 
3673
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
 
3674
      # lib<name>.a to let people know that these are not typical AIX shared libraries.
 
3675
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3676
    else
 
3677
      # We preserve .a as extension for shared libraries through AIX4.2
 
3678
      # and later when we are not doing run time linking.
 
3679
      library_names_spec='${libname}${release}.a $libname.a'
 
3680
      soname_spec='${libname}${release}.so$major'
 
3681
    fi
 
3682
    shlibpath_var=LIBPATH
 
3683
    deplibs_check_method=pass_all
 
3684
  fi
 
3685
  ;;
 
3686
 
 
3687
amigaos*)
 
3688
  library_names_spec='$libname.ixlibrary $libname.a'
 
3689
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3690
  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'
 
3691
  ;;
 
3692
 
 
3693
beos*)
 
3694
  library_names_spec='${libname}.so'
 
3695
  dynamic_linker="$host_os ld.so"
 
3696
  shlibpath_var=LIBRARY_PATH
 
3697
  ;;
 
3698
 
 
3699
bsdi4*)
 
3700
  version_type=linux
 
3701
  need_version=no
 
3702
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3703
  soname_spec='${libname}${release}.so$major'
 
3704
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
3705
  shlibpath_var=LD_LIBRARY_PATH
 
3706
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
3707
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
3708
  export_dynamic_flag_spec=-rdynamic
 
3709
  # the default ld.so.conf also contains /usr/contrib/lib and
 
3710
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
3711
  # libtool to hard-code these into programs
 
3712
  ;;
 
3713
 
 
3714
cygwin* | mingw* | pw32*)
 
3715
  version_type=windows
 
3716
  need_version=no
 
3717
  need_lib_prefix=no
 
3718
  case $GCC,$host_os in
 
3719
  yes,cygwin*)
 
3720
    library_names_spec='$libname.dll.a'
 
3721
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
3722
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
3723
      dldir=$destdir/`dirname \$dlpath`~
 
3724
      test -d \$dldir || mkdir -p \$dldir~
 
3725
      $install_prog .libs/$dlname \$dldir/$dlname'
 
3726
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3727
      dlpath=$dir/\$dldll~
 
3728
       $rm \$dlpath'
 
3729
    ;;
 
3730
  yes,mingw*)
 
3731
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
3732
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 
3733
    ;;
 
3734
  yes,pw32*)
 
3735
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
3736
    ;;
 
3737
  *)
 
3738
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
3739
    ;;
 
3740
  esac
 
3741
  dynamic_linker='Win32 ld.exe'
 
3742
  # FIXME: first we should search . and the directory the executable is in
 
3743
  shlibpath_var=PATH
 
3744
  ;;
 
3745
 
 
3746
darwin* | rhapsody*)
 
3747
  dynamic_linker="$host_os dyld"
 
3748
  version_type=darwin
 
3749
  need_lib_prefix=no
 
3750
  need_version=no
 
3751
  # FIXME: Relying on posixy $() will cause problems for
 
3752
  #        cross-compilation, but unfortunately the echo tests do not
 
3753
  #        yet detect zsh echo's removal of \ escapes.
 
3754
  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)'
 
3755
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
3756
  shlibpath_overrides_runpath=yes
 
3757
  shlibpath_var=DYLD_LIBRARY_PATH
 
3758
  ;;
 
3759
 
 
3760
freebsd1*)
 
3761
  dynamic_linker=no
 
3762
  ;;
 
3763
 
 
3764
freebsd*)
 
3765
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
3766
  version_type=freebsd-$objformat
 
3767
  case $version_type in
 
3768
    freebsd-elf*)
 
3769
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
3770
      need_version=no
 
3771
      need_lib_prefix=no
 
3772
      ;;
 
3773
    freebsd-*)
 
3774
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
3775
      need_version=yes
 
3776
      ;;
 
3777
  esac
 
3778
  shlibpath_var=LD_LIBRARY_PATH
 
3779
  case $host_os in
 
3780
  freebsd2*)
 
3781
    shlibpath_overrides_runpath=yes
 
3782
    ;;
 
3783
  *)
 
3784
    shlibpath_overrides_runpath=no
 
3785
    hardcode_into_libs=yes
 
3786
    ;;
 
3787
  esac
 
3788
  ;;
 
3789
 
 
3790
gnu*)
 
3791
  version_type=linux
 
3792
  need_lib_prefix=no
 
3793
  need_version=no
 
3794
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
3795
  soname_spec='${libname}${release}.so$major'
 
3796
  shlibpath_var=LD_LIBRARY_PATH
 
3797
  hardcode_into_libs=yes
 
3798
  ;;
 
3799
 
 
3800
hpux9* | hpux10* | hpux11*)
 
3801
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
3802
  # link against other versions.
 
3803
  dynamic_linker="$host_os dld.sl"
 
3804
  version_type=sunos
 
3805
  need_lib_prefix=no
 
3806
  need_version=no
 
3807
  shlibpath_var=SHLIB_PATH
 
3808
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
3809
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
3810
  soname_spec='${libname}${release}.sl$major'
 
3811
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
3812
  postinstall_cmds='chmod 555 $lib'
 
3813
  ;;
 
3814
 
 
3815
irix5* | irix6*)
 
3816
  version_type=irix
 
3817
  need_lib_prefix=no
 
3818
  need_version=no
 
3819
  soname_spec='${libname}${release}.so$major'
 
3820
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
3821
  case $host_os in
 
3822
  irix5*)
 
3823
    libsuff= shlibsuff=
 
3824
    ;;
 
3825
  *)
 
3826
    case $LD in # libtool.m4 will add one of these switches to LD
 
3827
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
3828
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
3829
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
3830
    *) libsuff= shlibsuff= libmagic=never-match;;
 
3831
    esac
 
3832
    ;;
 
3833
  esac
 
3834
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
3835
  shlibpath_overrides_runpath=no
 
3836
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
3837
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
3838
  ;;
 
3839
 
 
3840
# No shared lib support for Linux oldld, aout, or coff.
 
3841
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
3842
  dynamic_linker=no
 
3843
  ;;
 
3844
 
 
3845
# This must be Linux ELF.
 
3846
linux-gnu*)
 
3847
  version_type=linux
 
3848
  need_lib_prefix=no
 
3849
  need_version=no
 
3850
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3851
  soname_spec='${libname}${release}.so$major'
 
3852
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
3853
  shlibpath_var=LD_LIBRARY_PATH
 
3854
  shlibpath_overrides_runpath=no
 
3855
  # This implies no fast_install, which is unacceptable.
 
3856
  # Some rework will be needed to allow for fast_install
 
3857
  # before this can be enabled.
 
3858
  hardcode_into_libs=yes
 
3859
 
 
3860
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
3861
  # powerpc, because MkLinux only supported shared libraries with the
 
3862
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
3863
  # most powerpc-linux boxes support dynamic linking these days and
 
3864
  # people can always --disable-shared, the test was removed, and we
 
3865
  # assume the GNU/Linux dynamic linker is in use.
 
3866
  dynamic_linker='GNU/Linux ld.so'
 
3867
  ;;
 
3868
 
 
3869
netbsd*)
 
3870
  version_type=sunos
 
3871
  need_lib_prefix=no
 
3872
  need_version=no
 
3873
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3874
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
3875
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3876
    dynamic_linker='NetBSD (a.out) ld.so'
 
3877
  else
 
3878
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
3879
    soname_spec='${libname}${release}.so$major'
 
3880
    dynamic_linker='NetBSD ld.elf_so'
 
3881
  fi
 
3882
  shlibpath_var=LD_LIBRARY_PATH
 
3883
  shlibpath_overrides_runpath=yes
 
3884
  hardcode_into_libs=yes
 
3885
  ;;
 
3886
 
 
3887
newsos6)
 
3888
  version_type=linux
 
3889
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3890
  shlibpath_var=LD_LIBRARY_PATH
 
3891
  shlibpath_overrides_runpath=yes
 
3892
  ;;
 
3893
 
 
3894
openbsd*)
 
3895
  version_type=sunos
 
3896
  if test "$with_gnu_ld" = yes; then
 
3897
    need_lib_prefix=no
 
3898
    need_version=no
 
3899
  fi
 
3900
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
3901
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3902
  shlibpath_var=LD_LIBRARY_PATH
 
3903
  ;;
 
3904
 
 
3905
os2*)
 
3906
  libname_spec='$name'
 
3907
  need_lib_prefix=no
 
3908
  library_names_spec='$libname.dll $libname.a'
 
3909
  dynamic_linker='OS/2 ld.exe'
 
3910
  shlibpath_var=LIBPATH
 
3911
  ;;
 
3912
 
 
3913
osf3* | osf4* | osf5*)
 
3914
  version_type=osf
 
3915
  need_version=no
 
3916
  soname_spec='${libname}${release}.so'
 
3917
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
3918
  shlibpath_var=LD_LIBRARY_PATH
 
3919
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
3920
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3921
  ;;
 
3922
 
 
3923
sco3.2v5*)
 
3924
  version_type=osf
 
3925
  soname_spec='${libname}${release}.so$major'
 
3926
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3927
  shlibpath_var=LD_LIBRARY_PATH
 
3928
  ;;
 
3929
 
 
3930
solaris*)
 
3931
  version_type=linux
 
3932
  need_lib_prefix=no
 
3933
  need_version=no
 
3934
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3935
  soname_spec='${libname}${release}.so$major'
 
3936
  shlibpath_var=LD_LIBRARY_PATH
 
3937
  shlibpath_overrides_runpath=yes
 
3938
  hardcode_into_libs=yes
 
3939
  # ldd complains unless libraries are executable
 
3940
  postinstall_cmds='chmod +x $lib'
 
3941
  ;;
 
3942
 
 
3943
sunos4*)
 
3944
  version_type=sunos
 
3945
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
3946
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
3947
  shlibpath_var=LD_LIBRARY_PATH
 
3948
  shlibpath_overrides_runpath=yes
 
3949
  if test "$with_gnu_ld" = yes; then
 
3950
    need_lib_prefix=no
 
3951
  fi
 
3952
  need_version=yes
 
3953
  ;;
 
3954
 
 
3955
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3956
  version_type=linux
 
3957
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3958
  soname_spec='${libname}${release}.so$major'
 
3959
  shlibpath_var=LD_LIBRARY_PATH
 
3960
  case $host_vendor in
 
3961
    sni)
 
3962
      shlibpath_overrides_runpath=no
 
3963
      ;;
 
3964
    motorola)
 
3965
      need_lib_prefix=no
 
3966
      need_version=no
 
3967
      shlibpath_overrides_runpath=no
 
3968
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
3969
      ;;
 
3970
  esac
 
3971
  ;;
 
3972
 
 
3973
uts4*)
 
3974
  version_type=linux
 
3975
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3976
  soname_spec='${libname}${release}.so$major'
 
3977
  shlibpath_var=LD_LIBRARY_PATH
 
3978
  ;;
 
3979
 
 
3980
dgux*)
 
3981
  version_type=linux
 
3982
  need_lib_prefix=no
 
3983
  need_version=no
 
3984
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
3985
  soname_spec='${libname}${release}.so$major'
 
3986
  shlibpath_var=LD_LIBRARY_PATH
 
3987
  ;;
 
3988
 
 
3989
sysv4*MP*)
 
3990
  if test -d /usr/nec ;then
 
3991
    version_type=linux
 
3992
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
3993
    soname_spec='$libname.so.$major'
 
3994
    shlibpath_var=LD_LIBRARY_PATH
 
3995
  fi
 
3996
  ;;
 
3997
 
 
3998
*)
 
3999
  dynamic_linker=no
 
4000
  ;;
 
4001
esac
 
4002
echo "$ac_t""$dynamic_linker" 1>&6
 
4003
test "$dynamic_linker" = no && can_build_shared=no
 
4004
 
 
4005
# Report the final consequences.
 
4006
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
 
4007
echo "configure:4008: checking if libtool supports shared libraries" >&5
 
4008
echo "$ac_t""$can_build_shared" 1>&6
 
4009
 
 
4010
if test "$hardcode_action" = relink; then
 
4011
  # Fast installation is not supported
 
4012
  enable_fast_install=no
 
4013
elif test "$shlibpath_overrides_runpath" = yes ||
 
4014
     test "$enable_shared" = no; then
 
4015
  # Fast installation is not necessary
 
4016
  enable_fast_install=needless
 
4017
fi
 
4018
 
 
4019
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
4020
if test "$GCC" = yes; then
 
4021
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
4022
fi
 
4023
 
 
4024
if test "x$enable_dlopen" != xyes; then
 
4025
  enable_dlopen=unknown
 
4026
  enable_dlopen_self=unknown
 
4027
  enable_dlopen_self_static=unknown
 
4028
else
 
4029
  lt_cv_dlopen=no
 
4030
  lt_cv_dlopen_libs=
 
4031
 
 
4032
  case $host_os in
 
4033
  beos*)
 
4034
    lt_cv_dlopen="load_add_on"
 
4035
    lt_cv_dlopen_libs=
 
4036
    lt_cv_dlopen_self=yes
 
4037
    ;;
 
4038
 
 
4039
  cygwin* | mingw* | pw32*)
 
4040
    lt_cv_dlopen="LoadLibrary"
 
4041
    lt_cv_dlopen_libs=
 
4042
   ;;
 
4043
 
 
4044
  *)
 
4045
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 
4046
echo "configure:4047: checking for dlopen in -ldl" >&5
 
4047
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 
4048
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4049
  echo $ac_n "(cached) $ac_c" 1>&6
 
4050
else
 
4051
  ac_save_LIBS="$LIBS"
 
4052
LIBS="-ldl  $LIBS"
 
4053
cat > conftest.$ac_ext <<EOF
 
4054
#line 4055 "configure"
 
4055
#include "confdefs.h"
 
4056
/* Override any gcc2 internal prototype to avoid an error.  */
 
4057
/* We use char because int might match the return type of a gcc2
 
4058
    builtin and then its argument prototype would still apply.  */
 
4059
char dlopen();
 
4060
 
 
4061
int main() {
 
4062
dlopen()
 
4063
; return 0; }
 
4064
EOF
 
4065
if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4066
  rm -rf conftest*
 
4067
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4068
else
 
4069
  echo "configure: failed program was:" >&5
 
4070
  cat conftest.$ac_ext >&5
 
4071
  rm -rf conftest*
 
4072
  eval "ac_cv_lib_$ac_lib_var=no"
 
4073
fi
 
4074
rm -f conftest*
 
4075
LIBS="$ac_save_LIBS"
 
4076
 
 
4077
fi
 
4078
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4079
  echo "$ac_t""yes" 1>&6
 
4080
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
4081
else
 
4082
  echo "$ac_t""no" 1>&6
 
4083
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
 
4084
echo "configure:4085: checking for dlopen" >&5
 
4085
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
 
4086
  echo $ac_n "(cached) $ac_c" 1>&6
 
4087
else
 
4088
  cat > conftest.$ac_ext <<EOF
 
4089
#line 4090 "configure"
 
4090
#include "confdefs.h"
 
4091
/* System header to define __stub macros and hopefully few prototypes,
 
4092
    which can conflict with char dlopen(); below.  */
 
4093
#include <assert.h>
 
4094
/* Override any gcc2 internal prototype to avoid an error.  */
 
4095
/* We use char because int might match the return type of a gcc2
 
4096
    builtin and then its argument prototype would still apply.  */
 
4097
char dlopen();
 
4098
 
 
4099
int main() {
 
4100
 
 
4101
/* The GNU C library defines this for functions which it implements
 
4102
    to always fail with ENOSYS.  Some functions are actually named
 
4103
    something starting with __ and the normal name is an alias.  */
 
4104
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
4105
choke me
 
4106
#else
 
4107
dlopen();
 
4108
#endif
 
4109
 
 
4110
; return 0; }
 
4111
EOF
 
4112
if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4113
  rm -rf conftest*
 
4114
  eval "ac_cv_func_dlopen=yes"
 
4115
else
 
4116
  echo "configure: failed program was:" >&5
 
4117
  cat conftest.$ac_ext >&5
 
4118
  rm -rf conftest*
 
4119
  eval "ac_cv_func_dlopen=no"
 
4120
fi
 
4121
rm -f conftest*
 
4122
fi
 
4123
 
 
4124
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
 
4125
  echo "$ac_t""yes" 1>&6
 
4126
  lt_cv_dlopen="dlopen"
 
4127
else
 
4128
  echo "$ac_t""no" 1>&6
 
4129
echo $ac_n "checking for shl_load""... $ac_c" 1>&6
 
4130
echo "configure:4131: checking for shl_load" >&5
 
4131
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
 
4132
  echo $ac_n "(cached) $ac_c" 1>&6
 
4133
else
 
4134
  cat > conftest.$ac_ext <<EOF
 
4135
#line 4136 "configure"
 
4136
#include "confdefs.h"
 
4137
/* System header to define __stub macros and hopefully few prototypes,
 
4138
    which can conflict with char shl_load(); below.  */
 
4139
#include <assert.h>
 
4140
/* Override any gcc2 internal prototype to avoid an error.  */
 
4141
/* We use char because int might match the return type of a gcc2
 
4142
    builtin and then its argument prototype would still apply.  */
 
4143
char shl_load();
 
4144
 
 
4145
int main() {
 
4146
 
 
4147
/* The GNU C library defines this for functions which it implements
 
4148
    to always fail with ENOSYS.  Some functions are actually named
 
4149
    something starting with __ and the normal name is an alias.  */
 
4150
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
4151
choke me
 
4152
#else
 
4153
shl_load();
 
4154
#endif
 
4155
 
 
4156
; return 0; }
 
4157
EOF
 
4158
if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4159
  rm -rf conftest*
 
4160
  eval "ac_cv_func_shl_load=yes"
 
4161
else
 
4162
  echo "configure: failed program was:" >&5
 
4163
  cat conftest.$ac_ext >&5
 
4164
  rm -rf conftest*
 
4165
  eval "ac_cv_func_shl_load=no"
 
4166
fi
 
4167
rm -f conftest*
 
4168
fi
 
4169
 
 
4170
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
 
4171
  echo "$ac_t""yes" 1>&6
 
4172
  lt_cv_dlopen="shl_load"
 
4173
else
 
4174
  echo "$ac_t""no" 1>&6
 
4175
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
 
4176
echo "configure:4177: checking for dlopen in -lsvld" >&5
 
4177
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
 
4178
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4179
  echo $ac_n "(cached) $ac_c" 1>&6
 
4180
else
 
4181
  ac_save_LIBS="$LIBS"
 
4182
LIBS="-lsvld  $LIBS"
 
4183
cat > conftest.$ac_ext <<EOF
 
4184
#line 4185 "configure"
 
4185
#include "confdefs.h"
 
4186
/* Override any gcc2 internal prototype to avoid an error.  */
 
4187
/* We use char because int might match the return type of a gcc2
 
4188
    builtin and then its argument prototype would still apply.  */
 
4189
char dlopen();
 
4190
 
 
4191
int main() {
 
4192
dlopen()
 
4193
; return 0; }
 
4194
EOF
 
4195
if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4196
  rm -rf conftest*
 
4197
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4198
else
 
4199
  echo "configure: failed program was:" >&5
 
4200
  cat conftest.$ac_ext >&5
 
4201
  rm -rf conftest*
 
4202
  eval "ac_cv_lib_$ac_lib_var=no"
 
4203
fi
 
4204
rm -f conftest*
 
4205
LIBS="$ac_save_LIBS"
 
4206
 
 
4207
fi
 
4208
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4209
  echo "$ac_t""yes" 1>&6
 
4210
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
4211
else
 
4212
  echo "$ac_t""no" 1>&6
 
4213
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
 
4214
echo "configure:4215: checking for shl_load in -ldld" >&5
 
4215
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
 
4216
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4217
  echo $ac_n "(cached) $ac_c" 1>&6
 
4218
else
 
4219
  ac_save_LIBS="$LIBS"
 
4220
LIBS="-ldld  $LIBS"
 
4221
cat > conftest.$ac_ext <<EOF
 
4222
#line 4223 "configure"
 
4223
#include "confdefs.h"
 
4224
/* Override any gcc2 internal prototype to avoid an error.  */
 
4225
/* We use char because int might match the return type of a gcc2
 
4226
    builtin and then its argument prototype would still apply.  */
 
4227
char shl_load();
 
4228
 
 
4229
int main() {
 
4230
shl_load()
 
4231
; return 0; }
 
4232
EOF
 
4233
if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4234
  rm -rf conftest*
 
4235
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4236
else
 
4237
  echo "configure: failed program was:" >&5
 
4238
  cat conftest.$ac_ext >&5
 
4239
  rm -rf conftest*
 
4240
  eval "ac_cv_lib_$ac_lib_var=no"
 
4241
fi
 
4242
rm -f conftest*
 
4243
LIBS="$ac_save_LIBS"
 
4244
 
 
4245
fi
 
4246
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4247
  echo "$ac_t""yes" 1>&6
 
4248
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
4249
else
 
4250
  echo "$ac_t""no" 1>&6
 
4251
fi
 
4252
 
 
4253
            
 
4254
fi
 
4255
 
 
4256
          
 
4257
fi
 
4258
 
 
4259
        
 
4260
fi
 
4261
 
 
4262
      
 
4263
fi
 
4264
 
 
4265
    ;;
 
4266
  esac
 
4267
 
 
4268
  if test "x$lt_cv_dlopen" != xno; then
 
4269
    enable_dlopen=yes
 
4270
  else
 
4271
    enable_dlopen=no
 
4272
  fi
 
4273
 
 
4274
  case $lt_cv_dlopen in
 
4275
  dlopen)
 
4276
    save_CPPFLAGS="$CPPFLAGS"
 
4277
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
4278
 
 
4279
    save_LDFLAGS="$LDFLAGS"
 
4280
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
4281
 
 
4282
    save_LIBS="$LIBS"
 
4283
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
4284
 
 
4285
    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
 
4286
echo "configure:4287: checking whether a program can dlopen itself" >&5
 
4287
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
 
4288
  echo $ac_n "(cached) $ac_c" 1>&6
 
4289
else
 
4290
          if test "$cross_compiling" = yes; then :
 
4291
  lt_cv_dlopen_self=cross
 
4292
else
 
4293
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
4294
  lt_status=$lt_dlunknown
 
4295
  cat > conftest.$ac_ext <<EOF
 
4296
#line 4297 "configure"
 
4297
#include "confdefs.h"
 
4298
 
 
4299
#if HAVE_DLFCN_H
 
4300
#include <dlfcn.h>
 
4301
#endif
 
4302
 
 
4303
#include <stdio.h>
 
4304
 
 
4305
#ifdef RTLD_GLOBAL
 
4306
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
4307
#else
 
4308
#  ifdef DL_GLOBAL
 
4309
#    define LT_DLGLOBAL         DL_GLOBAL
 
4310
#  else
 
4311
#    define LT_DLGLOBAL         0
 
4312
#  endif
 
4313
#endif
 
4314
 
 
4315
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
4316
   find out it does not work in some platform. */
 
4317
#ifndef LT_DLLAZY_OR_NOW
 
4318
#  ifdef RTLD_LAZY
 
4319
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
4320
#  else
 
4321
#    ifdef DL_LAZY
 
4322
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
4323
#    else
 
4324
#      ifdef RTLD_NOW
 
4325
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
4326
#      else
 
4327
#        ifdef DL_NOW
 
4328
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
4329
#        else
 
4330
#          define LT_DLLAZY_OR_NOW      0
 
4331
#        endif
 
4332
#      endif
 
4333
#    endif
 
4334
#  endif
 
4335
#endif
 
4336
 
 
4337
#ifdef __cplusplus
 
4338
extern "C" void exit (int);
 
4339
#endif
 
4340
 
 
4341
void fnord() { int i=42;}
 
4342
int main ()
 
4343
{
 
4344
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
4345
  int status = $lt_dlunknown;
 
4346
 
 
4347
  if (self)
 
4348
    {
 
4349
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
4350
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
4351
      /* dlclose (self); */
 
4352
    }
 
4353
 
 
4354
    exit (status);
 
4355
}
 
4356
EOF
 
4357
  if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
4358
    (./conftest; exit; ) 2>/dev/null
 
4359
    lt_status=$?
 
4360
    case x$lt_status in
 
4361
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
4362
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
4363
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
4364
    esac
 
4365
  else :
 
4366
    # compilation failed
 
4367
    lt_cv_dlopen_self=no
 
4368
  fi
 
4369
fi
 
4370
rm -fr conftest*
 
4371
 
 
4372
    
 
4373
fi
 
4374
 
 
4375
echo "$ac_t""$lt_cv_dlopen_self" 1>&6
 
4376
 
 
4377
    if test "x$lt_cv_dlopen_self" = xyes; then
 
4378
      LDFLAGS="$LDFLAGS $link_static_flag"
 
4379
      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
 
4380
echo "configure:4381: checking whether a statically linked program can dlopen itself" >&5
 
4381
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
 
4382
  echo $ac_n "(cached) $ac_c" 1>&6
 
4383
else
 
4384
          if test "$cross_compiling" = yes; then :
 
4385
  lt_cv_dlopen_self_static=cross
 
4386
else
 
4387
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
4388
  lt_status=$lt_dlunknown
 
4389
  cat > conftest.$ac_ext <<EOF
 
4390
#line 4391 "configure"
 
4391
#include "confdefs.h"
 
4392
 
 
4393
#if HAVE_DLFCN_H
 
4394
#include <dlfcn.h>
 
4395
#endif
 
4396
 
 
4397
#include <stdio.h>
 
4398
 
 
4399
#ifdef RTLD_GLOBAL
 
4400
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
4401
#else
 
4402
#  ifdef DL_GLOBAL
 
4403
#    define LT_DLGLOBAL         DL_GLOBAL
 
4404
#  else
 
4405
#    define LT_DLGLOBAL         0
 
4406
#  endif
 
4407
#endif
 
4408
 
 
4409
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
4410
   find out it does not work in some platform. */
 
4411
#ifndef LT_DLLAZY_OR_NOW
 
4412
#  ifdef RTLD_LAZY
 
4413
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
4414
#  else
 
4415
#    ifdef DL_LAZY
 
4416
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
4417
#    else
 
4418
#      ifdef RTLD_NOW
 
4419
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
4420
#      else
 
4421
#        ifdef DL_NOW
 
4422
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
4423
#        else
 
4424
#          define LT_DLLAZY_OR_NOW      0
 
4425
#        endif
 
4426
#      endif
 
4427
#    endif
 
4428
#  endif
 
4429
#endif
 
4430
 
 
4431
#ifdef __cplusplus
 
4432
extern "C" void exit (int);
 
4433
#endif
 
4434
 
 
4435
void fnord() { int i=42;}
 
4436
int main ()
 
4437
{
 
4438
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
4439
  int status = $lt_dlunknown;
 
4440
 
 
4441
  if (self)
 
4442
    {
 
4443
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
4444
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
4445
      /* dlclose (self); */
 
4446
    }
 
4447
 
 
4448
    exit (status);
 
4449
}
 
4450
EOF
 
4451
  if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
4452
    (./conftest; exit; ) 2>/dev/null
 
4453
    lt_status=$?
 
4454
    case x$lt_status in
 
4455
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
4456
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
4457
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
4458
    esac
 
4459
  else :
 
4460
    # compilation failed
 
4461
    lt_cv_dlopen_self_static=no
 
4462
  fi
 
4463
fi
 
4464
rm -fr conftest*
 
4465
 
 
4466
      
 
4467
fi
 
4468
 
 
4469
echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
 
4470
    fi
 
4471
 
 
4472
    CPPFLAGS="$save_CPPFLAGS"
 
4473
    LDFLAGS="$save_LDFLAGS"
 
4474
    LIBS="$save_LIBS"
 
4475
    ;;
 
4476
  esac
 
4477
 
 
4478
  case $lt_cv_dlopen_self in
 
4479
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
4480
  *) enable_dlopen_self=unknown ;;
 
4481
  esac
 
4482
 
 
4483
  case $lt_cv_dlopen_self_static in
 
4484
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
4485
  *) enable_dlopen_self_static=unknown ;;
 
4486
  esac
 
4487
fi
 
4488
 
 
4489
 
 
4490
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
4491
  case $archive_cmds in
 
4492
  *'~'*)
 
4493
    # FIXME: we may have to deal with multi-command sequences.
 
4494
    ;;
 
4495
  '$CC '*)
 
4496
    # Test whether the compiler implicitly links with -lc since on some
 
4497
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
4498
    # to ld, don't add -lc before -lgcc.
 
4499
    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
 
4500
echo "configure:4501: checking whether -lc should be explicitly linked in" >&5
 
4501
    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
 
4502
  echo $ac_n "(cached) $ac_c" 1>&6
 
4503
else
 
4504
  $rm conftest*
 
4505
    echo 'static int dummy;' > conftest.$ac_ext
 
4506
 
 
4507
    if { (eval echo configure:4508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4508
      soname=conftest
 
4509
      lib=conftest
 
4510
      libobjs=conftest.$ac_objext
 
4511
      deplibs=
 
4512
      wl=$lt_cv_prog_cc_wl
 
4513
      compiler_flags=-v
 
4514
      linker_flags=-v
 
4515
      verstring=
 
4516
      output_objdir=.
 
4517
      libname=conftest
 
4518
      save_allow_undefined_flag=$allow_undefined_flag
 
4519
      allow_undefined_flag=
 
4520
      if { (eval echo configure:4521: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
 
4521
      then
 
4522
        lt_cv_archive_cmds_need_lc=no
 
4523
      else
 
4524
        lt_cv_archive_cmds_need_lc=yes
 
4525
      fi
 
4526
      allow_undefined_flag=$save_allow_undefined_flag
 
4527
    else
 
4528
      cat conftest.err 1>&5
 
4529
    fi
 
4530
fi
 
4531
 
 
4532
    echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
 
4533
    ;;
 
4534
  esac
 
4535
fi
 
4536
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
4537
 
 
4538
# The second clause should only fire when bootstrapping the
 
4539
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
4540
# with your package, and you will get complaints that there are
 
4541
# no rules to generate ltmain.sh.
 
4542
if test -f "$ltmain"; then
 
4543
  :
 
4544
else
 
4545
  # If there is no Makefile yet, we rely on a make rule to execute
 
4546
  # `config.status --recheck' to rerun these tests and create the
 
4547
  # libtool script then.
 
4548
  test -f Makefile && make "$ltmain"
 
4549
fi
 
4550
 
 
4551
if test -f "$ltmain"; then
 
4552
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
4553
  $rm -f "${ofile}T"
 
4554
 
 
4555
  echo creating $ofile
 
4556
 
 
4557
  # Now quote all the things that may contain metacharacters while being
 
4558
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
4559
  # variables and quote the copies for generation of the libtool script.
 
4560
  for var in echo old_CC old_CFLAGS \
 
4561
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
4562
    reload_flag reload_cmds wl \
 
4563
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
4564
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
4565
    library_names_spec soname_spec \
 
4566
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
4567
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
4568
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
4569
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
4570
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
4571
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
4572
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
4573
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
4574
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
4575
 
 
4576
    case $var in
 
4577
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
4578
    old_postinstall_cmds | old_postuninstall_cmds | \
 
4579
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
4580
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
4581
    postinstall_cmds | postuninstall_cmds | \
 
4582
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
4583
      # Double-quote double-evaled strings.
 
4584
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
4585
      ;;
 
4586
    *)
 
4587
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
4588
      ;;
 
4589
    esac
 
4590
  done
 
4591
 
 
4592
  cat <<__EOF__ > "${ofile}T"
 
4593
#! $SHELL
 
4594
 
 
4595
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
4596
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
4597
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
4598
#
 
4599
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
4600
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
4601
#
 
4602
# This program is free software; you can redistribute it and/or modify
 
4603
# it under the terms of the GNU General Public License as published by
 
4604
# the Free Software Foundation; either version 2 of the License, or
 
4605
# (at your option) any later version.
 
4606
#
 
4607
# This program is distributed in the hope that it will be useful, but
 
4608
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
4609
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
4610
# General Public License for more details.
 
4611
#
 
4612
# You should have received a copy of the GNU General Public License
 
4613
# along with this program; if not, write to the Free Software
 
4614
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4615
#
 
4616
# As a special exception to the GNU General Public License, if you
 
4617
# distribute this file as part of a program that contains a
 
4618
# configuration script generated by Autoconf, you may include it under
 
4619
# the same distribution terms that you use for the rest of that program.
 
4620
 
 
4621
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
4622
Xsed="sed -e s/^X//"
 
4623
 
 
4624
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
4625
# if CDPATH is set.
 
4626
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4627
 
 
4628
# ### BEGIN LIBTOOL CONFIG
 
4629
 
 
4630
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4631
 
 
4632
# Shell to use when invoking shell scripts.
 
4633
SHELL=$lt_SHELL
 
4634
 
 
4635
# Whether or not to build shared libraries.
 
4636
build_libtool_libs=$enable_shared
 
4637
 
 
4638
# Whether or not to add -lc for building shared libraries.
 
4639
build_libtool_need_lc=$need_lc
 
4640
 
 
4641
# Whether or not to build static libraries.
 
4642
build_old_libs=$enable_static
 
4643
 
 
4644
# Whether or not to optimize for fast installation.
 
4645
fast_install=$enable_fast_install
 
4646
 
 
4647
# The host system.
 
4648
host_alias=$host_alias
 
4649
host=$host
 
4650
 
 
4651
# An echo program that does not interpret backslashes.
 
4652
echo=$lt_echo
 
4653
 
 
4654
# The archiver.
 
4655
AR=$lt_AR
 
4656
AR_FLAGS=$lt_AR_FLAGS
 
4657
 
 
4658
# The default C compiler.
 
4659
CC=$lt_CC
 
4660
 
 
4661
# Is the compiler the GNU C compiler?
 
4662
with_gcc=$GCC
 
4663
 
 
4664
# The linker used to build libraries.
 
4665
LD=$lt_LD
 
4666
 
 
4667
# Whether we need hard or soft links.
 
4668
LN_S=$lt_LN_S
 
4669
 
 
4670
# A BSD-compatible nm program.
 
4671
NM=$lt_NM
 
4672
 
 
4673
# A symbol stripping program
 
4674
STRIP=$STRIP
 
4675
 
 
4676
# Used to examine libraries when file_magic_cmd begins "file"
 
4677
MAGIC_CMD=$MAGIC_CMD
 
4678
 
 
4679
# Used on cygwin: DLL creation program.
 
4680
DLLTOOL="$DLLTOOL"
 
4681
 
 
4682
# Used on cygwin: object dumper.
 
4683
OBJDUMP="$OBJDUMP"
 
4684
 
 
4685
# Used on cygwin: assembler.
 
4686
AS="$AS"
 
4687
 
 
4688
# The name of the directory that contains temporary libtool files.
 
4689
objdir=$objdir
 
4690
 
 
4691
# How to create reloadable object files.
 
4692
reload_flag=$lt_reload_flag
 
4693
reload_cmds=$lt_reload_cmds
 
4694
 
 
4695
# How to pass a linker flag through the compiler.
 
4696
wl=$lt_wl
 
4697
 
 
4698
# Object file suffix (normally "o").
 
4699
objext="$ac_objext"
 
4700
 
 
4701
# Old archive suffix (normally "a").
 
4702
libext="$libext"
 
4703
 
 
4704
# Executable file suffix (normally "").
 
4705
exeext="$exeext"
 
4706
 
 
4707
# Additional compiler flags for building library objects.
 
4708
pic_flag=$lt_pic_flag
 
4709
pic_mode=$pic_mode
 
4710
 
 
4711
# Does compiler simultaneously support -c and -o options?
 
4712
compiler_c_o=$lt_compiler_c_o
 
4713
 
 
4714
# Can we write directly to a .lo ?
 
4715
compiler_o_lo=$lt_compiler_o_lo
 
4716
 
 
4717
# Must we lock files when doing compilation ?
 
4718
need_locks=$lt_need_locks
 
4719
 
 
4720
# Do we need the lib prefix for modules?
 
4721
need_lib_prefix=$need_lib_prefix
 
4722
 
 
4723
# Do we need a version for libraries?
 
4724
need_version=$need_version
 
4725
 
 
4726
# Whether dlopen is supported.
 
4727
dlopen_support=$enable_dlopen
 
4728
 
 
4729
# Whether dlopen of programs is supported.
 
4730
dlopen_self=$enable_dlopen_self
 
4731
 
 
4732
# Whether dlopen of statically linked programs is supported.
 
4733
dlopen_self_static=$enable_dlopen_self_static
 
4734
 
 
4735
# Compiler flag to prevent dynamic linking.
 
4736
link_static_flag=$lt_link_static_flag
 
4737
 
 
4738
# Compiler flag to turn off builtin functions.
 
4739
no_builtin_flag=$lt_no_builtin_flag
 
4740
 
 
4741
# Compiler flag to allow reflexive dlopens.
 
4742
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
4743
 
 
4744
# Compiler flag to generate shared objects directly from archives.
 
4745
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
4746
 
 
4747
# Compiler flag to generate thread-safe objects.
 
4748
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
4749
 
 
4750
# Library versioning type.
 
4751
version_type=$version_type
 
4752
 
 
4753
# Format of library name prefix.
 
4754
libname_spec=$lt_libname_spec
 
4755
 
 
4756
# List of archive names.  First name is the real one, the rest are links.
 
4757
# The last name is the one that the linker finds with -lNAME.
 
4758
library_names_spec=$lt_library_names_spec
 
4759
 
 
4760
# The coded name of the library, if different from the real name.
 
4761
soname_spec=$lt_soname_spec
 
4762
 
 
4763
# Commands used to build and install an old-style archive.
 
4764
RANLIB=$lt_RANLIB
 
4765
old_archive_cmds=$lt_old_archive_cmds
 
4766
old_postinstall_cmds=$lt_old_postinstall_cmds
 
4767
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
4768
 
 
4769
# Create an old-style archive from a shared archive.
 
4770
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
4771
 
 
4772
# Create a temporary old-style archive to link instead of a shared archive.
 
4773
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
4774
 
 
4775
# Commands used to build and install a shared archive.
 
4776
archive_cmds=$lt_archive_cmds
 
4777
archive_expsym_cmds=$lt_archive_expsym_cmds
 
4778
postinstall_cmds=$lt_postinstall_cmds
 
4779
postuninstall_cmds=$lt_postuninstall_cmds
 
4780
 
 
4781
# Commands to strip libraries.
 
4782
old_striplib=$lt_old_striplib
 
4783
striplib=$lt_striplib
 
4784
 
 
4785
# Method to check whether dependent libraries are shared objects.
 
4786
deplibs_check_method=$lt_deplibs_check_method
 
4787
 
 
4788
# Command to use when deplibs_check_method == file_magic.
 
4789
file_magic_cmd=$lt_file_magic_cmd
 
4790
 
 
4791
# Flag that allows shared libraries with undefined symbols to be built.
 
4792
allow_undefined_flag=$lt_allow_undefined_flag
 
4793
 
 
4794
# Flag that forces no undefined symbols.
 
4795
no_undefined_flag=$lt_no_undefined_flag
 
4796
 
 
4797
# Commands used to finish a libtool library installation in a directory.
 
4798
finish_cmds=$lt_finish_cmds
 
4799
 
 
4800
# Same as above, but a single script fragment to be evaled but not shown.
 
4801
finish_eval=$lt_finish_eval
 
4802
 
 
4803
# Take the output of nm and produce a listing of raw symbols and C names.
 
4804
global_symbol_pipe=$lt_global_symbol_pipe
 
4805
 
 
4806
# Transform the output of nm in a proper C declaration
 
4807
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
4808
 
 
4809
# This is the shared library runtime path variable.
 
4810
runpath_var=$runpath_var
 
4811
 
 
4812
# This is the shared library path variable.
 
4813
shlibpath_var=$shlibpath_var
 
4814
 
 
4815
# Is shlibpath searched before the hard-coded library search path?
 
4816
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
4817
 
 
4818
# How to hardcode a shared library path into an executable.
 
4819
hardcode_action=$hardcode_action
 
4820
 
 
4821
# Whether we should hardcode library paths into libraries.
 
4822
hardcode_into_libs=$hardcode_into_libs
 
4823
 
 
4824
# Flag to hardcode \$libdir into a binary during linking.
 
4825
# This must work even if \$libdir does not exist.
 
4826
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
4827
 
 
4828
# Whether we need a single -rpath flag with a separated argument.
 
4829
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
4830
 
 
4831
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
4832
# resulting binary.
 
4833
hardcode_direct=$hardcode_direct
 
4834
 
 
4835
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
4836
# resulting binary.
 
4837
hardcode_minus_L=$hardcode_minus_L
 
4838
 
 
4839
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
4840
# the resulting binary.
 
4841
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
4842
 
 
4843
# Variables whose values should be saved in libtool wrapper scripts and
 
4844
# restored at relink time.
 
4845
variables_saved_for_relink="$variables_saved_for_relink"
 
4846
 
 
4847
# Whether libtool must link a program against all its dependency libraries.
 
4848
link_all_deplibs=$link_all_deplibs
 
4849
 
 
4850
# Compile-time system search path for libraries
 
4851
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
4852
 
 
4853
# Run-time system search path for libraries
 
4854
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
4855
 
 
4856
# Fix the shell variable \$srcfile for the compiler.
 
4857
fix_srcfile_path="$fix_srcfile_path"
 
4858
 
 
4859
# Set to yes if exported symbols are required.
 
4860
always_export_symbols=$always_export_symbols
 
4861
 
 
4862
# The commands to list exported symbols.
 
4863
export_symbols_cmds=$lt_export_symbols_cmds
 
4864
 
 
4865
# The commands to extract the exported symbol list from a shared archive.
 
4866
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
4867
 
 
4868
# Symbols that should not be listed in the preloaded symbols.
 
4869
exclude_expsyms=$lt_exclude_expsyms
 
4870
 
 
4871
# Symbols that must always be exported.
 
4872
include_expsyms=$lt_include_expsyms
 
4873
 
 
4874
# ### END LIBTOOL CONFIG
 
4875
 
 
4876
__EOF__
 
4877
 
 
4878
  case $host_os in
 
4879
  aix3*)
 
4880
    cat <<\EOF >> "${ofile}T"
 
4881
 
 
4882
# AIX sometimes has problems with the GCC collect2 program.  For some
 
4883
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
4884
# vanish in a puff of smoke.
 
4885
if test "X${COLLECT_NAMES+set}" != Xset; then
 
4886
  COLLECT_NAMES=
 
4887
  export COLLECT_NAMES
 
4888
fi
 
4889
EOF
 
4890
    ;;
 
4891
  esac
 
4892
 
 
4893
  case $host_os in
 
4894
  cygwin* | mingw* | pw32* | os2*)
 
4895
    cat <<'EOF' >> "${ofile}T"
 
4896
      # This is a source program that is used to create dlls on Windows
 
4897
      # Don't remove nor modify the starting and closing comments
 
4898
# /* ltdll.c starts here */
 
4899
# #define WIN32_LEAN_AND_MEAN
 
4900
# #include <windows.h>
 
4901
# #undef WIN32_LEAN_AND_MEAN
 
4902
# #include <stdio.h>
 
4903
#
 
4904
# #ifndef __CYGWIN__
 
4905
# #  ifdef __CYGWIN32__
 
4906
# #    define __CYGWIN__ __CYGWIN32__
 
4907
# #  endif
 
4908
# #endif
 
4909
#
 
4910
# #ifdef __cplusplus
 
4911
# extern "C" {
 
4912
# #endif
 
4913
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
4914
# #ifdef __cplusplus
 
4915
# }
 
4916
# #endif
 
4917
#
 
4918
# #ifdef __CYGWIN__
 
4919
# #include <cygwin/cygwin_dll.h>
 
4920
# DECLARE_CYGWIN_DLL( DllMain );
 
4921
# #endif
 
4922
# HINSTANCE __hDllInstance_base;
 
4923
#
 
4924
# BOOL APIENTRY
 
4925
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
4926
# {
 
4927
#   __hDllInstance_base = hInst;
 
4928
#   return TRUE;
 
4929
# }
 
4930
# /* ltdll.c ends here */
 
4931
        # This is a source program that is used to create import libraries
 
4932
        # on Windows for dlls which lack them. Don't remove nor modify the
 
4933
        # starting and closing comments
 
4934
# /* impgen.c starts here */
 
4935
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
4936
#
 
4937
#  This file is part of GNU libtool.
 
4938
#
 
4939
#  This program is free software; you can redistribute it and/or modify
 
4940
#  it under the terms of the GNU General Public License as published by
 
4941
#  the Free Software Foundation; either version 2 of the License, or
 
4942
#  (at your option) any later version.
 
4943
#
 
4944
#  This program is distributed in the hope that it will be useful,
 
4945
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
4946
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
4947
#  GNU General Public License for more details.
 
4948
#
 
4949
#  You should have received a copy of the GNU General Public License
 
4950
#  along with this program; if not, write to the Free Software
 
4951
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4952
#  */
 
4953
#
 
4954
# #include <stdio.h>            /* for printf() */
 
4955
# #include <unistd.h>           /* for open(), lseek(), read() */
 
4956
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
4957
# #include <string.h>           /* for strdup() */
 
4958
#
 
4959
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
4960
# #ifndef O_BINARY
 
4961
# #define O_BINARY 0
 
4962
# #endif
 
4963
#
 
4964
# static unsigned int
 
4965
# pe_get16 (fd, offset)
 
4966
#      int fd;
 
4967
#      int offset;
 
4968
# {
 
4969
#   unsigned char b[2];
 
4970
#   lseek (fd, offset, SEEK_SET);
 
4971
#   read (fd, b, 2);
 
4972
#   return b[0] + (b[1]<<8);
 
4973
# }
 
4974
#
 
4975
# static unsigned int
 
4976
# pe_get32 (fd, offset)
 
4977
#     int fd;
 
4978
#     int offset;
 
4979
# {
 
4980
#   unsigned char b[4];
 
4981
#   lseek (fd, offset, SEEK_SET);
 
4982
#   read (fd, b, 4);
 
4983
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
4984
# }
 
4985
#
 
4986
# static unsigned int
 
4987
# pe_as32 (ptr)
 
4988
#      void *ptr;
 
4989
# {
 
4990
#   unsigned char *b = ptr;
 
4991
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
4992
# }
 
4993
#
 
4994
# int
 
4995
# main (argc, argv)
 
4996
#     int argc;
 
4997
#     char *argv[];
 
4998
# {
 
4999
#     int dll;
 
5000
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
5001
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
5002
#     unsigned long name_rvas, nexp;
 
5003
#     unsigned char *expdata, *erva;
 
5004
#     char *filename, *dll_name;
 
5005
#
 
5006
#     filename = argv[1];
 
5007
#
 
5008
#     dll = open(filename, O_RDONLY|O_BINARY);
 
5009
#     if (dll < 1)
 
5010
#       return 1;
 
5011
#
 
5012
#     dll_name = filename;
 
5013
#
 
5014
#     for (i=0; filename[i]; i++)
 
5015
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
5016
#           dll_name = filename + i +1;
 
5017
#
 
5018
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
5019
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
5020
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
5021
#
 
5022
#     if (num_entries < 1) /* no exports */
 
5023
#       return 1;
 
5024
#
 
5025
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
5026
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
5027
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
5028
#     secptr = (pe_header_offset + 4 + 20 +
 
5029
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
5030
#
 
5031
#     expptr = 0;
 
5032
#     for (i = 0; i < nsections; i++)
 
5033
#     {
 
5034
#       char sname[8];
 
5035
#       unsigned long secptr1 = secptr + 40 * i;
 
5036
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
5037
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
5038
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
5039
#       lseek(dll, secptr1, SEEK_SET);
 
5040
#       read(dll, sname, 8);
 
5041
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
5042
#       {
 
5043
#           expptr = fptr + (export_rva - vaddr);
 
5044
#           if (export_rva + export_size > vaddr + vsize)
 
5045
#               export_size = vsize - (export_rva - vaddr);
 
5046
#           break;
 
5047
#       }
 
5048
#     }
 
5049
#
 
5050
#     expdata = (unsigned char*)malloc(export_size);
 
5051
#     lseek (dll, expptr, SEEK_SET);
 
5052
#     read (dll, expdata, export_size);
 
5053
#     erva = expdata - export_rva;
 
5054
#
 
5055
#     nexp = pe_as32 (expdata+24);
 
5056
#     name_rvas = pe_as32 (expdata+32);
 
5057
#
 
5058
#     printf ("EXPORTS\n");
 
5059
#     for (i = 0; i<nexp; i++)
 
5060
#     {
 
5061
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
5062
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
5063
#     }
 
5064
#
 
5065
#     return 0;
 
5066
# }
 
5067
# /* impgen.c ends here */
 
5068
 
 
5069
EOF
 
5070
    ;;
 
5071
  esac
 
5072
 
 
5073
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5074
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5075
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5076
  # is reportedly fixed, but why not run on old versions too?
 
5077
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
5078
 
 
5079
  mv -f "${ofile}T" "$ofile" || \
 
5080
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
5081
  chmod +x "$ofile"
 
5082
fi
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
# This can be used to rebuild libtool when needed
 
5089
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
5090
 
 
5091
# Always use our own libtool.
 
5092
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
5093
 
 
5094
# Prevent multiple expansion
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
 
5101
 
 
5102
# Extract the first word of "gcc", so it can be a program name with args.
 
5103
set dummy gcc; ac_word=$2
 
5104
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
5105
echo "configure:5106: checking for $ac_word" >&5
 
5106
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
5107
  echo $ac_n "(cached) $ac_c" 1>&6
 
5108
else
 
5109
  if test -n "$CC"; then
 
5110
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5111
else
 
5112
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5113
  ac_dummy="$PATH"
 
5114
  for ac_dir in $ac_dummy; do
 
5115
    test -z "$ac_dir" && ac_dir=.
 
5116
    if test -f $ac_dir/$ac_word; then
 
5117
      ac_cv_prog_CC="gcc"
 
5118
      break
 
5119
    fi
 
5120
  done
 
5121
  IFS="$ac_save_ifs"
 
5122
fi
 
5123
fi
 
5124
CC="$ac_cv_prog_CC"
 
5125
if test -n "$CC"; then
 
5126
  echo "$ac_t""$CC" 1>&6
 
5127
else
 
5128
  echo "$ac_t""no" 1>&6
 
5129
fi
 
5130
 
 
5131
if test -z "$CC"; then
 
5132
  # Extract the first word of "cc", so it can be a program name with args.
 
5133
set dummy cc; ac_word=$2
 
5134
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
5135
echo "configure:5136: checking for $ac_word" >&5
 
5136
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
5137
  echo $ac_n "(cached) $ac_c" 1>&6
 
5138
else
 
5139
  if test -n "$CC"; then
 
5140
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5141
else
 
5142
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5143
  ac_prog_rejected=no
 
5144
  ac_dummy="$PATH"
 
5145
  for ac_dir in $ac_dummy; do
 
5146
    test -z "$ac_dir" && ac_dir=.
 
5147
    if test -f $ac_dir/$ac_word; then
 
5148
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
5149
        ac_prog_rejected=yes
 
5150
        continue
 
5151
      fi
 
5152
      ac_cv_prog_CC="cc"
 
5153
      break
 
5154
    fi
 
5155
  done
 
5156
  IFS="$ac_save_ifs"
 
5157
if test $ac_prog_rejected = yes; then
 
5158
  # We found a bogon in the path, so make sure we never use it.
 
5159
  set dummy $ac_cv_prog_CC
 
5160
  shift
 
5161
  if test $# -gt 0; then
 
5162
    # We chose a different compiler from the bogus one.
 
5163
    # However, it has the same basename, so the bogon will be chosen
 
5164
    # first if we set CC to just the basename; use the full file name.
 
5165
    shift
 
5166
    set dummy "$ac_dir/$ac_word" "$@"
 
5167
    shift
 
5168
    ac_cv_prog_CC="$@"
 
5169
  fi
 
5170
fi
 
5171
fi
 
5172
fi
 
5173
CC="$ac_cv_prog_CC"
 
5174
if test -n "$CC"; then
 
5175
  echo "$ac_t""$CC" 1>&6
 
5176
else
 
5177
  echo "$ac_t""no" 1>&6
 
5178
fi
 
5179
 
 
5180
  if test -z "$CC"; then
 
5181
    case "`uname -s`" in
 
5182
    *win32* | *WIN32*)
 
5183
      # Extract the first word of "cl", so it can be a program name with args.
 
5184
set dummy cl; ac_word=$2
 
5185
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
5186
echo "configure:5187: checking for $ac_word" >&5
 
5187
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
5188
  echo $ac_n "(cached) $ac_c" 1>&6
 
5189
else
 
5190
  if test -n "$CC"; then
 
5191
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5192
else
 
5193
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5194
  ac_dummy="$PATH"
 
5195
  for ac_dir in $ac_dummy; do
 
5196
    test -z "$ac_dir" && ac_dir=.
 
5197
    if test -f $ac_dir/$ac_word; then
 
5198
      ac_cv_prog_CC="cl"
 
5199
      break
 
5200
    fi
 
5201
  done
 
5202
  IFS="$ac_save_ifs"
 
5203
fi
 
5204
fi
 
5205
CC="$ac_cv_prog_CC"
 
5206
if test -n "$CC"; then
 
5207
  echo "$ac_t""$CC" 1>&6
 
5208
else
 
5209
  echo "$ac_t""no" 1>&6
 
5210
fi
 
5211
 ;;
 
5212
    esac
 
5213
  fi
 
5214
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
5215
fi
 
5216
 
 
5217
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
5218
echo "configure:5219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
5219
 
 
5220
ac_ext=c
 
5221
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5222
ac_cpp='$CPP $CPPFLAGS'
 
5223
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5224
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5225
cross_compiling=$ac_cv_prog_cc_cross
 
5226
 
 
5227
cat > conftest.$ac_ext << EOF
 
5228
 
 
5229
#line 5230 "configure"
 
5230
#include "confdefs.h"
 
5231
 
 
5232
main(){return(0);}
 
5233
EOF
 
5234
if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5235
  ac_cv_prog_cc_works=yes
 
5236
  # If we can't run a trivial program, we are probably using a cross compiler.
 
5237
  if (./conftest; exit) 2>/dev/null; then
 
5238
    ac_cv_prog_cc_cross=no
 
5239
  else
 
5240
    ac_cv_prog_cc_cross=yes
 
5241
  fi
 
5242
else
 
5243
  echo "configure: failed program was:" >&5
 
5244
  cat conftest.$ac_ext >&5
 
5245
  ac_cv_prog_cc_works=no
 
5246
fi
 
5247
rm -fr conftest*
 
5248
ac_ext=c
 
5249
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5250
ac_cpp='$CPP $CPPFLAGS'
 
5251
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5252
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5253
cross_compiling=$ac_cv_prog_cc_cross
 
5254
 
 
5255
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
5256
if test $ac_cv_prog_cc_works = no; then
 
5257
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
5258
fi
 
5259
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
5260
echo "configure:5261: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
5261
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
5262
cross_compiling=$ac_cv_prog_cc_cross
 
5263
 
 
5264
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
5265
echo "configure:5266: checking whether we are using GNU C" >&5
 
5266
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
5267
  echo $ac_n "(cached) $ac_c" 1>&6
 
5268
else
 
5269
  cat > conftest.c <<EOF
 
5270
#ifdef __GNUC__
 
5271
  yes;
 
5272
#endif
 
5273
EOF
 
5274
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
5275
  ac_cv_prog_gcc=yes
 
5276
else
 
5277
  ac_cv_prog_gcc=no
 
5278
fi
 
5279
fi
 
5280
 
 
5281
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
5282
 
 
5283
if test $ac_cv_prog_gcc = yes; then
 
5284
  GCC=yes
 
5285
else
 
5286
  GCC=
 
5287
fi
 
5288
 
 
5289
ac_test_CFLAGS="${CFLAGS+set}"
 
5290
ac_save_CFLAGS="$CFLAGS"
 
5291
CFLAGS=
 
5292
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
5293
echo "configure:5294: checking whether ${CC-cc} accepts -g" >&5
 
5294
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
5295
  echo $ac_n "(cached) $ac_c" 1>&6
 
5296
else
 
5297
  echo 'void f(){}' > conftest.c
 
5298
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
5299
  ac_cv_prog_cc_g=yes
 
5300
else
 
5301
  ac_cv_prog_cc_g=no
 
5302
fi
 
5303
rm -f conftest*
 
5304
 
 
5305
fi
 
5306
 
 
5307
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
5308
if test "$ac_test_CFLAGS" = set; then
 
5309
  CFLAGS="$ac_save_CFLAGS"
 
5310
elif test $ac_cv_prog_cc_g = yes; then
 
5311
  if test "$GCC" = yes; then
 
5312
    CFLAGS="-g -O2"
 
5313
  else
 
5314
    CFLAGS="-g"
 
5315
  fi
 
5316
else
 
5317
  if test "$GCC" = yes; then
 
5318
    CFLAGS="-O2"
 
5319
  else
 
5320
    CFLAGS=
 
5321
  fi
 
5322
fi
 
5323
 
 
5324
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
5325
echo "configure:5326: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
5326
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
5327
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
5328
  echo $ac_n "(cached) $ac_c" 1>&6
 
5329
else
 
5330
  cat > conftestmake <<\EOF
 
5331
all:
 
5332
        @echo 'ac_maketemp="${MAKE}"'
 
5333
EOF
 
5334
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
5335
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
5336
if test -n "$ac_maketemp"; then
 
5337
  eval ac_cv_prog_make_${ac_make}_set=yes
 
5338
else
 
5339
  eval ac_cv_prog_make_${ac_make}_set=no
 
5340
fi
 
5341
rm -f conftestmake
 
5342
fi
 
5343
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
5344
  echo "$ac_t""yes" 1>&6
 
5345
  SET_MAKE=
 
5346
else
 
5347
  echo "$ac_t""no" 1>&6
 
5348
  SET_MAKE="MAKE=${MAKE-make}"
 
5349
fi
 
5350
 
 
5351
# Extract the first word of "ranlib", so it can be a program name with args.
 
5352
set dummy ranlib; ac_word=$2
 
5353
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
5354
echo "configure:5355: checking for $ac_word" >&5
 
5355
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
5356
  echo $ac_n "(cached) $ac_c" 1>&6
 
5357
else
 
5358
  if test -n "$RANLIB"; then
 
5359
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5360
else
 
5361
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5362
  ac_dummy="$PATH"
 
5363
  for ac_dir in $ac_dummy; do
 
5364
    test -z "$ac_dir" && ac_dir=.
 
5365
    if test -f $ac_dir/$ac_word; then
 
5366
      ac_cv_prog_RANLIB="ranlib"
 
5367
      break
 
5368
    fi
 
5369
  done
 
5370
  IFS="$ac_save_ifs"
 
5371
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
5372
fi
 
5373
fi
 
5374
RANLIB="$ac_cv_prog_RANLIB"
 
5375
if test -n "$RANLIB"; then
 
5376
  echo "$ac_t""$RANLIB" 1>&6
 
5377
else
 
5378
  echo "$ac_t""no" 1>&6
 
5379
fi
 
5380
 
 
5381
 
 
5382
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
 
5383
echo "configure:5384: checking for pow in -lm" >&5
 
5384
ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
 
5385
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
5386
  echo $ac_n "(cached) $ac_c" 1>&6
 
5387
else
 
5388
  ac_save_LIBS="$LIBS"
 
5389
LIBS="-lm  $LIBS"
 
5390
cat > conftest.$ac_ext <<EOF
 
5391
#line 5392 "configure"
 
5392
#include "confdefs.h"
 
5393
/* Override any gcc2 internal prototype to avoid an error.  */
 
5394
/* We use char because int might match the return type of a gcc2
 
5395
    builtin and then its argument prototype would still apply.  */
 
5396
char pow();
 
5397
 
 
5398
int main() {
 
5399
pow()
 
5400
; return 0; }
 
5401
EOF
 
5402
if { (eval echo configure:5403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5403
  rm -rf conftest*
 
5404
  eval "ac_cv_lib_$ac_lib_var=yes"
 
5405
else
 
5406
  echo "configure: failed program was:" >&5
 
5407
  cat conftest.$ac_ext >&5
 
5408
  rm -rf conftest*
 
5409
  eval "ac_cv_lib_$ac_lib_var=no"
 
5410
fi
 
5411
rm -f conftest*
 
5412
LIBS="$ac_save_LIBS"
 
5413
 
 
5414
fi
 
5415
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
5416
  echo "$ac_t""yes" 1>&6
 
5417
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
5418
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
5419
  cat >> confdefs.h <<EOF
 
5420
#define $ac_tr_lib 1
 
5421
EOF
 
5422
 
 
5423
  LIBS="-lm $LIBS"
 
5424
 
 
5425
else
 
5426
  echo "$ac_t""no" 1>&6
 
5427
fi
 
5428
 
 
5429
 
 
5430
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
5431
echo "configure:5432: checking for ANSI C header files" >&5
 
5432
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
5433
  echo $ac_n "(cached) $ac_c" 1>&6
 
5434
else
 
5435
  cat > conftest.$ac_ext <<EOF
 
5436
#line 5437 "configure"
 
5437
#include "confdefs.h"
 
5438
#include <stdlib.h>
 
5439
#include <stdarg.h>
 
5440
#include <string.h>
 
5441
#include <float.h>
 
5442
EOF
 
5443
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
5444
{ (eval echo configure:5445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5445
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
5446
if test -z "$ac_err"; then
 
5447
  rm -rf conftest*
 
5448
  ac_cv_header_stdc=yes
 
5449
else
 
5450
  echo "$ac_err" >&5
 
5451
  echo "configure: failed program was:" >&5
 
5452
  cat conftest.$ac_ext >&5
 
5453
  rm -rf conftest*
 
5454
  ac_cv_header_stdc=no
 
5455
fi
 
5456
rm -f conftest*
 
5457
 
 
5458
if test $ac_cv_header_stdc = yes; then
 
5459
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5460
cat > conftest.$ac_ext <<EOF
 
5461
#line 5462 "configure"
 
5462
#include "confdefs.h"
 
5463
#include <string.h>
 
5464
EOF
 
5465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5466
  egrep "memchr" >/dev/null 2>&1; then
 
5467
  :
 
5468
else
 
5469
  rm -rf conftest*
 
5470
  ac_cv_header_stdc=no
 
5471
fi
 
5472
rm -f conftest*
 
5473
 
 
5474
fi
 
5475
 
 
5476
if test $ac_cv_header_stdc = yes; then
 
5477
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5478
cat > conftest.$ac_ext <<EOF
 
5479
#line 5480 "configure"
 
5480
#include "confdefs.h"
 
5481
#include <stdlib.h>
 
5482
EOF
 
5483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5484
  egrep "free" >/dev/null 2>&1; then
 
5485
  :
 
5486
else
 
5487
  rm -rf conftest*
 
5488
  ac_cv_header_stdc=no
 
5489
fi
 
5490
rm -f conftest*
 
5491
 
 
5492
fi
 
5493
 
 
5494
if test $ac_cv_header_stdc = yes; then
 
5495
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5496
if test "$cross_compiling" = yes; then
 
5497
  :
 
5498
else
 
5499
  cat > conftest.$ac_ext <<EOF
 
5500
#line 5501 "configure"
 
5501
#include "confdefs.h"
 
5502
#include <ctype.h>
 
5503
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5504
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5505
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5506
int main () { int i; for (i = 0; i < 256; i++)
 
5507
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
5508
exit (0); }
 
5509
 
 
5510
EOF
 
5511
if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5512
then
 
5513
  :
 
5514
else
 
5515
  echo "configure: failed program was:" >&5
 
5516
  cat conftest.$ac_ext >&5
 
5517
  rm -fr conftest*
 
5518
  ac_cv_header_stdc=no
 
5519
fi
 
5520
rm -fr conftest*
 
5521
fi
 
5522
 
 
5523
fi
 
5524
fi
 
5525
 
 
5526
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
5527
if test $ac_cv_header_stdc = yes; then
 
5528
  cat >> confdefs.h <<\EOF
 
5529
#define STDC_HEADERS 1
 
5530
EOF
 
5531
 
 
5532
fi
 
5533
 
 
5534
for ac_hdr in limits.h
 
5535
do
 
5536
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
5537
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
5538
echo "configure:5539: checking for $ac_hdr" >&5
 
5539
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
5540
  echo $ac_n "(cached) $ac_c" 1>&6
 
5541
else
 
5542
  cat > conftest.$ac_ext <<EOF
 
5543
#line 5544 "configure"
 
5544
#include "confdefs.h"
 
5545
#include <$ac_hdr>
 
5546
EOF
 
5547
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
5548
{ (eval echo configure:5549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5549
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
5550
if test -z "$ac_err"; then
 
5551
  rm -rf conftest*
 
5552
  eval "ac_cv_header_$ac_safe=yes"
 
5553
else
 
5554
  echo "$ac_err" >&5
 
5555
  echo "configure: failed program was:" >&5
 
5556
  cat conftest.$ac_ext >&5
 
5557
  rm -rf conftest*
 
5558
  eval "ac_cv_header_$ac_safe=no"
 
5559
fi
 
5560
rm -f conftest*
 
5561
fi
 
5562
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
5563
  echo "$ac_t""yes" 1>&6
 
5564
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
5565
  cat >> confdefs.h <<EOF
 
5566
#define $ac_tr_hdr 1
 
5567
EOF
 
5568
 
 
5569
else
 
5570
  echo "$ac_t""no" 1>&6
 
5571
fi
 
5572
done
 
5573
 
 
5574
 
 
5575
state_storage=internal_hash
 
5576
stack_storage=internal_hash
 
5577
max_num_freecells=4
 
5578
max_num_stacks=10
 
5579
states_type=compact
 
5580
max_num_initial_cards_per_stack=8
 
5581
max_num_decks=2
 
5582
card_debug_pres=no
 
5583
 
 
5584
# Check whether --enable-state-storage or --disable-state-storage was given.
 
5585
if test "${enable_state_storage+set}" = set; then
 
5586
  enableval="$enable_state_storage"
 
5587
   if   test "x$enableval" = "xglib_hash" ; then
 
5588
      state_storage=glib_hash
 
5589
   elif test "x$enableval" = "xglib_tree" ; then
 
5590
      state_storage=glib_tree
 
5591
   elif test "x$enableval" = "xindirect" ; then
 
5592
      state_storage=indirect      
 
5593
   elif test "x$enableval" = "xinternal_hash" ; then
 
5594
      state_storage=internal_hash
 
5595
   elif test "x$enableval" = "xlibavl_avl" ; then
 
5596
      state_storage=libavl_avl
 
5597
   elif test "x$enableval" = "xlibavl_redblack" ; then
 
5598
      state_storage=libavl_redblack
 
5599
   elif test "x$enableval" = "xlibredblack" ; then
 
5600
      state_storage=libredblack      
 
5601
   else
 
5602
      echo
 
5603
      echo "Error!"
 
5604
      echo "Unknown state storage"
 
5605
      exit -1
 
5606
   fi
 
5607
 
 
5608
fi
 
5609
 
 
5610
 
 
5611
# Check whether --enable-stack-storage or --disable-stack-storage was given.
 
5612
if test "${enable_stack_storage+set}" = set; then
 
5613
  enableval="$enable_stack_storage"
 
5614
   if   test "x$enableval" = "xglib_hash" ; then
 
5615
      stack_storage=glib_hash
 
5616
   elif test "x$enableval" = "xglib_tree" ; then
 
5617
      stack_storage=glib_tree
 
5618
   elif test "x$enableval" = "xinternal_hash" ; then
 
5619
      stack_storage=internal_hash
 
5620
   elif test "x$enableval" = "xlibavl_avl" ; then
 
5621
      stack_storage=libavl_avl
 
5622
   elif test "x$enableval" = "xlibavl_redblack" ; then
 
5623
      stack_storage=libavl_redblack
 
5624
   elif test "x$enableval" = "xlibredblack" ; then
 
5625
      stack_storage=libredblack      
 
5626
   else
 
5627
      echo
 
5628
      echo "Error!"
 
5629
      echo "Unknown state storage"
 
5630
      exit -1
 
5631
   fi
 
5632
 
 
5633
fi
 
5634
 
 
5635
 
 
5636
# Check whether --enable-states-type or --disable-states-type was given.
 
5637
if test "${enable_states_type+set}" = set; then
 
5638
  enableval="$enable_states_type"
 
5639
   if   test "x$enableval" = "xcompact" ; then
 
5640
      states_type=compact
 
5641
   elif test "x$enableval" = "xdebug" ; then
 
5642
      states_type=debug
 
5643
   elif test "x$enableval" = "xindirect" ; then
 
5644
      states_type=indirect      
 
5645
   else
 
5646
      echo 
 
5647
      echo "Error!"
 
5648
      echo "Unknown states' type"
 
5649
      exit -1
 
5650
   fi
 
5651
 
 
5652
fi
 
5653
 
 
5654
 
 
5655
 
 
5656
# Check whether --enable-max-num-freecells or --disable-max-num-freecells was given.
 
5657
if test "${enable_max_num_freecells+set}" = set; then
 
5658
  enableval="$enable_max_num_freecells"
 
5659
   if   test "x$enableval" = "x" ; then
 
5660
      max_num_freecells=4
 
5661
   else
 
5662
       # Check if it's indeed a number
 
5663
       
 
5664
       if echo "0$enableval" | grep '[^0-9]' > /dev/null ; then  
 
5665
           echo 
 
5666
           echo "Error!"       
 
5667
           echo "max-num-freecells should be a number!"
 
5668
           exit -1
 
5669
       elif expr $enableval \< 4 > /dev/null ; then
 
5670
           echo
 
5671
           echo "Error!"
 
5672
           echo "max-num-freecells cannot be lower than 4!"
 
5673
           exit -1
 
5674
       elif expr $enableval \> 20 > /dev/null ; then
 
5675
           echo 
 
5676
           echo "Error!"
 
5677
           echo "max-num-freeecells cannot be greater than 20!"
 
5678
           exit -1
 
5679
       else           
 
5680
           max_num_freecells="$enableval"
 
5681
       fi       
 
5682
       
 
5683
   fi
 
5684
fi
 
5685
 
 
5686
 
 
5687
# Check whether --enable-max-num-stacks or --disable-max-num-stacks was given.
 
5688
if test "${enable_max_num_stacks+set}" = set; then
 
5689
  enableval="$enable_max_num_stacks"
 
5690
   if   test "x$enableval" = "x" ; then
 
5691
      max_num_stacks=8
 
5692
   else
 
5693
       
 
5694
       # Check if it's indeed a number
 
5695
       if echo "0$enableval" | grep '[^0-9]' > /dev/null ; then  
 
5696
           echo 
 
5697
           echo "Error!"       
 
5698
           echo "max-num-stacks should be a number!"
 
5699
           exit -1
 
5700
       elif expr $enableval \< 8 > /dev/null ; then 
 
5701
           echo
 
5702
           echo "Error!"
 
5703
           echo "max-num-stacks cannot be lower than 8"
 
5704
           exit -1
 
5705
       elif expr $enableval \> 20 > /dev/null ; then
 
5706
           echo 
 
5707
           echo "Error!"
 
5708
           echo "max-num-stacks cannot be greater than 20"
 
5709
           exit -1
 
5710
       else
 
5711
           max_num_stacks="$enableval"
 
5712
       fi       
 
5713
       
 
5714
   fi
 
5715
fi
 
5716
 
 
5717
 
 
5718
# Check whether --enable-max-num-initial-cards-per-stack or --disable-max-num-initial-cards-per-stack was given.
 
5719
if test "${enable_max_num_initial_cards_per_stack+set}" = set; then
 
5720
  enableval="$enable_max_num_initial_cards_per_stack"
 
5721
   if   test "x$enableval" = "x" ; then
 
5722
      max_num_initial_cards_per_stack=7
 
5723
   else
 
5724
       
 
5725
       # Check if it's indeed a number
 
5726
       if echo "0$enableval" | grep '[^0-9]' > /dev/null ; then  
 
5727
           echo 
 
5728
           echo "Error!"
 
5729
           echo "max-num-initial-cards-per-stack should be a number!"
 
5730
           exit -1
 
5731
       elif expr $enableval \< 7 > /dev/null ; then
 
5732
           echo
 
5733
           echo "Error!"
 
5734
           echo "max-num-initial-cards-per-stack cannot be lower than 7"
 
5735
           exit -1
 
5736
       elif expr $enableval \> 104 > /dev/null ; then
 
5737
           echo
 
5738
           echo "Error!"
 
5739
           echo "max-num-initial-cards-per-stack cannot be greater than 104"
 
5740
           echo "(the number of cards in two decks"
 
5741
           exit -1
 
5742
       else
 
5743
           max_num_initial_cards_per_stack="$enableval"
 
5744
       fi
 
5745
       
 
5746
   fi
 
5747
fi
 
5748
   
 
5749
 
 
5750
# Check whether --enable-max-num-decks or --disable-max-num-decks was given.
 
5751
if test "${enable_max_num_decks+set}" = set; then
 
5752
  enableval="$enable_max_num_decks"
 
5753
   if   test "x$enableval" = "x1" ; then
 
5754
       max_num_decks=1
 
5755
   elif test "x$enableval" = "x2" ; then
 
5756
       max_num_decks=2
 
5757
   else
 
5758
       echo 
 
5759
       echo "Error!"   
 
5760
       echo "Wrong value for max-num-decks. Can be 1 or 2."
 
5761
       exit -1
 
5762
   fi
 
5763
fi
 
5764
 
 
5765
 
 
5766
# Check whether --enable-card-debug-pres or --disable-card-debug-pres was given.
 
5767
if test "${enable_card_debug_pres+set}" = set; then
 
5768
  enableval="$enable_card_debug_pres"
 
5769
   card_debug_pres=yes
 
5770
 
 
5771
fi
 
5772
 
 
5773
 
 
5774
 
 
5775
if   test "x$state_storage" = "xglib_hash" ; then
 
5776
    cat >> confdefs.h <<\EOF
 
5777
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_GLIB_HASH
 
5778
EOF
 
5779
 
 
5780
    requires_glib=yes
 
5781
elif test "x$state_storage" = "xglib_tree" ; then
 
5782
    cat >> confdefs.h <<\EOF
 
5783
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_GLIB_TREE
 
5784
EOF
 
5785
 
 
5786
    requires_glib=yes
 
5787
elif test "x$state_storage" = "xindirect" ; then
 
5788
    cat >> confdefs.h <<\EOF
 
5789
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_INDIRECT
 
5790
EOF
 
5791
 
 
5792
elif test "x$state_storage" = "xinternal_hash" ; then
 
5793
    cat >> confdefs.h <<\EOF
 
5794
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_INTERNAL_HASH
 
5795
EOF
 
5796
 
 
5797
elif test "x$state_storage" = "xlibavl_avl" ; then
 
5798
    cat >> confdefs.h <<\EOF
 
5799
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_LIBAVL_AVL_TREE
 
5800
EOF
 
5801
 
 
5802
    requires_libavl=yes
 
5803
elif test "x$state_storage" = "xlibavl_redblack" ; then
 
5804
    cat >> confdefs.h <<\EOF
 
5805
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_LIBAVL_REDBLACK_TREE
 
5806
EOF
 
5807
 
 
5808
    requires_libavl=yes
 
5809
elif test "x$state_storage" = "xlibredblack" ; then
 
5810
    cat >> confdefs.h <<\EOF
 
5811
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_LIBREDBLACK_TREE
 
5812
EOF
 
5813
 
 
5814
    requires_libredblack=yes
 
5815
fi
 
5816
 
 
5817
if test "x$states_type" = "xindirect" ; then
 
5818
    if   test "x$stack_storage" = "xglib_hash" ; then
 
5819
        cat >> confdefs.h <<\EOF
 
5820
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_GLIB_HASH
 
5821
EOF
 
5822
 
 
5823
        requires_glib=yes
 
5824
    elif test "x$stack_storage" = "xglib_tree" ; then
 
5825
        cat >> confdefs.h <<\EOF
 
5826
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_GLIB_TREE
 
5827
EOF
 
5828
 
 
5829
        requires_glib=yes
 
5830
    elif test "x$stack_storage" = "xinternal_hash" ; then
 
5831
        cat >> confdefs.h <<\EOF
 
5832
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_INTERNAL_HASH
 
5833
EOF
 
5834
 
 
5835
    elif test "x$stack_storage" = "xlibavl_avl" ; then
 
5836
        cat >> confdefs.h <<\EOF
 
5837
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_LIBAVL_AVL_TREE
 
5838
EOF
 
5839
 
 
5840
        requires_libavl=yes
 
5841
    elif test "x$stack_storage" = "xlibavl_redblack" ; then
 
5842
        cat >> confdefs.h <<\EOF
 
5843
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_LIBAVL_REDBLACK_TREE
 
5844
EOF
 
5845
 
 
5846
        requires_libavl=yes
 
5847
    elif test "x$stack_storage" = "xlibredblack" ; then
 
5848
        cat >> confdefs.h <<\EOF
 
5849
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_LIBREDBLACK_TREE
 
5850
EOF
 
5851
 
 
5852
        requires_libredblack=yes
 
5853
    fi
 
5854
fi
 
5855
 
 
5856
if test "x$requires_libavl" = "xyes" ; then
 
5857
    echo $ac_n "checking for avl_create in -lavl""... $ac_c" 1>&6
 
5858
echo "configure:5859: checking for avl_create in -lavl" >&5
 
5859
ac_lib_var=`echo avl'_'avl_create | sed 'y%./+-%__p_%'`
 
5860
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
5861
  echo $ac_n "(cached) $ac_c" 1>&6
 
5862
else
 
5863
  ac_save_LIBS="$LIBS"
 
5864
LIBS="-lavl  $LIBS"
 
5865
cat > conftest.$ac_ext <<EOF
 
5866
#line 5867 "configure"
 
5867
#include "confdefs.h"
 
5868
/* Override any gcc2 internal prototype to avoid an error.  */
 
5869
/* We use char because int might match the return type of a gcc2
 
5870
    builtin and then its argument prototype would still apply.  */
 
5871
char avl_create();
 
5872
 
 
5873
int main() {
 
5874
avl_create()
 
5875
; return 0; }
 
5876
EOF
 
5877
if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5878
  rm -rf conftest*
 
5879
  eval "ac_cv_lib_$ac_lib_var=yes"
 
5880
else
 
5881
  echo "configure: failed program was:" >&5
 
5882
  cat conftest.$ac_ext >&5
 
5883
  rm -rf conftest*
 
5884
  eval "ac_cv_lib_$ac_lib_var=no"
 
5885
fi
 
5886
rm -f conftest*
 
5887
LIBS="$ac_save_LIBS"
 
5888
 
 
5889
fi
 
5890
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
5891
  echo "$ac_t""yes" 1>&6
 
5892
    ac_tr_lib=HAVE_LIB`echo avl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
5893
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
5894
  cat >> confdefs.h <<EOF
 
5895
#define $ac_tr_lib 1
 
5896
EOF
 
5897
 
 
5898
  LIBS="-lavl $LIBS"
 
5899
 
 
5900
else
 
5901
  echo "$ac_t""no" 1>&6
 
5902
fi
 
5903
 
 
5904
    if test "x$ac_cv_lib_avl_avl_create" = "xno" ; then
 
5905
        echo "Error! You need to have libavl around."
 
5906
        exit -1
 
5907
    fi
 
5908
fi
 
5909
 
 
5910
if test "x$requires_libredblack" = "xyes" ; then
 
5911
    echo $ac_n "checking for rbsearch in -lredblack""... $ac_c" 1>&6
 
5912
echo "configure:5913: checking for rbsearch in -lredblack" >&5
 
5913
ac_lib_var=`echo redblack'_'rbsearch | sed 'y%./+-%__p_%'`
 
5914
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
5915
  echo $ac_n "(cached) $ac_c" 1>&6
 
5916
else
 
5917
  ac_save_LIBS="$LIBS"
 
5918
LIBS="-lredblack  $LIBS"
 
5919
cat > conftest.$ac_ext <<EOF
 
5920
#line 5921 "configure"
 
5921
#include "confdefs.h"
 
5922
/* Override any gcc2 internal prototype to avoid an error.  */
 
5923
/* We use char because int might match the return type of a gcc2
 
5924
    builtin and then its argument prototype would still apply.  */
 
5925
char rbsearch();
 
5926
 
 
5927
int main() {
 
5928
rbsearch()
 
5929
; return 0; }
 
5930
EOF
 
5931
if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5932
  rm -rf conftest*
 
5933
  eval "ac_cv_lib_$ac_lib_var=yes"
 
5934
else
 
5935
  echo "configure: failed program was:" >&5
 
5936
  cat conftest.$ac_ext >&5
 
5937
  rm -rf conftest*
 
5938
  eval "ac_cv_lib_$ac_lib_var=no"
 
5939
fi
 
5940
rm -f conftest*
 
5941
LIBS="$ac_save_LIBS"
 
5942
 
 
5943
fi
 
5944
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
5945
  echo "$ac_t""yes" 1>&6
 
5946
    ac_tr_lib=HAVE_LIB`echo redblack | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
5947
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
5948
  cat >> confdefs.h <<EOF
 
5949
#define $ac_tr_lib 1
 
5950
EOF
 
5951
 
 
5952
  LIBS="-lredblack $LIBS"
 
5953
 
 
5954
else
 
5955
  echo "$ac_t""no" 1>&6
 
5956
fi
 
5957
 
 
5958
    if test "x$ac_cv_lib_redblack_rbsearch" = "xno" ; then
 
5959
        echo "Error! You need to have libredblack around."
 
5960
        exit -1
 
5961
    fi
 
5962
fi
 
5963
 
 
5964
if test "x$requires_glib" = "xyes" ; then
 
5965
    echo $ac_n "checking for g_hash_table_new in -lglib""... $ac_c" 1>&6
 
5966
echo "configure:5967: checking for g_hash_table_new in -lglib" >&5
 
5967
ac_lib_var=`echo glib'_'g_hash_table_new | sed 'y%./+-%__p_%'`
 
5968
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
5969
  echo $ac_n "(cached) $ac_c" 1>&6
 
5970
else
 
5971
  ac_save_LIBS="$LIBS"
 
5972
LIBS="-lglib  $LIBS"
 
5973
cat > conftest.$ac_ext <<EOF
 
5974
#line 5975 "configure"
 
5975
#include "confdefs.h"
 
5976
/* Override any gcc2 internal prototype to avoid an error.  */
 
5977
/* We use char because int might match the return type of a gcc2
 
5978
    builtin and then its argument prototype would still apply.  */
 
5979
char g_hash_table_new();
 
5980
 
 
5981
int main() {
 
5982
g_hash_table_new()
 
5983
; return 0; }
 
5984
EOF
 
5985
if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5986
  rm -rf conftest*
 
5987
  eval "ac_cv_lib_$ac_lib_var=yes"
 
5988
else
 
5989
  echo "configure: failed program was:" >&5
 
5990
  cat conftest.$ac_ext >&5
 
5991
  rm -rf conftest*
 
5992
  eval "ac_cv_lib_$ac_lib_var=no"
 
5993
fi
 
5994
rm -f conftest*
 
5995
LIBS="$ac_save_LIBS"
 
5996
 
 
5997
fi
 
5998
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
5999
  echo "$ac_t""yes" 1>&6
 
6000
    ac_tr_lib=HAVE_LIB`echo glib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
6001
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
6002
  cat >> confdefs.h <<EOF
 
6003
#define $ac_tr_lib 1
 
6004
EOF
 
6005
 
 
6006
  LIBS="-lglib $LIBS"
 
6007
 
 
6008
else
 
6009
  echo "$ac_t""no" 1>&6
 
6010
fi
 
6011
 
 
6012
    if test "x$ac_cv_lib_glib_g_hash_table_new" = "xno" ; then
 
6013
        echo 
 
6014
        echo "Error!"
 
6015
        echo "You need to have glib around."
 
6016
        exit -1
 
6017
    fi
 
6018
 
 
6019
    
 
6020
    if false ; then
 
6021
        GTK_CFLAGS=`gtk-config --cflags`
 
6022
                        GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^\(-I^ *\).*$/\1/'`
 
6023
        if echo $GTK_TEMP_CFLAGS | grep 'glib/include$' > /dev/null; then
 
6024
          GTK_TEMP_CFLAGS="$GTK_CFLAGS"
 
6025
        else
 
6026
          GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^-I^ * \(.*\)$/\1/'`
 
6027
        fi
 
6028
        GLIB_CFLAGS=`echo $GTK_TEMP_CFLAGS | sed 's/^\(-I^ *glib^ *  *-I^ *\).*/\1/'`
 
6029
    fi
 
6030
    GLIB_CFLAGS=`glib-config --cflags`
 
6031
    # Append them to the compiler flags
 
6032
    CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
6033
fi
 
6034
 
 
6035
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
6036
echo "configure:6037: checking for working const" >&5
 
6037
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
6038
  echo $ac_n "(cached) $ac_c" 1>&6
 
6039
else
 
6040
  cat > conftest.$ac_ext <<EOF
 
6041
#line 6042 "configure"
 
6042
#include "confdefs.h"
 
6043
 
 
6044
int main() {
 
6045
 
 
6046
/* Ultrix mips cc rejects this.  */
 
6047
typedef int charset[2]; const charset x;
 
6048
/* SunOS 4.1.1 cc rejects this.  */
 
6049
char const *const *ccp;
 
6050
char **p;
 
6051
/* NEC SVR4.0.2 mips cc rejects this.  */
 
6052
struct point {int x, y;};
 
6053
static struct point const zero = {0,0};
 
6054
/* AIX XL C 1.02.0.0 rejects this.
 
6055
   It does not let you subtract one const X* pointer from another in an arm
 
6056
   of an if-expression whose if-part is not a constant expression */
 
6057
const char *g = "string";
 
6058
ccp = &g + (g ? g-g : 0);
 
6059
/* HPUX 7.0 cc rejects these. */
 
6060
++ccp;
 
6061
p = (char**) ccp;
 
6062
ccp = (char const *const *) p;
 
6063
{ /* SCO 3.2v4 cc rejects this.  */
 
6064
  char *t;
 
6065
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
6066
 
 
6067
  *t++ = 0;
 
6068
}
 
6069
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
6070
  int x[] = {25, 17};
 
6071
  const int *foo = &x[0];
 
6072
  ++foo;
 
6073
}
 
6074
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
6075
  typedef const int *iptr;
 
6076
  iptr p = 0;
 
6077
  ++p;
 
6078
}
 
6079
{ /* AIX XL C 1.02.0.0 rejects this saying
 
6080
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
6081
  struct s { int j; const int *ap[3]; };
 
6082
  struct s *b; b->j = 5;
 
6083
}
 
6084
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
6085
  const int foo = 10;
 
6086
}
 
6087
 
 
6088
; return 0; }
 
6089
EOF
 
6090
if { (eval echo configure:6091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6091
  rm -rf conftest*
 
6092
  ac_cv_c_const=yes
 
6093
else
 
6094
  echo "configure: failed program was:" >&5
 
6095
  cat conftest.$ac_ext >&5
 
6096
  rm -rf conftest*
 
6097
  ac_cv_c_const=no
 
6098
fi
 
6099
rm -f conftest*
 
6100
fi
 
6101
 
 
6102
echo "$ac_t""$ac_cv_c_const" 1>&6
 
6103
if test $ac_cv_c_const = no; then
 
6104
  cat >> confdefs.h <<\EOF
 
6105
#define const 
 
6106
EOF
 
6107
 
 
6108
fi
 
6109
 
 
6110
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
6111
echo "configure:6112: checking for size_t" >&5
 
6112
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
6113
  echo $ac_n "(cached) $ac_c" 1>&6
 
6114
else
 
6115
  cat > conftest.$ac_ext <<EOF
 
6116
#line 6117 "configure"
 
6117
#include "confdefs.h"
 
6118
#include <sys/types.h>
 
6119
#if STDC_HEADERS
 
6120
#include <stdlib.h>
 
6121
#include <stddef.h>
 
6122
#endif
 
6123
EOF
 
6124
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6125
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
6126
  rm -rf conftest*
 
6127
  ac_cv_type_size_t=yes
 
6128
else
 
6129
  rm -rf conftest*
 
6130
  ac_cv_type_size_t=no
 
6131
fi
 
6132
rm -f conftest*
 
6133
 
 
6134
fi
 
6135
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
6136
if test $ac_cv_type_size_t = no; then
 
6137
  cat >> confdefs.h <<\EOF
 
6138
#define size_t unsigned
 
6139
EOF
 
6140
 
 
6141
fi
 
6142
 
 
6143
 
 
6144
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
 
6145
echo "configure:6146: checking for 8-bit clean memcmp" >&5
 
6146
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
 
6147
  echo $ac_n "(cached) $ac_c" 1>&6
 
6148
else
 
6149
  if test "$cross_compiling" = yes; then
 
6150
  ac_cv_func_memcmp_clean=no
 
6151
else
 
6152
  cat > conftest.$ac_ext <<EOF
 
6153
#line 6154 "configure"
 
6154
#include "confdefs.h"
 
6155
 
 
6156
main()
 
6157
{
 
6158
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
6159
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
 
6160
}
 
6161
 
 
6162
EOF
 
6163
if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
6164
then
 
6165
  ac_cv_func_memcmp_clean=yes
 
6166
else
 
6167
  echo "configure: failed program was:" >&5
 
6168
  cat conftest.$ac_ext >&5
 
6169
  rm -fr conftest*
 
6170
  ac_cv_func_memcmp_clean=no
 
6171
fi
 
6172
rm -fr conftest*
 
6173
fi
 
6174
 
 
6175
fi
 
6176
 
 
6177
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
 
6178
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
 
6179
 
 
6180
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 
6181
echo "configure:6182: checking return type of signal handlers" >&5
 
6182
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
 
6183
  echo $ac_n "(cached) $ac_c" 1>&6
 
6184
else
 
6185
  cat > conftest.$ac_ext <<EOF
 
6186
#line 6187 "configure"
 
6187
#include "confdefs.h"
 
6188
#include <sys/types.h>
 
6189
#include <signal.h>
 
6190
#ifdef signal
 
6191
#undef signal
 
6192
#endif
 
6193
#ifdef __cplusplus
 
6194
extern "C" void (*signal (int, void (*)(int)))(int);
 
6195
#else
 
6196
void (*signal ()) ();
 
6197
#endif
 
6198
 
 
6199
int main() {
 
6200
int i;
 
6201
; return 0; }
 
6202
EOF
 
6203
if { (eval echo configure:6204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6204
  rm -rf conftest*
 
6205
  ac_cv_type_signal=void
 
6206
else
 
6207
  echo "configure: failed program was:" >&5
 
6208
  cat conftest.$ac_ext >&5
 
6209
  rm -rf conftest*
 
6210
  ac_cv_type_signal=int
 
6211
fi
 
6212
rm -f conftest*
 
6213
fi
 
6214
 
 
6215
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
6216
cat >> confdefs.h <<EOF
 
6217
#define RETSIGTYPE $ac_cv_type_signal
 
6218
EOF
 
6219
 
 
6220
 
 
6221
for ac_func in strdup
 
6222
do
 
6223
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
6224
echo "configure:6225: checking for $ac_func" >&5
 
6225
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
6226
  echo $ac_n "(cached) $ac_c" 1>&6
 
6227
else
 
6228
  cat > conftest.$ac_ext <<EOF
 
6229
#line 6230 "configure"
 
6230
#include "confdefs.h"
 
6231
/* System header to define __stub macros and hopefully few prototypes,
 
6232
    which can conflict with char $ac_func(); below.  */
 
6233
#include <assert.h>
 
6234
/* Override any gcc2 internal prototype to avoid an error.  */
 
6235
/* We use char because int might match the return type of a gcc2
 
6236
    builtin and then its argument prototype would still apply.  */
 
6237
char $ac_func();
 
6238
 
 
6239
int main() {
 
6240
 
 
6241
/* The GNU C library defines this for functions which it implements
 
6242
    to always fail with ENOSYS.  Some functions are actually named
 
6243
    something starting with __ and the normal name is an alias.  */
 
6244
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6245
choke me
 
6246
#else
 
6247
$ac_func();
 
6248
#endif
 
6249
 
 
6250
; return 0; }
 
6251
EOF
 
6252
if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6253
  rm -rf conftest*
 
6254
  eval "ac_cv_func_$ac_func=yes"
 
6255
else
 
6256
  echo "configure: failed program was:" >&5
 
6257
  cat conftest.$ac_ext >&5
 
6258
  rm -rf conftest*
 
6259
  eval "ac_cv_func_$ac_func=no"
 
6260
fi
 
6261
rm -f conftest*
 
6262
fi
 
6263
 
 
6264
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
6265
  echo "$ac_t""yes" 1>&6
 
6266
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
6267
  cat >> confdefs.h <<EOF
 
6268
#define $ac_tr_func 1
 
6269
EOF
 
6270
 
 
6271
else
 
6272
  echo "$ac_t""no" 1>&6
 
6273
fi
 
6274
done
 
6275
 
 
6276
 
 
6277
# Define COMPACT_STATES, DEBUG_STATES or INDIRECT_STACK_STATES
 
6278
if   test "x$states_type" = "xcompact" ; then
 
6279
    cat >> confdefs.h <<\EOF
 
6280
#define COMPACT_STATES 1
 
6281
EOF
 
6282
 
 
6283
elif test "x$states_type" = "xdebug" ; then
 
6284
    cat >> confdefs.h <<\EOF
 
6285
#define DEBUG_STATES 1
 
6286
EOF
 
6287
 
 
6288
else
 
6289
    cat >> confdefs.h <<\EOF
 
6290
#define INDIRECT_STACK_STATES 1
 
6291
EOF
 
6292
 
 
6293
fi
 
6294
 
 
6295
if test "x$card_debug_pres" = "xyes" ; then
 
6296
    cat >> confdefs.h <<\EOF
 
6297
#define CARD_DEBUG_PRES 1
 
6298
EOF
 
6299
 
 
6300
fi
 
6301
 
 
6302
cat >> confdefs.h <<\EOF
 
6303
#define PREV_STATES_SORT_MARGIN 32
 
6304
EOF
 
6305
 
 
6306
cat >> confdefs.h <<\EOF
 
6307
#define PREV_STATES_GROW_BY 128
 
6308
EOF
 
6309
 
 
6310
cat >> confdefs.h <<\EOF
 
6311
#define IA_STATE_PACKS_GROW_BY 32
 
6312
EOF
 
6313
 
 
6314
cat >> confdefs.h <<EOF
 
6315
#define MAX_NUM_FREECELLS $max_num_freecells
 
6316
EOF
 
6317
 
 
6318
cat >> confdefs.h <<EOF
 
6319
#define MAX_NUM_STACK $max_num_stacks
 
6320
EOF
 
6321
 
 
6322
cat >> confdefs.h <<EOF
 
6323
#define MAX_NUM_INITIAL_CARDS_IN_A_STACK $max_num_initial_cards_per_stack
 
6324
EOF
 
6325
 
 
6326
cat >> confdefs.h <<EOF
 
6327
#define MAX_NUM_DECKS $max_num_decks
 
6328
EOF
 
6329
 
 
6330
 
 
6331
trap '' 1 2 15
 
6332
cat > confcache <<\EOF
 
6333
# This file is a shell script that caches the results of configure
 
6334
# tests run on this system so they can be shared between configure
 
6335
# scripts and configure runs.  It is not useful on other systems.
 
6336
# If it contains results you don't want to keep, you may remove or edit it.
 
6337
#
 
6338
# By default, configure uses ./config.cache as the cache file,
 
6339
# creating it if it does not exist already.  You can give configure
 
6340
# the --cache-file=FILE option to use a different cache file; that is
 
6341
# what configure does when it calls configure scripts in
 
6342
# subdirectories, so they share the cache.
 
6343
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
6344
# config.status only pays attention to the cache file if you give it the
 
6345
# --recheck option to rerun configure.
 
6346
#
 
6347
EOF
 
6348
# The following way of writing the cache mishandles newlines in values,
 
6349
# but we know of no workaround that is simple, portable, and efficient.
 
6350
# So, don't put newlines in cache variables' values.
 
6351
# Ultrix sh set writes to stderr and can't be redirected directly,
 
6352
# and sets the high bit in the cache file unless we assign to the vars.
 
6353
(set) 2>&1 |
 
6354
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
6355
  *ac_space=\ *)
 
6356
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
6357
    # turns \\\\ into \\, and sed turns \\ into \).
 
6358
    sed -n \
 
6359
      -e "s/'/'\\\\''/g" \
 
6360
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
6361
    ;;
 
6362
  *)
 
6363
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
6364
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
6365
    ;;
 
6366
  esac >> confcache
 
6367
if cmp -s $cache_file confcache; then
 
6368
  :
 
6369
else
 
6370
  if test -w $cache_file; then
 
6371
    echo "updating cache $cache_file"
 
6372
    cat confcache > $cache_file
 
6373
  else
 
6374
    echo "not updating unwritable cache $cache_file"
 
6375
  fi
 
6376
fi
 
6377
rm -f confcache
 
6378
 
 
6379
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
6380
 
 
6381
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
6382
# Let make expand exec_prefix.
 
6383
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
6384
 
 
6385
# Any assignment to VPATH causes Sun make to only execute
 
6386
# the first set of double-colon rules, so remove it if not needed.
 
6387
# If there is a colon in the path, we need to keep it.
 
6388
if test "x$srcdir" = x.; then
 
6389
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
6390
fi
 
6391
 
 
6392
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
6393
 
 
6394
DEFS=-DHAVE_CONFIG_H
 
6395
 
 
6396
# Without the "./", some shells look in PATH for config.status.
 
6397
: ${CONFIG_STATUS=./config.status}
 
6398
 
 
6399
echo creating $CONFIG_STATUS
 
6400
rm -f $CONFIG_STATUS
 
6401
cat > $CONFIG_STATUS <<EOF
 
6402
#! /bin/sh
 
6403
# Generated automatically by configure.
 
6404
# Run this file to recreate the current configuration.
 
6405
# This directory was configured as follows,
 
6406
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
6407
#
 
6408
# $0 $ac_configure_args
 
6409
#
 
6410
# Compiler output produced by configure, useful for debugging
 
6411
# configure, is in ./config.log if it exists.
 
6412
 
 
6413
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
6414
for ac_option
 
6415
do
 
6416
  case "\$ac_option" in
 
6417
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
6418
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
6419
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
6420
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
6421
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
6422
    exit 0 ;;
 
6423
  -help | --help | --hel | --he | --h)
 
6424
    echo "\$ac_cs_usage"; exit 0 ;;
 
6425
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
6426
  esac
 
6427
done
 
6428
 
 
6429
ac_given_srcdir=$srcdir
 
6430
ac_given_INSTALL="$INSTALL"
 
6431
 
 
6432
trap 'rm -fr `echo "Makefile freecell-solver-config freecell-solver.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
6433
EOF
 
6434
cat >> $CONFIG_STATUS <<EOF
 
6435
 
 
6436
# Protect against being on the right side of a sed subst in config.status.
 
6437
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
6438
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
6439
$ac_vpsub
 
6440
$extrasub
 
6441
s%@SHELL@%$SHELL%g
 
6442
s%@CFLAGS@%$CFLAGS%g
 
6443
s%@CPPFLAGS@%$CPPFLAGS%g
 
6444
s%@CXXFLAGS@%$CXXFLAGS%g
 
6445
s%@FFLAGS@%$FFLAGS%g
 
6446
s%@DEFS@%$DEFS%g
 
6447
s%@LDFLAGS@%$LDFLAGS%g
 
6448
s%@LIBS@%$LIBS%g
 
6449
s%@exec_prefix@%$exec_prefix%g
 
6450
s%@prefix@%$prefix%g
 
6451
s%@program_transform_name@%$program_transform_name%g
 
6452
s%@bindir@%$bindir%g
 
6453
s%@sbindir@%$sbindir%g
 
6454
s%@libexecdir@%$libexecdir%g
 
6455
s%@datadir@%$datadir%g
 
6456
s%@sysconfdir@%$sysconfdir%g
 
6457
s%@sharedstatedir@%$sharedstatedir%g
 
6458
s%@localstatedir@%$localstatedir%g
 
6459
s%@libdir@%$libdir%g
 
6460
s%@includedir@%$includedir%g
 
6461
s%@oldincludedir@%$oldincludedir%g
 
6462
s%@infodir@%$infodir%g
 
6463
s%@mandir@%$mandir%g
 
6464
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
6465
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
6466
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
6467
s%@PACKAGE@%$PACKAGE%g
 
6468
s%@VERSION@%$VERSION%g
 
6469
s%@ACLOCAL@%$ACLOCAL%g
 
6470
s%@AUTOCONF@%$AUTOCONF%g
 
6471
s%@AUTOMAKE@%$AUTOMAKE%g
 
6472
s%@AUTOHEADER@%$AUTOHEADER%g
 
6473
s%@MAKEINFO@%$MAKEINFO%g
 
6474
s%@SET_MAKE@%$SET_MAKE%g
 
6475
s%@host@%$host%g
 
6476
s%@host_alias@%$host_alias%g
 
6477
s%@host_cpu@%$host_cpu%g
 
6478
s%@host_vendor@%$host_vendor%g
 
6479
s%@host_os@%$host_os%g
 
6480
s%@build@%$build%g
 
6481
s%@build_alias@%$build_alias%g
 
6482
s%@build_cpu@%$build_cpu%g
 
6483
s%@build_vendor@%$build_vendor%g
 
6484
s%@build_os@%$build_os%g
 
6485
s%@CC@%$CC%g
 
6486
s%@LN_S@%$LN_S%g
 
6487
s%@OBJEXT@%$OBJEXT%g
 
6488
s%@EXEEXT@%$EXEEXT%g
 
6489
s%@ECHO@%$ECHO%g
 
6490
s%@RANLIB@%$RANLIB%g
 
6491
s%@STRIP@%$STRIP%g
 
6492
s%@CPP@%$CPP%g
 
6493
s%@LIBTOOL@%$LIBTOOL%g
 
6494
s%@LIBOBJS@%$LIBOBJS%g
 
6495
 
 
6496
CEOF
 
6497
EOF
 
6498
 
 
6499
cat >> $CONFIG_STATUS <<\EOF
 
6500
 
 
6501
# Split the substitutions into bite-sized pieces for seds with
 
6502
# small command number limits, like on Digital OSF/1 and HP-UX.
 
6503
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
6504
ac_file=1 # Number of current file.
 
6505
ac_beg=1 # First line for current file.
 
6506
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
6507
ac_more_lines=:
 
6508
ac_sed_cmds=""
 
6509
while $ac_more_lines; do
 
6510
  if test $ac_beg -gt 1; then
 
6511
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
6512
  else
 
6513
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
6514
  fi
 
6515
  if test ! -s conftest.s$ac_file; then
 
6516
    ac_more_lines=false
 
6517
    rm -f conftest.s$ac_file
 
6518
  else
 
6519
    if test -z "$ac_sed_cmds"; then
 
6520
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
6521
    else
 
6522
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
6523
    fi
 
6524
    ac_file=`expr $ac_file + 1`
 
6525
    ac_beg=$ac_end
 
6526
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
6527
  fi
 
6528
done
 
6529
if test -z "$ac_sed_cmds"; then
 
6530
  ac_sed_cmds=cat
 
6531
fi
 
6532
EOF
 
6533
 
 
6534
cat >> $CONFIG_STATUS <<EOF
 
6535
 
 
6536
CONFIG_FILES=\${CONFIG_FILES-"Makefile freecell-solver-config freecell-solver.spec"}
 
6537
EOF
 
6538
cat >> $CONFIG_STATUS <<\EOF
 
6539
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
6540
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6541
  case "$ac_file" in
 
6542
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
6543
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
6544
  *) ac_file_in="${ac_file}.in" ;;
 
6545
  esac
 
6546
 
 
6547
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
6548
 
 
6549
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
6550
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
6551
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
6552
    # The file is in a subdirectory.
 
6553
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
6554
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
6555
    # A "../" for each directory in $ac_dir_suffix.
 
6556
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
6557
  else
 
6558
    ac_dir_suffix= ac_dots=
 
6559
  fi
 
6560
 
 
6561
  case "$ac_given_srcdir" in
 
6562
  .)  srcdir=.
 
6563
      if test -z "$ac_dots"; then top_srcdir=.
 
6564
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
6565
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
6566
  *) # Relative path.
 
6567
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
6568
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
6569
  esac
 
6570
 
 
6571
  case "$ac_given_INSTALL" in
 
6572
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
6573
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
6574
  esac
 
6575
 
 
6576
  echo creating "$ac_file"
 
6577
  rm -f "$ac_file"
 
6578
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
6579
  case "$ac_file" in
 
6580
  *Makefile*) ac_comsub="1i\\
 
6581
# $configure_input" ;;
 
6582
  *) ac_comsub= ;;
 
6583
  esac
 
6584
 
 
6585
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6586
  sed -e "$ac_comsub
 
6587
s%@configure_input@%$configure_input%g
 
6588
s%@srcdir@%$srcdir%g
 
6589
s%@top_srcdir@%$top_srcdir%g
 
6590
s%@INSTALL@%$INSTALL%g
 
6591
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
6592
fi; done
 
6593
rm -f conftest.s*
 
6594
 
 
6595
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
6596
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
6597
#
 
6598
# ac_d sets the value in "#define NAME VALUE" lines.
 
6599
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
6600
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
6601
ac_dC='\3'
 
6602
ac_dD='%g'
 
6603
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
6604
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6605
ac_uB='\([      ]\)%\1#\2define\3'
 
6606
ac_uC=' '
 
6607
ac_uD='\4%g'
 
6608
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
6609
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6610
ac_eB='$%\1#\2define\3'
 
6611
ac_eC=' '
 
6612
ac_eD='%g'
 
6613
 
 
6614
if test "${CONFIG_HEADERS+set}" != set; then
 
6615
EOF
 
6616
cat >> $CONFIG_STATUS <<EOF
 
6617
  CONFIG_HEADERS="config.h"
 
6618
EOF
 
6619
cat >> $CONFIG_STATUS <<\EOF
 
6620
fi
 
6621
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
6622
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6623
  case "$ac_file" in
 
6624
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
6625
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
6626
  *) ac_file_in="${ac_file}.in" ;;
 
6627
  esac
 
6628
 
 
6629
  echo creating $ac_file
 
6630
 
 
6631
  rm -f conftest.frag conftest.in conftest.out
 
6632
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6633
  cat $ac_file_inputs > conftest.in
 
6634
 
 
6635
EOF
 
6636
 
 
6637
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
6638
# the proper values into config.h.in to produce config.h.  And first:
 
6639
# Protect against being on the right side of a sed subst in config.status.
 
6640
# Protect against being in an unquoted here document in config.status.
 
6641
rm -f conftest.vals
 
6642
cat > conftest.hdr <<\EOF
 
6643
s/[\\&%]/\\&/g
 
6644
s%[\\$`]%\\&%g
 
6645
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
6646
s%ac_d%ac_u%gp
 
6647
s%ac_u%ac_e%gp
 
6648
EOF
 
6649
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
6650
rm -f conftest.hdr
 
6651
 
 
6652
# This sed command replaces #undef with comments.  This is necessary, for
 
6653
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
6654
# on some systems where configure will not decide to define it.
 
6655
cat >> conftest.vals <<\EOF
 
6656
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
6657
EOF
 
6658
 
 
6659
# Break up conftest.vals because some shells have a limit on
 
6660
# the size of here documents, and old seds have small limits too.
 
6661
 
 
6662
rm -f conftest.tail
 
6663
while :
 
6664
do
 
6665
  ac_lines=`grep -c . conftest.vals`
 
6666
  # grep -c gives empty output for an empty file on some AIX systems.
 
6667
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
6668
  # Write a limited-size here document to conftest.frag.
 
6669
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
6670
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
6671
  echo 'CEOF
 
6672
  sed -f conftest.frag conftest.in > conftest.out
 
6673
  rm -f conftest.in
 
6674
  mv conftest.out conftest.in
 
6675
' >> $CONFIG_STATUS
 
6676
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
6677
  rm -f conftest.vals
 
6678
  mv conftest.tail conftest.vals
 
6679
done
 
6680
rm -f conftest.vals
 
6681
 
 
6682
cat >> $CONFIG_STATUS <<\EOF
 
6683
  rm -f conftest.frag conftest.h
 
6684
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
6685
  cat conftest.in >> conftest.h
 
6686
  rm -f conftest.in
 
6687
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
6688
    echo "$ac_file is unchanged"
 
6689
    rm -f conftest.h
 
6690
  else
 
6691
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
6692
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
6693
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
6694
      # The file is in a subdirectory.
 
6695
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
6696
    fi
 
6697
    rm -f $ac_file
 
6698
    mv conftest.h $ac_file
 
6699
  fi
 
6700
fi; done
 
6701
 
 
6702
EOF
 
6703
cat >> $CONFIG_STATUS <<EOF
 
6704
 
 
6705
 
 
6706
EOF
 
6707
cat >> $CONFIG_STATUS <<\EOF
 
6708
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
6709
chmod +x freecell-solver-config
 
6710
exit 0
 
6711
EOF
 
6712
chmod +x $CONFIG_STATUS
 
6713
rm -fr confdefs* $ac_clean_files
 
6714
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
6715
 
 
6716
 
 
6717
# Run configure in the board_gen directory
 
6718
(cd board_gen && ./configure --prefix="$prefix")
 
6719