~ubuntu-branches/ubuntu/jaunty/plotutils/jaunty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2006-06-10 22:30:09 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060610223009-lfgb9ceyzjykj3z1
Tags: 2.4.1-15
* 14_manpage_spline.dpatch: correct long option of -n (Closes: #247208).
* debian/control: changed maintainer email address, old will expire soon.
* Changed libpng12-0-dev (virtual) to libpng12-dev (real) in Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
 
2
 
2
3
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.57 for plotutils 2.4.1.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
4
6
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
8
8
# gives unlimited permission to copy, distribute and modify it.
9
 
## --------------------- ##
10
 
## M4sh Initialization.  ##
11
 
## --------------------- ##
12
 
 
13
 
# Be Bourne compatible
14
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15
 
  emulate sh
16
 
  NULLCMD=:
17
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
 
  # is contrary to our usage.  Disable this feature.
19
 
  alias -g '${1+"$@"}'='"$@"'
20
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
 
  set -o posix
22
 
fi
23
 
 
24
 
# Support unset when possible.
25
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26
 
  as_unset=unset
27
 
else
28
 
  as_unset=false
29
 
fi
30
 
 
31
 
 
32
 
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
34
 
PS1='$ '
35
 
PS2='> '
36
 
PS4='+ '
37
 
 
38
 
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
43
 
do
44
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
46
 
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
50
 
 
51
 
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
53
 
  as_expr=expr
54
 
else
55
 
  as_expr=false
56
 
fi
57
 
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
 
  as_basename=basename
60
 
else
61
 
  as_basename=false
62
 
fi
63
 
 
64
 
 
65
 
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
67
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
 
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
130
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
 
do
133
 
  IFS=$as_save_IFS
134
 
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
137
 
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
152
 
done
153
 
;;
154
 
  esac
155
 
 
156
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
162
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
165
 
    sed '
166
 
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
 
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
173
 
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
 
   { (exit 1); exit 1; }; }
177
 
 
178
 
  # Don't try to exec as it changes $[0], causing all sort of problems
179
 
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
182
 
  # Exit status is that of the last command.
183
 
  exit
184
 
}
185
 
 
186
 
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
 
esac
193
 
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
195
 
  as_expr=expr
196
 
else
197
 
  as_expr=false
198
 
fi
199
 
 
200
 
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
207
 
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
 
else
214
 
  as_ln_s='cp -p'
215
 
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
217
 
 
218
 
if mkdir -p . 2>/dev/null; then
219
 
  as_mkdir_p=:
220
 
else
221
 
  as_mkdir_p=false
222
 
fi
223
 
 
224
 
as_executable_p="test -f"
225
 
 
226
 
# Sed expression to map a string onto a valid CPP name.
227
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
 
 
229
 
# Sed expression to map a string onto a valid variable name.
230
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
 
 
232
 
 
233
 
# IFS
234
 
# We need space, tab and new line, in precisely that order.
235
 
as_nl='
236
 
'
237
 
IFS="   $as_nl"
238
 
 
239
 
# CDPATH.
240
 
$as_unset CDPATH
241
 
 
242
 
 
243
 
# Find the correct PATH separator.  Usually this is `:', but
244
 
# DJGPP uses `;' like DOS.
245
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
246
 
  UNAME=${UNAME-`uname 2>/dev/null`}
247
 
  case X$UNAME in
248
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
249
 
    *)     lt_cv_sys_path_separator=':' ;;
250
 
  esac
251
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
252
 
fi
253
 
 
254
 
 
255
 
# Check that we are running under the correct shell.
256
 
SHELL=${CONFIG_SHELL-/bin/sh}
257
 
 
258
 
case X$ECHO in
259
 
X*--fallback-echo)
260
 
  # Remove one level of quotation (which was required for Make).
261
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262
 
  ;;
263
 
esac
264
 
 
265
 
echo=${ECHO-echo}
266
 
if test "X$1" = X--no-reexec; then
267
 
  # Discard the --no-reexec flag, and continue.
268
 
  shift
269
 
elif test "X$1" = X--fallback-echo; then
270
 
  # Avoid inline document here, it may be left over
271
 
  :
272
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273
 
  # Yippee, $echo works!
274
 
  :
275
 
else
276
 
  # Restart under the correct shell.
277
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
278
 
fi
279
 
 
280
 
if test "X$1" = X--fallback-echo; then
281
 
  # used as fallback echo
282
 
  shift
283
 
  cat <<EOF
284
 
 
285
 
EOF
286
 
  exit 0
287
 
fi
288
 
 
289
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
290
 
# if CDPATH is set.
291
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
 
 
293
 
if test -z "$ECHO"; then
294
 
if test "X${echo_test_string+set}" != Xset; then
295
 
# find a string as large as possible, as long as the shell can cope with it
296
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299
 
       echo_test_string="`eval $cmd`" &&
300
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301
 
    then
302
 
      break
303
 
    fi
304
 
  done
305
 
fi
306
 
 
307
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
310
 
  :
311
 
else
312
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
313
 
  # backslashes.  This makes it impossible to quote backslashes using
314
 
  #   echo "$something" | sed 's/\\/\\\\/g'
315
 
  #
316
 
  # So, first we look for a working echo in the user's PATH.
317
 
 
318
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319
 
  for dir in $PATH /usr/ucb; do
320
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
324
 
      echo="$dir/echo"
325
 
      break
326
 
    fi
327
 
  done
328
 
  IFS="$save_ifs"
329
 
 
330
 
  if test "X$echo" = Xecho; then
331
 
    # We didn't find a better echo, so look for alternatives.
332
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
335
 
      # This shell has a builtin print -r that does the trick.
336
 
      echo='print -r'
337
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
339
 
      # If we have ksh, try running configure again with it.
340
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341
 
      export ORIGINAL_CONFIG_SHELL
342
 
      CONFIG_SHELL=/bin/ksh
343
 
      export CONFIG_SHELL
344
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345
 
    else
346
 
      # Try using printf.
347
 
      echo='printf %s\n'
348
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
351
 
        # Cool, printf works
352
 
        :
353
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
 
           test "X$echo_testing_string" = 'X\t' &&
355
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
357
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358
 
        export CONFIG_SHELL
359
 
        SHELL="$CONFIG_SHELL"
360
 
        export SHELL
361
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
362
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363
 
           test "X$echo_testing_string" = 'X\t' &&
364
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
366
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
367
 
      else
368
 
        # maybe with a smaller string...
369
 
        prev=:
370
 
 
371
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373
 
          then
374
 
            break
375
 
          fi
376
 
          prev="$cmd"
377
 
        done
378
 
 
379
 
        if test "$prev" != 'sed 50q "$0"'; then
380
 
          echo_test_string=`eval $prev`
381
 
          export echo_test_string
382
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383
 
        else
384
 
          # Oops.  We lost completely, so just stick with echo.
385
 
          echo=echo
386
 
        fi
387
 
      fi
388
 
    fi
389
 
  fi
390
 
fi
391
 
fi
392
 
 
393
 
# Copy echo and quote the copy suitably for passing to libtool from
394
 
# the Makefile, instead of quoting the original, which is used later.
395
 
ECHO=$echo
396
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398
 
fi
399
 
 
400
 
 
401
 
 
402
 
# Name of the host.
403
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404
 
# so uname gets run too.
405
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
 
 
407
 
exec 6>&1
408
 
 
409
 
#
410
 
# Initializations.
411
 
#
 
9
 
 
10
# Defaults:
 
11
ac_help=
412
12
ac_default_prefix=/usr/local
413
 
ac_config_libobj_dir=.
414
 
cross_compiling=no
415
 
subdirs=
416
 
MFLAGS=
417
 
MAKEFLAGS=
418
 
SHELL=${CONFIG_SHELL-/bin/sh}
419
 
 
420
 
# Maximum number of lines to put in a shell here document.
421
 
# This variable seems obsolete.  It should probably be removed, and
422
 
# only ac_max_sed_lines should be used.
423
 
: ${ac_max_here_lines=38}
424
 
 
425
 
# Identity of this package.
426
 
PACKAGE_NAME='plotutils'
427
 
PACKAGE_TARNAME='plotutils'
428
 
PACKAGE_VERSION='2.4.1'
429
 
PACKAGE_STRING='plotutils 2.4.1'
430
 
PACKAGE_BUGREPORT=''
431
 
 
432
 
ac_unique_file="graph/graph.c"
433
 
# Factoring default headers for most tests.
434
 
ac_includes_default="\
435
 
#include <stdio.h>
436
 
#if HAVE_SYS_TYPES_H
437
 
# include <sys/types.h>
438
 
#endif
439
 
#if HAVE_SYS_STAT_H
440
 
# include <sys/stat.h>
441
 
#endif
442
 
#if STDC_HEADERS
443
 
# include <stdlib.h>
444
 
# include <stddef.h>
445
 
#else
446
 
# if HAVE_STDLIB_H
447
 
#  include <stdlib.h>
448
 
# endif
449
 
#endif
450
 
#if HAVE_STRING_H
451
 
# if !STDC_HEADERS && HAVE_MEMORY_H
452
 
#  include <memory.h>
453
 
# endif
454
 
# include <string.h>
455
 
#endif
456
 
#if HAVE_STRINGS_H
457
 
# include <strings.h>
458
 
#endif
459
 
#if HAVE_INTTYPES_H
460
 
# include <inttypes.h>
461
 
#else
462
 
# if HAVE_STDINT_H
463
 
#  include <stdint.h>
464
 
# endif
465
 
#endif
466
 
#if HAVE_UNISTD_H
467
 
# include <unistd.h>
468
 
#endif"
469
 
 
470
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL ALLOCA LTALLOCA YACC LEX LEXLIB LEX_OUTPUT_ROOT X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE NO_PNG_TRUE NO_PNG_FALSE ps_fonts_in_pcl CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE ENABLE_LIBPLOTTER_TRUE ENABLE_LIBPLOTTER_FALSE ENABLE_LIBXMI_TRUE ENABLE_LIBXMI_FALSE LIBOBJS LTLIBOBJS'
471
 
ac_subst_files=''
 
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
ac_help="$ac_help
 
23
  --disable-libtool-lock  avoid locking (might break parallel builds)"
 
24
ac_help="$ac_help
 
25
  --with-x                use the X Window System"
 
26
ac_help="$ac_help
 
27
  --with-athena[=DIR]     use Athena widgets: includes and libraries in DIR"
 
28
ac_help="$ac_help
 
29
  --with-motif[=DIR]      use Motif widgets: includes and libraries in DIR"
 
30
ac_help="$ac_help
 
31
  --with-xpm[=DIR]        use Xpm with Motif: include and library in DIR"
 
32
ac_help="$ac_help
 
33
  --without-libpng        omit PNG support even if libpng and zlib are present"
 
34
ac_help="$ac_help
 
35
  --enable-ps-fonts-in-pcl   enable use of PS fonts in PCL and HP-GL/2 output"
 
36
ac_help="$ac_help
 
37
  --enable-lj-fonts-in-ps    enable use of LaserJet fonts in PS output"
 
38
ac_help="$ac_help
 
39
  --enable-lj-fonts-in-x     enable use of LaserJet fonts on X displays"
 
40
ac_help="$ac_help
 
41
  --enable-libplotter     build the C++ Plotter class library and C++ software"
 
42
ac_help="$ac_help
 
43
  --enable-libxmi         build the libxmi scan-conversion library"
472
44
 
473
45
# Initialize some variables set by options.
474
 
ac_init_help=
475
 
ac_init_version=false
476
46
# The variables have the same names as the options, with
477
47
# dashes changed to underlines.
478
 
cache_file=/dev/null
 
48
build=NONE
 
49
cache_file=./config.cache
479
50
exec_prefix=NONE
 
51
host=NONE
480
52
no_create=
 
53
nonopt=NONE
481
54
no_recursion=
482
55
prefix=NONE
483
56
program_prefix=NONE
486
59
silent=
487
60
site=
488
61
srcdir=
 
62
target=NONE
489
63
verbose=
490
64
x_includes=NONE
491
65
x_libraries=NONE
492
 
 
493
 
# Installation directory options.
494
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
495
 
# and all the variables that are supposed to be based on exec_prefix
496
 
# by default will actually change.
497
 
# Use braces instead of parens because sh, perl, etc. also accept them.
498
66
bindir='${exec_prefix}/bin'
499
67
sbindir='${exec_prefix}/sbin'
500
68
libexecdir='${exec_prefix}/libexec'
508
76
infodir='${prefix}/info'
509
77
mandir='${prefix}/man'
510
78
 
 
79
# Initialize some other variables.
 
80
subdirs=
 
81
MFLAGS= MAKEFLAGS=
 
82
SHELL=${CONFIG_SHELL-/bin/sh}
 
83
# Maximum number of lines to put in a shell here document.
 
84
ac_max_here_lines=12
 
85
 
511
86
ac_prev=
512
87
for ac_option
513
88
do
 
89
 
514
90
  # If the previous option needs an argument, assign it.
515
91
  if test -n "$ac_prev"; then
516
92
    eval "$ac_prev=\$ac_option"
518
94
    continue
519
95
  fi
520
96
 
521
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
97
  case "$ac_option" in
 
98
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
99
  *) ac_optarg= ;;
 
100
  esac
522
101
 
523
102
  # Accept the important Cygnus configure options, so we can diagnose typos.
524
103
 
525
 
  case $ac_option in
 
104
  case "$ac_option" in
526
105
 
527
106
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528
107
    ac_prev=bindir ;;
529
108
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530
 
    bindir=$ac_optarg ;;
 
109
    bindir="$ac_optarg" ;;
531
110
 
532
111
  -build | --build | --buil | --bui | --bu)
533
 
    ac_prev=build_alias ;;
 
112
    ac_prev=build ;;
534
113
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535
 
    build_alias=$ac_optarg ;;
 
114
    build="$ac_optarg" ;;
536
115
 
537
116
  -cache-file | --cache-file | --cache-fil | --cache-fi \
538
117
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539
118
    ac_prev=cache_file ;;
540
119
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541
120
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542
 
    cache_file=$ac_optarg ;;
543
 
 
544
 
  --config-cache | -C)
545
 
    cache_file=config.cache ;;
 
121
    cache_file="$ac_optarg" ;;
546
122
 
547
123
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548
124
    ac_prev=datadir ;;
549
125
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550
126
  | --da=*)
551
 
    datadir=$ac_optarg ;;
 
127
    datadir="$ac_optarg" ;;
552
128
 
553
129
  -disable-* | --disable-*)
554
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
130
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
555
131
    # Reject names that are not valid shell variable names.
556
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558
 
   { (exit 1); exit 1; }; }
559
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560
 
    eval "enable_$ac_feature=no" ;;
 
132
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
133
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
134
    fi
 
135
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
136
    eval "enable_${ac_feature}=no" ;;
561
137
 
562
138
  -enable-* | --enable-*)
563
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
139
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
564
140
    # Reject names that are not valid shell variable names.
565
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567
 
   { (exit 1); exit 1; }; }
568
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569
 
    case $ac_option in
570
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
141
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
142
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
143
    fi
 
144
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
145
    case "$ac_option" in
 
146
      *=*) ;;
571
147
      *) ac_optarg=yes ;;
572
148
    esac
573
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
149
    eval "enable_${ac_feature}='$ac_optarg'" ;;
574
150
 
575
151
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576
152
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579
155
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580
156
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581
157
  | --exec=* | --exe=* | --ex=*)
582
 
    exec_prefix=$ac_optarg ;;
 
158
    exec_prefix="$ac_optarg" ;;
583
159
 
584
160
  -gas | --gas | --ga | --g)
585
161
    # Obsolete; use --with-gas.
586
162
    with_gas=yes ;;
587
163
 
588
 
  -help | --help | --hel | --he | -h)
589
 
    ac_init_help=long ;;
590
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591
 
    ac_init_help=recursive ;;
592
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593
 
    ac_init_help=short ;;
 
164
  -help | --help | --hel | --he)
 
165
    # Omit some internal or obsolete options to make the list less imposing.
 
166
    # This message is too long to be a string in the A/UX 3.1 sh.
 
167
    cat << EOF
 
168
Usage: configure [options] [host]
 
169
Options: [defaults in brackets after descriptions]
 
170
Configuration:
 
171
  --cache-file=FILE       cache test results in FILE
 
172
  --help                  print this message
 
173
  --no-create             do not create output files
 
174
  --quiet, --silent       do not print \`checking...' messages
 
175
  --version               print the version of autoconf that created configure
 
176
Directory and file names:
 
177
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
178
                          [$ac_default_prefix]
 
179
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
180
                          [same as prefix]
 
181
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
182
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
183
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
184
  --datadir=DIR           read-only architecture-independent data in DIR
 
185
                          [PREFIX/share]
 
186
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
187
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
188
                          [PREFIX/com]
 
189
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
190
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
191
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
192
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
193
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
194
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
195
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
196
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
197
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
198
  --program-transform-name=PROGRAM
 
199
                          run sed PROGRAM on installed program names
 
200
EOF
 
201
    cat << EOF
 
202
Host type:
 
203
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
204
  --host=HOST             configure for HOST [guessed]
 
205
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
206
Features and packages:
 
207
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
208
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
209
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
210
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
211
  --x-includes=DIR        X include files are in DIR
 
212
  --x-libraries=DIR       X library files are in DIR
 
213
EOF
 
214
    if test -n "$ac_help"; then
 
215
      echo "--enable and --with options recognized:$ac_help"
 
216
    fi
 
217
    exit 0 ;;
594
218
 
595
219
  -host | --host | --hos | --ho)
596
 
    ac_prev=host_alias ;;
 
220
    ac_prev=host ;;
597
221
  -host=* | --host=* | --hos=* | --ho=*)
598
 
    host_alias=$ac_optarg ;;
 
222
    host="$ac_optarg" ;;
599
223
 
600
224
  -includedir | --includedir | --includedi | --included | --include \
601
225
  | --includ | --inclu | --incl | --inc)
602
226
    ac_prev=includedir ;;
603
227
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604
228
  | --includ=* | --inclu=* | --incl=* | --inc=*)
605
 
    includedir=$ac_optarg ;;
 
229
    includedir="$ac_optarg" ;;
606
230
 
607
231
  -infodir | --infodir | --infodi | --infod | --info | --inf)
608
232
    ac_prev=infodir ;;
609
233
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610
 
    infodir=$ac_optarg ;;
 
234
    infodir="$ac_optarg" ;;
611
235
 
612
236
  -libdir | --libdir | --libdi | --libd)
613
237
    ac_prev=libdir ;;
614
238
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615
 
    libdir=$ac_optarg ;;
 
239
    libdir="$ac_optarg" ;;
616
240
 
617
241
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618
242
  | --libexe | --libex | --libe)
619
243
    ac_prev=libexecdir ;;
620
244
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621
245
  | --libexe=* | --libex=* | --libe=*)
622
 
    libexecdir=$ac_optarg ;;
 
246
    libexecdir="$ac_optarg" ;;
623
247
 
624
248
  -localstatedir | --localstatedir | --localstatedi | --localstated \
625
249
  | --localstate | --localstat | --localsta | --localst \
628
252
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629
253
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630
254
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631
 
    localstatedir=$ac_optarg ;;
 
255
    localstatedir="$ac_optarg" ;;
632
256
 
633
257
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634
258
    ac_prev=mandir ;;
635
259
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
 
    mandir=$ac_optarg ;;
 
260
    mandir="$ac_optarg" ;;
637
261
 
638
262
  -nfp | --nfp | --nf)
639
263
    # Obsolete; use --without-fp.
640
264
    with_fp=no ;;
641
265
 
642
266
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643
 
  | --no-cr | --no-c | -n)
 
267
  | --no-cr | --no-c)
644
268
    no_create=yes ;;
645
269
 
646
270
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654
278
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655
279
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656
280
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657
 
    oldincludedir=$ac_optarg ;;
 
281
    oldincludedir="$ac_optarg" ;;
658
282
 
659
283
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660
284
    ac_prev=prefix ;;
661
285
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662
 
    prefix=$ac_optarg ;;
 
286
    prefix="$ac_optarg" ;;
663
287
 
664
288
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665
289
  | --program-pre | --program-pr | --program-p)
666
290
    ac_prev=program_prefix ;;
667
291
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668
292
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669
 
    program_prefix=$ac_optarg ;;
 
293
    program_prefix="$ac_optarg" ;;
670
294
 
671
295
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672
296
  | --program-suf | --program-su | --program-s)
673
297
    ac_prev=program_suffix ;;
674
298
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675
299
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676
 
    program_suffix=$ac_optarg ;;
 
300
    program_suffix="$ac_optarg" ;;
677
301
 
678
302
  -program-transform-name | --program-transform-name \
679
303
  | --program-transform-nam | --program-transform-na \
690
314
  | --program-transfo=* | --program-transf=* \
691
315
  | --program-trans=* | --program-tran=* \
692
316
  | --progr-tra=* | --program-tr=* | --program-t=*)
693
 
    program_transform_name=$ac_optarg ;;
 
317
    program_transform_name="$ac_optarg" ;;
694
318
 
695
319
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696
320
  | -silent | --silent | --silen | --sile | --sil)
700
324
    ac_prev=sbindir ;;
701
325
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702
326
  | --sbi=* | --sb=*)
703
 
    sbindir=$ac_optarg ;;
 
327
    sbindir="$ac_optarg" ;;
704
328
 
705
329
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706
330
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
711
335
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712
336
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713
337
  | --sha=* | --sh=*)
714
 
    sharedstatedir=$ac_optarg ;;
 
338
    sharedstatedir="$ac_optarg" ;;
715
339
 
716
340
  -site | --site | --sit)
717
341
    ac_prev=site ;;
718
342
  -site=* | --site=* | --sit=*)
719
 
    site=$ac_optarg ;;
 
343
    site="$ac_optarg" ;;
720
344
 
721
345
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722
346
    ac_prev=srcdir ;;
723
347
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724
 
    srcdir=$ac_optarg ;;
 
348
    srcdir="$ac_optarg" ;;
725
349
 
726
350
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727
351
  | --syscon | --sysco | --sysc | --sys | --sy)
728
352
    ac_prev=sysconfdir ;;
729
353
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730
354
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731
 
    sysconfdir=$ac_optarg ;;
 
355
    sysconfdir="$ac_optarg" ;;
732
356
 
733
357
  -target | --target | --targe | --targ | --tar | --ta | --t)
734
 
    ac_prev=target_alias ;;
 
358
    ac_prev=target ;;
735
359
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736
 
    target_alias=$ac_optarg ;;
 
360
    target="$ac_optarg" ;;
737
361
 
738
362
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739
363
    verbose=yes ;;
740
364
 
741
 
  -version | --version | --versio | --versi | --vers | -V)
742
 
    ac_init_version=: ;;
 
365
  -version | --version | --versio | --versi | --vers)
 
366
    echo "configure generated by autoconf version 2.13"
 
367
    exit 0 ;;
743
368
 
744
369
  -with-* | --with-*)
745
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
370
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
746
371
    # Reject names that are not valid shell variable names.
747
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
749
 
   { (exit 1); exit 1; }; }
 
372
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
373
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
374
    fi
750
375
    ac_package=`echo $ac_package| sed 's/-/_/g'`
751
 
    case $ac_option in
752
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
376
    case "$ac_option" in
 
377
      *=*) ;;
753
378
      *) ac_optarg=yes ;;
754
379
    esac
755
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
380
    eval "with_${ac_package}='$ac_optarg'" ;;
756
381
 
757
382
  -without-* | --without-*)
758
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
383
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
759
384
    # Reject names that are not valid shell variable names.
760
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
762
 
   { (exit 1); exit 1; }; }
763
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
764
 
    eval "with_$ac_package=no" ;;
 
385
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
386
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
387
    fi
 
388
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
389
    eval "with_${ac_package}=no" ;;
765
390
 
766
391
  --x)
767
392
    # Obsolete; use --with-x.
772
397
    ac_prev=x_includes ;;
773
398
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774
399
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775
 
    x_includes=$ac_optarg ;;
 
400
    x_includes="$ac_optarg" ;;
776
401
 
777
402
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778
403
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779
404
    ac_prev=x_libraries ;;
780
405
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781
406
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782
 
    x_libraries=$ac_optarg ;;
 
407
    x_libraries="$ac_optarg" ;;
783
408
 
784
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
785
 
Try \`$0 --help' for more information." >&2
786
 
   { (exit 1); exit 1; }; }
 
409
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
787
410
    ;;
788
411
 
789
 
  *=*)
790
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791
 
    # Reject names that are not valid shell variable names.
792
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794
 
   { (exit 1); exit 1; }; }
795
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796
 
    eval "$ac_envvar='$ac_optarg'"
797
 
    export $ac_envvar ;;
798
 
 
799
412
  *)
800
 
    # FIXME: should be removed in autoconf 3.0.
801
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
413
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
414
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
415
    fi
 
416
    if test "x$nonopt" != xNONE; then
 
417
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
418
    fi
 
419
    nonopt="$ac_option"
805
420
    ;;
806
421
 
807
422
  esac
808
423
done
809
424
 
810
425
if test -n "$ac_prev"; then
811
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
813
 
   { (exit 1); exit 1; }; }
814
 
fi
815
 
 
816
 
# Be sure to have absolute paths.
817
 
for ac_var in exec_prefix prefix
818
 
do
819
 
  eval ac_val=$`echo $ac_var`
820
 
  case $ac_val in
821
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823
 
   { (exit 1); exit 1; }; };;
824
 
  esac
825
 
done
826
 
 
827
 
# Be sure to have absolute paths.
828
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829
 
              localstatedir libdir includedir oldincludedir infodir mandir
830
 
do
831
 
  eval ac_val=$`echo $ac_var`
832
 
  case $ac_val in
833
 
    [\\/$]* | ?:[\\/]* ) ;;
834
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835
 
   { (exit 1); exit 1; }; };;
836
 
  esac
837
 
done
838
 
 
839
 
# There might be people who depend on the old broken behavior: `$host'
840
 
# used to hold the argument of --host etc.
841
 
# FIXME: To remove some day.
842
 
build=$build_alias
843
 
host=$host_alias
844
 
target=$target_alias
845
 
 
846
 
# FIXME: To remove some day.
847
 
if test "x$host_alias" != x; then
848
 
  if test "x$build_alias" = x; then
849
 
    cross_compiling=maybe
850
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851
 
    If a cross compiler is detected then cross compile mode will be used." >&2
852
 
  elif test "x$build_alias" != "x$host_alias"; then
853
 
    cross_compiling=yes
854
 
  fi
855
 
fi
856
 
 
857
 
ac_tool_prefix=
858
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
 
 
860
 
test "$silent" = yes && exec 6>/dev/null
861
 
 
 
426
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
427
fi
 
428
 
 
429
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
430
 
 
431
# File descriptor usage:
 
432
# 0 standard input
 
433
# 1 file creation
 
434
# 2 errors and warnings
 
435
# 3 some systems may open it to /dev/tty
 
436
# 4 used on the Kubota Titan
 
437
# 6 checking for... messages and results
 
438
# 5 compiler messages saved in config.log
 
439
if test "$silent" = yes; then
 
440
  exec 6>/dev/null
 
441
else
 
442
  exec 6>&1
 
443
fi
 
444
exec 5>./config.log
 
445
 
 
446
echo "\
 
447
This file contains any messages produced by compilers while
 
448
running configure, to aid debugging if configure makes a mistake.
 
449
" 1>&5
 
450
 
 
451
# Strip out --no-create and --no-recursion so they do not pile up.
 
452
# Also quote any args containing shell metacharacters.
 
453
ac_configure_args=
 
454
for ac_arg
 
455
do
 
456
  case "$ac_arg" in
 
457
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
458
  | --no-cr | --no-c) ;;
 
459
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
460
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
461
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
462
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
463
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
464
  esac
 
465
done
 
466
 
 
467
# NLS nuisances.
 
468
# Only set these to C if already set.  These must not be set unconditionally
 
469
# because not all systems understand e.g. LANG=C (notably SCO).
 
470
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
471
# Non-C LC_CTYPE values break the ctype check.
 
472
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
473
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
474
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
475
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
476
 
 
477
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
478
rm -rf conftest* confdefs.h
 
479
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
480
echo > confdefs.h
 
481
 
 
482
# A filename unique to this package, relative to the directory that
 
483
# configure is in, which we can look for to find out if srcdir is correct.
 
484
ac_unique_file=graph/graph.c
862
485
 
863
486
# Find the source files, if location was not specified.
864
487
if test -z "$srcdir"; then
865
488
  ac_srcdir_defaulted=yes
866
489
  # Try the directory containing this script, then its parent.
867
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
868
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869
 
         X"$0" : 'X\(//\)[^/]' \| \
870
 
         X"$0" : 'X\(//\)$' \| \
871
 
         X"$0" : 'X\(/\)' \| \
872
 
         .     : '\(.\)' 2>/dev/null ||
873
 
echo X"$0" |
874
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876
 
          /^X\(\/\/\)$/{ s//\1/; q; }
877
 
          /^X\(\/\).*/{ s//\1/; q; }
878
 
          s/.*/./; q'`
 
490
  ac_prog=$0
 
491
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
492
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
879
493
  srcdir=$ac_confdir
880
494
  if test ! -r $srcdir/$ac_unique_file; then
881
495
    srcdir=..
885
499
fi
886
500
if test ! -r $srcdir/$ac_unique_file; then
887
501
  if test "$ac_srcdir_defaulted" = yes; then
888
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889
 
   { (exit 1); exit 1; }; }
 
502
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
890
503
  else
891
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892
 
   { (exit 1); exit 1; }; }
 
504
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
893
505
  fi
894
506
fi
895
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897
 
   { (exit 1); exit 1; }; }
898
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899
 
ac_env_build_alias_set=${build_alias+set}
900
 
ac_env_build_alias_value=$build_alias
901
 
ac_cv_env_build_alias_set=${build_alias+set}
902
 
ac_cv_env_build_alias_value=$build_alias
903
 
ac_env_host_alias_set=${host_alias+set}
904
 
ac_env_host_alias_value=$host_alias
905
 
ac_cv_env_host_alias_set=${host_alias+set}
906
 
ac_cv_env_host_alias_value=$host_alias
907
 
ac_env_target_alias_set=${target_alias+set}
908
 
ac_env_target_alias_value=$target_alias
909
 
ac_cv_env_target_alias_set=${target_alias+set}
910
 
ac_cv_env_target_alias_value=$target_alias
911
 
ac_env_CC_set=${CC+set}
912
 
ac_env_CC_value=$CC
913
 
ac_cv_env_CC_set=${CC+set}
914
 
ac_cv_env_CC_value=$CC
915
 
ac_env_CFLAGS_set=${CFLAGS+set}
916
 
ac_env_CFLAGS_value=$CFLAGS
917
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
918
 
ac_cv_env_CFLAGS_value=$CFLAGS
919
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
920
 
ac_env_LDFLAGS_value=$LDFLAGS
921
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
923
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924
 
ac_env_CPPFLAGS_value=$CPPFLAGS
925
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927
 
ac_env_CPP_set=${CPP+set}
928
 
ac_env_CPP_value=$CPP
929
 
ac_cv_env_CPP_set=${CPP+set}
930
 
ac_cv_env_CPP_value=$CPP
931
 
ac_env_CXX_set=${CXX+set}
932
 
ac_env_CXX_value=$CXX
933
 
ac_cv_env_CXX_set=${CXX+set}
934
 
ac_cv_env_CXX_value=$CXX
935
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936
 
ac_env_CXXFLAGS_value=$CXXFLAGS
937
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939
 
 
940
 
#
941
 
# Report the --help message.
942
 
#
943
 
if test "$ac_init_help" = "long"; then
944
 
  # Omit some internal or obsolete options to make the list less imposing.
945
 
  # This message is too long to be a string in the A/UX 3.1 sh.
946
 
  cat <<_ACEOF
947
 
\`configure' configures plotutils 2.4.1 to adapt to many kinds of systems.
948
 
 
949
 
Usage: $0 [OPTION]... [VAR=VALUE]...
950
 
 
951
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
952
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
953
 
 
954
 
Defaults for the options are specified in brackets.
955
 
 
956
 
Configuration:
957
 
  -h, --help              display this help and exit
958
 
      --help=short        display options specific to this package
959
 
      --help=recursive    display the short help of all the included packages
960
 
  -V, --version           display version information and exit
961
 
  -q, --quiet, --silent   do not print \`checking...' messages
962
 
      --cache-file=FILE   cache test results in FILE [disabled]
963
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
964
 
  -n, --no-create         do not create output files
965
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
966
 
 
967
 
_ACEOF
968
 
 
969
 
  cat <<_ACEOF
970
 
Installation directories:
971
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
972
 
                          [$ac_default_prefix]
973
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
974
 
                          [PREFIX]
975
 
 
976
 
By default, \`make install' will install all the files in
977
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
978
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979
 
for instance \`--prefix=\$HOME'.
980
 
 
981
 
For better control, use the options below.
982
 
 
983
 
Fine tuning of the installation directories:
984
 
  --bindir=DIR           user executables [EPREFIX/bin]
985
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
986
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
987
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
988
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
989
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
990
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
991
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
992
 
  --includedir=DIR       C header files [PREFIX/include]
993
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
994
 
  --infodir=DIR          info documentation [PREFIX/info]
995
 
  --mandir=DIR           man documentation [PREFIX/man]
996
 
_ACEOF
997
 
 
998
 
  cat <<\_ACEOF
999
 
 
1000
 
Program names:
1001
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1002
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1003
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1004
 
 
1005
 
X features:
1006
 
  --x-includes=DIR    X include files are in DIR
1007
 
  --x-libraries=DIR   X library files are in DIR
1008
 
 
1009
 
System types:
1010
 
  --build=BUILD     configure for building on BUILD [guessed]
1011
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012
 
_ACEOF
1013
 
fi
1014
 
 
1015
 
if test -n "$ac_init_help"; then
1016
 
  case $ac_init_help in
1017
 
     short | recursive ) echo "Configuration of plotutils 2.4.1:";;
1018
 
   esac
1019
 
  cat <<\_ACEOF
1020
 
 
1021
 
Optional Features:
1022
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1023
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1024
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1025
 
                          (and sometimes confusing) to the casual installer
1026
 
  --enable-shared=PKGS  build shared libraries default=yes
1027
 
  --enable-static=PKGS  build static libraries default=yes
1028
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
1029
 
  --disable-dependency-tracking Speeds up one-time builds
1030
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1031
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1032
 
  --enable-ps-fonts-in-pcl
1033
 
                          enable use of PS fonts in PCL and HP-GL/2 output
1034
 
  --enable-lj-fonts-in-ps enable use of LaserJet fonts in PS output
1035
 
  --enable-lj-fonts-in-x  enable use of LaserJet fonts on X displays
1036
 
  --enable-libplotter     build the C++ Plotter class library and C++ software
1037
 
  --enable-libxmi         build the libxmi scan-conversion library
1038
 
 
1039
 
Optional Packages:
1040
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1041
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1042
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1043
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
1044
 
  --with-x                use the X Window System
1045
 
  --with-athena=DIR   use Athena widgets: includes and libraries in DIR
1046
 
  --with-motif=DIR    use Motif widgets: includes and libraries in DIR
1047
 
  --with-xpm=DIR      use Xpm with Motif: include and library in DIR
1048
 
  --without-libpng        omit PNG support even if libpng and zlib are present
1049
 
 
1050
 
Some influential environment variables:
1051
 
  CC          C compiler command
1052
 
  CFLAGS      C compiler flags
1053
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054
 
              nonstandard directory <lib dir>
1055
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056
 
              headers in a nonstandard directory <include dir>
1057
 
  CPP         C preprocessor
1058
 
  CXX         C++ compiler command
1059
 
  CXXFLAGS    C++ compiler flags
1060
 
 
1061
 
Use these variables to override the choices made by `configure' or to help
1062
 
it to find libraries and programs with nonstandard names/locations.
1063
 
 
1064
 
_ACEOF
1065
 
fi
1066
 
 
1067
 
if test "$ac_init_help" = "recursive"; then
1068
 
  # If there are subdirs, report their specific --help.
1069
 
  ac_popdir=`pwd`
1070
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071
 
    test -d $ac_dir || continue
1072
 
    ac_builddir=.
1073
 
 
1074
 
if test "$ac_dir" != .; then
1075
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076
 
  # A "../" for each directory in $ac_dir_suffix.
1077
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078
 
else
1079
 
  ac_dir_suffix= ac_top_builddir=
1080
 
fi
1081
 
 
1082
 
case $srcdir in
1083
 
  .)  # No --srcdir option.  We are building in place.
1084
 
    ac_srcdir=.
1085
 
    if test -z "$ac_top_builddir"; then
1086
 
       ac_top_srcdir=.
1087
 
    else
1088
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089
 
    fi ;;
1090
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
1091
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1092
 
    ac_top_srcdir=$srcdir ;;
1093
 
  *) # Relative path.
1094
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096
 
esac
1097
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1098
 
# absolute.
1099
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1100
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1101
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1102
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1103
 
 
1104
 
    cd $ac_dir
1105
 
    # Check for guested configure; otherwise get Cygnus style configure.
1106
 
    if test -f $ac_srcdir/configure.gnu; then
1107
 
      echo
1108
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1109
 
    elif test -f $ac_srcdir/configure; then
1110
 
      echo
1111
 
      $SHELL $ac_srcdir/configure  --help=recursive
1112
 
    elif test -f $ac_srcdir/configure.ac ||
1113
 
           test -f $ac_srcdir/configure.in; then
1114
 
      echo
1115
 
      $ac_configure --help
1116
 
    else
1117
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1118
 
    fi
1119
 
    cd $ac_popdir
1120
 
  done
1121
 
fi
1122
 
 
1123
 
test -n "$ac_init_help" && exit 0
1124
 
if $ac_init_version; then
1125
 
  cat <<\_ACEOF
1126
 
plotutils configure 2.4.1
1127
 
generated by GNU Autoconf 2.57
1128
 
 
1129
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1130
 
Free Software Foundation, Inc.
1131
 
This configure script is free software; the Free Software Foundation
1132
 
gives unlimited permission to copy, distribute and modify it.
1133
 
_ACEOF
1134
 
  exit 0
1135
 
fi
1136
 
exec 5>config.log
1137
 
cat >&5 <<_ACEOF
1138
 
This file contains any messages produced by compilers while
1139
 
running configure, to aid debugging if configure makes a mistake.
1140
 
 
1141
 
It was created by plotutils $as_me 2.4.1, which was
1142
 
generated by GNU Autoconf 2.57.  Invocation command line was
1143
 
 
1144
 
  $ $0 $@
1145
 
 
1146
 
_ACEOF
1147
 
{
1148
 
cat <<_ASUNAME
1149
 
## --------- ##
1150
 
## Platform. ##
1151
 
## --------- ##
1152
 
 
1153
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
 
 
1159
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1161
 
 
1162
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1163
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1164
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1166
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1167
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1168
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1169
 
 
1170
 
_ASUNAME
1171
 
 
1172
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173
 
for as_dir in $PATH
1174
 
do
1175
 
  IFS=$as_save_IFS
1176
 
  test -z "$as_dir" && as_dir=.
1177
 
  echo "PATH: $as_dir"
1178
 
done
1179
 
 
1180
 
} >&5
1181
 
 
1182
 
cat >&5 <<_ACEOF
1183
 
 
1184
 
 
1185
 
## ----------- ##
1186
 
## Core tests. ##
1187
 
## ----------- ##
1188
 
 
1189
 
_ACEOF
1190
 
 
1191
 
 
1192
 
# Keep a trace of the command line.
1193
 
# Strip out --no-create and --no-recursion so they do not pile up.
1194
 
# Strip out --silent because we don't want to record it for future runs.
1195
 
# Also quote any args containing shell meta-characters.
1196
 
# Make two passes to allow for proper duplicate-argument suppression.
1197
 
ac_configure_args=
1198
 
ac_configure_args0=
1199
 
ac_configure_args1=
1200
 
ac_sep=
1201
 
ac_must_keep_next=false
1202
 
for ac_pass in 1 2
1203
 
do
1204
 
  for ac_arg
1205
 
  do
1206
 
    case $ac_arg in
1207
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209
 
    | -silent | --silent | --silen | --sile | --sil)
1210
 
      continue ;;
1211
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213
 
    esac
1214
 
    case $ac_pass in
1215
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216
 
    2)
1217
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218
 
      if test $ac_must_keep_next = true; then
1219
 
        ac_must_keep_next=false # Got value, back to normal.
1220
 
      else
1221
 
        case $ac_arg in
1222
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1223
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1226
 
            case "$ac_configure_args0 " in
1227
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228
 
            esac
1229
 
            ;;
1230
 
          -* ) ac_must_keep_next=true ;;
1231
 
        esac
1232
 
      fi
1233
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234
 
      # Get rid of the leading space.
1235
 
      ac_sep=" "
1236
 
      ;;
1237
 
    esac
1238
 
  done
1239
 
done
1240
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
 
 
1243
 
# When interrupted or exit'd, cleanup temporary files, and complete
1244
 
# config.log.  We remove comments because anyway the quotes in there
1245
 
# would cause problems or look ugly.
1246
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1247
 
# such as our DU 5.0 friend, will then `close' the trap.
1248
 
trap 'exit_status=$?
1249
 
  # Save into config.log some information that might help in debugging.
1250
 
  {
1251
 
    echo
1252
 
 
1253
 
    cat <<\_ASBOX
1254
 
## ---------------- ##
1255
 
## Cache variables. ##
1256
 
## ---------------- ##
1257
 
_ASBOX
1258
 
    echo
1259
 
    # The following way of writing the cache mishandles newlines in values,
1260
 
{
1261
 
  (set) 2>&1 |
1262
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263
 
    *ac_space=\ *)
1264
 
      sed -n \
1265
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267
 
      ;;
1268
 
    *)
1269
 
      sed -n \
1270
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271
 
      ;;
1272
 
    esac;
1273
 
}
1274
 
    echo
1275
 
 
1276
 
    cat <<\_ASBOX
1277
 
## ----------------- ##
1278
 
## Output variables. ##
1279
 
## ----------------- ##
1280
 
_ASBOX
1281
 
    echo
1282
 
    for ac_var in $ac_subst_vars
1283
 
    do
1284
 
      eval ac_val=$`echo $ac_var`
1285
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1286
 
    done | sort
1287
 
    echo
1288
 
 
1289
 
    if test -n "$ac_subst_files"; then
1290
 
      cat <<\_ASBOX
1291
 
## ------------- ##
1292
 
## Output files. ##
1293
 
## ------------- ##
1294
 
_ASBOX
1295
 
      echo
1296
 
      for ac_var in $ac_subst_files
1297
 
      do
1298
 
        eval ac_val=$`echo $ac_var`
1299
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1300
 
      done | sort
1301
 
      echo
1302
 
    fi
1303
 
 
1304
 
    if test -s confdefs.h; then
1305
 
      cat <<\_ASBOX
1306
 
## ----------- ##
1307
 
## confdefs.h. ##
1308
 
## ----------- ##
1309
 
_ASBOX
1310
 
      echo
1311
 
      sed "/^$/d" confdefs.h | sort
1312
 
      echo
1313
 
    fi
1314
 
    test "$ac_signal" != 0 &&
1315
 
      echo "$as_me: caught signal $ac_signal"
1316
 
    echo "$as_me: exit $exit_status"
1317
 
  } >&5
1318
 
  rm -f core core.* *.core &&
1319
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320
 
    exit $exit_status
1321
 
     ' 0
1322
 
for ac_signal in 1 2 13 15; do
1323
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324
 
done
1325
 
ac_signal=0
1326
 
 
1327
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328
 
rm -rf conftest* confdefs.h
1329
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330
 
echo >confdefs.h
1331
 
 
1332
 
# Predefined preprocessor variables.
1333
 
 
1334
 
cat >>confdefs.h <<_ACEOF
1335
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1336
 
_ACEOF
1337
 
 
1338
 
 
1339
 
cat >>confdefs.h <<_ACEOF
1340
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341
 
_ACEOF
1342
 
 
1343
 
 
1344
 
cat >>confdefs.h <<_ACEOF
1345
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346
 
_ACEOF
1347
 
 
1348
 
 
1349
 
cat >>confdefs.h <<_ACEOF
1350
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1351
 
_ACEOF
1352
 
 
1353
 
 
1354
 
cat >>confdefs.h <<_ACEOF
1355
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356
 
_ACEOF
1357
 
 
1358
 
 
1359
 
# Let the site file select an alternate cache file if it wants to.
 
507
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
508
 
1360
509
# Prefer explicitly selected file to automatically selected ones.
1361
510
if test -z "$CONFIG_SITE"; then
1362
511
  if test "x$prefix" != xNONE; then
1367
516
fi
1368
517
for ac_site_file in $CONFIG_SITE; do
1369
518
  if test -r "$ac_site_file"; then
1370
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1372
 
    sed 's/^/| /' "$ac_site_file" >&5
 
519
    echo "loading site script $ac_site_file"
1373
520
    . "$ac_site_file"
1374
521
  fi
1375
522
done
1376
523
 
1377
524
if test -r "$cache_file"; then
1378
 
  # Some versions of bash will fail to source /dev/null (special
1379
 
  # files actually), so we avoid doing that.
1380
 
  if test -f "$cache_file"; then
1381
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382
 
echo "$as_me: loading cache $cache_file" >&6;}
1383
 
    case $cache_file in
1384
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1385
 
      *)                      . ./$cache_file;;
1386
 
    esac
1387
 
  fi
 
525
  echo "loading cache $cache_file"
 
526
  . $cache_file
1388
527
else
1389
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390
 
echo "$as_me: creating cache $cache_file" >&6;}
1391
 
  >$cache_file
1392
 
fi
1393
 
 
1394
 
# Check that the precious variables saved in the cache have kept the same
1395
 
# value.
1396
 
ac_cache_corrupted=false
1397
 
for ac_var in `(set) 2>&1 |
1398
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1401
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1403
 
  case $ac_old_set,$ac_new_set in
1404
 
    set,)
1405
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407
 
      ac_cache_corrupted=: ;;
1408
 
    ,set)
1409
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411
 
      ac_cache_corrupted=: ;;
1412
 
    ,);;
1413
 
    *)
1414
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1415
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1418
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1419
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1420
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1421
 
        ac_cache_corrupted=:
1422
 
      fi;;
1423
 
  esac
1424
 
  # Pass precious variables to config.status.
1425
 
  if test "$ac_new_set" = set; then
1426
 
    case $ac_new_val in
1427
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1430
 
    esac
1431
 
    case " $ac_configure_args " in
1432
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1433
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434
 
    esac
1435
 
  fi
1436
 
done
1437
 
if $ac_cache_corrupted; then
1438
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442
 
   { (exit 1); exit 1; }; }
 
528
  echo "creating cache $cache_file"
 
529
  > $cache_file
1443
530
fi
1444
531
 
1445
532
ac_ext=c
 
533
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1446
534
ac_cpp='$CPP $CPPFLAGS'
1447
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
 
 
1451
 
 
1452
 
 
1453
 
 
1454
 
 
1455
 
 
1456
 
 
1457
 
 
1458
 
 
1459
 
 
1460
 
 
1461
 
 
1462
 
 
1463
 
 
1464
 
 
1465
 
 
1466
 
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
am__api_version="1.7"
 
535
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
536
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
537
cross_compiling=$ac_cv_prog_cc_cross
 
538
 
 
539
ac_exeext=
 
540
ac_objext=o
 
541
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
542
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
543
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
544
    ac_n= ac_c='
 
545
' ac_t='        '
 
546
  else
 
547
    ac_n=-n ac_c= ac_t=
 
548
  fi
 
549
else
 
550
  ac_n= ac_c='\c' ac_t=
 
551
fi
 
552
 
 
553
 
1479
554
ac_aux_dir=
1480
555
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1481
556
  if test -f $ac_dir/install-sh; then
1486
561
    ac_aux_dir=$ac_dir
1487
562
    ac_install_sh="$ac_aux_dir/install.sh -c"
1488
563
    break
1489
 
  elif test -f $ac_dir/shtool; then
1490
 
    ac_aux_dir=$ac_dir
1491
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1492
 
    break
1493
564
  fi
1494
565
done
1495
566
if test -z "$ac_aux_dir"; then
1496
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1497
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1498
 
   { (exit 1); exit 1; }; }
 
567
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1499
568
fi
1500
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1501
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1502
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
569
ac_config_guess=$ac_aux_dir/config.guess
 
570
ac_config_sub=$ac_aux_dir/config.sub
 
571
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1503
572
 
1504
573
# Find a good install program.  We prefer a C program (faster),
1505
574
# so one script is as good as another.  But avoid the broken or
1508
577
# SunOS /usr/etc/install
1509
578
# IRIX /sbin/install
1510
579
# AIX /bin/install
1511
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1512
580
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1513
581
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1514
582
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1515
583
# ./install, which can be erroneously created by make from ./install.sh.
1516
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1517
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
584
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
585
echo "configure:586: checking for a BSD compatible install" >&5
1518
586
if test -z "$INSTALL"; then
1519
 
if test "${ac_cv_path_install+set}" = set; then
1520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
587
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
588
  echo $ac_n "(cached) $ac_c" 1>&6
1521
589
else
1522
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523
 
for as_dir in $PATH
1524
 
do
1525
 
  IFS=$as_save_IFS
1526
 
  test -z "$as_dir" && as_dir=.
1527
 
  # Account for people who put trailing slashes in PATH elements.
1528
 
case $as_dir/ in
1529
 
  ./ | .// | /cC/* | \
1530
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1531
 
  /usr/ucb/* ) ;;
1532
 
  *)
1533
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1534
 
    # Don't use installbsd from OSF since it installs stuff as root
1535
 
    # by default.
1536
 
    for ac_prog in ginstall scoinst install; do
1537
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1538
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1539
 
          if test $ac_prog = install &&
1540
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1541
 
            # AIX install.  It has an incompatible calling convention.
1542
 
            :
1543
 
          elif test $ac_prog = install &&
1544
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1545
 
            # program-specific install script used by HP pwplus--don't use.
1546
 
            :
1547
 
          else
1548
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1549
 
            break 3
1550
 
          fi
1551
 
        fi
 
590
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
591
  for ac_dir in $PATH; do
 
592
    # Account for people who put trailing slashes in PATH elements.
 
593
    case "$ac_dir/" in
 
594
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
595
    *)
 
596
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
597
      # Don't use installbsd from OSF since it installs stuff as root
 
598
      # by default.
 
599
      for ac_prog in ginstall scoinst install; do
 
600
        if test -f $ac_dir/$ac_prog; then
 
601
          if test $ac_prog = install &&
 
602
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
603
            # AIX install.  It has an incompatible calling convention.
 
604
            :
 
605
          else
 
606
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
607
            break 2
 
608
          fi
 
609
        fi
1552
610
      done
1553
 
    done
1554
 
    ;;
1555
 
esac
1556
 
done
1557
 
 
 
611
      ;;
 
612
    esac
 
613
  done
 
614
  IFS="$ac_save_IFS"
1558
615
 
1559
616
fi
1560
617
  if test "${ac_cv_path_install+set}" = set; then
1561
 
    INSTALL=$ac_cv_path_install
 
618
    INSTALL="$ac_cv_path_install"
1562
619
  else
1563
620
    # As a last resort, use the slow shell script.  We don't cache a
1564
621
    # path for INSTALL within a source directory, because that will
1565
622
    # break other packages using the cache if that directory is
1566
623
    # removed, or if the path is relative.
1567
 
    INSTALL=$ac_install_sh
 
624
    INSTALL="$ac_install_sh"
1568
625
  fi
1569
626
fi
1570
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1571
 
echo "${ECHO_T}$INSTALL" >&6
 
627
echo "$ac_t""$INSTALL" 1>&6
1572
628
 
1573
629
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1574
630
# It thinks the first close brace ends the variable substitution.
1575
631
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1576
632
 
1577
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
633
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1578
634
 
1579
635
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1580
636
 
1581
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1582
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
637
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 
638
echo "configure:639: checking whether build environment is sane" >&5
1583
639
# Just in case
1584
640
sleep 1
1585
 
echo timestamp > conftest.file
 
641
echo timestamp > conftestfile
1586
642
# Do `set' in a subshell so we don't clobber the current shell's
1587
643
# arguments.  Must try -L first in case configure is actually a
1588
644
# symlink; some systems play weird games with the mod time of symlinks
1589
645
# (eg FreeBSD returns the mod time of the symlink's containing
1590
646
# directory).
1591
647
if (
1592
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
648
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1593
649
   if test "$*" = "X"; then
1594
650
      # -L didn't work.
1595
 
      set X `ls -t $srcdir/configure conftest.file`
 
651
      set X `ls -t $srcdir/configure conftestfile`
1596
652
   fi
1597
 
   rm -f conftest.file
1598
 
   if test "$*" != "X $srcdir/configure conftest.file" \
1599
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
653
   if test "$*" != "X $srcdir/configure conftestfile" \
 
654
      && test "$*" != "X conftestfile $srcdir/configure"; then
1600
655
 
1601
656
      # If neither matched, then we have a broken ls.  This can happen
1602
657
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1603
658
      # broken ls alias from the environment.  This has actually
1604
659
      # happened.  Such a system could not be considered "sane".
1605
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1606
 
alias in your environment" >&5
1607
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1608
 
alias in your environment" >&2;}
1609
 
   { (exit 1); exit 1; }; }
 
660
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
 
661
alias in your environment" 1>&2; exit 1; }
1610
662
   fi
1611
663
 
1612
 
   test "$2" = conftest.file
 
664
   test "$2" = conftestfile
1613
665
   )
1614
666
then
1615
667
   # Ok.
1616
668
   :
1617
669
else
1618
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1619
 
Check your system clock" >&5
1620
 
echo "$as_me: error: newly created file is older than distributed files!
1621
 
Check your system clock" >&2;}
1622
 
   { (exit 1); exit 1; }; }
1623
 
fi
1624
 
echo "$as_me:$LINENO: result: yes" >&5
1625
 
echo "${ECHO_T}yes" >&6
 
670
   { echo "configure: error: newly created file is older than distributed files!
 
671
Check your system clock" 1>&2; exit 1; }
 
672
fi
 
673
rm -f conftest*
 
674
echo "$ac_t""yes" 1>&6
 
675
if test "$program_transform_name" = s,x,x,; then
 
676
  program_transform_name=
 
677
else
 
678
  # Double any \ or $.  echo might interpret backslashes.
 
679
  cat <<\EOF_SED > conftestsed
 
680
s,\\,\\\\,g; s,\$,$$,g
 
681
EOF_SED
 
682
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
683
  rm -f conftestsed
 
684
fi
1626
685
test "$program_prefix" != NONE &&
1627
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
686
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1628
687
# Use a double $ so make ignores it.
1629
688
test "$program_suffix" != NONE &&
1630
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1631
 
# Double any \ or $.  echo might interpret backslashes.
1632
 
# By default was `s,x,x', remove it if useless.
1633
 
cat <<\_ACEOF >conftest.sed
1634
 
s/[\\$]/&&/g;s/;s,x,x,$//
1635
 
_ACEOF
1636
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1637
 
rm conftest.sed
1638
 
 
1639
 
 
1640
 
# expand $ac_aux_dir to an absolute path
1641
 
am_aux_dir=`cd $ac_aux_dir && pwd`
1642
 
 
1643
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1644
 
# Use eval to expand $SHELL
1645
 
if eval "$MISSING --run true"; then
1646
 
  am_missing_run="$MISSING --run "
1647
 
else
1648
 
  am_missing_run=
1649
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1650
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1651
 
fi
1652
 
 
1653
 
for ac_prog in gawk mawk nawk awk
1654
 
do
1655
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1656
 
set dummy $ac_prog; ac_word=$2
1657
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1658
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659
 
if test "${ac_cv_prog_AWK+set}" = set; then
1660
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1661
 
else
1662
 
  if test -n "$AWK"; then
1663
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1664
 
else
1665
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666
 
for as_dir in $PATH
1667
 
do
1668
 
  IFS=$as_save_IFS
1669
 
  test -z "$as_dir" && as_dir=.
1670
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1671
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672
 
    ac_cv_prog_AWK="$ac_prog"
1673
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674
 
    break 2
1675
 
  fi
1676
 
done
1677
 
done
1678
 
 
1679
 
fi
1680
 
fi
1681
 
AWK=$ac_cv_prog_AWK
1682
 
if test -n "$AWK"; then
1683
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1684
 
echo "${ECHO_T}$AWK" >&6
1685
 
else
1686
 
  echo "$as_me:$LINENO: result: no" >&5
1687
 
echo "${ECHO_T}no" >&6
1688
 
fi
1689
 
 
1690
 
  test -n "$AWK" && break
1691
 
done
1692
 
 
1693
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1694
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1695
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1696
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1697
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1698
 
else
1699
 
  cat >conftest.make <<\_ACEOF
 
689
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
690
 
 
691
# sed with no file args requires a program.
 
692
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
693
 
 
694
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
695
echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
696
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
697
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
698
  echo $ac_n "(cached) $ac_c" 1>&6
 
699
else
 
700
  cat > conftestmake <<\EOF
1700
701
all:
1701
 
        @echo 'ac_maketemp="$(MAKE)"'
1702
 
_ACEOF
 
702
        @echo 'ac_maketemp="${MAKE}"'
 
703
EOF
1703
704
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1704
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
705
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1705
706
if test -n "$ac_maketemp"; then
1706
707
  eval ac_cv_prog_make_${ac_make}_set=yes
1707
708
else
1708
709
  eval ac_cv_prog_make_${ac_make}_set=no
1709
710
fi
1710
 
rm -f conftest.make
 
711
rm -f conftestmake
1711
712
fi
1712
713
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1713
 
  echo "$as_me:$LINENO: result: yes" >&5
1714
 
echo "${ECHO_T}yes" >&6
 
714
  echo "$ac_t""yes" 1>&6
1715
715
  SET_MAKE=
1716
716
else
1717
 
  echo "$as_me:$LINENO: result: no" >&5
1718
 
echo "${ECHO_T}no" >&6
 
717
  echo "$ac_t""no" 1>&6
1719
718
  SET_MAKE="MAKE=${MAKE-make}"
1720
719
fi
1721
720
 
1722
 
rm -rf .tst 2>/dev/null
1723
 
mkdir .tst 2>/dev/null
1724
 
if test -d .tst; then
1725
 
  am__leading_dot=.
1726
 
else
1727
 
  am__leading_dot=_
1728
 
fi
1729
 
rmdir .tst 2>/dev/null
1730
 
 
1731
 
 # test to see if srcdir already configured
1732
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1733
 
   test -f $srcdir/config.status; then
1734
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1735
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1736
 
   { (exit 1); exit 1; }; }
1737
 
fi
1738
 
 
1739
 
# test whether we have cygpath
1740
 
if test -z "$CYGPATH_W"; then
1741
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
1742
 
    CYGPATH_W='cygpath -w'
1743
 
  else
1744
 
    CYGPATH_W=echo
1745
 
  fi
1746
 
fi
1747
 
 
1748
 
 
1749
 
# Define the identity of the package.
1750
 
 PACKAGE='plotutils'
1751
 
 VERSION='2.4.1'
1752
 
 
1753
 
 
1754
 
# Some tools Automake needs.
1755
 
 
1756
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1757
 
 
1758
 
 
1759
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1760
 
 
1761
 
 
1762
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1763
 
 
1764
 
 
1765
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1766
 
 
1767
 
 
1768
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1769
 
 
1770
 
 
1771
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1772
 
 
1773
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1774
 
 
1775
 
# Installed binaries are usually stripped using `strip' when the user
1776
 
# run `make install-strip'.  However `strip' might not be the right
1777
 
# tool to use in cross-compilation environments, therefore Automake
1778
 
# will honor the `STRIP' environment variable to overrule this program.
1779
 
if test "$cross_compiling" != no; then
1780
 
  if test -n "$ac_tool_prefix"; then
1781
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1782
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
1783
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1784
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785
 
if test "${ac_cv_prog_STRIP+set}" = set; then
1786
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1787
 
else
1788
 
  if test -n "$STRIP"; then
1789
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1790
 
else
1791
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792
 
for as_dir in $PATH
1793
 
do
1794
 
  IFS=$as_save_IFS
1795
 
  test -z "$as_dir" && as_dir=.
1796
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1797
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1799
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800
 
    break 2
1801
 
  fi
1802
 
done
1803
 
done
1804
 
 
1805
 
fi
1806
 
fi
1807
 
STRIP=$ac_cv_prog_STRIP
1808
 
if test -n "$STRIP"; then
1809
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1810
 
echo "${ECHO_T}$STRIP" >&6
1811
 
else
1812
 
  echo "$as_me:$LINENO: result: no" >&5
1813
 
echo "${ECHO_T}no" >&6
1814
 
fi
1815
 
 
1816
 
fi
1817
 
if test -z "$ac_cv_prog_STRIP"; then
1818
 
  ac_ct_STRIP=$STRIP
1819
 
  # Extract the first word of "strip", so it can be a program name with args.
1820
 
set dummy strip; ac_word=$2
1821
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1822
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1824
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1825
 
else
1826
 
  if test -n "$ac_ct_STRIP"; then
1827
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1828
 
else
1829
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830
 
for as_dir in $PATH
1831
 
do
1832
 
  IFS=$as_save_IFS
1833
 
  test -z "$as_dir" && as_dir=.
1834
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1835
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836
 
    ac_cv_prog_ac_ct_STRIP="strip"
1837
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838
 
    break 2
1839
 
  fi
1840
 
done
1841
 
done
1842
 
 
1843
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1844
 
fi
1845
 
fi
1846
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1847
 
if test -n "$ac_ct_STRIP"; then
1848
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1849
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
1850
 
else
1851
 
  echo "$as_me:$LINENO: result: no" >&5
1852
 
echo "${ECHO_T}no" >&6
1853
 
fi
1854
 
 
1855
 
  STRIP=$ac_ct_STRIP
1856
 
else
1857
 
  STRIP="$ac_cv_prog_STRIP"
1858
 
fi
1859
 
 
1860
 
fi
1861
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1862
 
 
1863
 
# We need awk for the "check" target.  The system "awk" is bad on
1864
 
# some platforms.
1865
 
 
1866
 
 
1867
 
 
1868
 
          ac_config_headers="$ac_config_headers config.h"
1869
 
 
1870
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873
 
if test "${enable_maintainer_mode+set}" = set; then
1874
 
  enableval="$enable_maintainer_mode"
1875
 
  USE_MAINTAINER_MODE=$enableval
1876
 
else
1877
 
  USE_MAINTAINER_MODE=no
1878
 
fi;
1879
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1881
 
 
1882
 
 
1883
 
if test $USE_MAINTAINER_MODE = yes; then
1884
 
  MAINTAINER_MODE_TRUE=
1885
 
  MAINTAINER_MODE_FALSE='#'
1886
 
else
1887
 
  MAINTAINER_MODE_TRUE='#'
1888
 
  MAINTAINER_MODE_FALSE=
1889
 
fi
1890
 
 
1891
 
  MAINT=$MAINTAINER_MODE_TRUE
 
721
 
 
722
PACKAGE=plotutils
 
723
 
 
724
VERSION=2.4.1
 
725
 
 
726
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
727
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
728
fi
 
729
cat >> confdefs.h <<EOF
 
730
#define PACKAGE "$PACKAGE"
 
731
EOF
 
732
 
 
733
cat >> confdefs.h <<EOF
 
734
#define VERSION "$VERSION"
 
735
EOF
 
736
 
 
737
 
 
738
 
 
739
missing_dir=`cd $ac_aux_dir && pwd`
 
740
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 
741
echo "configure:742: checking for working aclocal" >&5
 
742
# Run test in a subshell; some versions of sh will print an error if
 
743
# an executable is not found, even if stderr is redirected.
 
744
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
745
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
746
   ACLOCAL=aclocal
 
747
   echo "$ac_t""found" 1>&6
 
748
else
 
749
   ACLOCAL="$missing_dir/missing aclocal"
 
750
   echo "$ac_t""missing" 1>&6
 
751
fi
 
752
 
 
753
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 
754
echo "configure:755: checking for working autoconf" >&5
 
755
# Run test in a subshell; some versions of sh will print an error if
 
756
# an executable is not found, even if stderr is redirected.
 
757
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
758
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
759
   AUTOCONF=autoconf
 
760
   echo "$ac_t""found" 1>&6
 
761
else
 
762
   AUTOCONF="$missing_dir/missing autoconf"
 
763
   echo "$ac_t""missing" 1>&6
 
764
fi
 
765
 
 
766
echo $ac_n "checking for working automake""... $ac_c" 1>&6
 
767
echo "configure:768: checking for working automake" >&5
 
768
# Run test in a subshell; some versions of sh will print an error if
 
769
# an executable is not found, even if stderr is redirected.
 
770
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
771
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
772
   AUTOMAKE=automake
 
773
   echo "$ac_t""found" 1>&6
 
774
else
 
775
   AUTOMAKE="$missing_dir/missing automake"
 
776
   echo "$ac_t""missing" 1>&6
 
777
fi
 
778
 
 
779
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 
780
echo "configure:781: checking for working autoheader" >&5
 
781
# Run test in a subshell; some versions of sh will print an error if
 
782
# an executable is not found, even if stderr is redirected.
 
783
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
784
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
785
   AUTOHEADER=autoheader
 
786
   echo "$ac_t""found" 1>&6
 
787
else
 
788
   AUTOHEADER="$missing_dir/missing autoheader"
 
789
   echo "$ac_t""missing" 1>&6
 
790
fi
 
791
 
 
792
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 
793
echo "configure:794: checking for working makeinfo" >&5
 
794
# Run test in a subshell; some versions of sh will print an error if
 
795
# an executable is not found, even if stderr is redirected.
 
796
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
797
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
798
   MAKEINFO=makeinfo
 
799
   echo "$ac_t""found" 1>&6
 
800
else
 
801
   MAKEINFO="$missing_dir/missing makeinfo"
 
802
   echo "$ac_t""missing" 1>&6
 
803
fi
 
804
 
 
805
 
 
806
 
1892
807
 
1893
808
 
1894
809
 
1907
822
if test "${enable_shared+set}" = set; then
1908
823
  enableval="$enable_shared"
1909
824
  p=${PACKAGE-default}
1910
 
case $enableval in
 
825
case "$enableval" in
1911
826
yes) enable_shared=yes ;;
1912
827
no) enable_shared=no ;;
1913
828
*)
1924
839
esac
1925
840
else
1926
841
  enable_shared=yes
1927
 
fi;
 
842
fi
 
843
 
1928
844
# Check whether --enable-static or --disable-static was given.
1929
845
if test "${enable_static+set}" = set; then
1930
846
  enableval="$enable_static"
1931
847
  p=${PACKAGE-default}
1932
 
case $enableval in
 
848
case "$enableval" in
1933
849
yes) enable_static=yes ;;
1934
850
no) enable_static=no ;;
1935
851
*)
1946
862
esac
1947
863
else
1948
864
  enable_static=yes
1949
 
fi;
 
865
fi
 
866
 
1950
867
# Check whether --enable-fast-install or --disable-fast-install was given.
1951
868
if test "${enable_fast_install+set}" = set; then
1952
869
  enableval="$enable_fast_install"
1953
870
  p=${PACKAGE-default}
1954
 
case $enableval in
 
871
case "$enableval" in
1955
872
yes) enable_fast_install=yes ;;
1956
873
no) enable_fast_install=no ;;
1957
874
*)
1968
885
esac
1969
886
else
1970
887
  enable_fast_install=yes
1971
 
fi;
 
888
fi
 
889
 
 
890
 
1972
891
# Make sure we can run config.sub.
1973
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1974
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1975
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1976
 
   { (exit 1); exit 1; }; }
1977
 
 
1978
 
echo "$as_me:$LINENO: checking build system type" >&5
1979
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1980
 
if test "${ac_cv_build+set}" = set; then
1981
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1982
 
else
1983
 
  ac_cv_build_alias=$build_alias
1984
 
test -z "$ac_cv_build_alias" &&
1985
 
  ac_cv_build_alias=`$ac_config_guess`
1986
 
test -z "$ac_cv_build_alias" &&
1987
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1988
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1989
 
   { (exit 1); exit 1; }; }
1990
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1991
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1992
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1993
 
   { (exit 1); exit 1; }; }
1994
 
 
1995
 
fi
1996
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1997
 
echo "${ECHO_T}$ac_cv_build" >&6
1998
 
build=$ac_cv_build
1999
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2000
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2001
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2002
 
 
2003
 
 
2004
 
echo "$as_me:$LINENO: checking host system type" >&5
2005
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2006
 
if test "${ac_cv_host+set}" = set; then
2007
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2008
 
else
2009
 
  ac_cv_host_alias=$host_alias
2010
 
test -z "$ac_cv_host_alias" &&
2011
 
  ac_cv_host_alias=$ac_cv_build_alias
2012
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2013
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2014
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2015
 
   { (exit 1); exit 1; }; }
2016
 
 
2017
 
fi
2018
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2019
 
echo "${ECHO_T}$ac_cv_host" >&6
2020
 
host=$ac_cv_host
2021
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2022
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2023
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2024
 
 
2025
 
 
2026
 
DEPDIR="${am__leading_dot}deps"
2027
 
 
2028
 
          ac_config_commands="$ac_config_commands depfiles"
2029
 
 
2030
 
 
2031
 
am_make=${MAKE-make}
2032
 
cat > confinc << 'END'
2033
 
doit:
2034
 
        @echo done
2035
 
END
2036
 
# If we don't find an include directive, just comment out the code.
2037
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2038
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2039
 
am__include="#"
2040
 
am__quote=
2041
 
_am_result=none
2042
 
# First try GNU make style include.
2043
 
echo "include confinc" > confmf
2044
 
# We grep out `Entering directory' and `Leaving directory'
2045
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2046
 
# In particular we don't look at `^make:' because GNU make might
2047
 
# be invoked under some other name (usually "gmake"), in which
2048
 
# case it prints its new name instead of `make'.
2049
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2050
 
   am__include=include
2051
 
   am__quote=
2052
 
   _am_result=GNU
2053
 
fi
2054
 
# Now try BSD make style include.
2055
 
if test "$am__include" = "#"; then
2056
 
   echo '.include "confinc"' > confmf
2057
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2058
 
      am__include=.include
2059
 
      am__quote="\""
2060
 
      _am_result=BSD
2061
 
   fi
2062
 
fi
2063
 
 
2064
 
 
2065
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2066
 
echo "${ECHO_T}$_am_result" >&6
2067
 
rm -f confinc confmf
2068
 
 
2069
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2070
 
if test "${enable_dependency_tracking+set}" = set; then
2071
 
  enableval="$enable_dependency_tracking"
2072
 
 
2073
 
fi;
2074
 
if test "x$enable_dependency_tracking" != xno; then
2075
 
  am_depcomp="$ac_aux_dir/depcomp"
2076
 
  AMDEPBACKSLASH='\'
2077
 
fi
2078
 
 
2079
 
 
2080
 
if test "x$enable_dependency_tracking" != xno; then
2081
 
  AMDEP_TRUE=
2082
 
  AMDEP_FALSE='#'
2083
 
else
2084
 
  AMDEP_TRUE='#'
2085
 
  AMDEP_FALSE=
2086
 
fi
2087
 
 
2088
 
 
2089
 
 
2090
 
ac_ext=c
2091
 
ac_cpp='$CPP $CPPFLAGS'
2092
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
 
if test -n "$ac_tool_prefix"; then
2096
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2099
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100
 
if test "${ac_cv_prog_CC+set}" = set; then
2101
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2102
 
else
2103
 
  if test -n "$CC"; then
2104
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2105
 
else
2106
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107
 
for as_dir in $PATH
2108
 
do
2109
 
  IFS=$as_save_IFS
2110
 
  test -z "$as_dir" && as_dir=.
2111
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2112
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115
 
    break 2
2116
 
  fi
2117
 
done
2118
 
done
2119
 
 
2120
 
fi
2121
 
fi
2122
 
CC=$ac_cv_prog_CC
2123
 
if test -n "$CC"; then
2124
 
  echo "$as_me:$LINENO: result: $CC" >&5
2125
 
echo "${ECHO_T}$CC" >&6
2126
 
else
2127
 
  echo "$as_me:$LINENO: result: no" >&5
2128
 
echo "${ECHO_T}no" >&6
2129
 
fi
2130
 
 
2131
 
fi
2132
 
if test -z "$ac_cv_prog_CC"; then
2133
 
  ac_ct_CC=$CC
2134
 
  # Extract the first word of "gcc", so it can be a program name with args.
 
892
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
893
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
894
fi
 
895
 
 
896
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
897
echo "configure:898: checking host system type" >&5
 
898
 
 
899
host_alias=$host
 
900
case "$host_alias" in
 
901
NONE)
 
902
  case $nonopt in
 
903
  NONE)
 
904
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
905
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
906
    fi ;;
 
907
  *) host_alias=$nonopt ;;
 
908
  esac ;;
 
909
esac
 
910
 
 
911
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
912
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
913
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
914
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
915
echo "$ac_t""$host" 1>&6
 
916
 
 
917
echo $ac_n "checking build system type""... $ac_c" 1>&6
 
918
echo "configure:919: checking build system type" >&5
 
919
 
 
920
build_alias=$build
 
921
case "$build_alias" in
 
922
NONE)
 
923
  case $nonopt in
 
924
  NONE) build_alias=$host_alias ;;
 
925
  *) build_alias=$nonopt ;;
 
926
  esac ;;
 
927
esac
 
928
 
 
929
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 
930
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
931
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
932
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
933
echo "$ac_t""$build" 1>&6
 
934
 
 
935
# Extract the first word of "ranlib", so it can be a program name with args.
 
936
set dummy ranlib; ac_word=$2
 
937
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
938
echo "configure:939: checking for $ac_word" >&5
 
939
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
940
  echo $ac_n "(cached) $ac_c" 1>&6
 
941
else
 
942
  if test -n "$RANLIB"; then
 
943
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
944
else
 
945
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
946
  ac_dummy="$PATH"
 
947
  for ac_dir in $ac_dummy; do
 
948
    test -z "$ac_dir" && ac_dir=.
 
949
    if test -f $ac_dir/$ac_word; then
 
950
      ac_cv_prog_RANLIB="ranlib"
 
951
      break
 
952
    fi
 
953
  done
 
954
  IFS="$ac_save_ifs"
 
955
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
956
fi
 
957
fi
 
958
RANLIB="$ac_cv_prog_RANLIB"
 
959
if test -n "$RANLIB"; then
 
960
  echo "$ac_t""$RANLIB" 1>&6
 
961
else
 
962
  echo "$ac_t""no" 1>&6
 
963
fi
 
964
 
 
965
# Extract the first word of "gcc", so it can be a program name with args.
2135
966
set dummy gcc; ac_word=$2
2136
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2137
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2140
 
else
2141
 
  if test -n "$ac_ct_CC"; then
2142
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143
 
else
2144
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145
 
for as_dir in $PATH
2146
 
do
2147
 
  IFS=$as_save_IFS
2148
 
  test -z "$as_dir" && as_dir=.
2149
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2150
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151
 
    ac_cv_prog_ac_ct_CC="gcc"
2152
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153
 
    break 2
2154
 
  fi
2155
 
done
2156
 
done
2157
 
 
2158
 
fi
2159
 
fi
2160
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161
 
if test -n "$ac_ct_CC"; then
2162
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163
 
echo "${ECHO_T}$ac_ct_CC" >&6
2164
 
else
2165
 
  echo "$as_me:$LINENO: result: no" >&5
2166
 
echo "${ECHO_T}no" >&6
2167
 
fi
2168
 
 
2169
 
  CC=$ac_ct_CC
2170
 
else
2171
 
  CC="$ac_cv_prog_CC"
2172
 
fi
2173
 
 
2174
 
if test -z "$CC"; then
2175
 
  if test -n "$ac_tool_prefix"; then
2176
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2178
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2179
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180
 
if test "${ac_cv_prog_CC+set}" = set; then
2181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
967
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
968
echo "configure:969: checking for $ac_word" >&5
 
969
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
970
  echo $ac_n "(cached) $ac_c" 1>&6
2182
971
else
2183
972
  if test -n "$CC"; then
2184
973
  ac_cv_prog_CC="$CC" # Let the user override the test.
2185
974
else
2186
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187
 
for as_dir in $PATH
2188
 
do
2189
 
  IFS=$as_save_IFS
2190
 
  test -z "$as_dir" && as_dir=.
2191
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2192
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2194
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195
 
    break 2
2196
 
  fi
2197
 
done
2198
 
done
2199
 
 
2200
 
fi
2201
 
fi
2202
 
CC=$ac_cv_prog_CC
 
975
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
976
  ac_dummy="$PATH"
 
977
  for ac_dir in $ac_dummy; do
 
978
    test -z "$ac_dir" && ac_dir=.
 
979
    if test -f $ac_dir/$ac_word; then
 
980
      ac_cv_prog_CC="gcc"
 
981
      break
 
982
    fi
 
983
  done
 
984
  IFS="$ac_save_ifs"
 
985
fi
 
986
fi
 
987
CC="$ac_cv_prog_CC"
2203
988
if test -n "$CC"; then
2204
 
  echo "$as_me:$LINENO: result: $CC" >&5
2205
 
echo "${ECHO_T}$CC" >&6
2206
 
else
2207
 
  echo "$as_me:$LINENO: result: no" >&5
2208
 
echo "${ECHO_T}no" >&6
2209
 
fi
2210
 
 
2211
 
fi
2212
 
if test -z "$ac_cv_prog_CC"; then
2213
 
  ac_ct_CC=$CC
2214
 
  # Extract the first word of "cc", so it can be a program name with args.
2215
 
set dummy cc; ac_word=$2
2216
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2217
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2220
 
else
2221
 
  if test -n "$ac_ct_CC"; then
2222
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2223
 
else
2224
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
 
for as_dir in $PATH
2226
 
do
2227
 
  IFS=$as_save_IFS
2228
 
  test -z "$as_dir" && as_dir=.
2229
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2230
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231
 
    ac_cv_prog_ac_ct_CC="cc"
2232
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233
 
    break 2
2234
 
  fi
2235
 
done
2236
 
done
2237
 
 
2238
 
fi
2239
 
fi
2240
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241
 
if test -n "$ac_ct_CC"; then
2242
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243
 
echo "${ECHO_T}$ac_ct_CC" >&6
2244
 
else
2245
 
  echo "$as_me:$LINENO: result: no" >&5
2246
 
echo "${ECHO_T}no" >&6
2247
 
fi
2248
 
 
2249
 
  CC=$ac_ct_CC
2250
 
else
2251
 
  CC="$ac_cv_prog_CC"
2252
 
fi
2253
 
 
2254
 
fi
 
989
  echo "$ac_t""$CC" 1>&6
 
990
else
 
991
  echo "$ac_t""no" 1>&6
 
992
fi
 
993
 
2255
994
if test -z "$CC"; then
2256
995
  # Extract the first word of "cc", so it can be a program name with args.
2257
996
set dummy cc; ac_word=$2
2258
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2259
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
 
if test "${ac_cv_prog_CC+set}" = set; then
2261
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
997
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
998
echo "configure:999: checking for $ac_word" >&5
 
999
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1000
  echo $ac_n "(cached) $ac_c" 1>&6
2262
1001
else
2263
1002
  if test -n "$CC"; then
2264
1003
  ac_cv_prog_CC="$CC" # Let the user override the test.
2265
1004
else
 
1005
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2266
1006
  ac_prog_rejected=no
2267
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
 
for as_dir in $PATH
2269
 
do
2270
 
  IFS=$as_save_IFS
2271
 
  test -z "$as_dir" && as_dir=.
2272
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2273
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275
 
       ac_prog_rejected=yes
2276
 
       continue
2277
 
     fi
2278
 
    ac_cv_prog_CC="cc"
2279
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280
 
    break 2
2281
 
  fi
2282
 
done
2283
 
done
2284
 
 
 
1007
  ac_dummy="$PATH"
 
1008
  for ac_dir in $ac_dummy; do
 
1009
    test -z "$ac_dir" && ac_dir=.
 
1010
    if test -f $ac_dir/$ac_word; then
 
1011
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1012
        ac_prog_rejected=yes
 
1013
        continue
 
1014
      fi
 
1015
      ac_cv_prog_CC="cc"
 
1016
      break
 
1017
    fi
 
1018
  done
 
1019
  IFS="$ac_save_ifs"
2285
1020
if test $ac_prog_rejected = yes; then
2286
1021
  # We found a bogon in the path, so make sure we never use it.
2287
1022
  set dummy $ac_cv_prog_CC
2288
1023
  shift
2289
 
  if test $# != 0; then
 
1024
  if test $# -gt 0; then
2290
1025
    # We chose a different compiler from the bogus one.
2291
1026
    # However, it has the same basename, so the bogon will be chosen
2292
1027
    # first if we set CC to just the basename; use the full file name.
2293
1028
    shift
2294
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1029
    set dummy "$ac_dir/$ac_word" "$@"
 
1030
    shift
 
1031
    ac_cv_prog_CC="$@"
2295
1032
  fi
2296
1033
fi
2297
1034
fi
2298
1035
fi
2299
 
CC=$ac_cv_prog_CC
 
1036
CC="$ac_cv_prog_CC"
2300
1037
if test -n "$CC"; then
2301
 
  echo "$as_me:$LINENO: result: $CC" >&5
2302
 
echo "${ECHO_T}$CC" >&6
 
1038
  echo "$ac_t""$CC" 1>&6
2303
1039
else
2304
 
  echo "$as_me:$LINENO: result: no" >&5
2305
 
echo "${ECHO_T}no" >&6
 
1040
  echo "$ac_t""no" 1>&6
2306
1041
fi
2307
1042
 
2308
 
fi
2309
 
if test -z "$CC"; then
2310
 
  if test -n "$ac_tool_prefix"; then
2311
 
  for ac_prog in cl
2312
 
  do
2313
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2316
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317
 
if test "${ac_cv_prog_CC+set}" = set; then
2318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1043
  if test -z "$CC"; then
 
1044
    case "`uname -s`" in
 
1045
    *win32* | *WIN32*)
 
1046
      # Extract the first word of "cl", so it can be a program name with args.
 
1047
set dummy cl; ac_word=$2
 
1048
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1049
echo "configure:1050: checking for $ac_word" >&5
 
1050
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1051
  echo $ac_n "(cached) $ac_c" 1>&6
2319
1052
else
2320
1053
  if test -n "$CC"; then
2321
1054
  ac_cv_prog_CC="$CC" # Let the user override the test.
2322
1055
else
2323
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324
 
for as_dir in $PATH
2325
 
do
2326
 
  IFS=$as_save_IFS
2327
 
  test -z "$as_dir" && as_dir=.
2328
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2329
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332
 
    break 2
2333
 
  fi
2334
 
done
2335
 
done
2336
 
 
2337
 
fi
2338
 
fi
2339
 
CC=$ac_cv_prog_CC
2340
 
if test -n "$CC"; then
2341
 
  echo "$as_me:$LINENO: result: $CC" >&5
2342
 
echo "${ECHO_T}$CC" >&6
2343
 
else
2344
 
  echo "$as_me:$LINENO: result: no" >&5
2345
 
echo "${ECHO_T}no" >&6
2346
 
fi
2347
 
 
2348
 
    test -n "$CC" && break
 
1056
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1057
  ac_dummy="$PATH"
 
1058
  for ac_dir in $ac_dummy; do
 
1059
    test -z "$ac_dir" && ac_dir=.
 
1060
    if test -f $ac_dir/$ac_word; then
 
1061
      ac_cv_prog_CC="cl"
 
1062
      break
 
1063
    fi
2349
1064
  done
2350
 
fi
2351
 
if test -z "$CC"; then
2352
 
  ac_ct_CC=$CC
2353
 
  for ac_prog in cl
2354
 
do
2355
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2356
 
set dummy $ac_prog; ac_word=$2
2357
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2358
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2361
 
else
2362
 
  if test -n "$ac_ct_CC"; then
2363
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364
 
else
2365
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366
 
for as_dir in $PATH
2367
 
do
2368
 
  IFS=$as_save_IFS
2369
 
  test -z "$as_dir" && as_dir=.
2370
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2371
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2373
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
 
    break 2
 
1065
  IFS="$ac_save_ifs"
 
1066
fi
 
1067
fi
 
1068
CC="$ac_cv_prog_CC"
 
1069
if test -n "$CC"; then
 
1070
  echo "$ac_t""$CC" 1>&6
 
1071
else
 
1072
  echo "$ac_t""no" 1>&6
 
1073
fi
 
1074
 ;;
 
1075
    esac
2375
1076
  fi
2376
 
done
2377
 
done
2378
 
 
2379
 
fi
2380
 
fi
2381
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382
 
if test -n "$ac_ct_CC"; then
2383
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384
 
echo "${ECHO_T}$ac_ct_CC" >&6
2385
 
else
2386
 
  echo "$as_me:$LINENO: result: no" >&5
2387
 
echo "${ECHO_T}no" >&6
2388
 
fi
2389
 
 
2390
 
  test -n "$ac_ct_CC" && break
2391
 
done
2392
 
 
2393
 
  CC=$ac_ct_CC
2394
 
fi
2395
 
 
2396
 
fi
2397
 
 
2398
 
 
2399
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2400
 
See \`config.log' for more details." >&5
2401
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2402
 
See \`config.log' for more details." >&2;}
2403
 
   { (exit 1); exit 1; }; }
2404
 
 
2405
 
# Provide some information about the compiler.
2406
 
echo "$as_me:$LINENO:" \
2407
 
     "checking for C compiler version" >&5
2408
 
ac_compiler=`set X $ac_compile; echo $2`
2409
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2410
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2411
 
  ac_status=$?
2412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
 
  (exit $ac_status); }
2414
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2415
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2416
 
  ac_status=$?
2417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418
 
  (exit $ac_status); }
2419
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2420
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2421
 
  ac_status=$?
2422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423
 
  (exit $ac_status); }
2424
 
 
2425
 
cat >conftest.$ac_ext <<_ACEOF
2426
 
#line $LINENO "configure"
2427
 
/* confdefs.h.  */
2428
 
_ACEOF
2429
 
cat confdefs.h >>conftest.$ac_ext
2430
 
cat >>conftest.$ac_ext <<_ACEOF
2431
 
/* end confdefs.h.  */
2432
 
 
2433
 
int
2434
 
main ()
2435
 
{
2436
 
 
2437
 
  ;
2438
 
  return 0;
2439
 
}
2440
 
_ACEOF
2441
 
ac_clean_files_save=$ac_clean_files
2442
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2443
 
# Try to create an executable without -o first, disregard a.out.
2444
 
# It will help us diagnose broken compilers, and finding out an intuition
2445
 
# of exeext.
2446
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2447
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2448
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2449
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2450
 
  (eval $ac_link_default) 2>&5
2451
 
  ac_status=$?
2452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
 
  (exit $ac_status); }; then
2454
 
  # Find the output, starting from the most likely.  This scheme is
2455
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2456
 
# resort.
2457
 
 
2458
 
# Be careful to initialize this variable, since it used to be cached.
2459
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2460
 
ac_cv_exeext=
2461
 
# b.out is created by i960 compilers.
2462
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2463
 
do
2464
 
  test -f "$ac_file" || continue
2465
 
  case $ac_file in
2466
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2467
 
        ;;
2468
 
    conftest.$ac_ext )
2469
 
        # This is the source file.
2470
 
        ;;
2471
 
    [ab].out )
2472
 
        # We found the default executable, but exeext='' is most
2473
 
        # certainly right.
2474
 
        break;;
2475
 
    *.* )
2476
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2478
 
        # but it would be cool to find out if it's true.  Does anybody
2479
 
        # maintain Libtool? --akim.
2480
 
        export ac_cv_exeext
2481
 
        break;;
2482
 
    * )
2483
 
        break;;
2484
 
  esac
2485
 
done
2486
 
else
2487
 
  echo "$as_me: failed program was:" >&5
2488
 
sed 's/^/| /' conftest.$ac_ext >&5
2489
 
 
2490
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2491
 
See \`config.log' for more details." >&5
2492
 
echo "$as_me: error: C compiler cannot create executables
2493
 
See \`config.log' for more details." >&2;}
2494
 
   { (exit 77); exit 77; }; }
2495
 
fi
2496
 
 
2497
 
ac_exeext=$ac_cv_exeext
2498
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2499
 
echo "${ECHO_T}$ac_file" >&6
2500
 
 
2501
 
# Check the compiler produces executables we can run.  If not, either
2502
 
# the compiler is broken, or we cross compile.
2503
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2504
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2505
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2506
 
# If not cross compiling, check that we can run a simple program.
2507
 
if test "$cross_compiling" != yes; then
2508
 
  if { ac_try='./$ac_file'
2509
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510
 
  (eval $ac_try) 2>&5
2511
 
  ac_status=$?
2512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
 
  (exit $ac_status); }; }; then
2514
 
    cross_compiling=no
 
1077
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
1078
fi
 
1079
 
 
1080
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
1081
echo "configure:1082: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1082
 
 
1083
ac_ext=c
 
1084
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1085
ac_cpp='$CPP $CPPFLAGS'
 
1086
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1087
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1088
cross_compiling=$ac_cv_prog_cc_cross
 
1089
 
 
1090
cat > conftest.$ac_ext << EOF
 
1091
 
 
1092
#line 1093 "configure"
 
1093
#include "confdefs.h"
 
1094
 
 
1095
main(){return(0);}
 
1096
EOF
 
1097
if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1098
  ac_cv_prog_cc_works=yes
 
1099
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1100
  if (./conftest; exit) 2>/dev/null; then
 
1101
    ac_cv_prog_cc_cross=no
2515
1102
  else
2516
 
    if test "$cross_compiling" = maybe; then
2517
 
        cross_compiling=yes
2518
 
    else
2519
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2520
 
If you meant to cross compile, use \`--host'.
2521
 
See \`config.log' for more details." >&5
2522
 
echo "$as_me: error: cannot run C compiled programs.
2523
 
If you meant to cross compile, use \`--host'.
2524
 
See \`config.log' for more details." >&2;}
2525
 
   { (exit 1); exit 1; }; }
2526
 
    fi
 
1103
    ac_cv_prog_cc_cross=yes
2527
1104
  fi
2528
 
fi
2529
 
echo "$as_me:$LINENO: result: yes" >&5
2530
 
echo "${ECHO_T}yes" >&6
2531
 
 
2532
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2533
 
ac_clean_files=$ac_clean_files_save
2534
 
# Check the compiler produces executables we can run.  If not, either
2535
 
# the compiler is broken, or we cross compile.
2536
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2537
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2538
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2539
 
echo "${ECHO_T}$cross_compiling" >&6
2540
 
 
2541
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2542
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2543
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544
 
  (eval $ac_link) 2>&5
2545
 
  ac_status=$?
2546
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547
 
  (exit $ac_status); }; then
2548
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2549
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2550
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2551
 
# `rm'.
2552
 
for ac_file in conftest.exe conftest conftest.*; do
2553
 
  test -f "$ac_file" || continue
2554
 
  case $ac_file in
2555
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2556
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2557
 
          export ac_cv_exeext
2558
 
          break;;
2559
 
    * ) break;;
2560
 
  esac
2561
 
done
2562
 
else
2563
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2564
 
See \`config.log' for more details." >&5
2565
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2566
 
See \`config.log' for more details." >&2;}
2567
 
   { (exit 1); exit 1; }; }
2568
 
fi
2569
 
 
2570
 
rm -f conftest$ac_cv_exeext
2571
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2572
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2573
 
 
2574
 
rm -f conftest.$ac_ext
2575
 
EXEEXT=$ac_cv_exeext
2576
 
ac_exeext=$EXEEXT
2577
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2578
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2579
 
if test "${ac_cv_objext+set}" = set; then
2580
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2581
 
else
2582
 
  cat >conftest.$ac_ext <<_ACEOF
2583
 
#line $LINENO "configure"
2584
 
/* confdefs.h.  */
2585
 
_ACEOF
2586
 
cat confdefs.h >>conftest.$ac_ext
2587
 
cat >>conftest.$ac_ext <<_ACEOF
2588
 
/* end confdefs.h.  */
2589
 
 
2590
 
int
2591
 
main ()
2592
 
{
2593
 
 
2594
 
  ;
2595
 
  return 0;
2596
 
}
2597
 
_ACEOF
2598
 
rm -f conftest.o conftest.obj
2599
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600
 
  (eval $ac_compile) 2>&5
2601
 
  ac_status=$?
2602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
 
  (exit $ac_status); }; then
2604
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2605
 
  case $ac_file in
2606
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2607
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608
 
       break;;
2609
 
  esac
2610
 
done
2611
 
else
2612
 
  echo "$as_me: failed program was:" >&5
2613
 
sed 's/^/| /' conftest.$ac_ext >&5
2614
 
 
2615
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2616
 
See \`config.log' for more details." >&5
2617
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2618
 
See \`config.log' for more details." >&2;}
2619
 
   { (exit 1); exit 1; }; }
2620
 
fi
2621
 
 
2622
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2623
 
fi
2624
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2625
 
echo "${ECHO_T}$ac_cv_objext" >&6
2626
 
OBJEXT=$ac_cv_objext
2627
 
ac_objext=$OBJEXT
2628
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2629
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2630
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2631
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2632
 
else
2633
 
  cat >conftest.$ac_ext <<_ACEOF
2634
 
#line $LINENO "configure"
2635
 
/* confdefs.h.  */
2636
 
_ACEOF
2637
 
cat confdefs.h >>conftest.$ac_ext
2638
 
cat >>conftest.$ac_ext <<_ACEOF
2639
 
/* end confdefs.h.  */
2640
 
 
2641
 
int
2642
 
main ()
2643
 
{
2644
 
#ifndef __GNUC__
2645
 
       choke me
 
1105
else
 
1106
  echo "configure: failed program was:" >&5
 
1107
  cat conftest.$ac_ext >&5
 
1108
  ac_cv_prog_cc_works=no
 
1109
fi
 
1110
rm -fr conftest*
 
1111
ac_ext=c
 
1112
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1113
ac_cpp='$CPP $CPPFLAGS'
 
1114
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1115
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1116
cross_compiling=$ac_cv_prog_cc_cross
 
1117
 
 
1118
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
1119
if test $ac_cv_prog_cc_works = no; then
 
1120
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
1121
fi
 
1122
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1123
echo "configure:1124: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1124
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
1125
cross_compiling=$ac_cv_prog_cc_cross
 
1126
 
 
1127
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
1128
echo "configure:1129: checking whether we are using GNU C" >&5
 
1129
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
1130
  echo $ac_n "(cached) $ac_c" 1>&6
 
1131
else
 
1132
  cat > conftest.c <<EOF
 
1133
#ifdef __GNUC__
 
1134
  yes;
2646
1135
#endif
2647
 
 
2648
 
  ;
2649
 
  return 0;
2650
 
}
2651
 
_ACEOF
2652
 
rm -f conftest.$ac_objext
2653
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654
 
  (eval $ac_compile) 2>&5
2655
 
  ac_status=$?
2656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
 
  (exit $ac_status); } &&
2658
 
         { ac_try='test -s conftest.$ac_objext'
2659
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660
 
  (eval $ac_try) 2>&5
2661
 
  ac_status=$?
2662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663
 
  (exit $ac_status); }; }; then
2664
 
  ac_compiler_gnu=yes
2665
 
else
2666
 
  echo "$as_me: failed program was:" >&5
2667
 
sed 's/^/| /' conftest.$ac_ext >&5
2668
 
 
2669
 
ac_compiler_gnu=no
2670
 
fi
2671
 
rm -f conftest.$ac_objext conftest.$ac_ext
2672
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673
 
 
2674
 
fi
2675
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2676
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2677
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2678
 
ac_test_CFLAGS=${CFLAGS+set}
2679
 
ac_save_CFLAGS=$CFLAGS
2680
 
CFLAGS="-g"
2681
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2682
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2683
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2685
 
else
2686
 
  cat >conftest.$ac_ext <<_ACEOF
2687
 
#line $LINENO "configure"
2688
 
/* confdefs.h.  */
2689
 
_ACEOF
2690
 
cat confdefs.h >>conftest.$ac_ext
2691
 
cat >>conftest.$ac_ext <<_ACEOF
2692
 
/* end confdefs.h.  */
2693
 
 
2694
 
int
2695
 
main ()
2696
 
{
2697
 
 
2698
 
  ;
2699
 
  return 0;
2700
 
}
2701
 
_ACEOF
2702
 
rm -f conftest.$ac_objext
2703
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704
 
  (eval $ac_compile) 2>&5
2705
 
  ac_status=$?
2706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707
 
  (exit $ac_status); } &&
2708
 
         { ac_try='test -s conftest.$ac_objext'
2709
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710
 
  (eval $ac_try) 2>&5
2711
 
  ac_status=$?
2712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713
 
  (exit $ac_status); }; }; then
 
1136
EOF
 
1137
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1138
  ac_cv_prog_gcc=yes
 
1139
else
 
1140
  ac_cv_prog_gcc=no
 
1141
fi
 
1142
fi
 
1143
 
 
1144
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1145
 
 
1146
if test $ac_cv_prog_gcc = yes; then
 
1147
  GCC=yes
 
1148
else
 
1149
  GCC=
 
1150
fi
 
1151
 
 
1152
ac_test_CFLAGS="${CFLAGS+set}"
 
1153
ac_save_CFLAGS="$CFLAGS"
 
1154
CFLAGS=
 
1155
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1156
echo "configure:1157: checking whether ${CC-cc} accepts -g" >&5
 
1157
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1158
  echo $ac_n "(cached) $ac_c" 1>&6
 
1159
else
 
1160
  echo 'void f(){}' > conftest.c
 
1161
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2714
1162
  ac_cv_prog_cc_g=yes
2715
1163
else
2716
 
  echo "$as_me: failed program was:" >&5
2717
 
sed 's/^/| /' conftest.$ac_ext >&5
2718
 
 
2719
 
ac_cv_prog_cc_g=no
2720
 
fi
2721
 
rm -f conftest.$ac_objext conftest.$ac_ext
2722
 
fi
2723
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2724
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
1164
  ac_cv_prog_cc_g=no
 
1165
fi
 
1166
rm -f conftest*
 
1167
 
 
1168
fi
 
1169
 
 
1170
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2725
1171
if test "$ac_test_CFLAGS" = set; then
2726
 
  CFLAGS=$ac_save_CFLAGS
 
1172
  CFLAGS="$ac_save_CFLAGS"
2727
1173
elif test $ac_cv_prog_cc_g = yes; then
2728
1174
  if test "$GCC" = yes; then
2729
1175
    CFLAGS="-g -O2"
2737
1183
    CFLAGS=
2738
1184
  fi
2739
1185
fi
2740
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2741
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2742
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2743
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2744
 
else
2745
 
  ac_cv_prog_cc_stdc=no
2746
 
ac_save_CC=$CC
2747
 
cat >conftest.$ac_ext <<_ACEOF
2748
 
#line $LINENO "configure"
2749
 
/* confdefs.h.  */
2750
 
_ACEOF
2751
 
cat confdefs.h >>conftest.$ac_ext
2752
 
cat >>conftest.$ac_ext <<_ACEOF
2753
 
/* end confdefs.h.  */
2754
 
#include <stdarg.h>
2755
 
#include <stdio.h>
2756
 
#include <sys/types.h>
2757
 
#include <sys/stat.h>
2758
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2759
 
struct buf { int x; };
2760
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2761
 
static char *e (p, i)
2762
 
     char **p;
2763
 
     int i;
2764
 
{
2765
 
  return p[i];
2766
 
}
2767
 
static char *f (char * (*g) (char **, int), char **p, ...)
2768
 
{
2769
 
  char *s;
2770
 
  va_list v;
2771
 
  va_start (v,p);
2772
 
  s = g (p, va_arg (v,int));
2773
 
  va_end (v);
2774
 
  return s;
2775
 
}
2776
 
int test (int i, double x);
2777
 
struct s1 {int (*f) (int a);};
2778
 
struct s2 {int (*f) (double a);};
2779
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780
 
int argc;
2781
 
char **argv;
2782
 
int
2783
 
main ()
2784
 
{
2785
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2786
 
  ;
2787
 
  return 0;
2788
 
}
2789
 
_ACEOF
2790
 
# Don't try gcc -ansi; that turns off useful extensions and
2791
 
# breaks some systems' header files.
2792
 
# AIX                   -qlanglvl=ansi
2793
 
# Ultrix and OSF/1      -std1
2794
 
# HP-UX 10.20 and later -Ae
2795
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2796
 
# SVR4                  -Xc -D__EXTENSIONS__
2797
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798
 
do
2799
 
  CC="$ac_save_CC $ac_arg"
2800
 
  rm -f conftest.$ac_objext
2801
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802
 
  (eval $ac_compile) 2>&5
2803
 
  ac_status=$?
2804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805
 
  (exit $ac_status); } &&
2806
 
         { ac_try='test -s conftest.$ac_objext'
2807
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808
 
  (eval $ac_try) 2>&5
2809
 
  ac_status=$?
2810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811
 
  (exit $ac_status); }; }; then
2812
 
  ac_cv_prog_cc_stdc=$ac_arg
2813
 
break
2814
 
else
2815
 
  echo "$as_me: failed program was:" >&5
2816
 
sed 's/^/| /' conftest.$ac_ext >&5
2817
 
 
2818
 
fi
2819
 
rm -f conftest.$ac_objext
2820
 
done
2821
 
rm -f conftest.$ac_ext conftest.$ac_objext
2822
 
CC=$ac_save_CC
2823
 
 
2824
 
fi
2825
 
 
2826
 
case "x$ac_cv_prog_cc_stdc" in
2827
 
  x|xno)
2828
 
    echo "$as_me:$LINENO: result: none needed" >&5
2829
 
echo "${ECHO_T}none needed" >&6 ;;
2830
 
  *)
2831
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2832
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2833
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2834
 
esac
2835
 
 
2836
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2837
 
# in C++ we need to declare it.  In case someone uses the same compiler
2838
 
# for both compiling C and C++ we need to have the C++ compiler decide
2839
 
# the declaration of exit, since it's the most demanding environment.
2840
 
cat >conftest.$ac_ext <<_ACEOF
2841
 
#ifndef __cplusplus
2842
 
  choke me
2843
 
#endif
2844
 
_ACEOF
2845
 
rm -f conftest.$ac_objext
2846
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847
 
  (eval $ac_compile) 2>&5
2848
 
  ac_status=$?
2849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
 
  (exit $ac_status); } &&
2851
 
         { ac_try='test -s conftest.$ac_objext'
2852
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853
 
  (eval $ac_try) 2>&5
2854
 
  ac_status=$?
2855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856
 
  (exit $ac_status); }; }; then
2857
 
  for ac_declaration in \
2858
 
   ''\
2859
 
   '#include <stdlib.h>' \
2860
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2861
 
   'extern "C" void std::exit (int); using std::exit;' \
2862
 
   'extern "C" void exit (int) throw ();' \
2863
 
   'extern "C" void exit (int);' \
2864
 
   'void exit (int);'
2865
 
do
2866
 
  cat >conftest.$ac_ext <<_ACEOF
2867
 
#line $LINENO "configure"
2868
 
/* confdefs.h.  */
2869
 
_ACEOF
2870
 
cat confdefs.h >>conftest.$ac_ext
2871
 
cat >>conftest.$ac_ext <<_ACEOF
2872
 
/* end confdefs.h.  */
2873
 
#include <stdlib.h>
2874
 
$ac_declaration
2875
 
int
2876
 
main ()
2877
 
{
2878
 
exit (42);
2879
 
  ;
2880
 
  return 0;
2881
 
}
2882
 
_ACEOF
2883
 
rm -f conftest.$ac_objext
2884
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885
 
  (eval $ac_compile) 2>&5
2886
 
  ac_status=$?
2887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888
 
  (exit $ac_status); } &&
2889
 
         { ac_try='test -s conftest.$ac_objext'
2890
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891
 
  (eval $ac_try) 2>&5
2892
 
  ac_status=$?
2893
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894
 
  (exit $ac_status); }; }; then
2895
 
  :
2896
 
else
2897
 
  echo "$as_me: failed program was:" >&5
2898
 
sed 's/^/| /' conftest.$ac_ext >&5
2899
 
 
2900
 
continue
2901
 
fi
2902
 
rm -f conftest.$ac_objext conftest.$ac_ext
2903
 
  cat >conftest.$ac_ext <<_ACEOF
2904
 
#line $LINENO "configure"
2905
 
/* confdefs.h.  */
2906
 
_ACEOF
2907
 
cat confdefs.h >>conftest.$ac_ext
2908
 
cat >>conftest.$ac_ext <<_ACEOF
2909
 
/* end confdefs.h.  */
2910
 
$ac_declaration
2911
 
int
2912
 
main ()
2913
 
{
2914
 
exit (42);
2915
 
  ;
2916
 
  return 0;
2917
 
}
2918
 
_ACEOF
2919
 
rm -f conftest.$ac_objext
2920
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921
 
  (eval $ac_compile) 2>&5
2922
 
  ac_status=$?
2923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924
 
  (exit $ac_status); } &&
2925
 
         { ac_try='test -s conftest.$ac_objext'
2926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927
 
  (eval $ac_try) 2>&5
2928
 
  ac_status=$?
2929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930
 
  (exit $ac_status); }; }; then
2931
 
  break
2932
 
else
2933
 
  echo "$as_me: failed program was:" >&5
2934
 
sed 's/^/| /' conftest.$ac_ext >&5
2935
 
 
2936
 
fi
2937
 
rm -f conftest.$ac_objext conftest.$ac_ext
2938
 
done
2939
 
rm -f conftest*
2940
 
if test -n "$ac_declaration"; then
2941
 
  echo '#ifdef __cplusplus' >>confdefs.h
2942
 
  echo $ac_declaration      >>confdefs.h
2943
 
  echo '#endif'             >>confdefs.h
2944
 
fi
2945
 
 
2946
 
else
2947
 
  echo "$as_me: failed program was:" >&5
2948
 
sed 's/^/| /' conftest.$ac_ext >&5
2949
 
 
2950
 
fi
2951
 
rm -f conftest.$ac_objext conftest.$ac_ext
2952
 
ac_ext=c
2953
 
ac_cpp='$CPP $CPPFLAGS'
2954
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957
 
 
2958
 
depcc="$CC"   am_compiler_list=
2959
 
 
2960
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2964
 
else
2965
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966
 
  # We make a subdir and do the tests there.  Otherwise we can end up
2967
 
  # making bogus files that we don't know about and never remove.  For
2968
 
  # instance it was reported that on HP-UX the gcc test will end up
2969
 
  # making a dummy file named `D' -- because `-MD' means `put the output
2970
 
  # in D'.
2971
 
  mkdir conftest.dir
2972
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
2973
 
  # using a relative directory.
2974
 
  cp "$am_depcomp" conftest.dir
2975
 
  cd conftest.dir
2976
 
 
2977
 
  am_cv_CC_dependencies_compiler_type=none
2978
 
  if test "$am_compiler_list" = ""; then
2979
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2980
 
  fi
2981
 
  for depmode in $am_compiler_list; do
2982
 
    # We need to recreate these files for each test, as the compiler may
2983
 
    # overwrite some of them when testing with obscure command lines.
2984
 
    # This happens at least with the AIX C compiler.
2985
 
    echo '#include "conftest.h"' > conftest.c
2986
 
    echo 'int i;' > conftest.h
2987
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2988
 
 
2989
 
    case $depmode in
2990
 
    nosideeffect)
2991
 
      # after this tag, mechanisms are not by side-effect, so they'll
2992
 
      # only be used when explicitly requested
2993
 
      if test "x$enable_dependency_tracking" = xyes; then
2994
 
        continue
2995
 
      else
2996
 
        break
2997
 
      fi
2998
 
      ;;
2999
 
    none) break ;;
3000
 
    esac
3001
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3003
 
    # handle `-M -o', and we need to detect this.
3004
 
    if depmode=$depmode \
3005
 
       source=conftest.c object=conftest.o \
3006
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
3007
 
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3008
 
         >/dev/null 2>conftest.err &&
3009
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3010
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3011
 
      # icc doesn't choke on unknown options, it will just issue warnings
3012
 
      # (even with -Werror).  So we grep stderr for any message
3013
 
      # that says an option was ignored.
3014
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3015
 
        am_cv_CC_dependencies_compiler_type=$depmode
3016
 
        break
3017
 
      fi
3018
 
    fi
3019
 
  done
3020
 
 
3021
 
  cd ..
3022
 
  rm -rf conftest.dir
3023
 
else
3024
 
  am_cv_CC_dependencies_compiler_type=none
3025
 
fi
3026
 
 
3027
 
fi
3028
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3029
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3030
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3031
 
 
3032
 
 
3033
 
 
3034
 
if
3035
 
  test "x$enable_dependency_tracking" != xno \
3036
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3037
 
  am__fastdepCC_TRUE=
3038
 
  am__fastdepCC_FALSE='#'
3039
 
else
3040
 
  am__fastdepCC_TRUE='#'
3041
 
  am__fastdepCC_FALSE=
3042
 
fi
3043
 
 
3044
 
 
3045
 
# Find the correct PATH separator.  Usually this is `:', but
3046
 
# DJGPP uses `;' like DOS.
3047
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
3048
 
  UNAME=${UNAME-`uname 2>/dev/null`}
3049
 
  case X$UNAME in
3050
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
3051
 
    *)     lt_cv_sys_path_separator=':' ;;
3052
 
  esac
3053
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
3054
 
fi
3055
 
 
3056
1186
 
3057
1187
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3058
1188
if test "${with_gnu_ld+set}" = set; then
3060
1190
  test "$withval" = no || with_gnu_ld=yes
3061
1191
else
3062
1192
  with_gnu_ld=no
3063
 
fi;
 
1193
fi
 
1194
 
3064
1195
ac_prog=ld
3065
 
if test "$GCC" = yes; then
 
1196
if test "$ac_cv_prog_gcc" = yes; then
3066
1197
  # Check if gcc -print-prog-name=ld gives a path.
3067
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3068
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3069
 
  case $host in
3070
 
  *-*-mingw*)
3071
 
    # gcc leaves a trailing carriage return which upsets mingw
3072
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3073
 
  *)
3074
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3075
 
  esac
3076
 
  case $ac_prog in
 
1198
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 
1199
echo "configure:1200: checking for ld used by GCC" >&5
 
1200
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
 
1201
  case "$ac_prog" in
3077
1202
    # Accept absolute paths.
3078
1203
    [\\/]* | [A-Za-z]:[\\/]*)
3079
1204
      re_direlt='/[^/][^/]*/\.\./'
3094
1219
    ;;
3095
1220
  esac
3096
1221
elif test "$with_gnu_ld" = yes; then
3097
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3098
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
1222
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 
1223
echo "configure:1224: checking for GNU ld" >&5
3099
1224
else
3100
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3101
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
1225
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 
1226
echo "configure:1227: checking for non-GNU ld" >&5
3102
1227
fi
3103
 
if test "${lt_cv_path_LD+set}" = set; then
3104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1228
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
 
1229
  echo $ac_n "(cached) $ac_c" 1>&6
3105
1230
else
3106
1231
  if test -z "$LD"; then
3107
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1232
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3108
1233
  for ac_dir in $PATH; do
3109
1234
    test -z "$ac_dir" && ac_dir=.
3110
1235
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3111
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
1236
      ac_cv_path_LD="$ac_dir/$ac_prog"
3112
1237
      # Check to see if the program is GNU ld.  I'd rather use --version,
3113
1238
      # but apparently some GNU ld's only accept -v.
3114
1239
      # Break only if it was the GNU/non-GNU ld that we prefer.
3115
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
1240
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3116
1241
        test "$with_gnu_ld" != no && break
3117
1242
      else
3118
1243
        test "$with_gnu_ld" != yes && break
3121
1246
  done
3122
1247
  IFS="$ac_save_ifs"
3123
1248
else
3124
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
1249
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
3125
1250
fi
3126
1251
fi
3127
1252
 
3128
 
LD="$lt_cv_path_LD"
 
1253
LD="$ac_cv_path_LD"
3129
1254
if test -n "$LD"; then
3130
 
  echo "$as_me:$LINENO: result: $LD" >&5
3131
 
echo "${ECHO_T}$LD" >&6
 
1255
  echo "$ac_t""$LD" 1>&6
3132
1256
else
3133
 
  echo "$as_me:$LINENO: result: no" >&5
3134
 
echo "${ECHO_T}no" >&6
 
1257
  echo "$ac_t""no" 1>&6
3135
1258
fi
3136
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3137
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3138
 
   { (exit 1); exit 1; }; }
3139
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3140
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3141
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3142
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1259
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 
1260
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 
1261
echo "configure:1262: checking if the linker ($LD) is GNU ld" >&5
 
1262
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
 
1263
  echo $ac_n "(cached) $ac_c" 1>&6
3143
1264
else
3144
1265
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3145
1266
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3146
 
  lt_cv_prog_gnu_ld=yes
3147
 
else
3148
 
  lt_cv_prog_gnu_ld=no
3149
 
fi
3150
 
fi
3151
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3152
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3153
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3154
 
 
3155
 
 
3156
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3157
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3158
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
3159
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3160
 
else
3161
 
  lt_cv_ld_reload_flag='-r'
3162
 
fi
3163
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3164
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3165
 
reload_flag=$lt_cv_ld_reload_flag
3166
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
3167
 
 
3168
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3169
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3170
 
if test "${lt_cv_path_NM+set}" = set; then
3171
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1267
  ac_cv_prog_gnu_ld=yes
 
1268
else
 
1269
  ac_cv_prog_gnu_ld=no
 
1270
fi
 
1271
fi
 
1272
 
 
1273
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
 
1274
 
 
1275
 
 
1276
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 
1277
echo "configure:1278: checking for BSD-compatible nm" >&5
 
1278
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
 
1279
  echo $ac_n "(cached) $ac_c" 1>&6
3172
1280
else
3173
1281
  if test -n "$NM"; then
3174
1282
  # Let the user override the test.
3175
 
  lt_cv_path_NM="$NM"
 
1283
  ac_cv_path_NM="$NM"
3176
1284
else
3177
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1285
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3178
1286
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3179
1287
    test -z "$ac_dir" && ac_dir=.
3180
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3181
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
1288
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3182
1289
      # Check to see if the nm accepts a BSD-compat flag.
3183
1290
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3184
1291
      #   nm: unknown option "B" ignored
3185
 
      # Tru64's nm complains that /dev/null is an invalid object file
3186
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3187
 
        lt_cv_path_NM="$tmp_nm -B"
 
1292
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
1293
        ac_cv_path_NM="$ac_dir/nm -B"
3188
1294
        break
3189
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3190
 
        lt_cv_path_NM="$tmp_nm -p"
 
1295
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
1296
        ac_cv_path_NM="$ac_dir/nm -p"
3191
1297
        break
3192
1298
      else
3193
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
1299
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3194
1300
        continue # so that we can try to find one that supports BSD flags
3195
1301
      fi
3196
1302
    fi
3197
1303
  done
3198
1304
  IFS="$ac_save_ifs"
3199
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3200
 
fi
3201
 
fi
3202
 
 
3203
 
NM="$lt_cv_path_NM"
3204
 
echo "$as_me:$LINENO: result: $NM" >&5
3205
 
echo "${ECHO_T}$NM" >&6
3206
 
 
3207
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3208
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3209
 
if test "${lt_cv_path_SED+set}" = set; then
3210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3211
 
else
3212
 
  # Loop through the user's path and test for sed and gsed.
3213
 
# Then use that list of sed's as ones to test for truncation.
3214
 
as_executable_p="test -f"
3215
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216
 
for as_dir in $PATH
3217
 
do
3218
 
  IFS=$as_save_IFS
3219
 
  test -z "$as_dir" && as_dir=.
3220
 
  for ac_prog in sed gsed; do
3221
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3222
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3223
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3224
 
      fi
3225
 
    done
3226
 
  done
3227
 
done
3228
 
 
3229
 
  # Create a temporary directory, and hook for its removal unless debugging.
3230
 
$debug ||
3231
 
{
3232
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3233
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3234
 
}
3235
 
 
3236
 
# Create a (secure) tmp directory for tmp files.
3237
 
: ${TMPDIR=/tmp}
3238
 
{
3239
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3240
 
  test -n "$tmp" && test -d "$tmp"
3241
 
}  ||
3242
 
{
3243
 
  tmp=$TMPDIR/sed$$-$RANDOM
3244
 
  (umask 077 && mkdir $tmp)
3245
 
} ||
3246
 
{
3247
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3248
 
   { (exit 1); exit 1; }
3249
 
}
3250
 
  _max=0
3251
 
  _count=0
3252
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3253
 
  # along with /bin/sed that truncates output.
3254
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3255
 
    test ! -f ${_sed} && break
3256
 
    cat /dev/null > "$tmp/sed.in"
3257
 
    _count=0
3258
 
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3259
 
    # Check for GNU sed and select it if it is found.
3260
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3261
 
      lt_cv_path_SED=${_sed}
3262
 
      break
3263
 
    fi
3264
 
    while true; do
3265
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3266
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
3267
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
3268
 
      echo >>"$tmp/sed.nl"
3269
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3270
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3271
 
      # 40000 chars as input seems more than enough
3272
 
      test $_count -gt 10 && break
3273
 
      _count=`expr $_count + 1`
3274
 
      if test $_count -gt $_max; then
3275
 
        _max=$_count
3276
 
        lt_cv_path_SED=$_sed
3277
 
      fi
3278
 
    done
3279
 
  done
3280
 
  rm -rf "$tmp"
3281
 
 
3282
 
fi
3283
 
 
3284
 
if test "X$SED" != "X"; then
3285
 
  lt_cv_path_SED=$SED
3286
 
else
3287
 
  SED=$lt_cv_path_SED
3288
 
fi
3289
 
echo "$as_me:$LINENO: result: $SED" >&5
3290
 
echo "${ECHO_T}$SED" >&6
3291
 
 
3292
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294
 
LN_S=$as_ln_s
3295
 
if test "$LN_S" = "ln -s"; then
3296
 
  echo "$as_me:$LINENO: result: yes" >&5
3297
 
echo "${ECHO_T}yes" >&6
3298
 
else
3299
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300
 
echo "${ECHO_T}no, using $LN_S" >&6
3301
 
fi
3302
 
 
3303
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3304
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3305
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
3306
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3307
 
else
3308
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3309
 
lt_cv_file_magic_test_file=
3310
 
lt_cv_deplibs_check_method='unknown'
3311
 
# Need to set the preceding variable on all platforms that support
3312
 
# interlibrary dependencies.
3313
 
# 'none' -- dependencies not supported.
3314
 
# `unknown' -- same as none, but documents that we really don't know.
3315
 
# 'pass_all' -- all dependencies passed with no checks.
3316
 
# 'test_compile' -- check by making test program.
3317
 
# 'file_magic [[regex]]' -- check by looking for files in library path
3318
 
# which responds to the $file_magic_cmd with a given egrep regex.
3319
 
# If you have `file' or equivalent on your system and you're not sure
3320
 
# whether `pass_all' will *always* work, you probably want this one.
3321
 
 
3322
 
case $host_os in
3323
 
aix4* | aix5*)
3324
 
  lt_cv_deplibs_check_method=pass_all
3325
 
  ;;
3326
 
 
3327
 
beos*)
3328
 
  lt_cv_deplibs_check_method=pass_all
3329
 
  ;;
3330
 
 
3331
 
bsdi4*)
3332
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3334
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3335
 
  ;;
3336
 
 
3337
 
cygwin* | mingw* | pw32*)
3338
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3339
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3340
 
  ;;
3341
 
 
3342
 
darwin* | rhapsody*)
3343
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3345
 
  case "$host_os" in
3346
 
  rhapsody* | darwin1.[012])
3347
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3348
 
    ;;
3349
 
  *) # Darwin 1.3 on
3350
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3351
 
    ;;
3352
 
  esac
3353
 
  ;;
3354
 
 
3355
 
freebsd*)
3356
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3357
 
    case $host_cpu in
3358
 
    i*86 )
3359
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3360
 
      # Let's accept both of them until this is cleared up.
3361
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3362
 
      lt_cv_file_magic_cmd=/usr/bin/file
3363
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3364
 
      ;;
3365
 
    esac
3366
 
  else
3367
 
    lt_cv_deplibs_check_method=pass_all
3368
 
  fi
3369
 
  ;;
3370
 
 
3371
 
gnu*)
3372
 
  lt_cv_deplibs_check_method=pass_all
3373
 
  ;;
3374
 
 
3375
 
hpux10.20*|hpux11*)
3376
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3377
 
  lt_cv_file_magic_cmd=/usr/bin/file
3378
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3379
 
  ;;
3380
 
 
3381
 
irix5* | irix6* | nonstopux*)
3382
 
  case $host_os in
3383
 
  irix5* | nonstopux*)
3384
 
    # this will be overridden with pass_all, but let us keep it just in case
3385
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3386
 
    ;;
3387
 
  *)
3388
 
    case $LD in
3389
 
    *-32|*"-32 ") libmagic=32-bit;;
3390
 
    *-n32|*"-n32 ") libmagic=N32;;
3391
 
    *-64|*"-64 ") libmagic=64-bit;;
3392
 
    *) libmagic=never-match;;
3393
 
    esac
3394
 
    # this will be overridden with pass_all, but let us keep it just in case
3395
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3396
 
    ;;
3397
 
  esac
3398
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3399
 
  lt_cv_deplibs_check_method=pass_all
3400
 
  ;;
3401
 
 
3402
 
# This must be Linux ELF.
3403
 
linux-gnu*)
3404
 
  case $host_cpu in
3405
 
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3406
 
    lt_cv_deplibs_check_method=pass_all ;;
3407
 
  *)
3408
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3409
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3410
 
  esac
3411
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3412
 
  ;;
3413
 
 
3414
 
netbsd*)
3415
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3416
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3417
 
  else
3418
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3419
 
  fi
3420
 
  ;;
3421
 
 
3422
 
newos6*)
3423
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3424
 
  lt_cv_file_magic_cmd=/usr/bin/file
3425
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3426
 
  ;;
3427
 
 
3428
 
openbsd*)
3429
 
  lt_cv_file_magic_cmd=/usr/bin/file
3430
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3431
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3432
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3433
 
  else
3434
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3435
 
  fi
3436
 
  ;;
3437
 
 
3438
 
osf3* | osf4* | osf5*)
3439
 
  # this will be overridden with pass_all, but let us keep it just in case
3440
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3441
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3442
 
  lt_cv_deplibs_check_method=pass_all
3443
 
  ;;
3444
 
 
3445
 
sco3.2v5*)
3446
 
  lt_cv_deplibs_check_method=pass_all
3447
 
  ;;
3448
 
 
3449
 
solaris*)
3450
 
  lt_cv_deplibs_check_method=pass_all
3451
 
  lt_cv_file_magic_test_file=/lib/libc.so
3452
 
  ;;
3453
 
 
3454
 
sysv5uw[78]* | sysv4*uw2*)
3455
 
  lt_cv_deplibs_check_method=pass_all
3456
 
  ;;
3457
 
 
3458
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3459
 
  case $host_vendor in
3460
 
  motorola)
3461
 
    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]'
3462
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3463
 
    ;;
3464
 
  ncr)
3465
 
    lt_cv_deplibs_check_method=pass_all
3466
 
    ;;
3467
 
  sequent)
3468
 
    lt_cv_file_magic_cmd='/bin/file'
3469
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3470
 
    ;;
3471
 
  sni)
3472
 
    lt_cv_file_magic_cmd='/bin/file'
3473
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3474
 
    lt_cv_file_magic_test_file=/lib/libc.so
3475
 
    ;;
3476
 
  siemens)
3477
 
    lt_cv_deplibs_check_method=pass_all
3478
 
    ;;
3479
 
  esac
3480
 
  ;;
3481
 
esac
3482
 
 
3483
 
fi
3484
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3485
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3486
 
file_magic_cmd=$lt_cv_file_magic_cmd
3487
 
deplibs_check_method=$lt_cv_deplibs_check_method
3488
 
 
3489
 
 
3490
 
 
3491
 
 
3492
 
 
3493
 
 
3494
 
 
3495
 
 
3496
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
3497
 
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3498
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3499
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3500
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3501
 
else
3502
 
 
3503
 
# These are sane defaults that work on at least a few old systems.
3504
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3505
 
 
3506
 
# Character class describing NM global symbol codes.
3507
 
symcode='[BCDEGRST]'
3508
 
 
3509
 
# Regexp to match symbols that can be accessed directly from C.
3510
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3511
 
 
3512
 
# Transform the above into a raw symbol and a C symbol.
3513
 
symxfrm='\1 \2\3 \3'
3514
 
 
3515
 
# Transform an extracted symbol line into a proper C declaration
3516
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3517
 
 
3518
 
# Transform an extracted symbol line into symbol name and symbol address
3519
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3520
 
 
3521
 
# Define system-specific variables.
3522
 
case $host_os in
3523
 
aix*)
3524
 
  symcode='[BCDT]'
3525
 
  ;;
3526
 
cygwin* | mingw* | pw32*)
3527
 
  symcode='[ABCDGISTW]'
3528
 
  ;;
3529
 
hpux*) # Its linker distinguishes data from code symbols
3530
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3531
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3532
 
  ;;
3533
 
irix* | nonstopux*)
3534
 
  symcode='[BCDEGRST]'
3535
 
  ;;
3536
 
osf*)
3537
 
  symcode='[BCDEGQRST]'
3538
 
  ;;
3539
 
solaris* | sysv5*)
3540
 
  symcode='[BDT]'
3541
 
  ;;
3542
 
sysv4)
3543
 
  symcode='[DFNSTU]'
3544
 
  ;;
3545
 
esac
3546
 
 
3547
 
# Handle CRLF in mingw tool chain
3548
 
opt_cr=
3549
 
case $host_os in
3550
 
mingw*)
3551
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3552
 
  ;;
3553
 
esac
3554
 
 
3555
 
# If we're using GNU nm, then use its standard symbol codes.
3556
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3557
 
  symcode='[ABCDGISTW]'
3558
 
fi
3559
 
 
3560
 
# Try without a prefix undercore, then with it.
3561
 
for ac_symprfx in "" "_"; do
3562
 
 
3563
 
  # Write the raw and C identifiers.
3564
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3565
 
 
3566
 
  # Check to see that the pipe works correctly.
3567
 
  pipe_works=no
3568
 
  rm -f conftest*
3569
 
  cat > conftest.$ac_ext <<EOF
3570
 
#ifdef __cplusplus
3571
 
extern "C" {
3572
 
#endif
3573
 
char nm_test_var;
3574
 
void nm_test_func(){}
3575
 
#ifdef __cplusplus
3576
 
}
3577
 
#endif
3578
 
int main(){nm_test_var='a';nm_test_func();return(0);}
3579
 
EOF
3580
 
 
3581
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582
 
  (eval $ac_compile) 2>&5
3583
 
  ac_status=$?
3584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585
 
  (exit $ac_status); }; then
3586
 
    # Now try to grab the symbols.
3587
 
    nlist=conftest.nm
3588
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3589
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3590
 
  ac_status=$?
3591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592
 
  (exit $ac_status); } && test -s "$nlist"; then
3593
 
      # Try sorting and uniquifying the output.
3594
 
      if sort "$nlist" | uniq > "$nlist"T; then
3595
 
        mv -f "$nlist"T "$nlist"
3596
 
      else
3597
 
        rm -f "$nlist"T
3598
 
      fi
3599
 
 
3600
 
      # Make sure that we snagged all the symbols we need.
3601
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3602
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3603
 
          cat <<EOF > conftest.$ac_ext
3604
 
#ifdef __cplusplus
3605
 
extern "C" {
3606
 
#endif
3607
 
 
3608
 
EOF
3609
 
          # Now generate the symbol file.
3610
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3611
 
 
3612
 
          cat <<EOF >> conftest.$ac_ext
3613
 
#if defined (__STDC__) && __STDC__
3614
 
# define lt_ptr void *
3615
 
#else
3616
 
# define lt_ptr char *
3617
 
# define const
3618
 
#endif
3619
 
 
3620
 
/* The mapping between symbol names and symbols. */
3621
 
const struct {
3622
 
  const char *name;
3623
 
  lt_ptr address;
3624
 
}
3625
 
lt_preloaded_symbols[] =
3626
 
{
3627
 
EOF
3628
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3629
 
          cat <<\EOF >> conftest.$ac_ext
3630
 
  {0, (lt_ptr) 0}
3631
 
};
3632
 
 
3633
 
#ifdef __cplusplus
3634
 
}
3635
 
#endif
3636
 
EOF
3637
 
          # Now try linking the two files.
3638
 
          mv conftest.$ac_objext conftstm.$ac_objext
3639
 
          save_LIBS="$LIBS"
3640
 
          save_CFLAGS="$CFLAGS"
3641
 
          LIBS="conftstm.$ac_objext"
3642
 
          CFLAGS="$CFLAGS$no_builtin_flag"
3643
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3644
 
  (eval $ac_link) 2>&5
3645
 
  ac_status=$?
3646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647
 
  (exit $ac_status); } && test -s conftest$ac_exeext; then
3648
 
            pipe_works=yes
3649
 
          fi
3650
 
          LIBS="$save_LIBS"
3651
 
          CFLAGS="$save_CFLAGS"
3652
 
        else
3653
 
          echo "cannot find nm_test_func in $nlist" >&5
3654
 
        fi
3655
 
      else
3656
 
        echo "cannot find nm_test_var in $nlist" >&5
3657
 
      fi
3658
 
    else
3659
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3660
 
    fi
3661
 
  else
3662
 
    echo "$progname: failed program was:" >&5
3663
 
    cat conftest.$ac_ext >&5
3664
 
  fi
3665
 
  rm -f conftest* conftst*
3666
 
 
3667
 
  # Do not use the global_symbol_pipe unless it works.
3668
 
  if test "$pipe_works" = yes; then
3669
 
    break
3670
 
  else
3671
 
    lt_cv_sys_global_symbol_pipe=
3672
 
  fi
3673
 
done
3674
 
 
3675
 
fi
3676
 
 
3677
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3678
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3679
 
  global_symbol_to_cdecl=
3680
 
  global_symbol_to_c_name_address=
3681
 
else
3682
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3683
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3684
 
fi
3685
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
1305
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
 
1306
fi
 
1307
fi
 
1308
 
 
1309
NM="$ac_cv_path_NM"
 
1310
echo "$ac_t""$NM" 1>&6
 
1311
 
 
1312
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 
1313
echo "configure:1314: checking whether ln -s works" >&5
 
1314
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 
1315
  echo $ac_n "(cached) $ac_c" 1>&6
 
1316
else
 
1317
  rm -f conftestdata
 
1318
if ln -s X conftestdata 2>/dev/null
3686
1319
then
3687
 
  echo "$as_me:$LINENO: result: failed" >&5
3688
 
echo "${ECHO_T}failed" >&6
3689
 
else
3690
 
  echo "$as_me:$LINENO: result: ok" >&5
3691
 
echo "${ECHO_T}ok" >&6
3692
 
fi
3693
 
 
3694
 
ac_ext=c
3695
 
ac_cpp='$CPP $CPPFLAGS'
3696
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3700
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3701
 
# On Suns, sometimes $CPP names a directory.
3702
 
if test -n "$CPP" && test -d "$CPP"; then
3703
 
  CPP=
3704
 
fi
3705
 
if test -z "$CPP"; then
3706
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3707
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3708
 
else
3709
 
      # Double quotes because CPP needs to be expanded
3710
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3711
 
    do
3712
 
      ac_preproc_ok=false
3713
 
for ac_c_preproc_warn_flag in '' yes
3714
 
do
3715
 
  # Use a header file that comes with gcc, so configuring glibc
3716
 
  # with a fresh cross-compiler works.
3717
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3718
 
  # <limits.h> exists even on freestanding compilers.
3719
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3720
 
  # not just through cpp. "Syntax error" is here to catch this case.
3721
 
  cat >conftest.$ac_ext <<_ACEOF
3722
 
#line $LINENO "configure"
3723
 
/* confdefs.h.  */
3724
 
_ACEOF
3725
 
cat confdefs.h >>conftest.$ac_ext
3726
 
cat >>conftest.$ac_ext <<_ACEOF
3727
 
/* end confdefs.h.  */
3728
 
#ifdef __STDC__
3729
 
# include <limits.h>
3730
 
#else
3731
 
# include <assert.h>
3732
 
#endif
3733
 
                     Syntax error
3734
 
_ACEOF
3735
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3736
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3737
 
  ac_status=$?
3738
 
  grep -v '^ *+' conftest.er1 >conftest.err
3739
 
  rm -f conftest.er1
3740
 
  cat conftest.err >&5
3741
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742
 
  (exit $ac_status); } >/dev/null; then
3743
 
  if test -s conftest.err; then
3744
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3745
 
  else
3746
 
    ac_cpp_err=
3747
 
  fi
3748
 
else
3749
 
  ac_cpp_err=yes
3750
 
fi
3751
 
if test -z "$ac_cpp_err"; then
3752
 
  :
3753
 
else
3754
 
  echo "$as_me: failed program was:" >&5
3755
 
sed 's/^/| /' conftest.$ac_ext >&5
3756
 
 
3757
 
  # Broken: fails on valid input.
3758
 
continue
3759
 
fi
3760
 
rm -f conftest.err conftest.$ac_ext
3761
 
 
3762
 
  # OK, works on sane cases.  Now check whether non-existent headers
3763
 
  # can be detected and how.
3764
 
  cat >conftest.$ac_ext <<_ACEOF
3765
 
#line $LINENO "configure"
3766
 
/* confdefs.h.  */
3767
 
_ACEOF
3768
 
cat confdefs.h >>conftest.$ac_ext
3769
 
cat >>conftest.$ac_ext <<_ACEOF
3770
 
/* end confdefs.h.  */
3771
 
#include <ac_nonexistent.h>
3772
 
_ACEOF
3773
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3774
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3775
 
  ac_status=$?
3776
 
  grep -v '^ *+' conftest.er1 >conftest.err
3777
 
  rm -f conftest.er1
3778
 
  cat conftest.err >&5
3779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
 
  (exit $ac_status); } >/dev/null; then
3781
 
  if test -s conftest.err; then
3782
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3783
 
  else
3784
 
    ac_cpp_err=
3785
 
  fi
3786
 
else
3787
 
  ac_cpp_err=yes
3788
 
fi
3789
 
if test -z "$ac_cpp_err"; then
3790
 
  # Broken: success on invalid input.
3791
 
continue
3792
 
else
3793
 
  echo "$as_me: failed program was:" >&5
3794
 
sed 's/^/| /' conftest.$ac_ext >&5
3795
 
 
3796
 
  # Passes both tests.
3797
 
ac_preproc_ok=:
3798
 
break
3799
 
fi
3800
 
rm -f conftest.err conftest.$ac_ext
3801
 
 
3802
 
done
3803
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3804
 
rm -f conftest.err conftest.$ac_ext
3805
 
if $ac_preproc_ok; then
3806
 
  break
3807
 
fi
3808
 
 
3809
 
    done
3810
 
    ac_cv_prog_CPP=$CPP
3811
 
 
3812
 
fi
3813
 
  CPP=$ac_cv_prog_CPP
3814
 
else
3815
 
  ac_cv_prog_CPP=$CPP
3816
 
fi
3817
 
echo "$as_me:$LINENO: result: $CPP" >&5
3818
 
echo "${ECHO_T}$CPP" >&6
3819
 
ac_preproc_ok=false
3820
 
for ac_c_preproc_warn_flag in '' yes
3821
 
do
3822
 
  # Use a header file that comes with gcc, so configuring glibc
3823
 
  # with a fresh cross-compiler works.
3824
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3825
 
  # <limits.h> exists even on freestanding compilers.
3826
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3827
 
  # not just through cpp. "Syntax error" is here to catch this case.
3828
 
  cat >conftest.$ac_ext <<_ACEOF
3829
 
#line $LINENO "configure"
3830
 
/* confdefs.h.  */
3831
 
_ACEOF
3832
 
cat confdefs.h >>conftest.$ac_ext
3833
 
cat >>conftest.$ac_ext <<_ACEOF
3834
 
/* end confdefs.h.  */
3835
 
#ifdef __STDC__
3836
 
# include <limits.h>
3837
 
#else
3838
 
# include <assert.h>
3839
 
#endif
3840
 
                     Syntax error
3841
 
_ACEOF
3842
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3843
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3844
 
  ac_status=$?
3845
 
  grep -v '^ *+' conftest.er1 >conftest.err
3846
 
  rm -f conftest.er1
3847
 
  cat conftest.err >&5
3848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849
 
  (exit $ac_status); } >/dev/null; then
3850
 
  if test -s conftest.err; then
3851
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3852
 
  else
3853
 
    ac_cpp_err=
3854
 
  fi
3855
 
else
3856
 
  ac_cpp_err=yes
3857
 
fi
3858
 
if test -z "$ac_cpp_err"; then
3859
 
  :
3860
 
else
3861
 
  echo "$as_me: failed program was:" >&5
3862
 
sed 's/^/| /' conftest.$ac_ext >&5
3863
 
 
3864
 
  # Broken: fails on valid input.
3865
 
continue
3866
 
fi
3867
 
rm -f conftest.err conftest.$ac_ext
3868
 
 
3869
 
  # OK, works on sane cases.  Now check whether non-existent headers
3870
 
  # can be detected and how.
3871
 
  cat >conftest.$ac_ext <<_ACEOF
3872
 
#line $LINENO "configure"
3873
 
/* confdefs.h.  */
3874
 
_ACEOF
3875
 
cat confdefs.h >>conftest.$ac_ext
3876
 
cat >>conftest.$ac_ext <<_ACEOF
3877
 
/* end confdefs.h.  */
3878
 
#include <ac_nonexistent.h>
3879
 
_ACEOF
3880
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3881
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3882
 
  ac_status=$?
3883
 
  grep -v '^ *+' conftest.er1 >conftest.err
3884
 
  rm -f conftest.er1
3885
 
  cat conftest.err >&5
3886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
 
  (exit $ac_status); } >/dev/null; then
3888
 
  if test -s conftest.err; then
3889
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3890
 
  else
3891
 
    ac_cpp_err=
3892
 
  fi
3893
 
else
3894
 
  ac_cpp_err=yes
3895
 
fi
3896
 
if test -z "$ac_cpp_err"; then
3897
 
  # Broken: success on invalid input.
3898
 
continue
3899
 
else
3900
 
  echo "$as_me: failed program was:" >&5
3901
 
sed 's/^/| /' conftest.$ac_ext >&5
3902
 
 
3903
 
  # Passes both tests.
3904
 
ac_preproc_ok=:
3905
 
break
3906
 
fi
3907
 
rm -f conftest.err conftest.$ac_ext
3908
 
 
3909
 
done
3910
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911
 
rm -f conftest.err conftest.$ac_ext
3912
 
if $ac_preproc_ok; then
3913
 
  :
3914
 
else
3915
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3916
 
See \`config.log' for more details." >&5
3917
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3918
 
See \`config.log' for more details." >&2;}
3919
 
   { (exit 1); exit 1; }; }
3920
 
fi
3921
 
 
3922
 
ac_ext=c
3923
 
ac_cpp='$CPP $CPPFLAGS'
3924
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
 
 
3928
 
 
3929
 
echo "$as_me:$LINENO: checking for egrep" >&5
3930
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3931
 
if test "${ac_cv_prog_egrep+set}" = set; then
3932
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3933
 
else
3934
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3935
 
    then ac_cv_prog_egrep='grep -E'
3936
 
    else ac_cv_prog_egrep='egrep'
3937
 
    fi
3938
 
fi
3939
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3940
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3941
 
 EGREP=$ac_cv_prog_egrep
3942
 
 
3943
 
 
3944
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3945
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3946
 
if test "${ac_cv_header_stdc+set}" = set; then
3947
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3948
 
else
3949
 
  cat >conftest.$ac_ext <<_ACEOF
3950
 
#line $LINENO "configure"
3951
 
/* confdefs.h.  */
3952
 
_ACEOF
3953
 
cat confdefs.h >>conftest.$ac_ext
3954
 
cat >>conftest.$ac_ext <<_ACEOF
3955
 
/* end confdefs.h.  */
3956
 
#include <stdlib.h>
3957
 
#include <stdarg.h>
3958
 
#include <string.h>
3959
 
#include <float.h>
3960
 
 
3961
 
int
3962
 
main ()
3963
 
{
3964
 
 
3965
 
  ;
3966
 
  return 0;
3967
 
}
3968
 
_ACEOF
3969
 
rm -f conftest.$ac_objext
3970
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971
 
  (eval $ac_compile) 2>&5
3972
 
  ac_status=$?
3973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974
 
  (exit $ac_status); } &&
3975
 
         { ac_try='test -s conftest.$ac_objext'
3976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977
 
  (eval $ac_try) 2>&5
3978
 
  ac_status=$?
3979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980
 
  (exit $ac_status); }; }; then
3981
 
  ac_cv_header_stdc=yes
3982
 
else
3983
 
  echo "$as_me: failed program was:" >&5
3984
 
sed 's/^/| /' conftest.$ac_ext >&5
3985
 
 
3986
 
ac_cv_header_stdc=no
3987
 
fi
3988
 
rm -f conftest.$ac_objext conftest.$ac_ext
3989
 
 
3990
 
if test $ac_cv_header_stdc = yes; then
3991
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3992
 
  cat >conftest.$ac_ext <<_ACEOF
3993
 
#line $LINENO "configure"
3994
 
/* confdefs.h.  */
3995
 
_ACEOF
3996
 
cat confdefs.h >>conftest.$ac_ext
3997
 
cat >>conftest.$ac_ext <<_ACEOF
3998
 
/* end confdefs.h.  */
3999
 
#include <string.h>
4000
 
 
4001
 
_ACEOF
4002
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003
 
  $EGREP "memchr" >/dev/null 2>&1; then
4004
 
  :
4005
 
else
4006
 
  ac_cv_header_stdc=no
4007
 
fi
4008
 
rm -f conftest*
4009
 
 
4010
 
fi
4011
 
 
4012
 
if test $ac_cv_header_stdc = yes; then
4013
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4014
 
  cat >conftest.$ac_ext <<_ACEOF
4015
 
#line $LINENO "configure"
4016
 
/* confdefs.h.  */
4017
 
_ACEOF
4018
 
cat confdefs.h >>conftest.$ac_ext
4019
 
cat >>conftest.$ac_ext <<_ACEOF
4020
 
/* end confdefs.h.  */
4021
 
#include <stdlib.h>
4022
 
 
4023
 
_ACEOF
4024
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025
 
  $EGREP "free" >/dev/null 2>&1; then
4026
 
  :
4027
 
else
4028
 
  ac_cv_header_stdc=no
4029
 
fi
4030
 
rm -f conftest*
4031
 
 
4032
 
fi
4033
 
 
4034
 
if test $ac_cv_header_stdc = yes; then
4035
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4036
 
  if test "$cross_compiling" = yes; then
4037
 
  :
4038
 
else
4039
 
  cat >conftest.$ac_ext <<_ACEOF
4040
 
#line $LINENO "configure"
4041
 
/* confdefs.h.  */
4042
 
_ACEOF
4043
 
cat confdefs.h >>conftest.$ac_ext
4044
 
cat >>conftest.$ac_ext <<_ACEOF
4045
 
/* end confdefs.h.  */
4046
 
#include <ctype.h>
4047
 
#if ((' ' & 0x0FF) == 0x020)
4048
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4049
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4050
 
#else
4051
 
# define ISLOWER(c) \
4052
 
                   (('a' <= (c) && (c) <= 'i') \
4053
 
                     || ('j' <= (c) && (c) <= 'r') \
4054
 
                     || ('s' <= (c) && (c) <= 'z'))
4055
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4056
 
#endif
4057
 
 
4058
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4059
 
int
4060
 
main ()
4061
 
{
4062
 
  int i;
4063
 
  for (i = 0; i < 256; i++)
4064
 
    if (XOR (islower (i), ISLOWER (i))
4065
 
        || toupper (i) != TOUPPER (i))
4066
 
      exit(2);
4067
 
  exit (0);
4068
 
}
4069
 
_ACEOF
4070
 
rm -f conftest$ac_exeext
4071
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4072
 
  (eval $ac_link) 2>&5
4073
 
  ac_status=$?
4074
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077
 
  (eval $ac_try) 2>&5
4078
 
  ac_status=$?
4079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
 
  (exit $ac_status); }; }; then
4081
 
  :
4082
 
else
4083
 
  echo "$as_me: program exited with status $ac_status" >&5
4084
 
echo "$as_me: failed program was:" >&5
4085
 
sed 's/^/| /' conftest.$ac_ext >&5
4086
 
 
4087
 
( exit $ac_status )
4088
 
ac_cv_header_stdc=no
4089
 
fi
4090
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4091
 
fi
4092
 
fi
4093
 
fi
4094
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4095
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4096
 
if test $ac_cv_header_stdc = yes; then
4097
 
 
4098
 
cat >>confdefs.h <<\_ACEOF
4099
 
#define STDC_HEADERS 1
4100
 
_ACEOF
4101
 
 
4102
 
fi
4103
 
 
4104
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4105
 
 
4106
 
 
4107
 
 
4108
 
 
4109
 
 
4110
 
 
4111
 
 
4112
 
 
4113
 
 
4114
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4115
 
                  inttypes.h stdint.h unistd.h
4116
 
do
4117
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4118
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4119
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4120
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4121
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4122
 
else
4123
 
  cat >conftest.$ac_ext <<_ACEOF
4124
 
#line $LINENO "configure"
4125
 
/* confdefs.h.  */
4126
 
_ACEOF
4127
 
cat confdefs.h >>conftest.$ac_ext
4128
 
cat >>conftest.$ac_ext <<_ACEOF
4129
 
/* end confdefs.h.  */
4130
 
$ac_includes_default
4131
 
 
4132
 
#include <$ac_header>
4133
 
_ACEOF
4134
 
rm -f conftest.$ac_objext
4135
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136
 
  (eval $ac_compile) 2>&5
4137
 
  ac_status=$?
4138
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139
 
  (exit $ac_status); } &&
4140
 
         { ac_try='test -s conftest.$ac_objext'
4141
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142
 
  (eval $ac_try) 2>&5
4143
 
  ac_status=$?
4144
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145
 
  (exit $ac_status); }; }; then
4146
 
  eval "$as_ac_Header=yes"
4147
 
else
4148
 
  echo "$as_me: failed program was:" >&5
4149
 
sed 's/^/| /' conftest.$ac_ext >&5
4150
 
 
4151
 
eval "$as_ac_Header=no"
4152
 
fi
4153
 
rm -f conftest.$ac_objext conftest.$ac_ext
4154
 
fi
4155
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4156
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4157
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4158
 
  cat >>confdefs.h <<_ACEOF
4159
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4160
 
_ACEOF
4161
 
 
4162
 
fi
4163
 
 
4164
 
done
4165
 
 
4166
 
 
4167
 
 
4168
 
for ac_header in dlfcn.h
4169
 
do
4170
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4171
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4172
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4173
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4174
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4175
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4176
 
fi
4177
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4178
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4179
 
else
4180
 
  # Is the header compilable?
4181
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4182
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4183
 
cat >conftest.$ac_ext <<_ACEOF
4184
 
#line $LINENO "configure"
4185
 
/* confdefs.h.  */
4186
 
_ACEOF
4187
 
cat confdefs.h >>conftest.$ac_ext
4188
 
cat >>conftest.$ac_ext <<_ACEOF
4189
 
/* end confdefs.h.  */
4190
 
$ac_includes_default
4191
 
#include <$ac_header>
4192
 
_ACEOF
4193
 
rm -f conftest.$ac_objext
4194
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195
 
  (eval $ac_compile) 2>&5
4196
 
  ac_status=$?
4197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198
 
  (exit $ac_status); } &&
4199
 
         { ac_try='test -s conftest.$ac_objext'
4200
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201
 
  (eval $ac_try) 2>&5
4202
 
  ac_status=$?
4203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204
 
  (exit $ac_status); }; }; then
4205
 
  ac_header_compiler=yes
4206
 
else
4207
 
  echo "$as_me: failed program was:" >&5
4208
 
sed 's/^/| /' conftest.$ac_ext >&5
4209
 
 
4210
 
ac_header_compiler=no
4211
 
fi
4212
 
rm -f conftest.$ac_objext conftest.$ac_ext
4213
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4214
 
echo "${ECHO_T}$ac_header_compiler" >&6
4215
 
 
4216
 
# Is the header present?
4217
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4218
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4219
 
cat >conftest.$ac_ext <<_ACEOF
4220
 
#line $LINENO "configure"
4221
 
/* confdefs.h.  */
4222
 
_ACEOF
4223
 
cat confdefs.h >>conftest.$ac_ext
4224
 
cat >>conftest.$ac_ext <<_ACEOF
4225
 
/* end confdefs.h.  */
4226
 
#include <$ac_header>
4227
 
_ACEOF
4228
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4229
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4230
 
  ac_status=$?
4231
 
  grep -v '^ *+' conftest.er1 >conftest.err
4232
 
  rm -f conftest.er1
4233
 
  cat conftest.err >&5
4234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235
 
  (exit $ac_status); } >/dev/null; then
4236
 
  if test -s conftest.err; then
4237
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4238
 
  else
4239
 
    ac_cpp_err=
4240
 
  fi
4241
 
else
4242
 
  ac_cpp_err=yes
4243
 
fi
4244
 
if test -z "$ac_cpp_err"; then
4245
 
  ac_header_preproc=yes
4246
 
else
4247
 
  echo "$as_me: failed program was:" >&5
4248
 
sed 's/^/| /' conftest.$ac_ext >&5
4249
 
 
4250
 
  ac_header_preproc=no
4251
 
fi
4252
 
rm -f conftest.err conftest.$ac_ext
4253
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4254
 
echo "${ECHO_T}$ac_header_preproc" >&6
4255
 
 
4256
 
# So?  What about this header?
4257
 
case $ac_header_compiler:$ac_header_preproc in
4258
 
  yes:no )
4259
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4260
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4261
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4262
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4263
 
    (
4264
 
      cat <<\_ASBOX
4265
 
## ------------------------------------ ##
4266
 
## Report this to bug-autoconf@gnu.org. ##
4267
 
## ------------------------------------ ##
4268
 
_ASBOX
4269
 
    ) |
4270
 
      sed "s/^/$as_me: WARNING:     /" >&2
4271
 
    ;;
4272
 
  no:yes )
4273
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4274
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4275
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4276
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4277
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4278
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4279
 
    (
4280
 
      cat <<\_ASBOX
4281
 
## ------------------------------------ ##
4282
 
## Report this to bug-autoconf@gnu.org. ##
4283
 
## ------------------------------------ ##
4284
 
_ASBOX
4285
 
    ) |
4286
 
      sed "s/^/$as_me: WARNING:     /" >&2
4287
 
    ;;
4288
 
esac
4289
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4290
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4291
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4293
 
else
4294
 
  eval "$as_ac_Header=$ac_header_preproc"
4295
 
fi
4296
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4297
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4298
 
 
4299
 
fi
4300
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4301
 
  cat >>confdefs.h <<_ACEOF
4302
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4303
 
_ACEOF
4304
 
 
4305
 
fi
4306
 
 
4307
 
done
4308
 
 
4309
 
 
4310
 
 
4311
 
 
4312
 
 
4313
 
 
4314
 
# Only perform the check for file, if the check method requires it
4315
 
case $deplibs_check_method in
4316
 
file_magic*)
4317
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4318
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4319
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4320
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4322
 
else
4323
 
  case $MAGIC_CMD in
4324
 
  /*)
4325
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4326
 
  ;;
4327
 
  ?:/*)
4328
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4329
 
  ;;
4330
 
  *)
4331
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4332
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4333
 
  ac_dummy="/usr/bin:$PATH"
4334
 
  for ac_dir in $ac_dummy; do
4335
 
    test -z "$ac_dir" && ac_dir=.
4336
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
4337
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4338
 
      if test -n "$file_magic_test_file"; then
4339
 
        case $deplibs_check_method in
4340
 
        "file_magic "*)
4341
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4342
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4343
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4344
 
            egrep "$file_magic_regex" > /dev/null; then
4345
 
            :
4346
 
          else
4347
 
            cat <<EOF 1>&2
4348
 
 
4349
 
*** Warning: the command libtool uses to detect shared libraries,
4350
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4351
 
*** The result is that libtool may fail to recognize shared libraries
4352
 
*** as such.  This will affect the creation of libtool libraries that
4353
 
*** depend on shared libraries, but programs linked with such libtool
4354
 
*** libraries will work regardless of this problem.  Nevertheless, you
4355
 
*** may want to report the problem to your system manager and/or to
4356
 
*** bug-libtool@gnu.org
4357
 
 
4358
 
EOF
4359
 
          fi ;;
4360
 
        esac
4361
 
      fi
4362
 
      break
4363
 
    fi
4364
 
  done
4365
 
  IFS="$ac_save_ifs"
4366
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4367
 
  ;;
4368
 
esac
4369
 
fi
4370
 
 
4371
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4372
 
if test -n "$MAGIC_CMD"; then
4373
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4374
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4375
 
else
4376
 
  echo "$as_me:$LINENO: result: no" >&5
4377
 
echo "${ECHO_T}no" >&6
4378
 
fi
4379
 
 
4380
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
4381
 
  if test -n "$ac_tool_prefix"; then
4382
 
    echo "$as_me:$LINENO: checking for file" >&5
4383
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
4384
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4385
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4386
 
else
4387
 
  case $MAGIC_CMD in
4388
 
  /*)
4389
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4390
 
  ;;
4391
 
  ?:/*)
4392
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4393
 
  ;;
4394
 
  *)
4395
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4396
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4397
 
  ac_dummy="/usr/bin:$PATH"
4398
 
  for ac_dir in $ac_dummy; do
4399
 
    test -z "$ac_dir" && ac_dir=.
4400
 
    if test -f $ac_dir/file; then
4401
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4402
 
      if test -n "$file_magic_test_file"; then
4403
 
        case $deplibs_check_method in
4404
 
        "file_magic "*)
4405
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4406
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4407
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4408
 
            egrep "$file_magic_regex" > /dev/null; then
4409
 
            :
4410
 
          else
4411
 
            cat <<EOF 1>&2
4412
 
 
4413
 
*** Warning: the command libtool uses to detect shared libraries,
4414
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4415
 
*** The result is that libtool may fail to recognize shared libraries
4416
 
*** as such.  This will affect the creation of libtool libraries that
4417
 
*** depend on shared libraries, but programs linked with such libtool
4418
 
*** libraries will work regardless of this problem.  Nevertheless, you
4419
 
*** may want to report the problem to your system manager and/or to
4420
 
*** bug-libtool@gnu.org
4421
 
 
4422
 
EOF
4423
 
          fi ;;
4424
 
        esac
4425
 
      fi
4426
 
      break
4427
 
    fi
4428
 
  done
4429
 
  IFS="$ac_save_ifs"
4430
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4431
 
  ;;
4432
 
esac
4433
 
fi
4434
 
 
4435
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4436
 
if test -n "$MAGIC_CMD"; then
4437
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4438
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4439
 
else
4440
 
  echo "$as_me:$LINENO: result: no" >&5
4441
 
echo "${ECHO_T}no" >&6
4442
 
fi
4443
 
 
4444
 
  else
4445
 
    MAGIC_CMD=:
4446
 
  fi
4447
 
fi
4448
 
 
4449
 
  fi
4450
 
  ;;
4451
 
esac
4452
 
 
4453
 
if test -n "$ac_tool_prefix"; then
4454
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4455
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4456
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4457
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
4459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4460
 
else
4461
 
  if test -n "$RANLIB"; then
4462
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4463
 
else
4464
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465
 
for as_dir in $PATH
4466
 
do
4467
 
  IFS=$as_save_IFS
4468
 
  test -z "$as_dir" && as_dir=.
4469
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4470
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4472
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473
 
    break 2
4474
 
  fi
4475
 
done
4476
 
done
4477
 
 
4478
 
fi
4479
 
fi
4480
 
RANLIB=$ac_cv_prog_RANLIB
4481
 
if test -n "$RANLIB"; then
4482
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
4483
 
echo "${ECHO_T}$RANLIB" >&6
4484
 
else
4485
 
  echo "$as_me:$LINENO: result: no" >&5
4486
 
echo "${ECHO_T}no" >&6
4487
 
fi
4488
 
 
4489
 
fi
4490
 
if test -z "$ac_cv_prog_RANLIB"; then
4491
 
  ac_ct_RANLIB=$RANLIB
4492
 
  # Extract the first word of "ranlib", so it can be a program name with args.
4493
 
set dummy ranlib; ac_word=$2
4494
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4495
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4497
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4498
 
else
4499
 
  if test -n "$ac_ct_RANLIB"; then
4500
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4501
 
else
4502
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503
 
for as_dir in $PATH
4504
 
do
4505
 
  IFS=$as_save_IFS
4506
 
  test -z "$as_dir" && as_dir=.
4507
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4508
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4510
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511
 
    break 2
4512
 
  fi
4513
 
done
4514
 
done
4515
 
 
4516
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4517
 
fi
4518
 
fi
4519
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4520
 
if test -n "$ac_ct_RANLIB"; then
4521
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4522
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4523
 
else
4524
 
  echo "$as_me:$LINENO: result: no" >&5
4525
 
echo "${ECHO_T}no" >&6
4526
 
fi
4527
 
 
4528
 
  RANLIB=$ac_ct_RANLIB
4529
 
else
4530
 
  RANLIB="$ac_cv_prog_RANLIB"
4531
 
fi
4532
 
 
4533
 
if test -n "$ac_tool_prefix"; then
4534
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4535
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
4536
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4537
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538
 
if test "${ac_cv_prog_STRIP+set}" = set; then
4539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4540
 
else
4541
 
  if test -n "$STRIP"; then
4542
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4543
 
else
4544
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545
 
for as_dir in $PATH
4546
 
do
4547
 
  IFS=$as_save_IFS
4548
 
  test -z "$as_dir" && as_dir=.
4549
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4550
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4552
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553
 
    break 2
4554
 
  fi
4555
 
done
4556
 
done
4557
 
 
4558
 
fi
4559
 
fi
4560
 
STRIP=$ac_cv_prog_STRIP
4561
 
if test -n "$STRIP"; then
4562
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
4563
 
echo "${ECHO_T}$STRIP" >&6
4564
 
else
4565
 
  echo "$as_me:$LINENO: result: no" >&5
4566
 
echo "${ECHO_T}no" >&6
4567
 
fi
4568
 
 
4569
 
fi
4570
 
if test -z "$ac_cv_prog_STRIP"; then
4571
 
  ac_ct_STRIP=$STRIP
4572
 
  # Extract the first word of "strip", so it can be a program name with args.
4573
 
set dummy strip; ac_word=$2
4574
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4575
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4576
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4577
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4578
 
else
4579
 
  if test -n "$ac_ct_STRIP"; then
4580
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4581
 
else
4582
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583
 
for as_dir in $PATH
4584
 
do
4585
 
  IFS=$as_save_IFS
4586
 
  test -z "$as_dir" && as_dir=.
4587
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4588
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589
 
    ac_cv_prog_ac_ct_STRIP="strip"
4590
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591
 
    break 2
4592
 
  fi
4593
 
done
4594
 
done
4595
 
 
4596
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4597
 
fi
4598
 
fi
4599
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4600
 
if test -n "$ac_ct_STRIP"; then
4601
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4602
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
4603
 
else
4604
 
  echo "$as_me:$LINENO: result: no" >&5
4605
 
echo "${ECHO_T}no" >&6
4606
 
fi
4607
 
 
4608
 
  STRIP=$ac_ct_STRIP
4609
 
else
4610
 
  STRIP="$ac_cv_prog_STRIP"
4611
 
fi
4612
 
 
4613
 
 
4614
 
enable_dlopen=no
4615
 
enable_win32_dll=no
 
1320
  rm -f conftestdata
 
1321
  ac_cv_prog_LN_S="ln -s"
 
1322
else
 
1323
  ac_cv_prog_LN_S=ln
 
1324
fi
 
1325
fi
 
1326
LN_S="$ac_cv_prog_LN_S"
 
1327
if test "$ac_cv_prog_LN_S" = "ln -s"; then
 
1328
  echo "$ac_t""yes" 1>&6
 
1329
else
 
1330
  echo "$ac_t""no" 1>&6
 
1331
fi
 
1332
 
 
1333
 
 
1334
case "$target" in
 
1335
NONE) lt_target="$host" ;;
 
1336
*) lt_target="$target" ;;
 
1337
esac
 
1338
 
 
1339
# Check for any special flags to pass to ltconfig.
 
1340
libtool_flags="--cache-file=$cache_file"
 
1341
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
 
1342
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
 
1343
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
 
1344
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
 
1345
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 
1346
 
4616
1347
 
4617
1348
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4618
1349
if test "${enable_libtool_lock+set}" = set; then
4619
1350
  enableval="$enable_libtool_lock"
 
1351
  :
 
1352
fi
4620
1353
 
4621
 
fi;
4622
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1354
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
 
1355
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4623
1356
 
4624
1357
# Some flags need to be propagated to the compiler or linker for good
4625
1358
# libtool support.
4626
 
case $host in
 
1359
case "$lt_target" in
4627
1360
*-*-irix6*)
4628
1361
  # Find out which ABI we are using.
4629
 
  echo '#line 4629 "configure"' > conftest.$ac_ext
4630
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631
 
  (eval $ac_compile) 2>&5
4632
 
  ac_status=$?
4633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634
 
  (exit $ac_status); }; then
4635
 
    case `/usr/bin/file conftest.$ac_objext` in
 
1362
  echo '#line 1363 "configure"' > conftest.$ac_ext
 
1363
  if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1364
    case "`/usr/bin/file conftest.o`" in
4636
1365
    *32-bit*)
4637
1366
      LD="${LD-ld} -32"
4638
1367
      ;;
4651
1380
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4652
1381
  SAVE_CFLAGS="$CFLAGS"
4653
1382
  CFLAGS="$CFLAGS -belf"
4654
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4655
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4656
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1383
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 
1384
echo "configure:1385: checking whether the C compiler needs -belf" >&5
 
1385
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
 
1386
  echo $ac_n "(cached) $ac_c" 1>&6
4658
1387
else
4659
 
 
4660
 
 
4661
 
     ac_ext=c
4662
 
ac_cpp='$CPP $CPPFLAGS'
4663
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
 
 
4667
 
     cat >conftest.$ac_ext <<_ACEOF
4668
 
#line $LINENO "configure"
4669
 
/* confdefs.h.  */
4670
 
_ACEOF
4671
 
cat confdefs.h >>conftest.$ac_ext
4672
 
cat >>conftest.$ac_ext <<_ACEOF
4673
 
/* end confdefs.h.  */
4674
 
 
4675
 
int
4676
 
main ()
4677
 
{
4678
 
 
4679
 
  ;
4680
 
  return 0;
4681
 
}
4682
 
_ACEOF
4683
 
rm -f conftest.$ac_objext conftest$ac_exeext
4684
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685
 
  (eval $ac_link) 2>&5
4686
 
  ac_status=$?
4687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
 
  (exit $ac_status); } &&
4689
 
         { ac_try='test -s conftest$ac_exeext'
4690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691
 
  (eval $ac_try) 2>&5
4692
 
  ac_status=$?
4693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
 
  (exit $ac_status); }; }; then
 
1388
  cat > conftest.$ac_ext <<EOF
 
1389
#line 1390 "configure"
 
1390
#include "confdefs.h"
 
1391
 
 
1392
int main() {
 
1393
 
 
1394
; return 0; }
 
1395
EOF
 
1396
if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1397
  rm -rf conftest*
4695
1398
  lt_cv_cc_needs_belf=yes
4696
1399
else
4697
 
  echo "$as_me: failed program was:" >&5
4698
 
sed 's/^/| /' conftest.$ac_ext >&5
4699
 
 
4700
 
lt_cv_cc_needs_belf=no
4701
 
fi
4702
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4703
 
     ac_ext=c
4704
 
ac_cpp='$CPP $CPPFLAGS'
4705
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708
 
 
4709
 
fi
4710
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4711
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
1400
  echo "configure: failed program was:" >&5
 
1401
  cat conftest.$ac_ext >&5
 
1402
  rm -rf conftest*
 
1403
  lt_cv_cc_needs_belf=no
 
1404
fi
 
1405
rm -f conftest*
 
1406
fi
 
1407
 
 
1408
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4712
1409
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4713
1410
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4714
1411
    CFLAGS="$SAVE_CFLAGS"
4718
1415
 
4719
1416
esac
4720
1417
 
4721
 
# Sed substitution that helps us do robust quoting.  It backslashifies
4722
 
# metacharacters that are still active within double-quoted strings.
4723
 
Xsed='sed -e s/^X//'
4724
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4725
 
 
4726
 
# Same as above, but do not quote variable references.
4727
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4728
 
 
4729
 
# Sed substitution to delay expansion of an escaped shell variable in a
4730
 
# double_quote_subst'ed string.
4731
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4732
 
 
4733
 
# Constants:
4734
 
rm="rm -f"
4735
 
 
4736
 
# Global variables:
4737
 
default_ofile=libtool
4738
 
can_build_shared=yes
4739
 
 
4740
 
# All known linkers require a `.a' archive for static linking (except M$VC,
4741
 
# which needs '.lib').
4742
 
libext=a
4743
 
ltmain="$ac_aux_dir/ltmain.sh"
4744
 
ofile="$default_ofile"
4745
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
4746
 
need_locks="$enable_libtool_lock"
4747
 
 
4748
 
old_CC="$CC"
4749
 
old_CFLAGS="$CFLAGS"
4750
 
 
4751
 
# Set sane defaults for various variables
4752
 
test -z "$AR" && AR=ar
4753
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
4754
 
test -z "$AS" && AS=as
4755
 
test -z "$CC" && CC=cc
4756
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
4757
 
test -z "$LD" && LD=ld
4758
 
test -z "$LN_S" && LN_S="ln -s"
4759
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4760
 
test -z "$NM" && NM=nm
4761
 
test -z "$OBJDUMP" && OBJDUMP=objdump
4762
 
test -z "$RANLIB" && RANLIB=:
4763
 
test -z "$STRIP" && STRIP=:
4764
 
test -z "$ac_objext" && ac_objext=o
4765
 
 
4766
 
if test x"$host" != x"$build"; then
4767
 
  ac_tool_prefix=${host_alias}-
4768
 
else
4769
 
  ac_tool_prefix=
4770
 
fi
4771
 
 
4772
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4773
 
case $host_os in
4774
 
linux-gnu*) ;;
4775
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4776
 
esac
4777
 
 
4778
 
case $host_os in
4779
 
aix3*)
4780
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4781
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4782
 
  # vanish in a puff of smoke.
4783
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4784
 
    COLLECT_NAMES=
4785
 
    export COLLECT_NAMES
4786
 
  fi
4787
 
  ;;
4788
 
esac
4789
 
 
4790
 
# Determine commands to create old-style static archives.
4791
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4792
 
old_postinstall_cmds='chmod 644 $oldlib'
4793
 
old_postuninstall_cmds=
4794
 
 
4795
 
if test -n "$RANLIB"; then
4796
 
  case $host_os in
4797
 
  openbsd*)
4798
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4799
 
    ;;
4800
 
  *)
4801
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4802
 
    ;;
4803
 
  esac
4804
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4805
 
fi
4806
 
 
4807
 
# Allow CC to be a program name with arguments.
4808
 
set dummy $CC
4809
 
compiler="$2"
4810
 
 
4811
 
echo "$as_me:$LINENO: checking for objdir" >&5
4812
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4813
 
rm -f .libs 2>/dev/null
4814
 
mkdir .libs 2>/dev/null
4815
 
if test -d .libs; then
4816
 
  objdir=.libs
4817
 
else
4818
 
  # MS-DOS does not allow filenames that begin with a dot.
4819
 
  objdir=_libs
4820
 
fi
4821
 
rmdir .libs 2>/dev/null
4822
 
echo "$as_me:$LINENO: result: $objdir" >&5
4823
 
echo "${ECHO_T}$objdir" >&6
4824
 
 
4825
 
 
4826
 
 
4827
 
# Check whether --with-pic or --without-pic was given.
4828
 
if test "${with_pic+set}" = set; then
4829
 
  withval="$with_pic"
4830
 
  pic_mode="$withval"
4831
 
else
4832
 
  pic_mode=default
4833
 
fi;
4834
 
test -z "$pic_mode" && pic_mode=default
4835
 
 
4836
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4837
 
# in isolation, and that seeing it set (from the cache) indicates that
4838
 
# the associated values are set (in the cache) correctly too.
4839
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4840
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4841
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4843
 
else
4844
 
   lt_cv_prog_cc_pic=
4845
 
  lt_cv_prog_cc_shlib=
4846
 
  lt_cv_prog_cc_wl=
4847
 
  lt_cv_prog_cc_static=
4848
 
  lt_cv_prog_cc_no_builtin=
4849
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4850
 
 
4851
 
  if test "$GCC" = yes; then
4852
 
    lt_cv_prog_cc_wl='-Wl,'
4853
 
    lt_cv_prog_cc_static='-static'
4854
 
 
4855
 
    case $host_os in
4856
 
    aix*)
4857
 
      # Below there is a dirty hack to force normal static linking with -ldl
4858
 
      # The problem is because libdl dynamically linked with both libc and
4859
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4860
 
      # list by gcc. This cause undefined symbols with -static flags.
4861
 
      # This hack allows C programs to be linked with "-static -ldl", but
4862
 
      # not sure about C++ programs.
4863
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4864
 
      ;;
4865
 
    amigaos*)
4866
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4867
 
      # adding the `-m68020' flag to GCC prevents building anything better,
4868
 
      # like `-m68040'.
4869
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4870
 
      ;;
4871
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4872
 
      # PIC is the default for these OSes.
4873
 
      ;;
4874
 
    darwin* | rhapsody*)
4875
 
      # PIC is the default on this platform
4876
 
      # Common symbols not allowed in MH_DYLIB files
4877
 
      lt_cv_prog_cc_pic='-fno-common'
4878
 
      ;;
4879
 
    cygwin* | mingw* | pw32* | os2*)
4880
 
      # This hack is so that the source file can tell whether it is being
4881
 
      # built for inclusion in a dll (and should export symbols for example).
4882
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4883
 
      ;;
4884
 
    sysv4*MP*)
4885
 
      if test -d /usr/nec; then
4886
 
         lt_cv_prog_cc_pic=-Kconform_pic
4887
 
      fi
4888
 
      ;;
4889
 
    *)
4890
 
      lt_cv_prog_cc_pic='-fPIC'
4891
 
      ;;
4892
 
    esac
4893
 
  else
4894
 
    # PORTME Check for PIC flags for the system compiler.
4895
 
    case $host_os in
4896
 
    aix3* | aix4* | aix5*)
4897
 
      lt_cv_prog_cc_wl='-Wl,'
4898
 
      # All AIX code is PIC.
4899
 
      if test "$host_cpu" = ia64; then
4900
 
        # AIX 5 now supports IA64 processor
4901
 
        lt_cv_prog_cc_static='-Bstatic'
4902
 
      else
4903
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4904
 
      fi
4905
 
      ;;
4906
 
 
4907
 
    hpux9* | hpux10* | hpux11*)
4908
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4909
 
      lt_cv_prog_cc_wl='-Wl,'
4910
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4911
 
      lt_cv_prog_cc_pic='+Z'
4912
 
      ;;
4913
 
 
4914
 
    irix5* | irix6* | nonstopux*)
4915
 
      lt_cv_prog_cc_wl='-Wl,'
4916
 
      lt_cv_prog_cc_static='-non_shared'
4917
 
      # PIC (with -KPIC) is the default.
4918
 
      ;;
4919
 
 
4920
 
    cygwin* | mingw* | pw32* | os2*)
4921
 
      # This hack is so that the source file can tell whether it is being
4922
 
      # built for inclusion in a dll (and should export symbols for example).
4923
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4924
 
      ;;
4925
 
 
4926
 
    newsos6)
4927
 
      lt_cv_prog_cc_pic='-KPIC'
4928
 
      lt_cv_prog_cc_static='-Bstatic'
4929
 
      ;;
4930
 
 
4931
 
    osf3* | osf4* | osf5*)
4932
 
      # All OSF/1 code is PIC.
4933
 
      lt_cv_prog_cc_wl='-Wl,'
4934
 
      lt_cv_prog_cc_static='-non_shared'
4935
 
      ;;
4936
 
 
4937
 
    sco3.2v5*)
4938
 
      lt_cv_prog_cc_pic='-Kpic'
4939
 
      lt_cv_prog_cc_static='-dn'
4940
 
      lt_cv_prog_cc_shlib='-belf'
4941
 
      ;;
4942
 
 
4943
 
    solaris*)
4944
 
      lt_cv_prog_cc_pic='-KPIC'
4945
 
      lt_cv_prog_cc_static='-Bstatic'
4946
 
      lt_cv_prog_cc_wl='-Wl,'
4947
 
      ;;
4948
 
 
4949
 
    sunos4*)
4950
 
      lt_cv_prog_cc_pic='-PIC'
4951
 
      lt_cv_prog_cc_static='-Bstatic'
4952
 
      lt_cv_prog_cc_wl='-Qoption ld '
4953
 
      ;;
4954
 
 
4955
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4956
 
      lt_cv_prog_cc_pic='-KPIC'
4957
 
      lt_cv_prog_cc_static='-Bstatic'
4958
 
      lt_cv_prog_cc_wl='-Wl,'
4959
 
      ;;
4960
 
 
4961
 
    uts4*)
4962
 
      lt_cv_prog_cc_pic='-pic'
4963
 
      lt_cv_prog_cc_static='-Bstatic'
4964
 
      ;;
4965
 
 
4966
 
    sysv4*MP*)
4967
 
      if test -d /usr/nec ;then
4968
 
        lt_cv_prog_cc_pic='-Kconform_pic'
4969
 
        lt_cv_prog_cc_static='-Bstatic'
4970
 
      fi
4971
 
      ;;
4972
 
 
4973
 
    *)
4974
 
      lt_cv_prog_cc_can_build_shared=no
4975
 
      ;;
4976
 
    esac
4977
 
  fi
4978
 
 
4979
 
fi
4980
 
 
4981
 
if test -z "$lt_cv_prog_cc_pic"; then
4982
 
  echo "$as_me:$LINENO: result: none" >&5
4983
 
echo "${ECHO_T}none" >&6
4984
 
else
4985
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4986
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4987
 
 
4988
 
  # Check to make sure the pic_flag actually works.
4989
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4990
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4991
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4993
 
else
4994
 
      save_CFLAGS="$CFLAGS"
4995
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4996
 
    cat >conftest.$ac_ext <<_ACEOF
4997
 
#line $LINENO "configure"
4998
 
/* confdefs.h.  */
4999
 
_ACEOF
5000
 
cat confdefs.h >>conftest.$ac_ext
5001
 
cat >>conftest.$ac_ext <<_ACEOF
5002
 
/* end confdefs.h.  */
5003
 
 
5004
 
int
5005
 
main ()
5006
 
{
5007
 
 
5008
 
  ;
5009
 
  return 0;
5010
 
}
5011
 
_ACEOF
5012
 
rm -f conftest.$ac_objext
5013
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014
 
  (eval $ac_compile) 2>&5
5015
 
  ac_status=$?
5016
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017
 
  (exit $ac_status); } &&
5018
 
         { ac_try='test -s conftest.$ac_objext'
5019
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020
 
  (eval $ac_try) 2>&5
5021
 
  ac_status=$?
5022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023
 
  (exit $ac_status); }; }; then
5024
 
        case $host_os in
5025
 
      hpux9* | hpux10* | hpux11*)
5026
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
5027
 
        # they create non-PIC objects.  So, if there were any warnings, we
5028
 
        # assume that PIC is not supported.
5029
 
        if test -s conftest.err; then
5030
 
          lt_cv_prog_cc_pic_works=no
5031
 
        else
5032
 
          lt_cv_prog_cc_pic_works=yes
5033
 
        fi
5034
 
        ;;
5035
 
      *)
5036
 
        lt_cv_prog_cc_pic_works=yes
5037
 
        ;;
5038
 
      esac
5039
 
 
5040
 
else
5041
 
  echo "$as_me: failed program was:" >&5
5042
 
sed 's/^/| /' conftest.$ac_ext >&5
5043
 
 
5044
 
      lt_cv_prog_cc_pic_works=no
5045
 
 
5046
 
fi
5047
 
rm -f conftest.$ac_objext conftest.$ac_ext
5048
 
    CFLAGS="$save_CFLAGS"
5049
 
 
5050
 
fi
5051
 
 
5052
 
 
5053
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5054
 
    lt_cv_prog_cc_pic=
5055
 
    lt_cv_prog_cc_can_build_shared=no
5056
 
  else
5057
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5058
 
  fi
5059
 
 
5060
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5061
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5062
 
fi
5063
 
 
5064
 
# Check for any special shared library compilation flags.
5065
 
if test -n "$lt_cv_prog_cc_shlib"; then
5066
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5067
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5068
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5069
 
  else
5070
 
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5071
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5072
 
    lt_cv_prog_cc_can_build_shared=no
5073
 
  fi
5074
 
fi
5075
 
 
5076
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5077
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5078
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5080
 
else
5081
 
    lt_cv_prog_cc_static_works=no
5082
 
  save_LDFLAGS="$LDFLAGS"
5083
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5084
 
  cat >conftest.$ac_ext <<_ACEOF
5085
 
#line $LINENO "configure"
5086
 
/* confdefs.h.  */
5087
 
_ACEOF
5088
 
cat confdefs.h >>conftest.$ac_ext
5089
 
cat >>conftest.$ac_ext <<_ACEOF
5090
 
/* end confdefs.h.  */
5091
 
 
5092
 
int
5093
 
main ()
5094
 
{
5095
 
 
5096
 
  ;
5097
 
  return 0;
5098
 
}
5099
 
_ACEOF
5100
 
rm -f conftest.$ac_objext conftest$ac_exeext
5101
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102
 
  (eval $ac_link) 2>&5
5103
 
  ac_status=$?
5104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105
 
  (exit $ac_status); } &&
5106
 
         { ac_try='test -s conftest$ac_exeext'
5107
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108
 
  (eval $ac_try) 2>&5
5109
 
  ac_status=$?
5110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
 
  (exit $ac_status); }; }; then
5112
 
  lt_cv_prog_cc_static_works=yes
5113
 
else
5114
 
  echo "$as_me: failed program was:" >&5
5115
 
sed 's/^/| /' conftest.$ac_ext >&5
5116
 
 
5117
 
fi
5118
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5119
 
  LDFLAGS="$save_LDFLAGS"
5120
 
 
5121
 
fi
5122
 
 
5123
 
 
5124
 
# Belt *and* braces to stop my trousers falling down:
5125
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5126
 
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5127
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5128
 
 
5129
 
pic_flag="$lt_cv_prog_cc_pic"
5130
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5131
 
wl="$lt_cv_prog_cc_wl"
5132
 
link_static_flag="$lt_cv_prog_cc_static"
5133
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5134
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5135
 
 
5136
 
 
5137
 
# Check to see if options -o and -c are simultaneously supported by compiler
5138
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5139
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5140
 
if test "${lt_cv_compiler_c_o+set}" = set; then
5141
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5142
 
else
5143
 
 
5144
 
$rm -r conftest 2>/dev/null
5145
 
mkdir conftest
5146
 
cd conftest
5147
 
echo "int some_variable = 0;" > conftest.$ac_ext
5148
 
mkdir out
5149
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5150
 
# that will create temporary files in the current directory regardless of
5151
 
# the output directory.  Thus, making CWD read-only will cause this test
5152
 
# to fail, enabling locking or at least warning the user not to do parallel
5153
 
# builds.
5154
 
chmod -w .
5155
 
save_CFLAGS="$CFLAGS"
5156
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5157
 
compiler_c_o=no
5158
 
if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5159
 
  # The compiler can only warn and ignore the option if not recognized
5160
 
  # So say no if there are warnings
5161
 
  if test -s out/conftest.err; then
5162
 
    lt_cv_compiler_c_o=no
5163
 
  else
5164
 
    lt_cv_compiler_c_o=yes
5165
 
  fi
5166
 
else
5167
 
  # Append any errors to the config.log.
5168
 
  cat out/conftest.err 1>&5
5169
 
  lt_cv_compiler_c_o=no
5170
 
fi
5171
 
CFLAGS="$save_CFLAGS"
5172
 
chmod u+w .
5173
 
$rm conftest* out/*
5174
 
rmdir out
5175
 
cd ..
5176
 
rmdir conftest
5177
 
$rm -r conftest 2>/dev/null
5178
 
 
5179
 
fi
5180
 
 
5181
 
compiler_c_o=$lt_cv_compiler_c_o
5182
 
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5183
 
echo "${ECHO_T}$compiler_c_o" >&6
5184
 
 
5185
 
if test x"$compiler_c_o" = x"yes"; then
5186
 
  # Check to see if we can write to a .lo
5187
 
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5188
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5189
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
5190
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5191
 
else
5192
 
 
5193
 
  lt_cv_compiler_o_lo=no
5194
 
  save_CFLAGS="$CFLAGS"
5195
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
5196
 
  save_objext="$ac_objext"
5197
 
  ac_objext=lo
5198
 
  cat >conftest.$ac_ext <<_ACEOF
5199
 
#line $LINENO "configure"
5200
 
/* confdefs.h.  */
5201
 
_ACEOF
5202
 
cat confdefs.h >>conftest.$ac_ext
5203
 
cat >>conftest.$ac_ext <<_ACEOF
5204
 
/* end confdefs.h.  */
5205
 
 
5206
 
int
5207
 
main ()
5208
 
{
5209
 
int some_variable = 0;
5210
 
  ;
5211
 
  return 0;
5212
 
}
5213
 
_ACEOF
5214
 
rm -f conftest.$ac_objext
5215
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216
 
  (eval $ac_compile) 2>&5
5217
 
  ac_status=$?
5218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
 
  (exit $ac_status); } &&
5220
 
         { ac_try='test -s conftest.$ac_objext'
5221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222
 
  (eval $ac_try) 2>&5
5223
 
  ac_status=$?
5224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
 
  (exit $ac_status); }; }; then
5226
 
      # The compiler can only warn and ignore the option if not recognized
5227
 
    # So say no if there are warnings
5228
 
    if test -s conftest.err; then
5229
 
      lt_cv_compiler_o_lo=no
5230
 
    else
5231
 
      lt_cv_compiler_o_lo=yes
5232
 
    fi
5233
 
 
5234
 
else
5235
 
  echo "$as_me: failed program was:" >&5
5236
 
sed 's/^/| /' conftest.$ac_ext >&5
5237
 
 
5238
 
fi
5239
 
rm -f conftest.$ac_objext conftest.$ac_ext
5240
 
  ac_objext="$save_objext"
5241
 
  CFLAGS="$save_CFLAGS"
5242
 
 
5243
 
fi
5244
 
 
5245
 
  compiler_o_lo=$lt_cv_compiler_o_lo
5246
 
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5247
 
echo "${ECHO_T}$compiler_o_lo" >&6
5248
 
else
5249
 
  compiler_o_lo=no
5250
 
fi
5251
 
 
5252
 
# Check to see if we can do hard links to lock some files if needed
5253
 
hard_links="nottested"
5254
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5255
 
  # do not overwrite the value of need_locks provided by the user
5256
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5257
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5258
 
  hard_links=yes
5259
 
  $rm conftest*
5260
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5261
 
  touch conftest.a
5262
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
5263
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5264
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
5265
 
echo "${ECHO_T}$hard_links" >&6
5266
 
  if test "$hard_links" = no; then
5267
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5268
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5269
 
    need_locks=warn
5270
 
  fi
5271
 
else
5272
 
  need_locks=no
5273
 
fi
5274
 
 
5275
 
if test "$GCC" = yes; then
5276
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5277
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5278
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5279
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5280
 
  save_CFLAGS="$CFLAGS"
5281
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5282
 
  compiler_rtti_exceptions=no
5283
 
  cat >conftest.$ac_ext <<_ACEOF
5284
 
#line $LINENO "configure"
5285
 
/* confdefs.h.  */
5286
 
_ACEOF
5287
 
cat confdefs.h >>conftest.$ac_ext
5288
 
cat >>conftest.$ac_ext <<_ACEOF
5289
 
/* end confdefs.h.  */
5290
 
 
5291
 
int
5292
 
main ()
5293
 
{
5294
 
int some_variable = 0;
5295
 
  ;
5296
 
  return 0;
5297
 
}
5298
 
_ACEOF
5299
 
rm -f conftest.$ac_objext
5300
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301
 
  (eval $ac_compile) 2>&5
5302
 
  ac_status=$?
5303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304
 
  (exit $ac_status); } &&
5305
 
         { ac_try='test -s conftest.$ac_objext'
5306
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307
 
  (eval $ac_try) 2>&5
5308
 
  ac_status=$?
5309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310
 
  (exit $ac_status); }; }; then
5311
 
      # The compiler can only warn and ignore the option if not recognized
5312
 
    # So say no if there are warnings
5313
 
    if test -s conftest.err; then
5314
 
      compiler_rtti_exceptions=no
5315
 
    else
5316
 
      compiler_rtti_exceptions=yes
5317
 
    fi
5318
 
 
5319
 
else
5320
 
  echo "$as_me: failed program was:" >&5
5321
 
sed 's/^/| /' conftest.$ac_ext >&5
5322
 
 
5323
 
fi
5324
 
rm -f conftest.$ac_objext conftest.$ac_ext
5325
 
  CFLAGS="$save_CFLAGS"
5326
 
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5327
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5328
 
 
5329
 
  if test "$compiler_rtti_exceptions" = "yes"; then
5330
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5331
 
  else
5332
 
    no_builtin_flag=' -fno-builtin'
5333
 
  fi
5334
 
fi
5335
 
 
5336
 
# See if the linker supports building shared libraries.
5337
 
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5338
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5339
 
 
5340
 
allow_undefined_flag=
5341
 
no_undefined_flag=
5342
 
need_lib_prefix=unknown
5343
 
need_version=unknown
5344
 
# when you set need_version to no, make sure it does not cause -set_version
5345
 
# flags to be left without arguments
5346
 
archive_cmds=
5347
 
archive_expsym_cmds=
5348
 
old_archive_from_new_cmds=
5349
 
old_archive_from_expsyms_cmds=
5350
 
export_dynamic_flag_spec=
5351
 
whole_archive_flag_spec=
5352
 
thread_safe_flag_spec=
5353
 
hardcode_into_libs=no
5354
 
hardcode_libdir_flag_spec=
5355
 
hardcode_libdir_separator=
5356
 
hardcode_direct=no
5357
 
hardcode_minus_L=no
5358
 
hardcode_shlibpath_var=unsupported
5359
 
runpath_var=
5360
 
link_all_deplibs=unknown
5361
 
always_export_symbols=no
5362
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5363
 
# include_expsyms should be a list of space-separated symbols to be *always*
5364
 
# included in the symbol list
5365
 
include_expsyms=
5366
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5367
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5368
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5369
 
# as well as any symbol that contains `d'.
5370
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5371
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5372
 
# platforms (ab)use it in PIC code, but their linkers get confused if
5373
 
# the symbol is explicitly referenced.  Since portable code cannot
5374
 
# rely on this symbol name, it's probably fine to never include it in
5375
 
# preloaded symbol tables.
5376
 
extract_expsyms_cmds=
5377
 
 
5378
 
case $host_os in
5379
 
cygwin* | mingw* | pw32*)
5380
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5381
 
  # When not using gcc, we currently assume that we are using
5382
 
  # Microsoft Visual C++.
5383
 
  if test "$GCC" != yes; then
5384
 
    with_gnu_ld=no
5385
 
  fi
5386
 
  ;;
5387
 
openbsd*)
5388
 
  with_gnu_ld=no
5389
 
  ;;
5390
 
esac
5391
 
 
5392
 
ld_shlibs=yes
5393
 
if test "$with_gnu_ld" = yes; then
5394
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
5395
 
  wlarc='${wl}'
5396
 
 
5397
 
  # See if GNU ld supports shared libraries.
5398
 
  case $host_os in
5399
 
  aix3* | aix4* | aix5*)
5400
 
    # On AIX, the GNU linker is very broken
5401
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5402
 
    ld_shlibs=no
5403
 
    cat <<EOF 1>&2
5404
 
 
5405
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5406
 
*** to be unable to reliably create shared libraries on AIX.
5407
 
*** Therefore, libtool is disabling shared libraries support.  If you
5408
 
*** really care for shared libraries, you may want to modify your PATH
5409
 
*** so that a non-GNU linker is found, and then restart.
5410
 
 
5411
 
EOF
5412
 
    ;;
5413
 
 
5414
 
  amigaos*)
5415
 
    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)'
5416
 
    hardcode_libdir_flag_spec='-L$libdir'
5417
 
    hardcode_minus_L=yes
5418
 
 
5419
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5420
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
5421
 
    # to version 4, is to share data among multiple programs linked
5422
 
    # with the same dynamic library.  Since this doesn't match the
5423
 
    # behavior of shared libraries on other platforms, we can use
5424
 
    # them.
5425
 
    ld_shlibs=no
5426
 
    ;;
5427
 
 
5428
 
  beos*)
5429
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5430
 
      allow_undefined_flag=unsupported
5431
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5432
 
      # support --undefined.  This deserves some investigation.  FIXME
5433
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5434
 
    else
5435
 
      ld_shlibs=no
5436
 
    fi
5437
 
    ;;
5438
 
 
5439
 
  cygwin* | mingw* | pw32*)
5440
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5441
 
    # no search path for DLLs.
5442
 
    hardcode_libdir_flag_spec='-L$libdir'
5443
 
    allow_undefined_flag=unsupported
5444
 
    always_export_symbols=yes
5445
 
 
5446
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5447
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5448
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5449
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5450
 
      else $CC -o impgen impgen.c ; fi)~
5451
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5452
 
 
5453
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5454
 
 
5455
 
    # cygwin and mingw dlls have different entry points and sets of symbols
5456
 
    # to exclude.
5457
 
    # FIXME: what about values for MSVC?
5458
 
    dll_entry=__cygwin_dll_entry@12
5459
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5460
 
    case $host_os in
5461
 
    mingw*)
5462
 
      # mingw values
5463
 
      dll_entry=_DllMainCRTStartup@12
5464
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5465
 
      ;;
5466
 
    esac
5467
 
 
5468
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
5469
 
    # of the two symbol sets.
5470
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5471
 
 
5472
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
5473
 
    # can override, but on older systems we have to supply one (in ltdll.c)
5474
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
5475
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5476
 
      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~
5477
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5478
 
    else
5479
 
      ltdll_obj=
5480
 
      ltdll_cmds=
5481
 
    fi
5482
 
 
5483
 
    # Extract the symbol export list from an `--export-all' def file,
5484
 
    # then regenerate the def file from the symbol export list, so that
5485
 
    # the compiled dll only exports the symbol export list.
5486
 
    # Be careful not to strip the DATA tag left be newer dlltools.
5487
 
    export_symbols_cmds="$ltdll_cmds"'
5488
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5489
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5490
 
 
5491
 
    # If the export-symbols file already is a .def file (1st line
5492
 
    # is EXPORTS), use it as is.
5493
 
    # If DATA tags from a recent dlltool are present, honour them!
5494
 
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5495
 
        cp $export_symbols $output_objdir/$soname-def;
5496
 
      else
5497
 
        echo EXPORTS > $output_objdir/$soname-def;
5498
 
        _lt_hint=1;
5499
 
        cat $export_symbols | while read symbol; do
5500
 
         set dummy \$symbol;
5501
 
         case \$# in
5502
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5503
 
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5504
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5505
 
         esac;
5506
 
         _lt_hint=`expr 1 + \$_lt_hint`;
5507
 
        done;
5508
 
      fi~
5509
 
      '"$ltdll_cmds"'
5510
 
      $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~
5511
 
      $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~
5512
 
      $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~
5513
 
      $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~
5514
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5515
 
    ;;
5516
 
 
5517
 
  netbsd*)
5518
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5519
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5520
 
      wlarc=
5521
 
    else
5522
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5523
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5524
 
    fi
5525
 
    ;;
5526
 
 
5527
 
  solaris* | sysv5*)
5528
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5529
 
      ld_shlibs=no
5530
 
      cat <<EOF 1>&2
5531
 
 
5532
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5533
 
*** create shared libraries on Solaris systems.  Therefore, libtool
5534
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
5535
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
5536
 
*** your PATH or compiler configuration so that the native linker is
5537
 
*** used, and then restart.
5538
 
 
5539
 
EOF
5540
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5541
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5542
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5543
 
    else
5544
 
      ld_shlibs=no
5545
 
    fi
5546
 
    ;;
5547
 
 
5548
 
  sunos4*)
5549
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5550
 
    wlarc=
5551
 
    hardcode_direct=yes
5552
 
    hardcode_shlibpath_var=no
5553
 
    ;;
5554
 
 
5555
 
  *)
5556
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5557
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5558
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5559
 
    else
5560
 
      ld_shlibs=no
5561
 
    fi
5562
 
    ;;
5563
 
  esac
5564
 
 
5565
 
  if test "$ld_shlibs" = yes; then
5566
 
    runpath_var=LD_RUN_PATH
5567
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5568
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
5569
 
    case $host_os in
5570
 
    cygwin* | mingw* | pw32*)
5571
 
      # dlltool doesn't understand --whole-archive et. al.
5572
 
      whole_archive_flag_spec=
5573
 
      ;;
5574
 
    *)
5575
 
      # ancient GNU ld didn't support --whole-archive et. al.
5576
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5577
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5578
 
      else
5579
 
        whole_archive_flag_spec=
5580
 
      fi
5581
 
      ;;
5582
 
    esac
5583
 
  fi
5584
 
else
5585
 
  # PORTME fill in a description of your system's linker (not GNU ld)
5586
 
  case $host_os in
5587
 
  aix3*)
5588
 
    allow_undefined_flag=unsupported
5589
 
    always_export_symbols=yes
5590
 
    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'
5591
 
    # Note: this linker hardcodes the directories in LIBPATH if there
5592
 
    # are no directories specified by -L.
5593
 
    hardcode_minus_L=yes
5594
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
5595
 
      # Neither direct hardcoding nor static linking is supported with a
5596
 
      # broken collect2.
5597
 
      hardcode_direct=unsupported
5598
 
    fi
5599
 
    ;;
5600
 
 
5601
 
  aix4* | aix5*)
5602
 
    if test "$host_cpu" = ia64; then
5603
 
      # On IA64, the linker does run time linking by default, so we don't
5604
 
      # have to do anything special.
5605
 
      aix_use_runtimelinking=no
5606
 
      exp_sym_flag='-Bexport'
5607
 
      no_entry_flag=""
5608
 
    else
5609
 
      aix_use_runtimelinking=no
5610
 
 
5611
 
      # Test if we are trying to use run time linking or normal
5612
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5613
 
      # need to do runtime linking.
5614
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5615
 
        for ld_flag in $LDFLAGS; do
5616
 
          case $ld_flag in
5617
 
          *-brtl*)
5618
 
            aix_use_runtimelinking=yes
5619
 
            break
5620
 
          ;;
5621
 
          esac
5622
 
        done
5623
 
      esac
5624
 
 
5625
 
      exp_sym_flag='-bexport'
5626
 
      no_entry_flag='-bnoentry'
5627
 
    fi
5628
 
 
5629
 
    # When large executables or shared objects are built, AIX ld can
5630
 
    # have problems creating the table of contents.  If linking a library
5631
 
    # or program results in "error TOC overflow" add -mminimal-toc to
5632
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5633
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5634
 
 
5635
 
    hardcode_direct=yes
5636
 
    archive_cmds=''
5637
 
    hardcode_libdir_separator=':'
5638
 
    if test "$GCC" = yes; then
5639
 
      case $host_os in aix4.[012]|aix4.[012].*)
5640
 
        collect2name=`${CC} -print-prog-name=collect2`
5641
 
        if test -f "$collect2name" && \
5642
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
5643
 
        then
5644
 
          # We have reworked collect2
5645
 
          hardcode_direct=yes
5646
 
        else
5647
 
          # We have old collect2
5648
 
          hardcode_direct=unsupported
5649
 
          # It fails to find uninstalled libraries when the uninstalled
5650
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5651
 
          # to unsupported forces relinking
5652
 
          hardcode_minus_L=yes
5653
 
          hardcode_libdir_flag_spec='-L$libdir'
5654
 
          hardcode_libdir_separator=
5655
 
        fi
5656
 
      esac
5657
 
 
5658
 
      shared_flag='-shared'
5659
 
    else
5660
 
      # not using gcc
5661
 
      if test "$host_cpu" = ia64; then
5662
 
        shared_flag='${wl}-G'
5663
 
      else
5664
 
        if test "$aix_use_runtimelinking" = yes; then
5665
 
          shared_flag='${wl}-G'
5666
 
        else
5667
 
          shared_flag='${wl}-bM:SRE'
5668
 
        fi
5669
 
      fi
5670
 
    fi
5671
 
 
5672
 
    # It seems that -bexpall can do strange things, so it is better to
5673
 
    # generate a list of symbols to export.
5674
 
    always_export_symbols=yes
5675
 
    if test "$aix_use_runtimelinking" = yes; then
5676
 
      # Warning - without using the other runtime loading flags (-brtl),
5677
 
      # -berok will link without error, but may produce a broken library.
5678
 
      allow_undefined_flag='-berok'
5679
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5680
 
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5681
 
    else
5682
 
      if test "$host_cpu" = ia64; then
5683
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5684
 
        allow_undefined_flag="-z nodefs"
5685
 
        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"
5686
 
      else
5687
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5688
 
        # Warning - without using the other run time loading flags,
5689
 
        # -berok will link without error, but may produce a broken library.
5690
 
        allow_undefined_flag='${wl}-berok'
5691
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5692
 
        # it's shared libraries.
5693
 
        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'
5694
 
      fi
5695
 
    fi
5696
 
    ;;
5697
 
 
5698
 
  amigaos*)
5699
 
    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)'
5700
 
    hardcode_libdir_flag_spec='-L$libdir'
5701
 
    hardcode_minus_L=yes
5702
 
    # see comment about different semantics on the GNU ld section
5703
 
    ld_shlibs=no
5704
 
    ;;
5705
 
 
5706
 
  cygwin* | mingw* | pw32*)
5707
 
    # When not using gcc, we currently assume that we are using
5708
 
    # Microsoft Visual C++.
5709
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5710
 
    # no search path for DLLs.
5711
 
    hardcode_libdir_flag_spec=' '
5712
 
    allow_undefined_flag=unsupported
5713
 
    # Tell ltmain to make .lib files, not .a files.
5714
 
    libext=lib
5715
 
    # FIXME: Setting linknames here is a bad hack.
5716
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5717
 
    # The linker will automatically build a .lib file if we build a DLL.
5718
 
    old_archive_from_new_cmds='true'
5719
 
    # FIXME: Should let the user specify the lib program.
5720
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5721
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5722
 
    ;;
5723
 
 
5724
 
  darwin* | rhapsody*)
5725
 
    case "$host_os" in
5726
 
    rhapsody* | darwin1.[012])
5727
 
      allow_undefined_flag='-undefined suppress'
5728
 
      ;;
5729
 
    *) # Darwin 1.3 on
5730
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
5731
 
      ;;
5732
 
    esac
5733
 
    # FIXME: Relying on posixy $() will cause problems for
5734
 
    #        cross-compilation, but unfortunately the echo tests do not
5735
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5736
 
    #        `"' quotes if we put them in here... so don't!
5737
 
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5738
 
    # We need to add '_' to the symbols in $export_symbols first
5739
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5740
 
    hardcode_direct=yes
5741
 
    hardcode_shlibpath_var=no
5742
 
    whole_archive_flag_spec='-all_load $convenience'
5743
 
    ;;
5744
 
 
5745
 
  freebsd1*)
5746
 
    ld_shlibs=no
5747
 
    ;;
5748
 
 
5749
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5750
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5751
 
  # does not break anything, and helps significantly (at the cost of a little
5752
 
  # extra space).
5753
 
  freebsd2.2*)
5754
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5755
 
    hardcode_libdir_flag_spec='-R$libdir'
5756
 
    hardcode_direct=yes
5757
 
    hardcode_shlibpath_var=no
5758
 
    ;;
5759
 
 
5760
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5761
 
  freebsd2*)
5762
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5763
 
    hardcode_direct=yes
5764
 
    hardcode_minus_L=yes
5765
 
    hardcode_shlibpath_var=no
5766
 
    ;;
5767
 
 
5768
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5769
 
  freebsd*)
5770
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5771
 
    hardcode_libdir_flag_spec='-R$libdir'
5772
 
    hardcode_direct=yes
5773
 
    hardcode_shlibpath_var=no
5774
 
    ;;
5775
 
 
5776
 
  hpux9* | hpux10* | hpux11*)
5777
 
    case $host_os in
5778
 
    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' ;;
5779
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5780
 
    esac
5781
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5782
 
    hardcode_libdir_separator=:
5783
 
    hardcode_direct=yes
5784
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5785
 
                         # location of the library.
5786
 
    export_dynamic_flag_spec='${wl}-E'
5787
 
    ;;
5788
 
 
5789
 
  irix5* | irix6* | nonstopux*)
5790
 
    if test "$GCC" = yes; then
5791
 
      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'
5792
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5793
 
    else
5794
 
      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'
5795
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5796
 
    fi
5797
 
    hardcode_libdir_separator=:
5798
 
    link_all_deplibs=yes
5799
 
    ;;
5800
 
 
5801
 
  netbsd*)
5802
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5803
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5804
 
    else
5805
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5806
 
    fi
5807
 
    hardcode_libdir_flag_spec='-R$libdir'
5808
 
    hardcode_direct=yes
5809
 
    hardcode_shlibpath_var=no
5810
 
    ;;
5811
 
 
5812
 
  newsos6)
5813
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5814
 
    hardcode_direct=yes
5815
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5816
 
    hardcode_libdir_separator=:
5817
 
    hardcode_shlibpath_var=no
5818
 
    ;;
5819
 
 
5820
 
  openbsd*)
5821
 
    hardcode_direct=yes
5822
 
    hardcode_shlibpath_var=no
5823
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5824
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5825
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5826
 
      export_dynamic_flag_spec='${wl}-E'
5827
 
    else
5828
 
      case "$host_os" in
5829
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5830
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5831
 
        hardcode_libdir_flag_spec='-R$libdir'
5832
 
        ;;
5833
 
      *)
5834
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5835
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5836
 
        ;;
5837
 
      esac
5838
 
    fi
5839
 
    ;;
5840
 
 
5841
 
  os2*)
5842
 
    hardcode_libdir_flag_spec='-L$libdir'
5843
 
    hardcode_minus_L=yes
5844
 
    allow_undefined_flag=unsupported
5845
 
    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'
5846
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5847
 
    ;;
5848
 
 
5849
 
  osf3*)
5850
 
    if test "$GCC" = yes; then
5851
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5852
 
      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'
5853
 
    else
5854
 
      allow_undefined_flag=' -expect_unresolved \*'
5855
 
      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'
5856
 
    fi
5857
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5858
 
    hardcode_libdir_separator=:
5859
 
    ;;
5860
 
 
5861
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5862
 
    if test "$GCC" = yes; then
5863
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5864
 
      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'
5865
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5866
 
    else
5867
 
      allow_undefined_flag=' -expect_unresolved \*'
5868
 
      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'
5869
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5870
 
      $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'
5871
 
 
5872
 
      #Both c and cxx compiler support -rpath directly
5873
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5874
 
    fi
5875
 
    hardcode_libdir_separator=:
5876
 
    ;;
5877
 
 
5878
 
  sco3.2v5*)
5879
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5880
 
    hardcode_shlibpath_var=no
5881
 
    runpath_var=LD_RUN_PATH
5882
 
    hardcode_runpath_var=yes
5883
 
    export_dynamic_flag_spec='${wl}-Bexport'
5884
 
    ;;
5885
 
 
5886
 
  solaris*)
5887
 
    # gcc --version < 3.0 without binutils cannot create self contained
5888
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
5889
 
    # the object symbols generated in some cases.  Libraries that use
5890
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5891
 
    # a copy of libgcc.a into every shared library to guarantee resolving
5892
 
    # such symbols causes other problems:  According to Tim Van Holder
5893
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5894
 
    # (to the application) exception stack for one thing.
5895
 
    no_undefined_flag=' -z defs'
5896
 
    if test "$GCC" = yes; then
5897
 
      case `$CC --version 2>/dev/null` in
5898
 
      [12].*)
5899
 
        cat <<EOF 1>&2
5900
 
 
5901
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5902
 
*** create self contained shared libraries on Solaris systems, without
5903
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5904
 
*** -no-undefined support, which will at least allow you to build shared
5905
 
*** libraries.  However, you may find that when you link such libraries
5906
 
*** into an application without using GCC, you have to manually add
5907
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5908
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
5909
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5910
 
 
5911
 
EOF
5912
 
        no_undefined_flag=
5913
 
        ;;
5914
 
      esac
5915
 
    fi
5916
 
    # $CC -shared without GNU ld will not create a library from C++
5917
 
    # object files and a static libstdc++, better avoid it by now
5918
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5919
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5920
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5921
 
    hardcode_libdir_flag_spec='-R$libdir'
5922
 
    hardcode_shlibpath_var=no
5923
 
    case $host_os in
5924
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5925
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5926
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5927
 
    esac
5928
 
    link_all_deplibs=yes
5929
 
    ;;
5930
 
 
5931
 
  sunos4*)
5932
 
    if test "x$host_vendor" = xsequent; then
5933
 
      # Use $CC to link under sequent, because it throws in some extra .o
5934
 
      # files that make .init and .fini sections work.
5935
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5936
 
    else
5937
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5938
 
    fi
5939
 
    hardcode_libdir_flag_spec='-L$libdir'
5940
 
    hardcode_direct=yes
5941
 
    hardcode_minus_L=yes
5942
 
    hardcode_shlibpath_var=no
5943
 
    ;;
5944
 
 
5945
 
  sysv4)
5946
 
    case $host_vendor in
5947
 
      sni)
5948
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5949
 
        hardcode_direct=yes # is this really true???
5950
 
        ;;
5951
 
      siemens)
5952
 
        ## LD is ld it makes a PLAMLIB
5953
 
        ## CC just makes a GrossModule.
5954
 
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5955
 
        reload_cmds='$CC -r -o $output$reload_objs'
5956
 
        hardcode_direct=no
5957
 
        ;;
5958
 
      motorola)
5959
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5960
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5961
 
        ;;
5962
 
    esac
5963
 
    runpath_var='LD_RUN_PATH'
5964
 
    hardcode_shlibpath_var=no
5965
 
    ;;
5966
 
 
5967
 
  sysv4.3*)
5968
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5969
 
    hardcode_shlibpath_var=no
5970
 
    export_dynamic_flag_spec='-Bexport'
5971
 
    ;;
5972
 
 
5973
 
  sysv5*)
5974
 
    no_undefined_flag=' -z text'
5975
 
    # $CC -shared without GNU ld will not create a library from C++
5976
 
    # object files and a static libstdc++, better avoid it by now
5977
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5979
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5980
 
    hardcode_libdir_flag_spec=
5981
 
    hardcode_shlibpath_var=no
5982
 
    runpath_var='LD_RUN_PATH'
5983
 
    ;;
5984
 
 
5985
 
  uts4*)
5986
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5987
 
    hardcode_libdir_flag_spec='-L$libdir'
5988
 
    hardcode_shlibpath_var=no
5989
 
    ;;
5990
 
 
5991
 
  dgux*)
5992
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993
 
    hardcode_libdir_flag_spec='-L$libdir'
5994
 
    hardcode_shlibpath_var=no
5995
 
    ;;
5996
 
 
5997
 
  sysv4*MP*)
5998
 
    if test -d /usr/nec; then
5999
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000
 
      hardcode_shlibpath_var=no
6001
 
      runpath_var=LD_RUN_PATH
6002
 
      hardcode_runpath_var=yes
6003
 
      ld_shlibs=yes
6004
 
    fi
6005
 
    ;;
6006
 
 
6007
 
  sysv4.2uw2*)
6008
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6009
 
    hardcode_direct=yes
6010
 
    hardcode_minus_L=no
6011
 
    hardcode_shlibpath_var=no
6012
 
    hardcode_runpath_var=yes
6013
 
    runpath_var=LD_RUN_PATH
6014
 
    ;;
6015
 
 
6016
 
  sysv5uw7* | unixware7*)
6017
 
    no_undefined_flag='${wl}-z ${wl}text'
6018
 
    if test "$GCC" = yes; then
6019
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6020
 
    else
6021
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6022
 
    fi
6023
 
    runpath_var='LD_RUN_PATH'
6024
 
    hardcode_shlibpath_var=no
6025
 
    ;;
6026
 
 
6027
 
  *)
6028
 
    ld_shlibs=no
6029
 
    ;;
6030
 
  esac
6031
 
fi
6032
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6033
 
echo "${ECHO_T}$ld_shlibs" >&6
6034
 
test "$ld_shlibs" = no && can_build_shared=no
6035
 
 
6036
 
# Check hardcoding attributes.
6037
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6038
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6039
 
hardcode_action=
6040
 
if test -n "$hardcode_libdir_flag_spec" || \
6041
 
   test -n "$runpath_var"; then
6042
 
 
6043
 
  # We can hardcode non-existant directories.
6044
 
  if test "$hardcode_direct" != no &&
6045
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6046
 
     # have to relink, otherwise we might link with an installed library
6047
 
     # when we should be linking with a yet-to-be-installed one
6048
 
     ## test "$hardcode_shlibpath_var" != no &&
6049
 
     test "$hardcode_minus_L" != no; then
6050
 
    # Linking always hardcodes the temporary library directory.
6051
 
    hardcode_action=relink
6052
 
  else
6053
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
6054
 
    hardcode_action=immediate
6055
 
  fi
6056
 
else
6057
 
  # We cannot hardcode anything, or else we can only hardcode existing
6058
 
  # directories.
6059
 
  hardcode_action=unsupported
6060
 
fi
6061
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
6062
 
echo "${ECHO_T}$hardcode_action" >&6
6063
 
 
6064
 
striplib=
6065
 
old_striplib=
6066
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6067
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6068
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6069
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6070
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6071
 
  echo "$as_me:$LINENO: result: yes" >&5
6072
 
echo "${ECHO_T}yes" >&6
6073
 
else
6074
 
  echo "$as_me:$LINENO: result: no" >&5
6075
 
echo "${ECHO_T}no" >&6
6076
 
fi
6077
 
 
6078
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6079
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6080
 
 
6081
 
# PORTME Fill in your ld.so characteristics
6082
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6083
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6084
 
library_names_spec=
6085
 
libname_spec='lib$name'
6086
 
soname_spec=
6087
 
postinstall_cmds=
6088
 
postuninstall_cmds=
6089
 
finish_cmds=
6090
 
finish_eval=
6091
 
shlibpath_var=
6092
 
shlibpath_overrides_runpath=unknown
6093
 
version_type=none
6094
 
dynamic_linker="$host_os ld.so"
6095
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6096
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6097
 
 
6098
 
case $host_os in
6099
 
aix3*)
6100
 
  version_type=linux
6101
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6102
 
  shlibpath_var=LIBPATH
6103
 
 
6104
 
  # AIX has no versioning support, so we append a major version to the name.
6105
 
  soname_spec='${libname}${release}.so$major'
6106
 
  ;;
6107
 
 
6108
 
aix4* | aix5*)
6109
 
  version_type=linux
6110
 
  need_lib_prefix=no
6111
 
  need_version=no
6112
 
  hardcode_into_libs=yes
6113
 
  if test "$host_cpu" = ia64; then
6114
 
    # AIX 5 supports IA64
6115
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6116
 
    shlibpath_var=LD_LIBRARY_PATH
6117
 
  else
6118
 
    # With GCC up to 2.95.x, collect2 would create an import file
6119
 
    # for dependence libraries.  The import file would start with
6120
 
    # the line `#! .'.  This would cause the generated library to
6121
 
    # depend on `.', always an invalid library.  This was fixed in
6122
 
    # development snapshots of GCC prior to 3.0.
6123
 
    case $host_os in
6124
 
      aix4 | aix4.[01] | aix4.[01].*)
6125
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6126
 
             echo ' yes '
6127
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6128
 
          :
6129
 
        else
6130
 
          can_build_shared=no
6131
 
        fi
6132
 
        ;;
6133
 
    esac
6134
 
    # AIX (on Power*) has no versioning support, so currently we can
6135
 
    # not hardcode correct soname into executable. Probably we can
6136
 
    # add versioning support to collect2, so additional links can
6137
 
    # be useful in future.
6138
 
    if test "$aix_use_runtimelinking" = yes; then
6139
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6140
 
      # instead of lib<name>.a to let people know that these are not
6141
 
      # typical AIX shared libraries.
6142
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6143
 
    else
6144
 
      # We preserve .a as extension for shared libraries through AIX4.2
6145
 
      # and later when we are not doing run time linking.
6146
 
      library_names_spec='${libname}${release}.a $libname.a'
6147
 
      soname_spec='${libname}${release}.so$major'
6148
 
    fi
6149
 
    shlibpath_var=LIBPATH
6150
 
  fi
6151
 
  hardcode_into_libs=yes
6152
 
  ;;
6153
 
 
6154
 
amigaos*)
6155
 
  library_names_spec='$libname.ixlibrary $libname.a'
6156
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6157
 
  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'
6158
 
  ;;
6159
 
 
6160
 
beos*)
6161
 
  library_names_spec='${libname}.so'
6162
 
  dynamic_linker="$host_os ld.so"
6163
 
  shlibpath_var=LIBRARY_PATH
6164
 
  ;;
6165
 
 
6166
 
bsdi4*)
6167
 
  version_type=linux
6168
 
  need_version=no
6169
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6170
 
  soname_spec='${libname}${release}.so$major'
6171
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6172
 
  shlibpath_var=LD_LIBRARY_PATH
6173
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6174
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6175
 
  export_dynamic_flag_spec=-rdynamic
6176
 
  # the default ld.so.conf also contains /usr/contrib/lib and
6177
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6178
 
  # libtool to hard-code these into programs
6179
 
  ;;
6180
 
 
6181
 
cygwin* | mingw* | pw32*)
6182
 
  version_type=windows
6183
 
  need_version=no
6184
 
  need_lib_prefix=no
6185
 
  case $GCC,$host_os in
6186
 
  yes,cygwin*)
6187
 
    library_names_spec='$libname.dll.a'
6188
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6189
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6190
 
      dldir=$destdir/`dirname \$dlpath`~
6191
 
      test -d \$dldir || mkdir -p \$dldir~
6192
 
      $install_prog .libs/$dlname \$dldir/$dlname'
6193
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6194
 
      dlpath=$dir/\$dldll~
6195
 
       $rm \$dlpath'
6196
 
    ;;
6197
 
  yes,mingw*)
6198
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6199
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6200
 
    ;;
6201
 
  yes,pw32*)
6202
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6203
 
    ;;
6204
 
  *)
6205
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6206
 
    ;;
6207
 
  esac
6208
 
  dynamic_linker='Win32 ld.exe'
6209
 
  # FIXME: first we should search . and the directory the executable is in
6210
 
  shlibpath_var=PATH
6211
 
  ;;
6212
 
 
6213
 
darwin* | rhapsody*)
6214
 
  dynamic_linker="$host_os dyld"
6215
 
  version_type=darwin
6216
 
  need_lib_prefix=no
6217
 
  need_version=no
6218
 
  # FIXME: Relying on posixy $() will cause problems for
6219
 
  #        cross-compilation, but unfortunately the echo tests do not
6220
 
  #        yet detect zsh echo's removal of \ escapes.
6221
 
  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)'
6222
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6223
 
  shlibpath_overrides_runpath=yes
6224
 
  shlibpath_var=DYLD_LIBRARY_PATH
6225
 
  ;;
6226
 
 
6227
 
freebsd1*)
6228
 
  dynamic_linker=no
6229
 
  ;;
6230
 
 
6231
 
freebsd*-gnu*)
6232
 
  version_type=linux
6233
 
  need_lib_prefix=no
6234
 
  need_version=no
6235
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6236
 
  soname_spec='${libname}${release}.so$major'
6237
 
  shlibpath_var=LD_LIBRARY_PATH
6238
 
  shlibpath_overrides_runpath=no
6239
 
  hardcode_into_libs=yes
6240
 
  dynamic_linker='GNU/FreeBSD ld.so'
6241
 
  ;;
6242
 
 
6243
 
freebsd*)
6244
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6245
 
  version_type=freebsd-$objformat
6246
 
  case $version_type in
6247
 
    freebsd-elf*)
6248
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6249
 
      need_version=no
6250
 
      need_lib_prefix=no
6251
 
      ;;
6252
 
    freebsd-*)
6253
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6254
 
      need_version=yes
6255
 
      ;;
6256
 
  esac
6257
 
  shlibpath_var=LD_LIBRARY_PATH
6258
 
  case $host_os in
6259
 
  freebsd2*)
6260
 
    shlibpath_overrides_runpath=yes
6261
 
    ;;
6262
 
  *)
6263
 
    shlibpath_overrides_runpath=no
6264
 
    hardcode_into_libs=yes
6265
 
    ;;
6266
 
  esac
6267
 
  ;;
6268
 
 
6269
 
gnu*)
6270
 
  version_type=linux
6271
 
  need_lib_prefix=no
6272
 
  need_version=no
6273
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6274
 
  soname_spec='${libname}${release}.so$major'
6275
 
  shlibpath_var=LD_LIBRARY_PATH
6276
 
  hardcode_into_libs=yes
6277
 
  ;;
6278
 
 
6279
 
hpux9* | hpux10* | hpux11*)
6280
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
6281
 
  # link against other versions.
6282
 
  dynamic_linker="$host_os dld.sl"
6283
 
  version_type=sunos
6284
 
  need_lib_prefix=no
6285
 
  need_version=no
6286
 
  shlibpath_var=SHLIB_PATH
6287
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6288
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6289
 
  soname_spec='${libname}${release}.sl$major'
6290
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6291
 
  postinstall_cmds='chmod 555 $lib'
6292
 
  ;;
6293
 
 
6294
 
irix5* | irix6* | nonstopux*)
6295
 
  case $host_os in
6296
 
    nonstopux*) version_type=nonstopux ;;
6297
 
    *)          version_type=irix ;;
6298
 
  esac
6299
 
  need_lib_prefix=no
6300
 
  need_version=no
6301
 
  soname_spec='${libname}${release}.so$major'
6302
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6303
 
  case $host_os in
6304
 
  irix5* | nonstopux*)
6305
 
    libsuff= shlibsuff=
6306
 
    ;;
6307
 
  *)
6308
 
    case $LD in # libtool.m4 will add one of these switches to LD
6309
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6310
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6311
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6312
 
    *) libsuff= shlibsuff= libmagic=never-match;;
6313
 
    esac
6314
 
    ;;
6315
 
  esac
6316
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6317
 
  shlibpath_overrides_runpath=no
6318
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6319
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6320
 
  ;;
6321
 
 
6322
 
# No shared lib support for Linux oldld, aout, or coff.
6323
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6324
 
  dynamic_linker=no
6325
 
  ;;
6326
 
 
6327
 
# This must be Linux ELF.
6328
 
linux-gnu*)
6329
 
  version_type=linux
6330
 
  need_lib_prefix=no
6331
 
  need_version=no
6332
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6333
 
  soname_spec='${libname}${release}.so$major'
6334
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6335
 
  shlibpath_var=LD_LIBRARY_PATH
6336
 
  shlibpath_overrides_runpath=no
6337
 
  # This implies no fast_install, which is unacceptable.
6338
 
  # Some rework will be needed to allow for fast_install
6339
 
  # before this can be enabled.
6340
 
  hardcode_into_libs=yes
6341
 
 
6342
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
6343
 
  # powerpc, because MkLinux only supported shared libraries with the
6344
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
6345
 
  # most powerpc-linux boxes support dynamic linking these days and
6346
 
  # people can always --disable-shared, the test was removed, and we
6347
 
  # assume the GNU/Linux dynamic linker is in use.
6348
 
  dynamic_linker='GNU/Linux ld.so'
6349
 
  ;;
6350
 
 
6351
 
netbsd*)
6352
 
  version_type=sunos
6353
 
  need_lib_prefix=no
6354
 
  need_version=no
6355
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6356
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6357
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6358
 
    dynamic_linker='NetBSD (a.out) ld.so'
6359
 
  else
6360
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6361
 
    soname_spec='${libname}${release}.so$major'
6362
 
    dynamic_linker='NetBSD ld.elf_so'
6363
 
  fi
6364
 
  shlibpath_var=LD_LIBRARY_PATH
6365
 
  shlibpath_overrides_runpath=yes
6366
 
  hardcode_into_libs=yes
6367
 
  ;;
6368
 
 
6369
 
newsos6)
6370
 
  version_type=linux
6371
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6372
 
  shlibpath_var=LD_LIBRARY_PATH
6373
 
  shlibpath_overrides_runpath=yes
6374
 
  ;;
6375
 
 
6376
 
openbsd*)
6377
 
  version_type=sunos
6378
 
  need_lib_prefix=no
6379
 
  need_version=no
6380
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6381
 
    case "$host_os" in
6382
 
    openbsd2.[89] | openbsd2.[89].*)
6383
 
      shlibpath_overrides_runpath=no
6384
 
      ;;
6385
 
    *)
6386
 
      shlibpath_overrides_runpath=yes
6387
 
      ;;
6388
 
    esac
6389
 
  else
6390
 
    shlibpath_overrides_runpath=yes
6391
 
  fi
6392
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6393
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6394
 
  shlibpath_var=LD_LIBRARY_PATH
6395
 
  ;;
6396
 
 
6397
 
os2*)
6398
 
  libname_spec='$name'
6399
 
  need_lib_prefix=no
6400
 
  library_names_spec='$libname.dll $libname.a'
6401
 
  dynamic_linker='OS/2 ld.exe'
6402
 
  shlibpath_var=LIBPATH
6403
 
  ;;
6404
 
 
6405
 
osf3* | osf4* | osf5*)
6406
 
  version_type=osf
6407
 
  need_version=no
6408
 
  need_lib_prefix=no
6409
 
  soname_spec='${libname}${release}.so$major'
6410
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6411
 
  shlibpath_var=LD_LIBRARY_PATH
6412
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6413
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6414
 
  hardcode_into_libs=yes
6415
 
  ;;
6416
 
 
6417
 
sco3.2v5*)
6418
 
  version_type=osf
6419
 
  soname_spec='${libname}${release}.so$major'
6420
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6421
 
  shlibpath_var=LD_LIBRARY_PATH
6422
 
  ;;
6423
 
 
6424
 
solaris*)
6425
 
  version_type=linux
6426
 
  need_lib_prefix=no
6427
 
  need_version=no
6428
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429
 
  soname_spec='${libname}${release}.so$major'
6430
 
  shlibpath_var=LD_LIBRARY_PATH
6431
 
  shlibpath_overrides_runpath=yes
6432
 
  hardcode_into_libs=yes
6433
 
  # ldd complains unless libraries are executable
6434
 
  postinstall_cmds='chmod +x $lib'
6435
 
  ;;
6436
 
 
6437
 
sunos4*)
6438
 
  version_type=sunos
6439
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6440
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6441
 
  shlibpath_var=LD_LIBRARY_PATH
6442
 
  shlibpath_overrides_runpath=yes
6443
 
  if test "$with_gnu_ld" = yes; then
6444
 
    need_lib_prefix=no
6445
 
  fi
6446
 
  need_version=yes
6447
 
  ;;
6448
 
 
6449
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6450
 
  version_type=linux
6451
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452
 
  soname_spec='${libname}${release}.so$major'
6453
 
  shlibpath_var=LD_LIBRARY_PATH
6454
 
  case $host_vendor in
6455
 
    sni)
6456
 
      shlibpath_overrides_runpath=no
6457
 
      need_lib_prefix=no
6458
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
6459
 
      runpath_var=LD_RUN_PATH
6460
 
      ;;
6461
 
    siemens)
6462
 
      need_lib_prefix=no
6463
 
      ;;
6464
 
    motorola)
6465
 
      need_lib_prefix=no
6466
 
      need_version=no
6467
 
      shlibpath_overrides_runpath=no
6468
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6469
 
      ;;
6470
 
  esac
6471
 
  ;;
6472
 
 
6473
 
uts4*)
6474
 
  version_type=linux
6475
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6476
 
  soname_spec='${libname}${release}.so$major'
6477
 
  shlibpath_var=LD_LIBRARY_PATH
6478
 
  ;;
6479
 
 
6480
 
dgux*)
6481
 
  version_type=linux
6482
 
  need_lib_prefix=no
6483
 
  need_version=no
6484
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6485
 
  soname_spec='${libname}${release}.so$major'
6486
 
  shlibpath_var=LD_LIBRARY_PATH
6487
 
  ;;
6488
 
 
6489
 
sysv4*MP*)
6490
 
  if test -d /usr/nec ;then
6491
 
    version_type=linux
6492
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6493
 
    soname_spec='$libname.so.$major'
6494
 
    shlibpath_var=LD_LIBRARY_PATH
6495
 
  fi
6496
 
  ;;
6497
 
 
6498
 
*)
6499
 
  dynamic_linker=no
6500
 
  ;;
6501
 
esac
6502
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6503
 
echo "${ECHO_T}$dynamic_linker" >&6
6504
 
test "$dynamic_linker" = no && can_build_shared=no
6505
 
 
6506
 
# Report the final consequences.
6507
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6508
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6509
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6510
 
echo "${ECHO_T}$can_build_shared" >&6
6511
 
 
6512
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6513
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6514
 
test "$can_build_shared" = "no" && enable_shared=no
6515
 
 
6516
 
# On AIX, shared libraries and static libraries use the same namespace, and
6517
 
# are all built from PIC.
6518
 
case "$host_os" in
6519
 
aix3*)
6520
 
  test "$enable_shared" = yes && enable_static=no
6521
 
  if test -n "$RANLIB"; then
6522
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6523
 
    postinstall_cmds='$RANLIB $lib'
6524
 
  fi
6525
 
  ;;
6526
 
 
6527
 
aix4*)
6528
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6529
 
    test "$enable_shared" = yes && enable_static=no
6530
 
  fi
6531
 
  ;;
6532
 
esac
6533
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
6534
 
echo "${ECHO_T}$enable_shared" >&6
6535
 
 
6536
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6537
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6538
 
# Make sure either enable_shared or enable_static is yes.
6539
 
test "$enable_shared" = yes || enable_static=yes
6540
 
echo "$as_me:$LINENO: result: $enable_static" >&5
6541
 
echo "${ECHO_T}$enable_static" >&6
6542
 
 
6543
 
if test "$hardcode_action" = relink; then
6544
 
  # Fast installation is not supported
6545
 
  enable_fast_install=no
6546
 
elif test "$shlibpath_overrides_runpath" = yes ||
6547
 
     test "$enable_shared" = no; then
6548
 
  # Fast installation is not necessary
6549
 
  enable_fast_install=needless
6550
 
fi
6551
 
 
6552
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6553
 
if test "$GCC" = yes; then
6554
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6555
 
fi
6556
 
 
6557
 
if test "x$enable_dlopen" != xyes; then
6558
 
  enable_dlopen=unknown
6559
 
  enable_dlopen_self=unknown
6560
 
  enable_dlopen_self_static=unknown
6561
 
else
6562
 
  lt_cv_dlopen=no
6563
 
  lt_cv_dlopen_libs=
6564
 
 
6565
 
  case $host_os in
6566
 
  beos*)
6567
 
    lt_cv_dlopen="load_add_on"
6568
 
    lt_cv_dlopen_libs=
6569
 
    lt_cv_dlopen_self=yes
6570
 
    ;;
6571
 
 
6572
 
  cygwin* | mingw* | pw32*)
6573
 
    lt_cv_dlopen="LoadLibrary"
6574
 
    lt_cv_dlopen_libs=
6575
 
   ;;
6576
 
 
6577
 
  *)
6578
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
6579
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6580
 
if test "${ac_cv_func_shl_load+set}" = set; then
6581
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6582
 
else
6583
 
  cat >conftest.$ac_ext <<_ACEOF
6584
 
#line $LINENO "configure"
6585
 
/* confdefs.h.  */
6586
 
_ACEOF
6587
 
cat confdefs.h >>conftest.$ac_ext
6588
 
cat >>conftest.$ac_ext <<_ACEOF
6589
 
/* end confdefs.h.  */
6590
 
/* System header to define __stub macros and hopefully few prototypes,
6591
 
    which can conflict with char shl_load (); below.
6592
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593
 
    <limits.h> exists even on freestanding compilers.  */
6594
 
#ifdef __STDC__
6595
 
# include <limits.h>
6596
 
#else
6597
 
# include <assert.h>
6598
 
#endif
6599
 
/* Override any gcc2 internal prototype to avoid an error.  */
6600
 
#ifdef __cplusplus
6601
 
extern "C"
6602
 
{
6603
 
#endif
6604
 
/* We use char because int might match the return type of a gcc2
6605
 
   builtin and then its argument prototype would still apply.  */
6606
 
char shl_load ();
6607
 
/* The GNU C library defines this for functions which it implements
6608
 
    to always fail with ENOSYS.  Some functions are actually named
6609
 
    something starting with __ and the normal name is an alias.  */
6610
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6611
 
choke me
6612
 
#else
6613
 
char (*f) () = shl_load;
6614
 
#endif
6615
 
#ifdef __cplusplus
6616
 
}
6617
 
#endif
6618
 
 
6619
 
int
6620
 
main ()
6621
 
{
6622
 
return f != shl_load;
6623
 
  ;
6624
 
  return 0;
6625
 
}
6626
 
_ACEOF
6627
 
rm -f conftest.$ac_objext conftest$ac_exeext
6628
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629
 
  (eval $ac_link) 2>&5
6630
 
  ac_status=$?
6631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632
 
  (exit $ac_status); } &&
6633
 
         { ac_try='test -s conftest$ac_exeext'
6634
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635
 
  (eval $ac_try) 2>&5
6636
 
  ac_status=$?
6637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638
 
  (exit $ac_status); }; }; then
6639
 
  ac_cv_func_shl_load=yes
6640
 
else
6641
 
  echo "$as_me: failed program was:" >&5
6642
 
sed 's/^/| /' conftest.$ac_ext >&5
6643
 
 
6644
 
ac_cv_func_shl_load=no
6645
 
fi
6646
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6647
 
fi
6648
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6649
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6650
 
if test $ac_cv_func_shl_load = yes; then
6651
 
  lt_cv_dlopen="shl_load"
6652
 
else
6653
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6654
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6655
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6656
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6657
 
else
6658
 
  ac_check_lib_save_LIBS=$LIBS
6659
 
LIBS="-ldld  $LIBS"
6660
 
cat >conftest.$ac_ext <<_ACEOF
6661
 
#line $LINENO "configure"
6662
 
/* confdefs.h.  */
6663
 
_ACEOF
6664
 
cat confdefs.h >>conftest.$ac_ext
6665
 
cat >>conftest.$ac_ext <<_ACEOF
6666
 
/* end confdefs.h.  */
6667
 
 
6668
 
/* Override any gcc2 internal prototype to avoid an error.  */
6669
 
#ifdef __cplusplus
6670
 
extern "C"
6671
 
#endif
6672
 
/* We use char because int might match the return type of a gcc2
6673
 
   builtin and then its argument prototype would still apply.  */
6674
 
char shl_load ();
6675
 
int
6676
 
main ()
6677
 
{
6678
 
shl_load ();
6679
 
  ;
6680
 
  return 0;
6681
 
}
6682
 
_ACEOF
6683
 
rm -f conftest.$ac_objext conftest$ac_exeext
6684
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685
 
  (eval $ac_link) 2>&5
6686
 
  ac_status=$?
6687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688
 
  (exit $ac_status); } &&
6689
 
         { ac_try='test -s conftest$ac_exeext'
6690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691
 
  (eval $ac_try) 2>&5
6692
 
  ac_status=$?
6693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694
 
  (exit $ac_status); }; }; then
6695
 
  ac_cv_lib_dld_shl_load=yes
6696
 
else
6697
 
  echo "$as_me: failed program was:" >&5
6698
 
sed 's/^/| /' conftest.$ac_ext >&5
6699
 
 
6700
 
ac_cv_lib_dld_shl_load=no
6701
 
fi
6702
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703
 
LIBS=$ac_check_lib_save_LIBS
6704
 
fi
6705
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6706
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6707
 
if test $ac_cv_lib_dld_shl_load = yes; then
6708
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6709
 
else
6710
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
6711
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6712
 
if test "${ac_cv_func_dlopen+set}" = set; then
6713
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6714
 
else
6715
 
  cat >conftest.$ac_ext <<_ACEOF
6716
 
#line $LINENO "configure"
6717
 
/* confdefs.h.  */
6718
 
_ACEOF
6719
 
cat confdefs.h >>conftest.$ac_ext
6720
 
cat >>conftest.$ac_ext <<_ACEOF
6721
 
/* end confdefs.h.  */
6722
 
/* System header to define __stub macros and hopefully few prototypes,
6723
 
    which can conflict with char dlopen (); below.
6724
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6725
 
    <limits.h> exists even on freestanding compilers.  */
6726
 
#ifdef __STDC__
6727
 
# include <limits.h>
6728
 
#else
6729
 
# include <assert.h>
6730
 
#endif
6731
 
/* Override any gcc2 internal prototype to avoid an error.  */
6732
 
#ifdef __cplusplus
6733
 
extern "C"
6734
 
{
6735
 
#endif
6736
 
/* We use char because int might match the return type of a gcc2
6737
 
   builtin and then its argument prototype would still apply.  */
6738
 
char dlopen ();
6739
 
/* The GNU C library defines this for functions which it implements
6740
 
    to always fail with ENOSYS.  Some functions are actually named
6741
 
    something starting with __ and the normal name is an alias.  */
6742
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6743
 
choke me
6744
 
#else
6745
 
char (*f) () = dlopen;
6746
 
#endif
6747
 
#ifdef __cplusplus
6748
 
}
6749
 
#endif
6750
 
 
6751
 
int
6752
 
main ()
6753
 
{
6754
 
return f != dlopen;
6755
 
  ;
6756
 
  return 0;
6757
 
}
6758
 
_ACEOF
6759
 
rm -f conftest.$ac_objext conftest$ac_exeext
6760
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761
 
  (eval $ac_link) 2>&5
6762
 
  ac_status=$?
6763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
 
  (exit $ac_status); } &&
6765
 
         { ac_try='test -s conftest$ac_exeext'
6766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767
 
  (eval $ac_try) 2>&5
6768
 
  ac_status=$?
6769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770
 
  (exit $ac_status); }; }; then
6771
 
  ac_cv_func_dlopen=yes
6772
 
else
6773
 
  echo "$as_me: failed program was:" >&5
6774
 
sed 's/^/| /' conftest.$ac_ext >&5
6775
 
 
6776
 
ac_cv_func_dlopen=no
6777
 
fi
6778
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6779
 
fi
6780
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6781
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6782
 
if test $ac_cv_func_dlopen = yes; then
6783
 
  lt_cv_dlopen="dlopen"
6784
 
else
6785
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6786
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6787
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6789
 
else
6790
 
  ac_check_lib_save_LIBS=$LIBS
6791
 
LIBS="-ldl  $LIBS"
6792
 
cat >conftest.$ac_ext <<_ACEOF
6793
 
#line $LINENO "configure"
6794
 
/* confdefs.h.  */
6795
 
_ACEOF
6796
 
cat confdefs.h >>conftest.$ac_ext
6797
 
cat >>conftest.$ac_ext <<_ACEOF
6798
 
/* end confdefs.h.  */
6799
 
 
6800
 
/* Override any gcc2 internal prototype to avoid an error.  */
6801
 
#ifdef __cplusplus
6802
 
extern "C"
6803
 
#endif
6804
 
/* We use char because int might match the return type of a gcc2
6805
 
   builtin and then its argument prototype would still apply.  */
6806
 
char dlopen ();
6807
 
int
6808
 
main ()
6809
 
{
6810
 
dlopen ();
6811
 
  ;
6812
 
  return 0;
6813
 
}
6814
 
_ACEOF
6815
 
rm -f conftest.$ac_objext conftest$ac_exeext
6816
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817
 
  (eval $ac_link) 2>&5
6818
 
  ac_status=$?
6819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820
 
  (exit $ac_status); } &&
6821
 
         { ac_try='test -s conftest$ac_exeext'
6822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823
 
  (eval $ac_try) 2>&5
6824
 
  ac_status=$?
6825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826
 
  (exit $ac_status); }; }; then
6827
 
  ac_cv_lib_dl_dlopen=yes
6828
 
else
6829
 
  echo "$as_me: failed program was:" >&5
6830
 
sed 's/^/| /' conftest.$ac_ext >&5
6831
 
 
6832
 
ac_cv_lib_dl_dlopen=no
6833
 
fi
6834
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835
 
LIBS=$ac_check_lib_save_LIBS
6836
 
fi
6837
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6838
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6839
 
if test $ac_cv_lib_dl_dlopen = yes; then
6840
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6841
 
else
6842
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6843
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6844
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6845
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6846
 
else
6847
 
  ac_check_lib_save_LIBS=$LIBS
6848
 
LIBS="-lsvld  $LIBS"
6849
 
cat >conftest.$ac_ext <<_ACEOF
6850
 
#line $LINENO "configure"
6851
 
/* confdefs.h.  */
6852
 
_ACEOF
6853
 
cat confdefs.h >>conftest.$ac_ext
6854
 
cat >>conftest.$ac_ext <<_ACEOF
6855
 
/* end confdefs.h.  */
6856
 
 
6857
 
/* Override any gcc2 internal prototype to avoid an error.  */
6858
 
#ifdef __cplusplus
6859
 
extern "C"
6860
 
#endif
6861
 
/* We use char because int might match the return type of a gcc2
6862
 
   builtin and then its argument prototype would still apply.  */
6863
 
char dlopen ();
6864
 
int
6865
 
main ()
6866
 
{
6867
 
dlopen ();
6868
 
  ;
6869
 
  return 0;
6870
 
}
6871
 
_ACEOF
6872
 
rm -f conftest.$ac_objext conftest$ac_exeext
6873
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874
 
  (eval $ac_link) 2>&5
6875
 
  ac_status=$?
6876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877
 
  (exit $ac_status); } &&
6878
 
         { ac_try='test -s conftest$ac_exeext'
6879
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880
 
  (eval $ac_try) 2>&5
6881
 
  ac_status=$?
6882
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883
 
  (exit $ac_status); }; }; then
6884
 
  ac_cv_lib_svld_dlopen=yes
6885
 
else
6886
 
  echo "$as_me: failed program was:" >&5
6887
 
sed 's/^/| /' conftest.$ac_ext >&5
6888
 
 
6889
 
ac_cv_lib_svld_dlopen=no
6890
 
fi
6891
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6892
 
LIBS=$ac_check_lib_save_LIBS
6893
 
fi
6894
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6895
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6896
 
if test $ac_cv_lib_svld_dlopen = yes; then
6897
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6898
 
else
6899
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6900
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6901
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6902
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6903
 
else
6904
 
  ac_check_lib_save_LIBS=$LIBS
6905
 
LIBS="-ldld  $LIBS"
6906
 
cat >conftest.$ac_ext <<_ACEOF
6907
 
#line $LINENO "configure"
6908
 
/* confdefs.h.  */
6909
 
_ACEOF
6910
 
cat confdefs.h >>conftest.$ac_ext
6911
 
cat >>conftest.$ac_ext <<_ACEOF
6912
 
/* end confdefs.h.  */
6913
 
 
6914
 
/* Override any gcc2 internal prototype to avoid an error.  */
6915
 
#ifdef __cplusplus
6916
 
extern "C"
6917
 
#endif
6918
 
/* We use char because int might match the return type of a gcc2
6919
 
   builtin and then its argument prototype would still apply.  */
6920
 
char dld_link ();
6921
 
int
6922
 
main ()
6923
 
{
6924
 
dld_link ();
6925
 
  ;
6926
 
  return 0;
6927
 
}
6928
 
_ACEOF
6929
 
rm -f conftest.$ac_objext conftest$ac_exeext
6930
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931
 
  (eval $ac_link) 2>&5
6932
 
  ac_status=$?
6933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934
 
  (exit $ac_status); } &&
6935
 
         { ac_try='test -s conftest$ac_exeext'
6936
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937
 
  (eval $ac_try) 2>&5
6938
 
  ac_status=$?
6939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940
 
  (exit $ac_status); }; }; then
6941
 
  ac_cv_lib_dld_dld_link=yes
6942
 
else
6943
 
  echo "$as_me: failed program was:" >&5
6944
 
sed 's/^/| /' conftest.$ac_ext >&5
6945
 
 
6946
 
ac_cv_lib_dld_dld_link=no
6947
 
fi
6948
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6949
 
LIBS=$ac_check_lib_save_LIBS
6950
 
fi
6951
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6952
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6953
 
if test $ac_cv_lib_dld_dld_link = yes; then
6954
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6955
 
fi
6956
 
 
6957
 
 
6958
 
fi
6959
 
 
6960
 
 
6961
 
fi
6962
 
 
6963
 
 
6964
 
fi
6965
 
 
6966
 
 
6967
 
fi
6968
 
 
6969
 
 
6970
 
fi
6971
 
 
6972
 
    ;;
6973
 
  esac
6974
 
 
6975
 
  if test "x$lt_cv_dlopen" != xno; then
6976
 
    enable_dlopen=yes
6977
 
  else
6978
 
    enable_dlopen=no
6979
 
  fi
6980
 
 
6981
 
  case $lt_cv_dlopen in
6982
 
  dlopen)
6983
 
    save_CPPFLAGS="$CPPFLAGS"
6984
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6985
 
 
6986
 
    save_LDFLAGS="$LDFLAGS"
6987
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6988
 
 
6989
 
    save_LIBS="$LIBS"
6990
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
6991
 
 
6992
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6993
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6994
 
if test "${lt_cv_dlopen_self+set}" = set; then
6995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6996
 
else
6997
 
          if test "$cross_compiling" = yes; then :
6998
 
  lt_cv_dlopen_self=cross
6999
 
else
7000
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7001
 
  lt_status=$lt_dlunknown
7002
 
  cat > conftest.$ac_ext <<EOF
7003
 
#line 7003 "configure"
7004
 
#include "confdefs.h"
7005
 
 
7006
 
#if HAVE_DLFCN_H
7007
 
#include <dlfcn.h>
7008
 
#endif
7009
 
 
7010
 
#include <stdio.h>
7011
 
 
7012
 
#ifdef RTLD_GLOBAL
7013
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
7014
 
#else
7015
 
#  ifdef DL_GLOBAL
7016
 
#    define LT_DLGLOBAL         DL_GLOBAL
7017
 
#  else
7018
 
#    define LT_DLGLOBAL         0
7019
 
#  endif
7020
 
#endif
7021
 
 
7022
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7023
 
   find out it does not work in some platform. */
7024
 
#ifndef LT_DLLAZY_OR_NOW
7025
 
#  ifdef RTLD_LAZY
7026
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7027
 
#  else
7028
 
#    ifdef DL_LAZY
7029
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
7030
 
#    else
7031
 
#      ifdef RTLD_NOW
7032
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
7033
 
#      else
7034
 
#        ifdef DL_NOW
7035
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
7036
 
#        else
7037
 
#          define LT_DLLAZY_OR_NOW      0
7038
 
#        endif
7039
 
#      endif
7040
 
#    endif
7041
 
#  endif
7042
 
#endif
7043
 
 
7044
 
#ifdef __cplusplus
7045
 
extern "C" void exit (int);
7046
 
#endif
7047
 
 
7048
 
void fnord() { int i=42;}
7049
 
int main ()
7050
 
{
7051
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7052
 
  int status = $lt_dlunknown;
7053
 
 
7054
 
  if (self)
7055
 
    {
7056
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7057
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7058
 
      /* dlclose (self); */
7059
 
    }
7060
 
 
7061
 
    exit (status);
7062
 
}
7063
 
EOF
7064
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065
 
  (eval $ac_link) 2>&5
7066
 
  ac_status=$?
7067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7069
 
    (./conftest; exit; ) 2>/dev/null
7070
 
    lt_status=$?
7071
 
    case x$lt_status in
7072
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7073
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7074
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7075
 
    esac
7076
 
  else :
7077
 
    # compilation failed
7078
 
    lt_cv_dlopen_self=no
7079
 
  fi
7080
 
fi
7081
 
rm -fr conftest*
7082
 
 
7083
 
 
7084
 
fi
7085
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7086
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7087
 
 
7088
 
    if test "x$lt_cv_dlopen_self" = xyes; then
7089
 
      LDFLAGS="$LDFLAGS $link_static_flag"
7090
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7091
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7092
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
7093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7094
 
else
7095
 
          if test "$cross_compiling" = yes; then :
7096
 
  lt_cv_dlopen_self_static=cross
7097
 
else
7098
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7099
 
  lt_status=$lt_dlunknown
7100
 
  cat > conftest.$ac_ext <<EOF
7101
 
#line 7101 "configure"
7102
 
#include "confdefs.h"
7103
 
 
7104
 
#if HAVE_DLFCN_H
7105
 
#include <dlfcn.h>
7106
 
#endif
7107
 
 
7108
 
#include <stdio.h>
7109
 
 
7110
 
#ifdef RTLD_GLOBAL
7111
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
7112
 
#else
7113
 
#  ifdef DL_GLOBAL
7114
 
#    define LT_DLGLOBAL         DL_GLOBAL
7115
 
#  else
7116
 
#    define LT_DLGLOBAL         0
7117
 
#  endif
7118
 
#endif
7119
 
 
7120
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7121
 
   find out it does not work in some platform. */
7122
 
#ifndef LT_DLLAZY_OR_NOW
7123
 
#  ifdef RTLD_LAZY
7124
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7125
 
#  else
7126
 
#    ifdef DL_LAZY
7127
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
7128
 
#    else
7129
 
#      ifdef RTLD_NOW
7130
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
7131
 
#      else
7132
 
#        ifdef DL_NOW
7133
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
7134
 
#        else
7135
 
#          define LT_DLLAZY_OR_NOW      0
7136
 
#        endif
7137
 
#      endif
7138
 
#    endif
7139
 
#  endif
7140
 
#endif
7141
 
 
7142
 
#ifdef __cplusplus
7143
 
extern "C" void exit (int);
7144
 
#endif
7145
 
 
7146
 
void fnord() { int i=42;}
7147
 
int main ()
7148
 
{
7149
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7150
 
  int status = $lt_dlunknown;
7151
 
 
7152
 
  if (self)
7153
 
    {
7154
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7155
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7156
 
      /* dlclose (self); */
7157
 
    }
7158
 
 
7159
 
    exit (status);
7160
 
}
7161
 
EOF
7162
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163
 
  (eval $ac_link) 2>&5
7164
 
  ac_status=$?
7165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7167
 
    (./conftest; exit; ) 2>/dev/null
7168
 
    lt_status=$?
7169
 
    case x$lt_status in
7170
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7171
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7172
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7173
 
    esac
7174
 
  else :
7175
 
    # compilation failed
7176
 
    lt_cv_dlopen_self_static=no
7177
 
  fi
7178
 
fi
7179
 
rm -fr conftest*
7180
 
 
7181
 
 
7182
 
fi
7183
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7184
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7185
 
    fi
7186
 
 
7187
 
    CPPFLAGS="$save_CPPFLAGS"
7188
 
    LDFLAGS="$save_LDFLAGS"
7189
 
    LIBS="$save_LIBS"
7190
 
    ;;
7191
 
  esac
7192
 
 
7193
 
  case $lt_cv_dlopen_self in
7194
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7195
 
  *) enable_dlopen_self=unknown ;;
7196
 
  esac
7197
 
 
7198
 
  case $lt_cv_dlopen_self_static in
7199
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7200
 
  *) enable_dlopen_self_static=unknown ;;
7201
 
  esac
7202
 
fi
7203
 
 
7204
 
 
7205
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
7206
 
  case $archive_cmds in
7207
 
  *'~'*)
7208
 
    # FIXME: we may have to deal with multi-command sequences.
7209
 
    ;;
7210
 
  '$CC '*)
7211
 
    # Test whether the compiler implicitly links with -lc since on some
7212
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7213
 
    # to ld, don't add -lc before -lgcc.
7214
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7215
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7216
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7217
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7218
 
else
7219
 
  $rm conftest*
7220
 
    echo 'static int dummy;' > conftest.$ac_ext
7221
 
 
7222
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223
 
  (eval $ac_compile) 2>&5
7224
 
  ac_status=$?
7225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226
 
  (exit $ac_status); }; then
7227
 
      soname=conftest
7228
 
      lib=conftest
7229
 
      libobjs=conftest.$ac_objext
7230
 
      deplibs=
7231
 
      wl=$lt_cv_prog_cc_wl
7232
 
      compiler_flags=-v
7233
 
      linker_flags=-v
7234
 
      verstring=
7235
 
      output_objdir=.
7236
 
      libname=conftest
7237
 
      save_allow_undefined_flag=$allow_undefined_flag
7238
 
      allow_undefined_flag=
7239
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7240
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7241
 
  ac_status=$?
7242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243
 
  (exit $ac_status); }
7244
 
      then
7245
 
        lt_cv_archive_cmds_need_lc=no
7246
 
      else
7247
 
        lt_cv_archive_cmds_need_lc=yes
7248
 
      fi
7249
 
      allow_undefined_flag=$save_allow_undefined_flag
7250
 
    else
7251
 
      cat conftest.err 1>&5
7252
 
    fi
7253
 
fi
7254
 
 
7255
 
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7256
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7257
 
    ;;
7258
 
  esac
7259
 
fi
7260
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7261
 
 
7262
 
# The second clause should only fire when bootstrapping the
7263
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
7264
 
# with your package, and you will get complaints that there are
7265
 
# no rules to generate ltmain.sh.
7266
 
if test -f "$ltmain"; then
 
1418
 
 
1419
# Save cache, so that ltconfig can load it
 
1420
cat > confcache <<\EOF
 
1421
# This file is a shell script that caches the results of configure
 
1422
# tests run on this system so they can be shared between configure
 
1423
# scripts and configure runs.  It is not useful on other systems.
 
1424
# If it contains results you don't want to keep, you may remove or edit it.
 
1425
#
 
1426
# By default, configure uses ./config.cache as the cache file,
 
1427
# creating it if it does not exist already.  You can give configure
 
1428
# the --cache-file=FILE option to use a different cache file; that is
 
1429
# what configure does when it calls configure scripts in
 
1430
# subdirectories, so they share the cache.
 
1431
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
1432
# config.status only pays attention to the cache file if you give it the
 
1433
# --recheck option to rerun configure.
 
1434
#
 
1435
EOF
 
1436
# The following way of writing the cache mishandles newlines in values,
 
1437
# but we know of no workaround that is simple, portable, and efficient.
 
1438
# So, don't put newlines in cache variables' values.
 
1439
# Ultrix sh set writes to stderr and can't be redirected directly,
 
1440
# and sets the high bit in the cache file unless we assign to the vars.
 
1441
(set) 2>&1 |
 
1442
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
1443
  *ac_space=\ *)
 
1444
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
1445
    # turns \\\\ into \\, and sed turns \\ into \).
 
1446
    sed -n \
 
1447
      -e "s/'/'\\\\''/g" \
 
1448
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
1449
    ;;
 
1450
  *)
 
1451
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
1452
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
1453
    ;;
 
1454
  esac >> confcache
 
1455
if cmp -s $cache_file confcache; then
7267
1456
  :
7268
1457
else
7269
 
  # If there is no Makefile yet, we rely on a make rule to execute
7270
 
  # `config.status --recheck' to rerun these tests and create the
7271
 
  # libtool script then.
7272
 
  test -f Makefile && make "$ltmain"
7273
 
fi
7274
 
 
7275
 
if test -f "$ltmain"; then
7276
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7277
 
  $rm -f "${ofile}T"
7278
 
 
7279
 
  echo creating $ofile
7280
 
 
7281
 
  # Now quote all the things that may contain metacharacters while being
7282
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7283
 
  # variables and quote the copies for generation of the libtool script.
7284
 
  for var in echo old_CC old_CFLAGS SED \
7285
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
7286
 
    reload_flag reload_cmds wl \
7287
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7288
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7289
 
    library_names_spec soname_spec \
7290
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7291
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7292
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7293
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
7294
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
7295
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7296
 
    global_symbol_to_c_name_address \
7297
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7298
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7299
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7300
 
 
7301
 
    case $var in
7302
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7303
 
    old_postinstall_cmds | old_postuninstall_cmds | \
7304
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7305
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7306
 
    postinstall_cmds | postuninstall_cmds | \
7307
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7308
 
      # Double-quote double-evaled strings.
7309
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7310
 
      ;;
7311
 
    *)
7312
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7313
 
      ;;
7314
 
    esac
7315
 
  done
7316
 
 
7317
 
  cat <<__EOF__ > "${ofile}T"
7318
 
#! $SHELL
7319
 
 
7320
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7321
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7322
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7323
 
#
7324
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7325
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7326
 
#
7327
 
# This program is free software; you can redistribute it and/or modify
7328
 
# it under the terms of the GNU General Public License as published by
7329
 
# the Free Software Foundation; either version 2 of the License, or
7330
 
# (at your option) any later version.
7331
 
#
7332
 
# This program is distributed in the hope that it will be useful, but
7333
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
7334
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7335
 
# General Public License for more details.
7336
 
#
7337
 
# You should have received a copy of the GNU General Public License
7338
 
# along with this program; if not, write to the Free Software
7339
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7340
 
#
7341
 
# As a special exception to the GNU General Public License, if you
7342
 
# distribute this file as part of a program that contains a
7343
 
# configuration script generated by Autoconf, you may include it under
7344
 
# the same distribution terms that you use for the rest of that program.
7345
 
 
7346
 
# A sed that does not truncate output.
7347
 
SED=$lt_SED
7348
 
 
7349
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7350
 
Xsed="${SED} -e s/^X//"
7351
 
 
7352
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
7353
 
# if CDPATH is set.
7354
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7355
 
 
7356
 
# ### BEGIN LIBTOOL CONFIG
7357
 
 
7358
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7359
 
 
7360
 
# Shell to use when invoking shell scripts.
7361
 
SHELL=$lt_SHELL
7362
 
 
7363
 
# Whether or not to build shared libraries.
7364
 
build_libtool_libs=$enable_shared
7365
 
 
7366
 
# Whether or not to build static libraries.
7367
 
build_old_libs=$enable_static
7368
 
 
7369
 
# Whether or not to add -lc for building shared libraries.
7370
 
build_libtool_need_lc=$need_lc
7371
 
 
7372
 
# Whether or not to optimize for fast installation.
7373
 
fast_install=$enable_fast_install
7374
 
 
7375
 
# The host system.
7376
 
host_alias=$host_alias
7377
 
host=$host
7378
 
 
7379
 
# An echo program that does not interpret backslashes.
7380
 
echo=$lt_echo
7381
 
 
7382
 
# The archiver.
7383
 
AR=$lt_AR
7384
 
AR_FLAGS=$lt_AR_FLAGS
7385
 
 
7386
 
# The default C compiler.
7387
 
CC=$lt_CC
7388
 
 
7389
 
# Is the compiler the GNU C compiler?
7390
 
with_gcc=$GCC
7391
 
 
7392
 
# The linker used to build libraries.
7393
 
LD=$lt_LD
7394
 
 
7395
 
# Whether we need hard or soft links.
7396
 
LN_S=$lt_LN_S
7397
 
 
7398
 
# A BSD-compatible nm program.
7399
 
NM=$lt_NM
7400
 
 
7401
 
# A symbol stripping program
7402
 
STRIP=$STRIP
7403
 
 
7404
 
# Used to examine libraries when file_magic_cmd begins "file"
7405
 
MAGIC_CMD=$MAGIC_CMD
7406
 
 
7407
 
# Used on cygwin: DLL creation program.
7408
 
DLLTOOL="$DLLTOOL"
7409
 
 
7410
 
# Used on cygwin: object dumper.
7411
 
OBJDUMP="$OBJDUMP"
7412
 
 
7413
 
# Used on cygwin: assembler.
7414
 
AS="$AS"
7415
 
 
7416
 
# The name of the directory that contains temporary libtool files.
7417
 
objdir=$objdir
7418
 
 
7419
 
# How to create reloadable object files.
7420
 
reload_flag=$lt_reload_flag
7421
 
reload_cmds=$lt_reload_cmds
7422
 
 
7423
 
# How to pass a linker flag through the compiler.
7424
 
wl=$lt_wl
7425
 
 
7426
 
# Object file suffix (normally "o").
7427
 
objext="$ac_objext"
7428
 
 
7429
 
# Old archive suffix (normally "a").
7430
 
libext="$libext"
7431
 
 
7432
 
# Executable file suffix (normally "").
7433
 
exeext="$exeext"
7434
 
 
7435
 
# Additional compiler flags for building library objects.
7436
 
pic_flag=$lt_pic_flag
7437
 
pic_mode=$pic_mode
7438
 
 
7439
 
# Does compiler simultaneously support -c and -o options?
7440
 
compiler_c_o=$lt_compiler_c_o
7441
 
 
7442
 
# Can we write directly to a .lo ?
7443
 
compiler_o_lo=$lt_compiler_o_lo
7444
 
 
7445
 
# Must we lock files when doing compilation ?
7446
 
need_locks=$lt_need_locks
7447
 
 
7448
 
# Do we need the lib prefix for modules?
7449
 
need_lib_prefix=$need_lib_prefix
7450
 
 
7451
 
# Do we need a version for libraries?
7452
 
need_version=$need_version
7453
 
 
7454
 
# Whether dlopen is supported.
7455
 
dlopen_support=$enable_dlopen
7456
 
 
7457
 
# Whether dlopen of programs is supported.
7458
 
dlopen_self=$enable_dlopen_self
7459
 
 
7460
 
# Whether dlopen of statically linked programs is supported.
7461
 
dlopen_self_static=$enable_dlopen_self_static
7462
 
 
7463
 
# Compiler flag to prevent dynamic linking.
7464
 
link_static_flag=$lt_link_static_flag
7465
 
 
7466
 
# Compiler flag to turn off builtin functions.
7467
 
no_builtin_flag=$lt_no_builtin_flag
7468
 
 
7469
 
# Compiler flag to allow reflexive dlopens.
7470
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7471
 
 
7472
 
# Compiler flag to generate shared objects directly from archives.
7473
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7474
 
 
7475
 
# Compiler flag to generate thread-safe objects.
7476
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7477
 
 
7478
 
# Library versioning type.
7479
 
version_type=$version_type
7480
 
 
7481
 
# Format of library name prefix.
7482
 
libname_spec=$lt_libname_spec
7483
 
 
7484
 
# List of archive names.  First name is the real one, the rest are links.
7485
 
# The last name is the one that the linker finds with -lNAME.
7486
 
library_names_spec=$lt_library_names_spec
7487
 
 
7488
 
# The coded name of the library, if different from the real name.
7489
 
soname_spec=$lt_soname_spec
7490
 
 
7491
 
# Commands used to build and install an old-style archive.
7492
 
RANLIB=$lt_RANLIB
7493
 
old_archive_cmds=$lt_old_archive_cmds
7494
 
old_postinstall_cmds=$lt_old_postinstall_cmds
7495
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7496
 
 
7497
 
# Create an old-style archive from a shared archive.
7498
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7499
 
 
7500
 
# Create a temporary old-style archive to link instead of a shared archive.
7501
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7502
 
 
7503
 
# Commands used to build and install a shared archive.
7504
 
archive_cmds=$lt_archive_cmds
7505
 
archive_expsym_cmds=$lt_archive_expsym_cmds
7506
 
postinstall_cmds=$lt_postinstall_cmds
7507
 
postuninstall_cmds=$lt_postuninstall_cmds
7508
 
 
7509
 
# Commands to strip libraries.
7510
 
old_striplib=$lt_old_striplib
7511
 
striplib=$lt_striplib
7512
 
 
7513
 
# Method to check whether dependent libraries are shared objects.
7514
 
deplibs_check_method=$lt_deplibs_check_method
7515
 
 
7516
 
# Command to use when deplibs_check_method == file_magic.
7517
 
file_magic_cmd=$lt_file_magic_cmd
7518
 
 
7519
 
# Flag that allows shared libraries with undefined symbols to be built.
7520
 
allow_undefined_flag=$lt_allow_undefined_flag
7521
 
 
7522
 
# Flag that forces no undefined symbols.
7523
 
no_undefined_flag=$lt_no_undefined_flag
7524
 
 
7525
 
# Commands used to finish a libtool library installation in a directory.
7526
 
finish_cmds=$lt_finish_cmds
7527
 
 
7528
 
# Same as above, but a single script fragment to be evaled but not shown.
7529
 
finish_eval=$lt_finish_eval
7530
 
 
7531
 
# Take the output of nm and produce a listing of raw symbols and C names.
7532
 
global_symbol_pipe=$lt_global_symbol_pipe
7533
 
 
7534
 
# Transform the output of nm in a proper C declaration
7535
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7536
 
 
7537
 
# Transform the output of nm in a C name address pair
7538
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7539
 
 
7540
 
# This is the shared library runtime path variable.
7541
 
runpath_var=$runpath_var
7542
 
 
7543
 
# This is the shared library path variable.
7544
 
shlibpath_var=$shlibpath_var
7545
 
 
7546
 
# Is shlibpath searched before the hard-coded library search path?
7547
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7548
 
 
7549
 
# How to hardcode a shared library path into an executable.
7550
 
hardcode_action=$hardcode_action
7551
 
 
7552
 
# Whether we should hardcode library paths into libraries.
7553
 
hardcode_into_libs=$hardcode_into_libs
7554
 
 
7555
 
# Flag to hardcode \$libdir into a binary during linking.
7556
 
# This must work even if \$libdir does not exist.
7557
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7558
 
 
7559
 
# Whether we need a single -rpath flag with a separated argument.
7560
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7561
 
 
7562
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7563
 
# resulting binary.
7564
 
hardcode_direct=$hardcode_direct
7565
 
 
7566
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7567
 
# resulting binary.
7568
 
hardcode_minus_L=$hardcode_minus_L
7569
 
 
7570
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7571
 
# the resulting binary.
7572
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
7573
 
 
7574
 
# Variables whose values should be saved in libtool wrapper scripts and
7575
 
# restored at relink time.
7576
 
variables_saved_for_relink="$variables_saved_for_relink"
7577
 
 
7578
 
# Whether libtool must link a program against all its dependency libraries.
7579
 
link_all_deplibs=$link_all_deplibs
7580
 
 
7581
 
# Compile-time system search path for libraries
7582
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7583
 
 
7584
 
# Run-time system search path for libraries
7585
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7586
 
 
7587
 
# Fix the shell variable \$srcfile for the compiler.
7588
 
fix_srcfile_path="$fix_srcfile_path"
7589
 
 
7590
 
# Set to yes if exported symbols are required.
7591
 
always_export_symbols=$always_export_symbols
7592
 
 
7593
 
# The commands to list exported symbols.
7594
 
export_symbols_cmds=$lt_export_symbols_cmds
7595
 
 
7596
 
# The commands to extract the exported symbol list from a shared archive.
7597
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7598
 
 
7599
 
# Symbols that should not be listed in the preloaded symbols.
7600
 
exclude_expsyms=$lt_exclude_expsyms
7601
 
 
7602
 
# Symbols that must always be exported.
7603
 
include_expsyms=$lt_include_expsyms
7604
 
 
7605
 
# ### END LIBTOOL CONFIG
7606
 
 
7607
 
__EOF__
7608
 
 
7609
 
  case $host_os in
7610
 
  aix3*)
7611
 
    cat <<\EOF >> "${ofile}T"
7612
 
 
7613
 
# AIX sometimes has problems with the GCC collect2 program.  For some
7614
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
7615
 
# vanish in a puff of smoke.
7616
 
if test "X${COLLECT_NAMES+set}" != Xset; then
7617
 
  COLLECT_NAMES=
7618
 
  export COLLECT_NAMES
7619
 
fi
7620
 
EOF
7621
 
    ;;
7622
 
  esac
7623
 
 
7624
 
  case $host_os in
7625
 
  cygwin* | mingw* | pw32* | os2*)
7626
 
    cat <<'EOF' >> "${ofile}T"
7627
 
      # This is a source program that is used to create dlls on Windows
7628
 
      # Don't remove nor modify the starting and closing comments
7629
 
# /* ltdll.c starts here */
7630
 
# #define WIN32_LEAN_AND_MEAN
7631
 
# #include <windows.h>
7632
 
# #undef WIN32_LEAN_AND_MEAN
7633
 
# #include <stdio.h>
7634
 
#
7635
 
# #ifndef __CYGWIN__
7636
 
# #  ifdef __CYGWIN32__
7637
 
# #    define __CYGWIN__ __CYGWIN32__
7638
 
# #  endif
7639
 
# #endif
7640
 
#
7641
 
# #ifdef __cplusplus
7642
 
# extern "C" {
7643
 
# #endif
7644
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7645
 
# #ifdef __cplusplus
7646
 
# }
7647
 
# #endif
7648
 
#
7649
 
# #ifdef __CYGWIN__
7650
 
# #include <cygwin/cygwin_dll.h>
7651
 
# DECLARE_CYGWIN_DLL( DllMain );
7652
 
# #endif
7653
 
# HINSTANCE __hDllInstance_base;
7654
 
#
7655
 
# BOOL APIENTRY
7656
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7657
 
# {
7658
 
#   __hDllInstance_base = hInst;
7659
 
#   return TRUE;
7660
 
# }
7661
 
# /* ltdll.c ends here */
7662
 
        # This is a source program that is used to create import libraries
7663
 
        # on Windows for dlls which lack them. Don't remove nor modify the
7664
 
        # starting and closing comments
7665
 
# /* impgen.c starts here */
7666
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7667
 
#
7668
 
#  This file is part of GNU libtool.
7669
 
#
7670
 
#  This program is free software; you can redistribute it and/or modify
7671
 
#  it under the terms of the GNU General Public License as published by
7672
 
#  the Free Software Foundation; either version 2 of the License, or
7673
 
#  (at your option) any later version.
7674
 
#
7675
 
#  This program is distributed in the hope that it will be useful,
7676
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7677
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7678
 
#  GNU General Public License for more details.
7679
 
#
7680
 
#  You should have received a copy of the GNU General Public License
7681
 
#  along with this program; if not, write to the Free Software
7682
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7683
 
#  */
7684
 
#
7685
 
# #include <stdio.h>            /* for printf() */
7686
 
# #include <unistd.h>           /* for open(), lseek(), read() */
7687
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7688
 
# #include <string.h>           /* for strdup() */
7689
 
#
7690
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7691
 
# #ifndef O_BINARY
7692
 
# #define O_BINARY 0
7693
 
# #endif
7694
 
#
7695
 
# static unsigned int
7696
 
# pe_get16 (fd, offset)
7697
 
#      int fd;
7698
 
#      int offset;
7699
 
# {
7700
 
#   unsigned char b[2];
7701
 
#   lseek (fd, offset, SEEK_SET);
7702
 
#   read (fd, b, 2);
7703
 
#   return b[0] + (b[1]<<8);
7704
 
# }
7705
 
#
7706
 
# static unsigned int
7707
 
# pe_get32 (fd, offset)
7708
 
#     int fd;
7709
 
#     int offset;
7710
 
# {
7711
 
#   unsigned char b[4];
7712
 
#   lseek (fd, offset, SEEK_SET);
7713
 
#   read (fd, b, 4);
7714
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7715
 
# }
7716
 
#
7717
 
# static unsigned int
7718
 
# pe_as32 (ptr)
7719
 
#      void *ptr;
7720
 
# {
7721
 
#   unsigned char *b = ptr;
7722
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7723
 
# }
7724
 
#
7725
 
# int
7726
 
# main (argc, argv)
7727
 
#     int argc;
7728
 
#     char *argv[];
7729
 
# {
7730
 
#     int dll;
7731
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7732
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7733
 
#     unsigned long name_rvas, nexp;
7734
 
#     unsigned char *expdata, *erva;
7735
 
#     char *filename, *dll_name;
7736
 
#
7737
 
#     filename = argv[1];
7738
 
#
7739
 
#     dll = open(filename, O_RDONLY|O_BINARY);
7740
 
#     if (dll < 1)
7741
 
#       return 1;
7742
 
#
7743
 
#     dll_name = filename;
7744
 
#
7745
 
#     for (i=0; filename[i]; i++)
7746
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7747
 
#           dll_name = filename + i +1;
7748
 
#
7749
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
7750
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
7751
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7752
 
#
7753
 
#     if (num_entries < 1) /* no exports */
7754
 
#       return 1;
7755
 
#
7756
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7757
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7758
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7759
 
#     secptr = (pe_header_offset + 4 + 20 +
7760
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
7761
 
#
7762
 
#     expptr = 0;
7763
 
#     for (i = 0; i < nsections; i++)
7764
 
#     {
7765
 
#       char sname[8];
7766
 
#       unsigned long secptr1 = secptr + 40 * i;
7767
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7768
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7769
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7770
 
#       lseek(dll, secptr1, SEEK_SET);
7771
 
#       read(dll, sname, 8);
7772
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7773
 
#       {
7774
 
#           expptr = fptr + (export_rva - vaddr);
7775
 
#           if (export_rva + export_size > vaddr + vsize)
7776
 
#               export_size = vsize - (export_rva - vaddr);
7777
 
#           break;
7778
 
#       }
7779
 
#     }
7780
 
#
7781
 
#     expdata = (unsigned char*)malloc(export_size);
7782
 
#     lseek (dll, expptr, SEEK_SET);
7783
 
#     read (dll, expdata, export_size);
7784
 
#     erva = expdata - export_rva;
7785
 
#
7786
 
#     nexp = pe_as32 (expdata+24);
7787
 
#     name_rvas = pe_as32 (expdata+32);
7788
 
#
7789
 
#     printf ("EXPORTS\n");
7790
 
#     for (i = 0; i<nexp; i++)
7791
 
#     {
7792
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7793
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7794
 
#     }
7795
 
#
7796
 
#     return 0;
7797
 
# }
7798
 
# /* impgen.c ends here */
7799
 
 
7800
 
EOF
7801
 
    ;;
7802
 
  esac
7803
 
 
7804
 
  # We use sed instead of cat because bash on DJGPP gets confused if
7805
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7806
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
7807
 
  # is reportedly fixed, but why not run on old versions too?
7808
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7809
 
 
7810
 
  mv -f "${ofile}T" "$ofile" || \
7811
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7812
 
  chmod +x "$ofile"
7813
 
fi
7814
 
 
7815
 
 
7816
 
 
 
1458
  if test -w $cache_file; then
 
1459
    echo "updating cache $cache_file"
 
1460
    cat confcache > $cache_file
 
1461
  else
 
1462
    echo "not updating unwritable cache $cache_file"
 
1463
  fi
 
1464
fi
 
1465
rm -f confcache
 
1466
 
 
1467
 
 
1468
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
 
1469
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
 
1470
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
 
1471
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
 
1472
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
 
1473
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 
1474
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
 
1475
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
 
1476
 
 
1477
# Reload cache, that may have been modified by ltconfig
 
1478
if test -r "$cache_file"; then
 
1479
  echo "loading cache $cache_file"
 
1480
  . $cache_file
 
1481
else
 
1482
  echo "creating cache $cache_file"
 
1483
  > $cache_file
 
1484
fi
7817
1485
 
7818
1486
 
7819
1487
# This can be used to rebuild libtool when needed
7820
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1488
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
7821
1489
 
7822
1490
# Always use our own libtool.
7823
1491
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7824
1492
 
7825
 
# Prevent multiple expansion
7826
 
 
7827
 
 
7828
 
 
7829
 
 
7830
 
 
7831
 
echo "$as_me:$LINENO: checking for void" >&5
7832
 
echo $ECHO_N "checking for void... $ECHO_C" >&6
7833
 
cat >conftest.$ac_ext <<_ACEOF
7834
 
#line $LINENO "configure"
7835
 
/* confdefs.h.  */
7836
 
_ACEOF
7837
 
cat confdefs.h >>conftest.$ac_ext
7838
 
cat >>conftest.$ac_ext <<_ACEOF
7839
 
/* end confdefs.h.  */
7840
 
 
7841
 
int
7842
 
main ()
7843
 
{
 
1493
# Redirect the config.log output again, so that the ltconfig log is not
 
1494
# clobbered by the next message.
 
1495
exec 5>>./config.log
 
1496
 
 
1497
 
 
1498
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 
1499
echo "configure:1500: checking for Cygwin environment" >&5
 
1500
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 
1501
  echo $ac_n "(cached) $ac_c" 1>&6
 
1502
else
 
1503
  cat > conftest.$ac_ext <<EOF
 
1504
#line 1505 "configure"
 
1505
#include "confdefs.h"
 
1506
 
 
1507
int main() {
 
1508
 
 
1509
#ifndef __CYGWIN__
 
1510
#define __CYGWIN__ __CYGWIN32__
 
1511
#endif
 
1512
return __CYGWIN__;
 
1513
; return 0; }
 
1514
EOF
 
1515
if { (eval echo configure:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1516
  rm -rf conftest*
 
1517
  ac_cv_cygwin=yes
 
1518
else
 
1519
  echo "configure: failed program was:" >&5
 
1520
  cat conftest.$ac_ext >&5
 
1521
  rm -rf conftest*
 
1522
  ac_cv_cygwin=no
 
1523
fi
 
1524
rm -f conftest*
 
1525
rm -f conftest*
 
1526
fi
 
1527
 
 
1528
echo "$ac_t""$ac_cv_cygwin" 1>&6
 
1529
CYGWIN=
 
1530
test "$ac_cv_cygwin" = yes && CYGWIN=yes
 
1531
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 
1532
echo "configure:1533: checking for mingw32 environment" >&5
 
1533
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 
1534
  echo $ac_n "(cached) $ac_c" 1>&6
 
1535
else
 
1536
  cat > conftest.$ac_ext <<EOF
 
1537
#line 1538 "configure"
 
1538
#include "confdefs.h"
 
1539
 
 
1540
int main() {
 
1541
return __MINGW32__;
 
1542
; return 0; }
 
1543
EOF
 
1544
if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1545
  rm -rf conftest*
 
1546
  ac_cv_mingw32=yes
 
1547
else
 
1548
  echo "configure: failed program was:" >&5
 
1549
  cat conftest.$ac_ext >&5
 
1550
  rm -rf conftest*
 
1551
  ac_cv_mingw32=no
 
1552
fi
 
1553
rm -f conftest*
 
1554
rm -f conftest*
 
1555
fi
 
1556
 
 
1557
echo "$ac_t""$ac_cv_mingw32" 1>&6
 
1558
MINGW32=
 
1559
test "$ac_cv_mingw32" = yes && MINGW32=yes
 
1560
 
 
1561
 
 
1562
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 
1563
echo "configure:1564: checking for executable suffix" >&5
 
1564
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 
1565
  echo $ac_n "(cached) $ac_c" 1>&6
 
1566
else
 
1567
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 
1568
  ac_cv_exeext=.exe
 
1569
else
 
1570
  rm -f conftest*
 
1571
  echo 'int main () { return 0; }' > conftest.$ac_ext
 
1572
  ac_cv_exeext=
 
1573
  if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 
1574
    for file in conftest.*; do
 
1575
      case $file in
 
1576
      *.c | *.o | *.obj) ;;
 
1577
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 
1578
      esac
 
1579
    done
 
1580
  else
 
1581
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 
1582
  fi
 
1583
  rm -f conftest*
 
1584
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 
1585
fi
 
1586
fi
 
1587
 
 
1588
EXEEXT=""
 
1589
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 
1590
echo "$ac_t""${ac_cv_exeext}" 1>&6
 
1591
ac_exeext=$EXEEXT
 
1592
 
 
1593
 
 
1594
echo $ac_n "checking for void""... $ac_c" 1>&6
 
1595
echo "configure:1596: checking for void" >&5
 
1596
cat > conftest.$ac_ext <<EOF
 
1597
#line 1598 "configure"
 
1598
#include "confdefs.h"
 
1599
 
 
1600
int main() {
7844
1601
void *foo = 0;
7845
 
  ;
7846
 
  return 0;
7847
 
}
7848
 
_ACEOF
7849
 
rm -f conftest.$ac_objext
7850
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7851
 
  (eval $ac_compile) 2>&5
7852
 
  ac_status=$?
7853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854
 
  (exit $ac_status); } &&
7855
 
         { ac_try='test -s conftest.$ac_objext'
7856
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857
 
  (eval $ac_try) 2>&5
7858
 
  ac_status=$?
7859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860
 
  (exit $ac_status); }; }; then
7861
 
  echo "$as_me:$LINENO: result: yes" >&5
7862
 
echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
 
1602
; return 0; }
 
1603
EOF
 
1604
if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1605
  rm -rf conftest*
 
1606
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7863
1607
#define HAVE_VOID 1
7864
 
_ACEOF
 
1608
EOF
7865
1609
 
7866
1610
else
7867
 
  echo "$as_me: failed program was:" >&5
7868
 
sed 's/^/| /' conftest.$ac_ext >&5
7869
 
 
7870
 
echo "$as_me:$LINENO: result: no" >&5
7871
 
echo "${ECHO_T}no" >&6
 
1611
  echo "configure: failed program was:" >&5
 
1612
  cat conftest.$ac_ext >&5
 
1613
  rm -rf conftest*
 
1614
  echo "$ac_t""no" 1>&6
7872
1615
fi
7873
 
rm -f conftest.$ac_objext conftest.$ac_ext
7874
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7875
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7876
 
if test "${ac_cv_c_const+set}" = set; then
7877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1616
rm -f conftest*
 
1617
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
1618
echo "configure:1619: checking for working const" >&5
 
1619
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
1620
  echo $ac_n "(cached) $ac_c" 1>&6
7878
1621
else
7879
 
  cat >conftest.$ac_ext <<_ACEOF
7880
 
#line $LINENO "configure"
7881
 
/* confdefs.h.  */
7882
 
_ACEOF
7883
 
cat confdefs.h >>conftest.$ac_ext
7884
 
cat >>conftest.$ac_ext <<_ACEOF
7885
 
/* end confdefs.h.  */
7886
 
 
7887
 
int
7888
 
main ()
7889
 
{
7890
 
/* FIXME: Include the comments suggested by Paul. */
7891
 
#ifndef __cplusplus
7892
 
  /* Ultrix mips cc rejects this.  */
7893
 
  typedef int charset[2];
7894
 
  const charset x;
7895
 
  /* SunOS 4.1.1 cc rejects this.  */
7896
 
  char const *const *ccp;
7897
 
  char **p;
7898
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
7899
 
  struct point {int x, y;};
7900
 
  static struct point const zero = {0,0};
7901
 
  /* AIX XL C 1.02.0.0 rejects this.
7902
 
     It does not let you subtract one const X* pointer from another in
7903
 
     an arm of an if-expression whose if-part is not a constant
7904
 
     expression */
7905
 
  const char *g = "string";
7906
 
  ccp = &g + (g ? g-g : 0);
7907
 
  /* HPUX 7.0 cc rejects these. */
7908
 
  ++ccp;
7909
 
  p = (char**) ccp;
7910
 
  ccp = (char const *const *) p;
7911
 
  { /* SCO 3.2v4 cc rejects this.  */
7912
 
    char *t;
7913
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
7914
 
 
7915
 
    *t++ = 0;
7916
 
  }
7917
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7918
 
    int x[] = {25, 17};
7919
 
    const int *foo = &x[0];
7920
 
    ++foo;
7921
 
  }
7922
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7923
 
    typedef const int *iptr;
7924
 
    iptr p = 0;
7925
 
    ++p;
7926
 
  }
7927
 
  { /* AIX XL C 1.02.0.0 rejects this saying
7928
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7929
 
    struct s { int j; const int *ap[3]; };
7930
 
    struct s *b; b->j = 5;
7931
 
  }
7932
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7933
 
    const int foo = 10;
7934
 
  }
7935
 
#endif
7936
 
 
7937
 
  ;
7938
 
  return 0;
7939
 
}
7940
 
_ACEOF
7941
 
rm -f conftest.$ac_objext
7942
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943
 
  (eval $ac_compile) 2>&5
7944
 
  ac_status=$?
7945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946
 
  (exit $ac_status); } &&
7947
 
         { ac_try='test -s conftest.$ac_objext'
7948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949
 
  (eval $ac_try) 2>&5
7950
 
  ac_status=$?
7951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952
 
  (exit $ac_status); }; }; then
 
1622
  cat > conftest.$ac_ext <<EOF
 
1623
#line 1624 "configure"
 
1624
#include "confdefs.h"
 
1625
 
 
1626
int main() {
 
1627
 
 
1628
/* Ultrix mips cc rejects this.  */
 
1629
typedef int charset[2]; const charset x;
 
1630
/* SunOS 4.1.1 cc rejects this.  */
 
1631
char const *const *ccp;
 
1632
char **p;
 
1633
/* NEC SVR4.0.2 mips cc rejects this.  */
 
1634
struct point {int x, y;};
 
1635
static struct point const zero = {0,0};
 
1636
/* AIX XL C 1.02.0.0 rejects this.
 
1637
   It does not let you subtract one const X* pointer from another in an arm
 
1638
   of an if-expression whose if-part is not a constant expression */
 
1639
const char *g = "string";
 
1640
ccp = &g + (g ? g-g : 0);
 
1641
/* HPUX 7.0 cc rejects these. */
 
1642
++ccp;
 
1643
p = (char**) ccp;
 
1644
ccp = (char const *const *) p;
 
1645
{ /* SCO 3.2v4 cc rejects this.  */
 
1646
  char *t;
 
1647
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1648
 
 
1649
  *t++ = 0;
 
1650
}
 
1651
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1652
  int x[] = {25, 17};
 
1653
  const int *foo = &x[0];
 
1654
  ++foo;
 
1655
}
 
1656
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
1657
  typedef const int *iptr;
 
1658
  iptr p = 0;
 
1659
  ++p;
 
1660
}
 
1661
{ /* AIX XL C 1.02.0.0 rejects this saying
 
1662
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
1663
  struct s { int j; const int *ap[3]; };
 
1664
  struct s *b; b->j = 5;
 
1665
}
 
1666
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
1667
  const int foo = 10;
 
1668
}
 
1669
 
 
1670
; return 0; }
 
1671
EOF
 
1672
if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1673
  rm -rf conftest*
7953
1674
  ac_cv_c_const=yes
7954
1675
else
7955
 
  echo "$as_me: failed program was:" >&5
7956
 
sed 's/^/| /' conftest.$ac_ext >&5
 
1676
  echo "configure: failed program was:" >&5
 
1677
  cat conftest.$ac_ext >&5
 
1678
  rm -rf conftest*
 
1679
  ac_cv_c_const=no
 
1680
fi
 
1681
rm -f conftest*
 
1682
fi
7957
1683
 
7958
 
ac_cv_c_const=no
7959
 
fi
7960
 
rm -f conftest.$ac_objext conftest.$ac_ext
7961
 
fi
7962
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7963
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
1684
echo "$ac_t""$ac_cv_c_const" 1>&6
7964
1685
if test $ac_cv_c_const = no; then
7965
 
 
7966
 
cat >>confdefs.h <<\_ACEOF
7967
 
#define const
7968
 
_ACEOF
7969
 
 
7970
 
fi
7971
 
 
7972
 
echo "$as_me:$LINENO: checking for size_t" >&5
7973
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7974
 
if test "${ac_cv_type_size_t+set}" = set; then
7975
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7976
 
else
7977
 
  cat >conftest.$ac_ext <<_ACEOF
7978
 
#line $LINENO "configure"
7979
 
/* confdefs.h.  */
7980
 
_ACEOF
7981
 
cat confdefs.h >>conftest.$ac_ext
7982
 
cat >>conftest.$ac_ext <<_ACEOF
7983
 
/* end confdefs.h.  */
7984
 
$ac_includes_default
7985
 
int
7986
 
main ()
7987
 
{
7988
 
if ((size_t *) 0)
7989
 
  return 0;
7990
 
if (sizeof (size_t))
7991
 
  return 0;
7992
 
  ;
7993
 
  return 0;
7994
 
}
7995
 
_ACEOF
7996
 
rm -f conftest.$ac_objext
7997
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998
 
  (eval $ac_compile) 2>&5
7999
 
  ac_status=$?
8000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001
 
  (exit $ac_status); } &&
8002
 
         { ac_try='test -s conftest.$ac_objext'
8003
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004
 
  (eval $ac_try) 2>&5
8005
 
  ac_status=$?
8006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007
 
  (exit $ac_status); }; }; then
 
1686
  cat >> confdefs.h <<\EOF
 
1687
#define const 
 
1688
EOF
 
1689
 
 
1690
fi
 
1691
 
 
1692
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1693
echo "configure:1694: checking how to run the C preprocessor" >&5
 
1694
# On Suns, sometimes $CPP names a directory.
 
1695
if test -n "$CPP" && test -d "$CPP"; then
 
1696
  CPP=
 
1697
fi
 
1698
if test -z "$CPP"; then
 
1699
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1700
  echo $ac_n "(cached) $ac_c" 1>&6
 
1701
else
 
1702
    # This must be in double quotes, not single quotes, because CPP may get
 
1703
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1704
  CPP="${CC-cc} -E"
 
1705
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1706
  # not just through cpp.
 
1707
  cat > conftest.$ac_ext <<EOF
 
1708
#line 1709 "configure"
 
1709
#include "confdefs.h"
 
1710
#include <assert.h>
 
1711
Syntax Error
 
1712
EOF
 
1713
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1714
{ (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1715
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1716
if test -z "$ac_err"; then
 
1717
  :
 
1718
else
 
1719
  echo "$ac_err" >&5
 
1720
  echo "configure: failed program was:" >&5
 
1721
  cat conftest.$ac_ext >&5
 
1722
  rm -rf conftest*
 
1723
  CPP="${CC-cc} -E -traditional-cpp"
 
1724
  cat > conftest.$ac_ext <<EOF
 
1725
#line 1726 "configure"
 
1726
#include "confdefs.h"
 
1727
#include <assert.h>
 
1728
Syntax Error
 
1729
EOF
 
1730
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1731
{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1732
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1733
if test -z "$ac_err"; then
 
1734
  :
 
1735
else
 
1736
  echo "$ac_err" >&5
 
1737
  echo "configure: failed program was:" >&5
 
1738
  cat conftest.$ac_ext >&5
 
1739
  rm -rf conftest*
 
1740
  CPP="${CC-cc} -nologo -E"
 
1741
  cat > conftest.$ac_ext <<EOF
 
1742
#line 1743 "configure"
 
1743
#include "confdefs.h"
 
1744
#include <assert.h>
 
1745
Syntax Error
 
1746
EOF
 
1747
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1748
{ (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1749
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1750
if test -z "$ac_err"; then
 
1751
  :
 
1752
else
 
1753
  echo "$ac_err" >&5
 
1754
  echo "configure: failed program was:" >&5
 
1755
  cat conftest.$ac_ext >&5
 
1756
  rm -rf conftest*
 
1757
  CPP=/lib/cpp
 
1758
fi
 
1759
rm -f conftest*
 
1760
fi
 
1761
rm -f conftest*
 
1762
fi
 
1763
rm -f conftest*
 
1764
  ac_cv_prog_CPP="$CPP"
 
1765
fi
 
1766
  CPP="$ac_cv_prog_CPP"
 
1767
else
 
1768
  ac_cv_prog_CPP="$CPP"
 
1769
fi
 
1770
echo "$ac_t""$CPP" 1>&6
 
1771
 
 
1772
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1773
echo "configure:1774: checking for ANSI C header files" >&5
 
1774
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1775
  echo $ac_n "(cached) $ac_c" 1>&6
 
1776
else
 
1777
  cat > conftest.$ac_ext <<EOF
 
1778
#line 1779 "configure"
 
1779
#include "confdefs.h"
 
1780
#include <stdlib.h>
 
1781
#include <stdarg.h>
 
1782
#include <string.h>
 
1783
#include <float.h>
 
1784
EOF
 
1785
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1786
{ (eval echo configure:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1787
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1788
if test -z "$ac_err"; then
 
1789
  rm -rf conftest*
 
1790
  ac_cv_header_stdc=yes
 
1791
else
 
1792
  echo "$ac_err" >&5
 
1793
  echo "configure: failed program was:" >&5
 
1794
  cat conftest.$ac_ext >&5
 
1795
  rm -rf conftest*
 
1796
  ac_cv_header_stdc=no
 
1797
fi
 
1798
rm -f conftest*
 
1799
 
 
1800
if test $ac_cv_header_stdc = yes; then
 
1801
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1802
cat > conftest.$ac_ext <<EOF
 
1803
#line 1804 "configure"
 
1804
#include "confdefs.h"
 
1805
#include <string.h>
 
1806
EOF
 
1807
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1808
  egrep "memchr" >/dev/null 2>&1; then
 
1809
  :
 
1810
else
 
1811
  rm -rf conftest*
 
1812
  ac_cv_header_stdc=no
 
1813
fi
 
1814
rm -f conftest*
 
1815
 
 
1816
fi
 
1817
 
 
1818
if test $ac_cv_header_stdc = yes; then
 
1819
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1820
cat > conftest.$ac_ext <<EOF
 
1821
#line 1822 "configure"
 
1822
#include "confdefs.h"
 
1823
#include <stdlib.h>
 
1824
EOF
 
1825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1826
  egrep "free" >/dev/null 2>&1; then
 
1827
  :
 
1828
else
 
1829
  rm -rf conftest*
 
1830
  ac_cv_header_stdc=no
 
1831
fi
 
1832
rm -f conftest*
 
1833
 
 
1834
fi
 
1835
 
 
1836
if test $ac_cv_header_stdc = yes; then
 
1837
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1838
if test "$cross_compiling" = yes; then
 
1839
  :
 
1840
else
 
1841
  cat > conftest.$ac_ext <<EOF
 
1842
#line 1843 "configure"
 
1843
#include "confdefs.h"
 
1844
#include <ctype.h>
 
1845
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1846
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1847
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1848
int main () { int i; for (i = 0; i < 256; i++)
 
1849
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1850
exit (0); }
 
1851
 
 
1852
EOF
 
1853
if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1854
then
 
1855
  :
 
1856
else
 
1857
  echo "configure: failed program was:" >&5
 
1858
  cat conftest.$ac_ext >&5
 
1859
  rm -fr conftest*
 
1860
  ac_cv_header_stdc=no
 
1861
fi
 
1862
rm -fr conftest*
 
1863
fi
 
1864
 
 
1865
fi
 
1866
fi
 
1867
 
 
1868
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1869
if test $ac_cv_header_stdc = yes; then
 
1870
  cat >> confdefs.h <<\EOF
 
1871
#define STDC_HEADERS 1
 
1872
EOF
 
1873
 
 
1874
fi
 
1875
 
 
1876
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
1877
echo "configure:1878: checking for size_t" >&5
 
1878
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
1879
  echo $ac_n "(cached) $ac_c" 1>&6
 
1880
else
 
1881
  cat > conftest.$ac_ext <<EOF
 
1882
#line 1883 "configure"
 
1883
#include "confdefs.h"
 
1884
#include <sys/types.h>
 
1885
#if STDC_HEADERS
 
1886
#include <stdlib.h>
 
1887
#include <stddef.h>
 
1888
#endif
 
1889
EOF
 
1890
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1891
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1892
  rm -rf conftest*
8008
1893
  ac_cv_type_size_t=yes
8009
1894
else
8010
 
  echo "$as_me: failed program was:" >&5
8011
 
sed 's/^/| /' conftest.$ac_ext >&5
8012
 
 
8013
 
ac_cv_type_size_t=no
8014
 
fi
8015
 
rm -f conftest.$ac_objext conftest.$ac_ext
8016
 
fi
8017
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8018
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8019
 
if test $ac_cv_type_size_t = yes; then
8020
 
  :
8021
 
else
8022
 
 
8023
 
cat >>confdefs.h <<_ACEOF
 
1895
  rm -rf conftest*
 
1896
  ac_cv_type_size_t=no
 
1897
fi
 
1898
rm -f conftest*
 
1899
 
 
1900
fi
 
1901
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
1902
if test $ac_cv_type_size_t = no; then
 
1903
  cat >> confdefs.h <<\EOF
8024
1904
#define size_t unsigned
8025
 
_ACEOF
 
1905
EOF
8026
1906
 
8027
1907
fi
8028
1908
 
8029
 
echo "$as_me:$LINENO: checking for pid_t" >&5
8030
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8031
 
if test "${ac_cv_type_pid_t+set}" = set; then
8032
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1909
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
 
1910
echo "configure:1911: checking for pid_t" >&5
 
1911
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
 
1912
  echo $ac_n "(cached) $ac_c" 1>&6
8033
1913
else
8034
 
  cat >conftest.$ac_ext <<_ACEOF
8035
 
#line $LINENO "configure"
8036
 
/* confdefs.h.  */
8037
 
_ACEOF
8038
 
cat confdefs.h >>conftest.$ac_ext
8039
 
cat >>conftest.$ac_ext <<_ACEOF
8040
 
/* end confdefs.h.  */
8041
 
$ac_includes_default
8042
 
int
8043
 
main ()
8044
 
{
8045
 
if ((pid_t *) 0)
8046
 
  return 0;
8047
 
if (sizeof (pid_t))
8048
 
  return 0;
8049
 
  ;
8050
 
  return 0;
8051
 
}
8052
 
_ACEOF
8053
 
rm -f conftest.$ac_objext
8054
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055
 
  (eval $ac_compile) 2>&5
8056
 
  ac_status=$?
8057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058
 
  (exit $ac_status); } &&
8059
 
         { ac_try='test -s conftest.$ac_objext'
8060
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061
 
  (eval $ac_try) 2>&5
8062
 
  ac_status=$?
8063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064
 
  (exit $ac_status); }; }; then
 
1914
  cat > conftest.$ac_ext <<EOF
 
1915
#line 1916 "configure"
 
1916
#include "confdefs.h"
 
1917
#include <sys/types.h>
 
1918
#if STDC_HEADERS
 
1919
#include <stdlib.h>
 
1920
#include <stddef.h>
 
1921
#endif
 
1922
EOF
 
1923
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1924
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1925
  rm -rf conftest*
8065
1926
  ac_cv_type_pid_t=yes
8066
1927
else
8067
 
  echo "$as_me: failed program was:" >&5
8068
 
sed 's/^/| /' conftest.$ac_ext >&5
8069
 
 
8070
 
ac_cv_type_pid_t=no
8071
 
fi
8072
 
rm -f conftest.$ac_objext conftest.$ac_ext
8073
 
fi
8074
 
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8075
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8076
 
if test $ac_cv_type_pid_t = yes; then
8077
 
  :
8078
 
else
8079
 
 
8080
 
cat >>confdefs.h <<_ACEOF
 
1928
  rm -rf conftest*
 
1929
  ac_cv_type_pid_t=no
 
1930
fi
 
1931
rm -f conftest*
 
1932
 
 
1933
fi
 
1934
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
 
1935
if test $ac_cv_type_pid_t = no; then
 
1936
  cat >> confdefs.h <<\EOF
8081
1937
#define pid_t int
8082
 
_ACEOF
 
1938
EOF
8083
1939
 
8084
1940
fi
8085
1941
 
8086
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8087
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8088
 
if test "${ac_cv_type_signal+set}" = set; then
8089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1942
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 
1943
echo "configure:1944: checking return type of signal handlers" >&5
 
1944
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
 
1945
  echo $ac_n "(cached) $ac_c" 1>&6
8090
1946
else
8091
 
  cat >conftest.$ac_ext <<_ACEOF
8092
 
#line $LINENO "configure"
8093
 
/* confdefs.h.  */
8094
 
_ACEOF
8095
 
cat confdefs.h >>conftest.$ac_ext
8096
 
cat >>conftest.$ac_ext <<_ACEOF
8097
 
/* end confdefs.h.  */
 
1947
  cat > conftest.$ac_ext <<EOF
 
1948
#line 1949 "configure"
 
1949
#include "confdefs.h"
8098
1950
#include <sys/types.h>
8099
1951
#include <signal.h>
8100
1952
#ifdef signal
8101
 
# undef signal
 
1953
#undef signal
8102
1954
#endif
8103
1955
#ifdef __cplusplus
8104
1956
extern "C" void (*signal (int, void (*)(int)))(int);
8106
1958
void (*signal ()) ();
8107
1959
#endif
8108
1960
 
8109
 
int
8110
 
main ()
8111
 
{
 
1961
int main() {
8112
1962
int i;
8113
 
  ;
8114
 
  return 0;
8115
 
}
8116
 
_ACEOF
8117
 
rm -f conftest.$ac_objext
8118
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119
 
  (eval $ac_compile) 2>&5
8120
 
  ac_status=$?
8121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122
 
  (exit $ac_status); } &&
8123
 
         { ac_try='test -s conftest.$ac_objext'
8124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125
 
  (eval $ac_try) 2>&5
8126
 
  ac_status=$?
8127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128
 
  (exit $ac_status); }; }; then
 
1963
; return 0; }
 
1964
EOF
 
1965
if { (eval echo configure:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1966
  rm -rf conftest*
8129
1967
  ac_cv_type_signal=void
8130
1968
else
8131
 
  echo "$as_me: failed program was:" >&5
8132
 
sed 's/^/| /' conftest.$ac_ext >&5
8133
 
 
8134
 
ac_cv_type_signal=int
8135
 
fi
8136
 
rm -f conftest.$ac_objext conftest.$ac_ext
8137
 
fi
8138
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8139
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
8140
 
 
8141
 
cat >>confdefs.h <<_ACEOF
 
1969
  echo "configure: failed program was:" >&5
 
1970
  cat conftest.$ac_ext >&5
 
1971
  rm -rf conftest*
 
1972
  ac_cv_type_signal=int
 
1973
fi
 
1974
rm -f conftest*
 
1975
fi
 
1976
 
 
1977
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
1978
cat >> confdefs.h <<EOF
8142
1979
#define RETSIGTYPE $ac_cv_type_signal
8143
 
_ACEOF
8144
 
 
8145
 
 
8146
 
 
8147
 
echo "$as_me:$LINENO: checking whether flushing a null FILE pointer works" >&5
8148
 
echo $ECHO_N "checking whether flushing a null FILE pointer works... $ECHO_C" >&6
 
1980
EOF
 
1981
 
 
1982
 
 
1983
 
 
1984
echo $ac_n "checking whether flushing a null FILE pointer works""... $ac_c" 1>&6
 
1985
echo "configure:1986: checking whether flushing a null FILE pointer works" >&5
8149
1986
if test "$cross_compiling" = yes; then
8150
 
  echo "$as_me:$LINENO: result: no" >&5
8151
 
echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
 
1987
  echo "$ac_t""no" 1>&6; cat >> confdefs.h <<\EOF
8152
1988
#define DONT_HAVE_NULL_FLUSH 1
8153
 
_ACEOF
 
1989
EOF
8154
1990
 
8155
1991
else
8156
 
  cat >conftest.$ac_ext <<_ACEOF
8157
 
#line $LINENO "configure"
8158
 
/* confdefs.h.  */
8159
 
_ACEOF
8160
 
cat confdefs.h >>conftest.$ac_ext
8161
 
cat >>conftest.$ac_ext <<_ACEOF
8162
 
/* end confdefs.h.  */
 
1992
  cat > conftest.$ac_ext <<EOF
 
1993
#line 1994 "configure"
 
1994
#include "confdefs.h"
8163
1995
 
8164
1996
#include <stdio.h>
8165
1997
int main()
8175
2007
    exit (1);
8176
2008
  else
8177
2009
    exit(0); }
8178
 
_ACEOF
8179
 
rm -f conftest$ac_exeext
8180
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181
 
  (eval $ac_link) 2>&5
8182
 
  ac_status=$?
8183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186
 
  (eval $ac_try) 2>&5
8187
 
  ac_status=$?
8188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
 
  (exit $ac_status); }; }; then
8190
 
  echo "$as_me:$LINENO: result: yes" >&5
8191
 
echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
 
2010
EOF
 
2011
if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2012
then
 
2013
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
8192
2014
#define HAVE_NULL_FLUSH 1
8193
 
_ACEOF
 
2015
EOF
8194
2016
 
8195
2017
else
8196
 
  echo "$as_me: program exited with status $ac_status" >&5
8197
 
echo "$as_me: failed program was:" >&5
8198
 
sed 's/^/| /' conftest.$ac_ext >&5
8199
 
 
8200
 
( exit $ac_status )
8201
 
echo "$as_me:$LINENO: result: no" >&5
8202
 
echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
 
2018
  echo "configure: failed program was:" >&5
 
2019
  cat conftest.$ac_ext >&5
 
2020
  rm -fr conftest*
 
2021
  echo "$ac_t""no" 1>&6; cat >> confdefs.h <<\EOF
8203
2022
#define DONT_HAVE_NULL_FLUSH 1
8204
 
_ACEOF
8205
 
 
8206
 
fi
8207
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8208
 
fi
8209
 
 
8210
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8211
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8212
 
if test "${ac_cv_header_stdc+set}" = set; then
8213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2023
EOF
 
2024
 
 
2025
fi
 
2026
rm -fr conftest*
 
2027
fi
 
2028
 
 
2029
 
 
2030
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
2031
echo "configure:2032: checking for ANSI C header files" >&5
 
2032
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
2033
  echo $ac_n "(cached) $ac_c" 1>&6
8214
2034
else
8215
 
  cat >conftest.$ac_ext <<_ACEOF
8216
 
#line $LINENO "configure"
8217
 
/* confdefs.h.  */
8218
 
_ACEOF
8219
 
cat confdefs.h >>conftest.$ac_ext
8220
 
cat >>conftest.$ac_ext <<_ACEOF
8221
 
/* end confdefs.h.  */
 
2035
  cat > conftest.$ac_ext <<EOF
 
2036
#line 2037 "configure"
 
2037
#include "confdefs.h"
8222
2038
#include <stdlib.h>
8223
2039
#include <stdarg.h>
8224
2040
#include <string.h>
8225
2041
#include <float.h>
8226
 
 
8227
 
int
8228
 
main ()
8229
 
{
8230
 
 
8231
 
  ;
8232
 
  return 0;
8233
 
}
8234
 
_ACEOF
8235
 
rm -f conftest.$ac_objext
8236
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237
 
  (eval $ac_compile) 2>&5
8238
 
  ac_status=$?
8239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240
 
  (exit $ac_status); } &&
8241
 
         { ac_try='test -s conftest.$ac_objext'
8242
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243
 
  (eval $ac_try) 2>&5
8244
 
  ac_status=$?
8245
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246
 
  (exit $ac_status); }; }; then
 
2042
EOF
 
2043
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2044
{ (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2045
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2046
if test -z "$ac_err"; then
 
2047
  rm -rf conftest*
8247
2048
  ac_cv_header_stdc=yes
8248
2049
else
8249
 
  echo "$as_me: failed program was:" >&5
8250
 
sed 's/^/| /' conftest.$ac_ext >&5
8251
 
 
8252
 
ac_cv_header_stdc=no
 
2050
  echo "$ac_err" >&5
 
2051
  echo "configure: failed program was:" >&5
 
2052
  cat conftest.$ac_ext >&5
 
2053
  rm -rf conftest*
 
2054
  ac_cv_header_stdc=no
8253
2055
fi
8254
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2056
rm -f conftest*
8255
2057
 
8256
2058
if test $ac_cv_header_stdc = yes; then
8257
2059
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8258
 
  cat >conftest.$ac_ext <<_ACEOF
8259
 
#line $LINENO "configure"
8260
 
/* confdefs.h.  */
8261
 
_ACEOF
8262
 
cat confdefs.h >>conftest.$ac_ext
8263
 
cat >>conftest.$ac_ext <<_ACEOF
8264
 
/* end confdefs.h.  */
 
2060
cat > conftest.$ac_ext <<EOF
 
2061
#line 2062 "configure"
 
2062
#include "confdefs.h"
8265
2063
#include <string.h>
8266
 
 
8267
 
_ACEOF
 
2064
EOF
8268
2065
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8269
 
  $EGREP "memchr" >/dev/null 2>&1; then
 
2066
  egrep "memchr" >/dev/null 2>&1; then
8270
2067
  :
8271
2068
else
 
2069
  rm -rf conftest*
8272
2070
  ac_cv_header_stdc=no
8273
2071
fi
8274
2072
rm -f conftest*
8277
2075
 
8278
2076
if test $ac_cv_header_stdc = yes; then
8279
2077
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8280
 
  cat >conftest.$ac_ext <<_ACEOF
8281
 
#line $LINENO "configure"
8282
 
/* confdefs.h.  */
8283
 
_ACEOF
8284
 
cat confdefs.h >>conftest.$ac_ext
8285
 
cat >>conftest.$ac_ext <<_ACEOF
8286
 
/* end confdefs.h.  */
 
2078
cat > conftest.$ac_ext <<EOF
 
2079
#line 2080 "configure"
 
2080
#include "confdefs.h"
8287
2081
#include <stdlib.h>
8288
 
 
8289
 
_ACEOF
 
2082
EOF
8290
2083
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8291
 
  $EGREP "free" >/dev/null 2>&1; then
 
2084
  egrep "free" >/dev/null 2>&1; then
8292
2085
  :
8293
2086
else
 
2087
  rm -rf conftest*
8294
2088
  ac_cv_header_stdc=no
8295
2089
fi
8296
2090
rm -f conftest*
8299
2093
 
8300
2094
if test $ac_cv_header_stdc = yes; then
8301
2095
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8302
 
  if test "$cross_compiling" = yes; then
 
2096
if test "$cross_compiling" = yes; then
8303
2097
  :
8304
2098
else
8305
 
  cat >conftest.$ac_ext <<_ACEOF
8306
 
#line $LINENO "configure"
8307
 
/* confdefs.h.  */
8308
 
_ACEOF
8309
 
cat confdefs.h >>conftest.$ac_ext
8310
 
cat >>conftest.$ac_ext <<_ACEOF
8311
 
/* end confdefs.h.  */
 
2099
  cat > conftest.$ac_ext <<EOF
 
2100
#line 2101 "configure"
 
2101
#include "confdefs.h"
8312
2102
#include <ctype.h>
8313
 
#if ((' ' & 0x0FF) == 0x020)
8314
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8315
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8316
 
#else
8317
 
# define ISLOWER(c) \
8318
 
                   (('a' <= (c) && (c) <= 'i') \
8319
 
                     || ('j' <= (c) && (c) <= 'r') \
8320
 
                     || ('s' <= (c) && (c) <= 'z'))
8321
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8322
 
#endif
8323
 
 
 
2103
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2104
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8324
2105
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8325
 
int
8326
 
main ()
8327
 
{
8328
 
  int i;
8329
 
  for (i = 0; i < 256; i++)
8330
 
    if (XOR (islower (i), ISLOWER (i))
8331
 
        || toupper (i) != TOUPPER (i))
8332
 
      exit(2);
8333
 
  exit (0);
8334
 
}
8335
 
_ACEOF
8336
 
rm -f conftest$ac_exeext
8337
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338
 
  (eval $ac_link) 2>&5
8339
 
  ac_status=$?
8340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8342
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343
 
  (eval $ac_try) 2>&5
8344
 
  ac_status=$?
8345
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346
 
  (exit $ac_status); }; }; then
 
2106
int main () { int i; for (i = 0; i < 256; i++)
 
2107
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
2108
exit (0); }
 
2109
 
 
2110
EOF
 
2111
if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2112
then
8347
2113
  :
8348
2114
else
8349
 
  echo "$as_me: program exited with status $ac_status" >&5
8350
 
echo "$as_me: failed program was:" >&5
8351
 
sed 's/^/| /' conftest.$ac_ext >&5
8352
 
 
8353
 
( exit $ac_status )
8354
 
ac_cv_header_stdc=no
8355
 
fi
8356
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8357
 
fi
8358
 
fi
8359
 
fi
8360
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8361
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
2115
  echo "configure: failed program was:" >&5
 
2116
  cat conftest.$ac_ext >&5
 
2117
  rm -fr conftest*
 
2118
  ac_cv_header_stdc=no
 
2119
fi
 
2120
rm -fr conftest*
 
2121
fi
 
2122
 
 
2123
fi
 
2124
fi
 
2125
 
 
2126
echo "$ac_t""$ac_cv_header_stdc" 1>&6
8362
2127
if test $ac_cv_header_stdc = yes; then
8363
 
 
8364
 
cat >>confdefs.h <<\_ACEOF
 
2128
  cat >> confdefs.h <<\EOF
8365
2129
#define STDC_HEADERS 1
8366
 
_ACEOF
8367
 
 
8368
 
fi
8369
 
 
8370
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8371
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8372
 
if test "${ac_cv_header_time+set}" = set; then
8373
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8374
 
else
8375
 
  cat >conftest.$ac_ext <<_ACEOF
8376
 
#line $LINENO "configure"
8377
 
/* confdefs.h.  */
8378
 
_ACEOF
8379
 
cat confdefs.h >>conftest.$ac_ext
8380
 
cat >>conftest.$ac_ext <<_ACEOF
8381
 
/* end confdefs.h.  */
 
2130
EOF
 
2131
 
 
2132
fi
 
2133
 
 
2134
for ac_hdr in string.h limits.h float.h
 
2135
do
 
2136
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
2137
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
2138
echo "configure:2139: checking for $ac_hdr" >&5
 
2139
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2140
  echo $ac_n "(cached) $ac_c" 1>&6
 
2141
else
 
2142
  cat > conftest.$ac_ext <<EOF
 
2143
#line 2144 "configure"
 
2144
#include "confdefs.h"
 
2145
#include <$ac_hdr>
 
2146
EOF
 
2147
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2148
{ (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2149
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2150
if test -z "$ac_err"; then
 
2151
  rm -rf conftest*
 
2152
  eval "ac_cv_header_$ac_safe=yes"
 
2153
else
 
2154
  echo "$ac_err" >&5
 
2155
  echo "configure: failed program was:" >&5
 
2156
  cat conftest.$ac_ext >&5
 
2157
  rm -rf conftest*
 
2158
  eval "ac_cv_header_$ac_safe=no"
 
2159
fi
 
2160
rm -f conftest*
 
2161
fi
 
2162
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2163
  echo "$ac_t""yes" 1>&6
 
2164
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
2165
  cat >> confdefs.h <<EOF
 
2166
#define $ac_tr_hdr 1
 
2167
EOF
 
2168
 
 
2169
else
 
2170
  echo "$ac_t""no" 1>&6
 
2171
fi
 
2172
done
 
2173
 
 
2174
for ac_hdr in malloc.h pthread.h strings.h unistd.h values.h sys/select.h sys/stdtypes.h sys/time.h sys/types.h sys/wait.h
 
2175
do
 
2176
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
2177
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
2178
echo "configure:2179: checking for $ac_hdr" >&5
 
2179
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2180
  echo $ac_n "(cached) $ac_c" 1>&6
 
2181
else
 
2182
  cat > conftest.$ac_ext <<EOF
 
2183
#line 2184 "configure"
 
2184
#include "confdefs.h"
 
2185
#include <$ac_hdr>
 
2186
EOF
 
2187
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2188
{ (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2189
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2190
if test -z "$ac_err"; then
 
2191
  rm -rf conftest*
 
2192
  eval "ac_cv_header_$ac_safe=yes"
 
2193
else
 
2194
  echo "$ac_err" >&5
 
2195
  echo "configure: failed program was:" >&5
 
2196
  cat conftest.$ac_ext >&5
 
2197
  rm -rf conftest*
 
2198
  eval "ac_cv_header_$ac_safe=no"
 
2199
fi
 
2200
rm -f conftest*
 
2201
fi
 
2202
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2203
  echo "$ac_t""yes" 1>&6
 
2204
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
2205
  cat >> confdefs.h <<EOF
 
2206
#define $ac_tr_hdr 1
 
2207
EOF
 
2208
 
 
2209
else
 
2210
  echo "$ac_t""no" 1>&6
 
2211
fi
 
2212
done
 
2213
 
 
2214
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
 
2215
echo "configure:2216: checking whether time.h and sys/time.h may both be included" >&5
 
2216
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
 
2217
  echo $ac_n "(cached) $ac_c" 1>&6
 
2218
else
 
2219
  cat > conftest.$ac_ext <<EOF
 
2220
#line 2221 "configure"
 
2221
#include "confdefs.h"
8382
2222
#include <sys/types.h>
8383
2223
#include <sys/time.h>
8384
2224
#include <time.h>
8385
 
 
8386
 
int
8387
 
main ()
8388
 
{
8389
 
if ((struct tm *) 0)
8390
 
return 0;
8391
 
  ;
8392
 
  return 0;
8393
 
}
8394
 
_ACEOF
8395
 
rm -f conftest.$ac_objext
8396
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397
 
  (eval $ac_compile) 2>&5
8398
 
  ac_status=$?
8399
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400
 
  (exit $ac_status); } &&
8401
 
         { ac_try='test -s conftest.$ac_objext'
8402
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403
 
  (eval $ac_try) 2>&5
8404
 
  ac_status=$?
8405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406
 
  (exit $ac_status); }; }; then
 
2225
int main() {
 
2226
struct tm *tp;
 
2227
; return 0; }
 
2228
EOF
 
2229
if { (eval echo configure:2230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2230
  rm -rf conftest*
8407
2231
  ac_cv_header_time=yes
8408
2232
else
8409
 
  echo "$as_me: failed program was:" >&5
8410
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2233
  echo "configure: failed program was:" >&5
 
2234
  cat conftest.$ac_ext >&5
 
2235
  rm -rf conftest*
 
2236
  ac_cv_header_time=no
 
2237
fi
 
2238
rm -f conftest*
 
2239
fi
8411
2240
 
8412
 
ac_cv_header_time=no
8413
 
fi
8414
 
rm -f conftest.$ac_objext conftest.$ac_ext
8415
 
fi
8416
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8417
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
2241
echo "$ac_t""$ac_cv_header_time" 1>&6
8418
2242
if test $ac_cv_header_time = yes; then
8419
 
 
8420
 
cat >>confdefs.h <<\_ACEOF
 
2243
  cat >> confdefs.h <<\EOF
8421
2244
#define TIME_WITH_SYS_TIME 1
8422
 
_ACEOF
8423
 
 
8424
 
fi
8425
 
 
8426
 
 
8427
 
 
8428
 
 
8429
 
 
8430
 
 
8431
 
 
8432
 
 
8433
 
 
8434
 
 
8435
 
 
8436
 
 
8437
 
 
8438
 
 
8439
 
for ac_header in string.h limits.h float.h malloc.h pthread.h \
8440
 
                 strings.h unistd.h values.h sys/select.h \
8441
 
                 sys/stdtypes.h sys/time.h sys/types.h sys/wait.h
8442
 
do
8443
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8444
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8446
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8447
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8448
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8449
 
fi
8450
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8451
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8452
 
else
8453
 
  # Is the header compilable?
8454
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8455
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8456
 
cat >conftest.$ac_ext <<_ACEOF
8457
 
#line $LINENO "configure"
8458
 
/* confdefs.h.  */
8459
 
_ACEOF
8460
 
cat confdefs.h >>conftest.$ac_ext
8461
 
cat >>conftest.$ac_ext <<_ACEOF
8462
 
/* end confdefs.h.  */
8463
 
$ac_includes_default
8464
 
#include <$ac_header>
8465
 
_ACEOF
8466
 
rm -f conftest.$ac_objext
8467
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468
 
  (eval $ac_compile) 2>&5
8469
 
  ac_status=$?
8470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471
 
  (exit $ac_status); } &&
8472
 
         { ac_try='test -s conftest.$ac_objext'
8473
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474
 
  (eval $ac_try) 2>&5
8475
 
  ac_status=$?
8476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477
 
  (exit $ac_status); }; }; then
8478
 
  ac_header_compiler=yes
8479
 
else
8480
 
  echo "$as_me: failed program was:" >&5
8481
 
sed 's/^/| /' conftest.$ac_ext >&5
8482
 
 
8483
 
ac_header_compiler=no
8484
 
fi
8485
 
rm -f conftest.$ac_objext conftest.$ac_ext
8486
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8487
 
echo "${ECHO_T}$ac_header_compiler" >&6
8488
 
 
8489
 
# Is the header present?
8490
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8491
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8492
 
cat >conftest.$ac_ext <<_ACEOF
8493
 
#line $LINENO "configure"
8494
 
/* confdefs.h.  */
8495
 
_ACEOF
8496
 
cat confdefs.h >>conftest.$ac_ext
8497
 
cat >>conftest.$ac_ext <<_ACEOF
8498
 
/* end confdefs.h.  */
8499
 
#include <$ac_header>
8500
 
_ACEOF
8501
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503
 
  ac_status=$?
8504
 
  grep -v '^ *+' conftest.er1 >conftest.err
8505
 
  rm -f conftest.er1
8506
 
  cat conftest.err >&5
8507
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508
 
  (exit $ac_status); } >/dev/null; then
8509
 
  if test -s conftest.err; then
8510
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8511
 
  else
8512
 
    ac_cpp_err=
8513
 
  fi
8514
 
else
8515
 
  ac_cpp_err=yes
8516
 
fi
8517
 
if test -z "$ac_cpp_err"; then
8518
 
  ac_header_preproc=yes
8519
 
else
8520
 
  echo "$as_me: failed program was:" >&5
8521
 
sed 's/^/| /' conftest.$ac_ext >&5
8522
 
 
8523
 
  ac_header_preproc=no
8524
 
fi
8525
 
rm -f conftest.err conftest.$ac_ext
8526
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527
 
echo "${ECHO_T}$ac_header_preproc" >&6
8528
 
 
8529
 
# So?  What about this header?
8530
 
case $ac_header_compiler:$ac_header_preproc in
8531
 
  yes:no )
8532
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8533
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8535
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8536
 
    (
8537
 
      cat <<\_ASBOX
8538
 
## ------------------------------------ ##
8539
 
## Report this to bug-autoconf@gnu.org. ##
8540
 
## ------------------------------------ ##
8541
 
_ASBOX
8542
 
    ) |
8543
 
      sed "s/^/$as_me: WARNING:     /" >&2
8544
 
    ;;
8545
 
  no:yes )
8546
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8547
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8548
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8549
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8550
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8551
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8552
 
    (
8553
 
      cat <<\_ASBOX
8554
 
## ------------------------------------ ##
8555
 
## Report this to bug-autoconf@gnu.org. ##
8556
 
## ------------------------------------ ##
8557
 
_ASBOX
8558
 
    ) |
8559
 
      sed "s/^/$as_me: WARNING:     /" >&2
8560
 
    ;;
8561
 
esac
8562
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8563
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8564
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8565
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8566
 
else
8567
 
  eval "$as_ac_Header=$ac_header_preproc"
8568
 
fi
8569
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8570
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8571
 
 
8572
 
fi
8573
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8574
 
  cat >>confdefs.h <<_ACEOF
8575
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8576
 
_ACEOF
8577
 
 
8578
 
fi
8579
 
 
8580
 
done
8581
 
 
8582
 
 
8583
 
 
8584
 
cat >conftest.$ac_ext <<_ACEOF
8585
 
#line $LINENO "configure"
8586
 
/* confdefs.h.  */
8587
 
_ACEOF
8588
 
cat confdefs.h >>conftest.$ac_ext
8589
 
cat >>conftest.$ac_ext <<_ACEOF
8590
 
/* end confdefs.h.  */
8591
 
#include <math.h>
8592
 
 
8593
 
_ACEOF
8594
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8595
 
  $EGREP "_HPUX_SOURCE" >/dev/null 2>&1; then
8596
 
  cat >conftest.$ac_ext <<_ACEOF
8597
 
#line $LINENO "configure"
8598
 
/* confdefs.h.  */
8599
 
_ACEOF
8600
 
cat confdefs.h >>conftest.$ac_ext
8601
 
cat >>conftest.$ac_ext <<_ACEOF
8602
 
/* end confdefs.h.  */
8603
 
#include <math.h>
8604
 
 
8605
 
_ACEOF
8606
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607
 
  $EGREP "matherr" >/dev/null 2>&1; then
8608
 
  cat >>confdefs.h <<\_ACEOF
 
2245
EOF
 
2246
 
 
2247
fi
 
2248
 
 
2249
 
 
2250
cat > conftest.$ac_ext <<EOF
 
2251
#line 2252 "configure"
 
2252
#include "confdefs.h"
 
2253
#include <math.h>
 
2254
EOF
 
2255
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2256
  egrep "_HPUX_SOURCE" >/dev/null 2>&1; then
 
2257
  rm -rf conftest*
 
2258
  cat > conftest.$ac_ext <<EOF
 
2259
#line 2260 "configure"
 
2260
#include "confdefs.h"
 
2261
#include <math.h>
 
2262
EOF
 
2263
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2264
  egrep "matherr" >/dev/null 2>&1; then
 
2265
  rm -rf conftest*
 
2266
  cat >> confdefs.h <<\EOF
8609
2267
#define _HPUX_SOURCE 1
8610
 
_ACEOF
 
2268
EOF
8611
2269
 
8612
2270
fi
8613
2271
rm -f conftest*
8618
2276
 
8619
2277
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8620
2278
# for constant arguments.  Useless!
8621
 
echo "$as_me:$LINENO: checking for working alloca.h" >&5
8622
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8623
 
if test "${ac_cv_working_alloca_h+set}" = set; then
8624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2279
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
2280
echo "configure:2281: checking for working alloca.h" >&5
 
2281
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
2282
  echo $ac_n "(cached) $ac_c" 1>&6
8625
2283
else
8626
 
  cat >conftest.$ac_ext <<_ACEOF
8627
 
#line $LINENO "configure"
8628
 
/* confdefs.h.  */
8629
 
_ACEOF
8630
 
cat confdefs.h >>conftest.$ac_ext
8631
 
cat >>conftest.$ac_ext <<_ACEOF
8632
 
/* end confdefs.h.  */
 
2284
  cat > conftest.$ac_ext <<EOF
 
2285
#line 2286 "configure"
 
2286
#include "confdefs.h"
8633
2287
#include <alloca.h>
8634
 
int
8635
 
main ()
8636
 
{
8637
 
char *p = (char *) alloca (2 * sizeof (int));
8638
 
  ;
8639
 
  return 0;
8640
 
}
8641
 
_ACEOF
8642
 
rm -f conftest.$ac_objext conftest$ac_exeext
8643
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644
 
  (eval $ac_link) 2>&5
8645
 
  ac_status=$?
8646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
 
  (exit $ac_status); } &&
8648
 
         { ac_try='test -s conftest$ac_exeext'
8649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650
 
  (eval $ac_try) 2>&5
8651
 
  ac_status=$?
8652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653
 
  (exit $ac_status); }; }; then
8654
 
  ac_cv_working_alloca_h=yes
 
2288
int main() {
 
2289
char *p = alloca(2 * sizeof(int));
 
2290
; return 0; }
 
2291
EOF
 
2292
if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2293
  rm -rf conftest*
 
2294
  ac_cv_header_alloca_h=yes
8655
2295
else
8656
 
  echo "$as_me: failed program was:" >&5
8657
 
sed 's/^/| /' conftest.$ac_ext >&5
8658
 
 
8659
 
ac_cv_working_alloca_h=no
8660
 
fi
8661
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8662
 
fi
8663
 
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8664
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8665
 
if test $ac_cv_working_alloca_h = yes; then
8666
 
 
8667
 
cat >>confdefs.h <<\_ACEOF
 
2296
  echo "configure: failed program was:" >&5
 
2297
  cat conftest.$ac_ext >&5
 
2298
  rm -rf conftest*
 
2299
  ac_cv_header_alloca_h=no
 
2300
fi
 
2301
rm -f conftest*
 
2302
fi
 
2303
 
 
2304
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
2305
if test $ac_cv_header_alloca_h = yes; then
 
2306
  cat >> confdefs.h <<\EOF
8668
2307
#define HAVE_ALLOCA_H 1
8669
 
_ACEOF
 
2308
EOF
8670
2309
 
8671
2310
fi
8672
2311
 
8673
 
echo "$as_me:$LINENO: checking for alloca" >&5
8674
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8675
 
if test "${ac_cv_func_alloca_works+set}" = set; then
8676
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2312
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
2313
echo "configure:2314: checking for alloca" >&5
 
2314
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
2315
  echo $ac_n "(cached) $ac_c" 1>&6
8677
2316
else
8678
 
  cat >conftest.$ac_ext <<_ACEOF
8679
 
#line $LINENO "configure"
8680
 
/* confdefs.h.  */
8681
 
_ACEOF
8682
 
cat confdefs.h >>conftest.$ac_ext
8683
 
cat >>conftest.$ac_ext <<_ACEOF
8684
 
/* end confdefs.h.  */
 
2317
  cat > conftest.$ac_ext <<EOF
 
2318
#line 2319 "configure"
 
2319
#include "confdefs.h"
 
2320
 
8685
2321
#ifdef __GNUC__
8686
2322
# define alloca __builtin_alloca
8687
2323
#else
8703
2339
# endif
8704
2340
#endif
8705
2341
 
8706
 
int
8707
 
main ()
8708
 
{
8709
 
char *p = (char *) alloca (1);
8710
 
  ;
8711
 
  return 0;
8712
 
}
8713
 
_ACEOF
8714
 
rm -f conftest.$ac_objext conftest$ac_exeext
8715
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716
 
  (eval $ac_link) 2>&5
8717
 
  ac_status=$?
8718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
 
  (exit $ac_status); } &&
8720
 
         { ac_try='test -s conftest$ac_exeext'
8721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722
 
  (eval $ac_try) 2>&5
8723
 
  ac_status=$?
8724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
 
  (exit $ac_status); }; }; then
 
2342
int main() {
 
2343
char *p = (char *) alloca(1);
 
2344
; return 0; }
 
2345
EOF
 
2346
if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2347
  rm -rf conftest*
8726
2348
  ac_cv_func_alloca_works=yes
8727
2349
else
8728
 
  echo "$as_me: failed program was:" >&5
8729
 
sed 's/^/| /' conftest.$ac_ext >&5
8730
 
 
8731
 
ac_cv_func_alloca_works=no
8732
 
fi
8733
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8734
 
fi
8735
 
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8736
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8737
 
 
 
2350
  echo "configure: failed program was:" >&5
 
2351
  cat conftest.$ac_ext >&5
 
2352
  rm -rf conftest*
 
2353
  ac_cv_func_alloca_works=no
 
2354
fi
 
2355
rm -f conftest*
 
2356
fi
 
2357
 
 
2358
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8738
2359
if test $ac_cv_func_alloca_works = yes; then
8739
 
 
8740
 
cat >>confdefs.h <<\_ACEOF
 
2360
  cat >> confdefs.h <<\EOF
8741
2361
#define HAVE_ALLOCA 1
8742
 
_ACEOF
8743
 
 
8744
 
else
 
2362
EOF
 
2363
 
 
2364
fi
 
2365
 
 
2366
if test $ac_cv_func_alloca_works = no; then
8745
2367
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8746
 
# that cause trouble.  Some versions do not even contain alloca or
8747
 
# contain a buggy version.  If you still want to use their alloca,
8748
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
8749
 
 
8750
 
ALLOCA=alloca.$ac_objext
8751
 
 
8752
 
cat >>confdefs.h <<\_ACEOF
 
2368
  # that cause trouble.  Some versions do not even contain alloca or
 
2369
  # contain a buggy version.  If you still want to use their alloca,
 
2370
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
2371
  ALLOCA=alloca.${ac_objext}
 
2372
  cat >> confdefs.h <<\EOF
8753
2373
#define C_ALLOCA 1
8754
 
_ACEOF
8755
 
 
8756
 
 
8757
 
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8758
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8759
 
if test "${ac_cv_os_cray+set}" = set; then
8760
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2374
EOF
 
2375
 
 
2376
 
 
2377
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
2378
echo "configure:2379: checking whether alloca needs Cray hooks" >&5
 
2379
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
2380
  echo $ac_n "(cached) $ac_c" 1>&6
8761
2381
else
8762
 
  cat >conftest.$ac_ext <<_ACEOF
8763
 
#line $LINENO "configure"
8764
 
/* confdefs.h.  */
8765
 
_ACEOF
8766
 
cat confdefs.h >>conftest.$ac_ext
8767
 
cat >>conftest.$ac_ext <<_ACEOF
8768
 
/* end confdefs.h.  */
 
2382
  cat > conftest.$ac_ext <<EOF
 
2383
#line 2384 "configure"
 
2384
#include "confdefs.h"
8769
2385
#if defined(CRAY) && ! defined(CRAY2)
8770
2386
webecray
8771
2387
#else
8772
2388
wenotbecray
8773
2389
#endif
8774
2390
 
8775
 
_ACEOF
 
2391
EOF
8776
2392
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8777
 
  $EGREP "webecray" >/dev/null 2>&1; then
 
2393
  egrep "webecray" >/dev/null 2>&1; then
 
2394
  rm -rf conftest*
8778
2395
  ac_cv_os_cray=yes
8779
2396
else
 
2397
  rm -rf conftest*
8780
2398
  ac_cv_os_cray=no
8781
2399
fi
8782
2400
rm -f conftest*
8783
2401
 
8784
2402
fi
8785
 
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8786
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
2403
 
 
2404
echo "$ac_t""$ac_cv_os_cray" 1>&6
8787
2405
if test $ac_cv_os_cray = yes; then
8788
 
  for ac_func in _getb67 GETB67 getb67; do
8789
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8790
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
8791
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8792
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
8793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2406
for ac_func in _getb67 GETB67 getb67; do
 
2407
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2408
echo "configure:2409: checking for $ac_func" >&5
 
2409
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2410
  echo $ac_n "(cached) $ac_c" 1>&6
8794
2411
else
8795
 
  cat >conftest.$ac_ext <<_ACEOF
8796
 
#line $LINENO "configure"
8797
 
/* confdefs.h.  */
8798
 
_ACEOF
8799
 
cat confdefs.h >>conftest.$ac_ext
8800
 
cat >>conftest.$ac_ext <<_ACEOF
8801
 
/* end confdefs.h.  */
 
2412
  cat > conftest.$ac_ext <<EOF
 
2413
#line 2414 "configure"
 
2414
#include "confdefs.h"
8802
2415
/* System header to define __stub macros and hopefully few prototypes,
8803
 
    which can conflict with char $ac_func (); below.
8804
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805
 
    <limits.h> exists even on freestanding compilers.  */
8806
 
#ifdef __STDC__
8807
 
# include <limits.h>
8808
 
#else
8809
 
# include <assert.h>
8810
 
#endif
 
2416
    which can conflict with char $ac_func(); below.  */
 
2417
#include <assert.h>
8811
2418
/* Override any gcc2 internal prototype to avoid an error.  */
8812
 
#ifdef __cplusplus
8813
 
extern "C"
8814
 
{
8815
 
#endif
8816
2419
/* We use char because int might match the return type of a gcc2
8817
 
   builtin and then its argument prototype would still apply.  */
8818
 
char $ac_func ();
 
2420
    builtin and then its argument prototype would still apply.  */
 
2421
char $ac_func();
 
2422
 
 
2423
int main() {
 
2424
 
8819
2425
/* The GNU C library defines this for functions which it implements
8820
2426
    to always fail with ENOSYS.  Some functions are actually named
8821
2427
    something starting with __ and the normal name is an alias.  */
8822
2428
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823
2429
choke me
8824
2430
#else
8825
 
char (*f) () = $ac_func;
8826
 
#endif
8827
 
#ifdef __cplusplus
8828
 
}
 
2431
$ac_func();
8829
2432
#endif
8830
2433
 
8831
 
int
8832
 
main ()
8833
 
{
8834
 
return f != $ac_func;
8835
 
  ;
8836
 
  return 0;
8837
 
}
8838
 
_ACEOF
8839
 
rm -f conftest.$ac_objext conftest$ac_exeext
8840
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841
 
  (eval $ac_link) 2>&5
8842
 
  ac_status=$?
8843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844
 
  (exit $ac_status); } &&
8845
 
         { ac_try='test -s conftest$ac_exeext'
8846
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847
 
  (eval $ac_try) 2>&5
8848
 
  ac_status=$?
8849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850
 
  (exit $ac_status); }; }; then
8851
 
  eval "$as_ac_var=yes"
 
2434
; return 0; }
 
2435
EOF
 
2436
if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2437
  rm -rf conftest*
 
2438
  eval "ac_cv_func_$ac_func=yes"
8852
2439
else
8853
 
  echo "$as_me: failed program was:" >&5
8854
 
sed 's/^/| /' conftest.$ac_ext >&5
8855
 
 
8856
 
eval "$as_ac_var=no"
8857
 
fi
8858
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8859
 
fi
8860
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8861
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8862
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
8863
 
 
8864
 
cat >>confdefs.h <<_ACEOF
 
2440
  echo "configure: failed program was:" >&5
 
2441
  cat conftest.$ac_ext >&5
 
2442
  rm -rf conftest*
 
2443
  eval "ac_cv_func_$ac_func=no"
 
2444
fi
 
2445
rm -f conftest*
 
2446
fi
 
2447
 
 
2448
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2449
  echo "$ac_t""yes" 1>&6
 
2450
  cat >> confdefs.h <<EOF
8865
2451
#define CRAY_STACKSEG_END $ac_func
8866
 
_ACEOF
8867
 
 
8868
 
    break
8869
 
fi
8870
 
 
8871
 
  done
8872
 
fi
8873
 
 
8874
 
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8875
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8876
 
if test "${ac_cv_c_stack_direction+set}" = set; then
8877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2452
EOF
 
2453
 
 
2454
  break
 
2455
else
 
2456
  echo "$ac_t""no" 1>&6
 
2457
fi
 
2458
 
 
2459
done
 
2460
fi
 
2461
 
 
2462
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
2463
echo "configure:2464: checking stack direction for C alloca" >&5
 
2464
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
2465
  echo $ac_n "(cached) $ac_c" 1>&6
8878
2466
else
8879
2467
  if test "$cross_compiling" = yes; then
8880
2468
  ac_cv_c_stack_direction=0
8881
2469
else
8882
 
  cat >conftest.$ac_ext <<_ACEOF
8883
 
#line $LINENO "configure"
8884
 
/* confdefs.h.  */
8885
 
_ACEOF
8886
 
cat confdefs.h >>conftest.$ac_ext
8887
 
cat >>conftest.$ac_ext <<_ACEOF
8888
 
/* end confdefs.h.  */
8889
 
int
 
2470
  cat > conftest.$ac_ext <<EOF
 
2471
#line 2472 "configure"
 
2472
#include "confdefs.h"
8890
2473
find_stack_direction ()
8891
2474
{
8892
2475
  static char *addr = 0;
8899
2482
  else
8900
2483
    return (&dummy > addr) ? 1 : -1;
8901
2484
}
8902
 
 
8903
 
int
8904
2485
main ()
8905
2486
{
8906
 
  exit (find_stack_direction () < 0);
 
2487
  exit (find_stack_direction() < 0);
8907
2488
}
8908
 
_ACEOF
8909
 
rm -f conftest$ac_exeext
8910
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911
 
  (eval $ac_link) 2>&5
8912
 
  ac_status=$?
8913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916
 
  (eval $ac_try) 2>&5
8917
 
  ac_status=$?
8918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919
 
  (exit $ac_status); }; }; then
 
2489
EOF
 
2490
if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2491
then
8920
2492
  ac_cv_c_stack_direction=1
8921
2493
else
8922
 
  echo "$as_me: program exited with status $ac_status" >&5
8923
 
echo "$as_me: failed program was:" >&5
8924
 
sed 's/^/| /' conftest.$ac_ext >&5
8925
 
 
8926
 
( exit $ac_status )
8927
 
ac_cv_c_stack_direction=-1
8928
 
fi
8929
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8930
 
fi
8931
 
fi
8932
 
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8933
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8934
 
 
8935
 
cat >>confdefs.h <<_ACEOF
 
2494
  echo "configure: failed program was:" >&5
 
2495
  cat conftest.$ac_ext >&5
 
2496
  rm -fr conftest*
 
2497
  ac_cv_c_stack_direction=-1
 
2498
fi
 
2499
rm -fr conftest*
 
2500
fi
 
2501
 
 
2502
fi
 
2503
 
 
2504
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
2505
cat >> confdefs.h <<EOF
8936
2506
#define STACK_DIRECTION $ac_cv_c_stack_direction
8937
 
_ACEOF
8938
 
 
 
2507
EOF
8939
2508
 
8940
2509
fi
8941
2510
 
8945
2514
 
8946
2515
for ac_prog in 'bison -y' byacc
8947
2516
do
8948
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2517
# Extract the first word of "$ac_prog", so it can be a program name with args.
8949
2518
set dummy $ac_prog; ac_word=$2
8950
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
8951
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8952
 
if test "${ac_cv_prog_YACC+set}" = set; then
8953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2519
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2520
echo "configure:2521: checking for $ac_word" >&5
 
2521
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
 
2522
  echo $ac_n "(cached) $ac_c" 1>&6
8954
2523
else
8955
2524
  if test -n "$YACC"; then
8956
2525
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8957
2526
else
8958
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959
 
for as_dir in $PATH
8960
 
do
8961
 
  IFS=$as_save_IFS
8962
 
  test -z "$as_dir" && as_dir=.
8963
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8964
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965
 
    ac_cv_prog_YACC="$ac_prog"
8966
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8967
 
    break 2
8968
 
  fi
8969
 
done
8970
 
done
8971
 
 
8972
 
fi
8973
 
fi
8974
 
YACC=$ac_cv_prog_YACC
 
2527
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2528
  ac_dummy="$PATH"
 
2529
  for ac_dir in $ac_dummy; do
 
2530
    test -z "$ac_dir" && ac_dir=.
 
2531
    if test -f $ac_dir/$ac_word; then
 
2532
      ac_cv_prog_YACC="$ac_prog"
 
2533
      break
 
2534
    fi
 
2535
  done
 
2536
  IFS="$ac_save_ifs"
 
2537
fi
 
2538
fi
 
2539
YACC="$ac_cv_prog_YACC"
8975
2540
if test -n "$YACC"; then
8976
 
  echo "$as_me:$LINENO: result: $YACC" >&5
8977
 
echo "${ECHO_T}$YACC" >&6
 
2541
  echo "$ac_t""$YACC" 1>&6
8978
2542
else
8979
 
  echo "$as_me:$LINENO: result: no" >&5
8980
 
echo "${ECHO_T}no" >&6
 
2543
  echo "$ac_t""no" 1>&6
8981
2544
fi
8982
2545
 
8983
 
  test -n "$YACC" && break
 
2546
test -n "$YACC" && break
8984
2547
done
8985
2548
test -n "$YACC" || YACC="yacc"
8986
2549
 
 
2550
missing_dir=`cd $ac_aux_dir && pwd`
8987
2551
for ac_prog in flex lex
8988
2552
do
8989
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2553
# Extract the first word of "$ac_prog", so it can be a program name with args.
8990
2554
set dummy $ac_prog; ac_word=$2
8991
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
8992
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8993
 
if test "${ac_cv_prog_LEX+set}" = set; then
8994
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8995
 
else
8996
 
  if test -n "$LEX"; then
8997
 
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8998
 
else
8999
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000
 
for as_dir in $PATH
9001
 
do
9002
 
  IFS=$as_save_IFS
9003
 
  test -z "$as_dir" && as_dir=.
9004
 
  for ac_exec_ext in '' $ac_executable_extensions; do
9005
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9006
 
    ac_cv_prog_LEX="$ac_prog"
9007
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9008
 
    break 2
9009
 
  fi
9010
 
done
9011
 
done
9012
 
 
9013
 
fi
9014
 
fi
9015
 
LEX=$ac_cv_prog_LEX
9016
 
if test -n "$LEX"; then
9017
 
  echo "$as_me:$LINENO: result: $LEX" >&5
9018
 
echo "${ECHO_T}$LEX" >&6
9019
 
else
9020
 
  echo "$as_me:$LINENO: result: no" >&5
9021
 
echo "${ECHO_T}no" >&6
9022
 
fi
9023
 
 
9024
 
  test -n "$LEX" && break
9025
 
done
9026
 
test -n "$LEX" || LEX=":"
 
2555
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2556
echo "configure:2557: checking for $ac_word" >&5
 
2557
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
 
2558
  echo $ac_n "(cached) $ac_c" 1>&6
 
2559
else
 
2560
  if test -n "$LEX"; then
 
2561
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
2562
else
 
2563
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2564
  ac_dummy="$PATH"
 
2565
  for ac_dir in $ac_dummy; do
 
2566
    test -z "$ac_dir" && ac_dir=.
 
2567
    if test -f $ac_dir/$ac_word; then
 
2568
      ac_cv_prog_LEX="$ac_prog"
 
2569
      break
 
2570
    fi
 
2571
  done
 
2572
  IFS="$ac_save_ifs"
 
2573
fi
 
2574
fi
 
2575
LEX="$ac_cv_prog_LEX"
 
2576
if test -n "$LEX"; then
 
2577
  echo "$ac_t""$LEX" 1>&6
 
2578
else
 
2579
  echo "$ac_t""no" 1>&6
 
2580
fi
 
2581
 
 
2582
test -n "$LEX" && break
 
2583
done
 
2584
test -n "$LEX" || LEX=""$missing_dir/missing flex""
 
2585
 
 
2586
# Extract the first word of "flex", so it can be a program name with args.
 
2587
set dummy flex; ac_word=$2
 
2588
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2589
echo "configure:2590: checking for $ac_word" >&5
 
2590
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
 
2591
  echo $ac_n "(cached) $ac_c" 1>&6
 
2592
else
 
2593
  if test -n "$LEX"; then
 
2594
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
2595
else
 
2596
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2597
  ac_dummy="$PATH"
 
2598
  for ac_dir in $ac_dummy; do
 
2599
    test -z "$ac_dir" && ac_dir=.
 
2600
    if test -f $ac_dir/$ac_word; then
 
2601
      ac_cv_prog_LEX="flex"
 
2602
      break
 
2603
    fi
 
2604
  done
 
2605
  IFS="$ac_save_ifs"
 
2606
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
 
2607
fi
 
2608
fi
 
2609
LEX="$ac_cv_prog_LEX"
 
2610
if test -n "$LEX"; then
 
2611
  echo "$ac_t""$LEX" 1>&6
 
2612
else
 
2613
  echo "$ac_t""no" 1>&6
 
2614
fi
9027
2615
 
9028
2616
if test -z "$LEXLIB"
9029
2617
then
9030
 
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9031
 
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9032
 
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9034
 
else
9035
 
  ac_check_lib_save_LIBS=$LIBS
9036
 
LIBS="-lfl  $LIBS"
9037
 
cat >conftest.$ac_ext <<_ACEOF
9038
 
#line $LINENO "configure"
9039
 
/* confdefs.h.  */
9040
 
_ACEOF
9041
 
cat confdefs.h >>conftest.$ac_ext
9042
 
cat >>conftest.$ac_ext <<_ACEOF
9043
 
/* end confdefs.h.  */
9044
 
 
9045
 
/* Override any gcc2 internal prototype to avoid an error.  */
9046
 
#ifdef __cplusplus
9047
 
extern "C"
9048
 
#endif
9049
 
/* We use char because int might match the return type of a gcc2
9050
 
   builtin and then its argument prototype would still apply.  */
9051
 
char yywrap ();
9052
 
int
9053
 
main ()
9054
 
{
9055
 
yywrap ();
9056
 
  ;
9057
 
  return 0;
9058
 
}
9059
 
_ACEOF
9060
 
rm -f conftest.$ac_objext conftest$ac_exeext
9061
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062
 
  (eval $ac_link) 2>&5
9063
 
  ac_status=$?
9064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065
 
  (exit $ac_status); } &&
9066
 
         { ac_try='test -s conftest$ac_exeext'
9067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068
 
  (eval $ac_try) 2>&5
9069
 
  ac_status=$?
9070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071
 
  (exit $ac_status); }; }; then
9072
 
  ac_cv_lib_fl_yywrap=yes
9073
 
else
9074
 
  echo "$as_me: failed program was:" >&5
9075
 
sed 's/^/| /' conftest.$ac_ext >&5
9076
 
 
9077
 
ac_cv_lib_fl_yywrap=no
9078
 
fi
9079
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9080
 
LIBS=$ac_check_lib_save_LIBS
9081
 
fi
9082
 
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9083
 
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9084
 
if test $ac_cv_lib_fl_yywrap = yes; then
9085
 
  LEXLIB="-lfl"
9086
 
else
9087
 
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9088
 
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9089
 
if test "${ac_cv_lib_l_yywrap+set}" = set; then
9090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9091
 
else
9092
 
  ac_check_lib_save_LIBS=$LIBS
9093
 
LIBS="-ll  $LIBS"
9094
 
cat >conftest.$ac_ext <<_ACEOF
9095
 
#line $LINENO "configure"
9096
 
/* confdefs.h.  */
9097
 
_ACEOF
9098
 
cat confdefs.h >>conftest.$ac_ext
9099
 
cat >>conftest.$ac_ext <<_ACEOF
9100
 
/* end confdefs.h.  */
9101
 
 
9102
 
/* Override any gcc2 internal prototype to avoid an error.  */
9103
 
#ifdef __cplusplus
9104
 
extern "C"
9105
 
#endif
9106
 
/* We use char because int might match the return type of a gcc2
9107
 
   builtin and then its argument prototype would still apply.  */
9108
 
char yywrap ();
9109
 
int
9110
 
main ()
9111
 
{
9112
 
yywrap ();
9113
 
  ;
9114
 
  return 0;
9115
 
}
9116
 
_ACEOF
9117
 
rm -f conftest.$ac_objext conftest$ac_exeext
9118
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119
 
  (eval $ac_link) 2>&5
9120
 
  ac_status=$?
9121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122
 
  (exit $ac_status); } &&
9123
 
         { ac_try='test -s conftest$ac_exeext'
9124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125
 
  (eval $ac_try) 2>&5
9126
 
  ac_status=$?
9127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128
 
  (exit $ac_status); }; }; then
9129
 
  ac_cv_lib_l_yywrap=yes
9130
 
else
9131
 
  echo "$as_me: failed program was:" >&5
9132
 
sed 's/^/| /' conftest.$ac_ext >&5
9133
 
 
9134
 
ac_cv_lib_l_yywrap=no
9135
 
fi
9136
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9137
 
LIBS=$ac_check_lib_save_LIBS
9138
 
fi
9139
 
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9140
 
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9141
 
if test $ac_cv_lib_l_yywrap = yes; then
9142
 
  LEXLIB="-ll"
9143
 
fi
9144
 
 
9145
 
fi
9146
 
 
9147
 
fi
9148
 
 
9149
 
if test "x$LEX" != "x:"; then
9150
 
  echo "$as_me:$LINENO: checking lex output file root" >&5
9151
 
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9152
 
if test "${ac_cv_prog_lex_root+set}" = set; then
9153
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2618
  case "$LEX" in
 
2619
  flex*) ac_lib=fl ;;
 
2620
  *) ac_lib=l ;;
 
2621
  esac
 
2622
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
 
2623
echo "configure:2624: checking for yywrap in -l$ac_lib" >&5
 
2624
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
 
2625
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2626
  echo $ac_n "(cached) $ac_c" 1>&6
 
2627
else
 
2628
  ac_save_LIBS="$LIBS"
 
2629
LIBS="-l$ac_lib  $LIBS"
 
2630
cat > conftest.$ac_ext <<EOF
 
2631
#line 2632 "configure"
 
2632
#include "confdefs.h"
 
2633
/* Override any gcc2 internal prototype to avoid an error.  */
 
2634
/* We use char because int might match the return type of a gcc2
 
2635
    builtin and then its argument prototype would still apply.  */
 
2636
char yywrap();
 
2637
 
 
2638
int main() {
 
2639
yywrap()
 
2640
; return 0; }
 
2641
EOF
 
2642
if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2643
  rm -rf conftest*
 
2644
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2645
else
 
2646
  echo "configure: failed program was:" >&5
 
2647
  cat conftest.$ac_ext >&5
 
2648
  rm -rf conftest*
 
2649
  eval "ac_cv_lib_$ac_lib_var=no"
 
2650
fi
 
2651
rm -f conftest*
 
2652
LIBS="$ac_save_LIBS"
 
2653
 
 
2654
fi
 
2655
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2656
  echo "$ac_t""yes" 1>&6
 
2657
  LEXLIB="-l$ac_lib"
 
2658
else
 
2659
  echo "$ac_t""no" 1>&6
 
2660
fi
 
2661
 
 
2662
fi
 
2663
 
 
2664
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
 
2665
echo "configure:2666: checking lex output file root" >&5
 
2666
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
 
2667
  echo $ac_n "(cached) $ac_c" 1>&6
9154
2668
else
9155
2669
  # The minimal lex program is just a single line: %%.  But some broken lexes
9156
2670
# (Solaris, I think it was) want two %% lines, so accommodate them.
9157
 
cat >conftest.l <<_ACEOF
9158
 
%%
9159
 
%%
9160
 
_ACEOF
9161
 
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9162
 
  (eval $LEX conftest.l) 2>&5
9163
 
  ac_status=$?
9164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165
 
  (exit $ac_status); }
 
2671
echo '%%
 
2672
%%' | $LEX
9166
2673
if test -f lex.yy.c; then
9167
2674
  ac_cv_prog_lex_root=lex.yy
9168
2675
elif test -f lexyy.c; then
9169
2676
  ac_cv_prog_lex_root=lexyy
9170
2677
else
9171
 
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9172
 
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9173
 
   { (exit 1); exit 1; }; }
9174
 
fi
9175
 
fi
9176
 
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9177
 
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9178
 
rm -f conftest.l
 
2678
  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
 
2679
fi
 
2680
fi
 
2681
 
 
2682
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
9179
2683
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9180
2684
 
9181
 
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9182
 
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9183
 
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2685
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
 
2686
echo "configure:2687: checking whether yytext is a pointer" >&5
 
2687
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
 
2688
  echo $ac_n "(cached) $ac_c" 1>&6
9185
2689
else
9186
2690
  # POSIX says lex can declare yytext either as a pointer or an array; the
9187
2691
# default is implementation-dependent. Figure out which it is, since
9188
2692
# not all implementations provide the %pointer and %array declarations.
9189
2693
ac_cv_prog_lex_yytext_pointer=no
9190
2694
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9191
 
ac_save_LIBS=$LIBS
 
2695
ac_save_LIBS="$LIBS"
9192
2696
LIBS="$LIBS $LEXLIB"
9193
 
cat >conftest.$ac_ext <<_ACEOF
 
2697
cat > conftest.$ac_ext <<EOF
 
2698
#line 2699 "configure"
 
2699
#include "confdefs.h"
9194
2700
`cat $LEX_OUTPUT_ROOT.c`
9195
 
_ACEOF
9196
 
rm -f conftest.$ac_objext conftest$ac_exeext
9197
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9198
 
  (eval $ac_link) 2>&5
9199
 
  ac_status=$?
9200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201
 
  (exit $ac_status); } &&
9202
 
         { ac_try='test -s conftest$ac_exeext'
9203
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204
 
  (eval $ac_try) 2>&5
9205
 
  ac_status=$?
9206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207
 
  (exit $ac_status); }; }; then
 
2701
int main() {
 
2702
 
 
2703
; return 0; }
 
2704
EOF
 
2705
if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2706
  rm -rf conftest*
9208
2707
  ac_cv_prog_lex_yytext_pointer=yes
9209
2708
else
9210
 
  echo "$as_me: failed program was:" >&5
9211
 
sed 's/^/| /' conftest.$ac_ext >&5
9212
 
 
 
2709
  echo "configure: failed program was:" >&5
 
2710
  cat conftest.$ac_ext >&5
9213
2711
fi
9214
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9215
 
LIBS=$ac_save_LIBS
 
2712
rm -f conftest*
 
2713
LIBS="$ac_save_LIBS"
9216
2714
rm -f "${LEX_OUTPUT_ROOT}.c"
9217
2715
 
9218
2716
fi
9219
 
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9220
 
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
 
2717
 
 
2718
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
9221
2719
if test $ac_cv_prog_lex_yytext_pointer = yes; then
9222
 
 
9223
 
cat >>confdefs.h <<\_ACEOF
 
2720
  cat >> confdefs.h <<\EOF
9224
2721
#define YYTEXT_POINTER 1
9225
 
_ACEOF
9226
 
 
9227
 
fi
9228
 
 
9229
 
fi
9230
 
if test "$LEX" = :; then
9231
 
  LEX=${am_missing_run}flex
9232
 
fi
9233
 
 
9234
 
 
9235
 
 
9236
 
echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
9237
 
echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6
9238
 
if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
9239
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2722
EOF
 
2723
 
 
2724
fi
 
2725
 
 
2726
 
 
2727
echo $ac_n "checking for pthread_mutex_init in -lc""... $ac_c" 1>&6
 
2728
echo "configure:2729: checking for pthread_mutex_init in -lc" >&5
 
2729
ac_lib_var=`echo c'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
 
2730
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2731
  echo $ac_n "(cached) $ac_c" 1>&6
9240
2732
else
9241
 
  ac_check_lib_save_LIBS=$LIBS
 
2733
  ac_save_LIBS="$LIBS"
9242
2734
LIBS="-lc  $LIBS"
9243
 
cat >conftest.$ac_ext <<_ACEOF
9244
 
#line $LINENO "configure"
9245
 
/* confdefs.h.  */
9246
 
_ACEOF
9247
 
cat confdefs.h >>conftest.$ac_ext
9248
 
cat >>conftest.$ac_ext <<_ACEOF
9249
 
/* end confdefs.h.  */
9250
 
 
 
2735
cat > conftest.$ac_ext <<EOF
 
2736
#line 2737 "configure"
 
2737
#include "confdefs.h"
9251
2738
/* Override any gcc2 internal prototype to avoid an error.  */
9252
 
#ifdef __cplusplus
9253
 
extern "C"
9254
 
#endif
9255
2739
/* We use char because int might match the return type of a gcc2
9256
 
   builtin and then its argument prototype would still apply.  */
9257
 
char pthread_mutex_init ();
9258
 
int
9259
 
main ()
9260
 
{
9261
 
pthread_mutex_init ();
9262
 
  ;
9263
 
  return 0;
9264
 
}
9265
 
_ACEOF
9266
 
rm -f conftest.$ac_objext conftest$ac_exeext
9267
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268
 
  (eval $ac_link) 2>&5
9269
 
  ac_status=$?
9270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
 
  (exit $ac_status); } &&
9272
 
         { ac_try='test -s conftest$ac_exeext'
9273
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274
 
  (eval $ac_try) 2>&5
9275
 
  ac_status=$?
9276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277
 
  (exit $ac_status); }; }; then
9278
 
  ac_cv_lib_c_pthread_mutex_init=yes
 
2740
    builtin and then its argument prototype would still apply.  */
 
2741
char pthread_mutex_init();
 
2742
 
 
2743
int main() {
 
2744
pthread_mutex_init()
 
2745
; return 0; }
 
2746
EOF
 
2747
if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2748
  rm -rf conftest*
 
2749
  eval "ac_cv_lib_$ac_lib_var=yes"
9279
2750
else
9280
 
  echo "$as_me: failed program was:" >&5
9281
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2751
  echo "configure: failed program was:" >&5
 
2752
  cat conftest.$ac_ext >&5
 
2753
  rm -rf conftest*
 
2754
  eval "ac_cv_lib_$ac_lib_var=no"
 
2755
fi
 
2756
rm -f conftest*
 
2757
LIBS="$ac_save_LIBS"
9282
2758
 
9283
 
ac_cv_lib_c_pthread_mutex_init=no
9284
 
fi
9285
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9286
 
LIBS=$ac_check_lib_save_LIBS
9287
 
fi
9288
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
9289
 
echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6
9290
 
if test $ac_cv_lib_c_pthread_mutex_init = yes; then
9291
 
  cat >>confdefs.h <<\_ACEOF
 
2759
fi
 
2760
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2761
  echo "$ac_t""yes" 1>&6
 
2762
  cat >> confdefs.h <<\EOF
9292
2763
#define PTHREAD_SUPPORT 1
9293
 
_ACEOF
 
2764
EOF
9294
2765
 
 
2766
else
 
2767
  echo "$ac_t""no" 1>&6
9295
2768
fi
9296
2769
 
9297
2770
 
9298
 
 
9299
 
 
9300
2771
for ac_func in ctime_r localtime_r
9301
2772
do
9302
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9303
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9304
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9305
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9306
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2773
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2774
echo "configure:2775: checking for $ac_func" >&5
 
2775
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2776
  echo $ac_n "(cached) $ac_c" 1>&6
9307
2777
else
9308
 
  cat >conftest.$ac_ext <<_ACEOF
9309
 
#line $LINENO "configure"
9310
 
/* confdefs.h.  */
9311
 
_ACEOF
9312
 
cat confdefs.h >>conftest.$ac_ext
9313
 
cat >>conftest.$ac_ext <<_ACEOF
9314
 
/* end confdefs.h.  */
 
2778
  cat > conftest.$ac_ext <<EOF
 
2779
#line 2780 "configure"
 
2780
#include "confdefs.h"
9315
2781
/* System header to define __stub macros and hopefully few prototypes,
9316
 
    which can conflict with char $ac_func (); below.
9317
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318
 
    <limits.h> exists even on freestanding compilers.  */
9319
 
#ifdef __STDC__
9320
 
# include <limits.h>
9321
 
#else
9322
 
# include <assert.h>
9323
 
#endif
 
2782
    which can conflict with char $ac_func(); below.  */
 
2783
#include <assert.h>
9324
2784
/* Override any gcc2 internal prototype to avoid an error.  */
9325
 
#ifdef __cplusplus
9326
 
extern "C"
9327
 
{
9328
 
#endif
9329
2785
/* We use char because int might match the return type of a gcc2
9330
 
   builtin and then its argument prototype would still apply.  */
9331
 
char $ac_func ();
 
2786
    builtin and then its argument prototype would still apply.  */
 
2787
char $ac_func();
 
2788
 
 
2789
int main() {
 
2790
 
9332
2791
/* The GNU C library defines this for functions which it implements
9333
2792
    to always fail with ENOSYS.  Some functions are actually named
9334
2793
    something starting with __ and the normal name is an alias.  */
9335
2794
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336
2795
choke me
9337
2796
#else
9338
 
char (*f) () = $ac_func;
9339
 
#endif
9340
 
#ifdef __cplusplus
9341
 
}
9342
 
#endif
9343
 
 
9344
 
int
9345
 
main ()
9346
 
{
9347
 
return f != $ac_func;
9348
 
  ;
9349
 
  return 0;
9350
 
}
9351
 
_ACEOF
9352
 
rm -f conftest.$ac_objext conftest$ac_exeext
9353
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354
 
  (eval $ac_link) 2>&5
9355
 
  ac_status=$?
9356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357
 
  (exit $ac_status); } &&
9358
 
         { ac_try='test -s conftest$ac_exeext'
9359
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360
 
  (eval $ac_try) 2>&5
9361
 
  ac_status=$?
9362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363
 
  (exit $ac_status); }; }; then
9364
 
  eval "$as_ac_var=yes"
9365
 
else
9366
 
  echo "$as_me: failed program was:" >&5
9367
 
sed 's/^/| /' conftest.$ac_ext >&5
9368
 
 
9369
 
eval "$as_ac_var=no"
9370
 
fi
9371
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9372
 
fi
9373
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9374
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9375
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9376
 
  cat >>confdefs.h <<_ACEOF
9377
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9378
 
_ACEOF
9379
 
 
 
2797
$ac_func();
 
2798
#endif
 
2799
 
 
2800
; return 0; }
 
2801
EOF
 
2802
if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2803
  rm -rf conftest*
 
2804
  eval "ac_cv_func_$ac_func=yes"
 
2805
else
 
2806
  echo "configure: failed program was:" >&5
 
2807
  cat conftest.$ac_ext >&5
 
2808
  rm -rf conftest*
 
2809
  eval "ac_cv_func_$ac_func=no"
 
2810
fi
 
2811
rm -f conftest*
 
2812
fi
 
2813
 
 
2814
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2815
  echo "$ac_t""yes" 1>&6
 
2816
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2817
  cat >> confdefs.h <<EOF
 
2818
#define $ac_tr_func 1
 
2819
EOF
 
2820
 
 
2821
else
 
2822
  echo "$ac_t""no" 1>&6
9380
2823
fi
9381
2824
done
9382
2825
 
9383
2826
 
9384
 
 
9385
2827
for ac_func in waitpid
9386
2828
do
9387
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9389
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9391
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2829
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2830
echo "configure:2831: checking for $ac_func" >&5
 
2831
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2832
  echo $ac_n "(cached) $ac_c" 1>&6
9392
2833
else
9393
 
  cat >conftest.$ac_ext <<_ACEOF
9394
 
#line $LINENO "configure"
9395
 
/* confdefs.h.  */
9396
 
_ACEOF
9397
 
cat confdefs.h >>conftest.$ac_ext
9398
 
cat >>conftest.$ac_ext <<_ACEOF
9399
 
/* end confdefs.h.  */
 
2834
  cat > conftest.$ac_ext <<EOF
 
2835
#line 2836 "configure"
 
2836
#include "confdefs.h"
9400
2837
/* System header to define __stub macros and hopefully few prototypes,
9401
 
    which can conflict with char $ac_func (); below.
9402
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9403
 
    <limits.h> exists even on freestanding compilers.  */
9404
 
#ifdef __STDC__
9405
 
# include <limits.h>
9406
 
#else
9407
 
# include <assert.h>
9408
 
#endif
 
2838
    which can conflict with char $ac_func(); below.  */
 
2839
#include <assert.h>
9409
2840
/* Override any gcc2 internal prototype to avoid an error.  */
9410
 
#ifdef __cplusplus
9411
 
extern "C"
9412
 
{
9413
 
#endif
9414
2841
/* We use char because int might match the return type of a gcc2
9415
 
   builtin and then its argument prototype would still apply.  */
9416
 
char $ac_func ();
 
2842
    builtin and then its argument prototype would still apply.  */
 
2843
char $ac_func();
 
2844
 
 
2845
int main() {
 
2846
 
9417
2847
/* The GNU C library defines this for functions which it implements
9418
2848
    to always fail with ENOSYS.  Some functions are actually named
9419
2849
    something starting with __ and the normal name is an alias.  */
9420
2850
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421
2851
choke me
9422
2852
#else
9423
 
char (*f) () = $ac_func;
9424
 
#endif
9425
 
#ifdef __cplusplus
9426
 
}
9427
 
#endif
9428
 
 
9429
 
int
9430
 
main ()
9431
 
{
9432
 
return f != $ac_func;
9433
 
  ;
9434
 
  return 0;
9435
 
}
9436
 
_ACEOF
9437
 
rm -f conftest.$ac_objext conftest$ac_exeext
9438
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439
 
  (eval $ac_link) 2>&5
9440
 
  ac_status=$?
9441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442
 
  (exit $ac_status); } &&
9443
 
         { ac_try='test -s conftest$ac_exeext'
9444
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445
 
  (eval $ac_try) 2>&5
9446
 
  ac_status=$?
9447
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448
 
  (exit $ac_status); }; }; then
9449
 
  eval "$as_ac_var=yes"
9450
 
else
9451
 
  echo "$as_me: failed program was:" >&5
9452
 
sed 's/^/| /' conftest.$ac_ext >&5
9453
 
 
9454
 
eval "$as_ac_var=no"
9455
 
fi
9456
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9457
 
fi
9458
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9459
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9460
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9461
 
  cat >>confdefs.h <<_ACEOF
9462
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9463
 
_ACEOF
9464
 
 
 
2853
$ac_func();
 
2854
#endif
 
2855
 
 
2856
; return 0; }
 
2857
EOF
 
2858
if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2859
  rm -rf conftest*
 
2860
  eval "ac_cv_func_$ac_func=yes"
 
2861
else
 
2862
  echo "configure: failed program was:" >&5
 
2863
  cat conftest.$ac_ext >&5
 
2864
  rm -rf conftest*
 
2865
  eval "ac_cv_func_$ac_func=no"
 
2866
fi
 
2867
rm -f conftest*
 
2868
fi
 
2869
 
 
2870
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2871
  echo "$ac_t""yes" 1>&6
 
2872
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2873
  cat >> confdefs.h <<EOF
 
2874
#define $ac_tr_func 1
 
2875
EOF
 
2876
 
 
2877
else
 
2878
  echo "$ac_t""no" 1>&6
9465
2879
fi
9466
2880
done
9467
2881
 
9468
2882
 
9469
 
echo "$as_me:$LINENO: checking for library containing matherr" >&5
9470
 
echo $ECHO_N "checking for library containing matherr... $ECHO_C" >&6
9471
 
if test "${ac_cv_search_matherr+set}" = set; then
9472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9473
 
else
9474
 
  ac_func_search_save_LIBS=$LIBS
9475
 
ac_cv_search_matherr=no
9476
 
cat >conftest.$ac_ext <<_ACEOF
9477
 
#line $LINENO "configure"
9478
 
/* confdefs.h.  */
9479
 
_ACEOF
9480
 
cat confdefs.h >>conftest.$ac_ext
9481
 
cat >>conftest.$ac_ext <<_ACEOF
9482
 
/* end confdefs.h.  */
9483
 
 
9484
 
/* Override any gcc2 internal prototype to avoid an error.  */
9485
 
#ifdef __cplusplus
9486
 
extern "C"
9487
 
#endif
9488
 
/* We use char because int might match the return type of a gcc2
9489
 
   builtin and then its argument prototype would still apply.  */
9490
 
char matherr ();
9491
 
int
9492
 
main ()
9493
 
{
9494
 
matherr ();
9495
 
  ;
9496
 
  return 0;
9497
 
}
9498
 
_ACEOF
9499
 
rm -f conftest.$ac_objext conftest$ac_exeext
9500
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501
 
  (eval $ac_link) 2>&5
9502
 
  ac_status=$?
9503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504
 
  (exit $ac_status); } &&
9505
 
         { ac_try='test -s conftest$ac_exeext'
9506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507
 
  (eval $ac_try) 2>&5
9508
 
  ac_status=$?
9509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510
 
  (exit $ac_status); }; }; then
9511
 
  ac_cv_search_matherr="none required"
9512
 
else
9513
 
  echo "$as_me: failed program was:" >&5
9514
 
sed 's/^/| /' conftest.$ac_ext >&5
9515
 
 
9516
 
fi
9517
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9518
 
if test "$ac_cv_search_matherr" = no; then
9519
 
  for ac_lib in mx m; do
9520
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9521
 
    cat >conftest.$ac_ext <<_ACEOF
9522
 
#line $LINENO "configure"
9523
 
/* confdefs.h.  */
9524
 
_ACEOF
9525
 
cat confdefs.h >>conftest.$ac_ext
9526
 
cat >>conftest.$ac_ext <<_ACEOF
9527
 
/* end confdefs.h.  */
9528
 
 
9529
 
/* Override any gcc2 internal prototype to avoid an error.  */
9530
 
#ifdef __cplusplus
9531
 
extern "C"
9532
 
#endif
9533
 
/* We use char because int might match the return type of a gcc2
9534
 
   builtin and then its argument prototype would still apply.  */
9535
 
char matherr ();
9536
 
int
9537
 
main ()
9538
 
{
9539
 
matherr ();
9540
 
  ;
9541
 
  return 0;
9542
 
}
9543
 
_ACEOF
9544
 
rm -f conftest.$ac_objext conftest$ac_exeext
9545
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546
 
  (eval $ac_link) 2>&5
9547
 
  ac_status=$?
9548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549
 
  (exit $ac_status); } &&
9550
 
         { ac_try='test -s conftest$ac_exeext'
9551
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552
 
  (eval $ac_try) 2>&5
9553
 
  ac_status=$?
9554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555
 
  (exit $ac_status); }; }; then
9556
 
  ac_cv_search_matherr="-l$ac_lib"
9557
 
break
9558
 
else
9559
 
  echo "$as_me: failed program was:" >&5
9560
 
sed 's/^/| /' conftest.$ac_ext >&5
9561
 
 
9562
 
fi
9563
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9564
 
  done
9565
 
fi
9566
 
LIBS=$ac_func_search_save_LIBS
9567
 
fi
9568
 
echo "$as_me:$LINENO: result: $ac_cv_search_matherr" >&5
9569
 
echo "${ECHO_T}$ac_cv_search_matherr" >&6
9570
 
if test "$ac_cv_search_matherr" != no; then
9571
 
  test "$ac_cv_search_matherr" = "none required" || LIBS="$ac_cv_search_matherr $LIBS"
9572
 
 
9573
 
fi
9574
 
 
9575
 
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
 
 
9581
 
 
 
2883
echo $ac_n "checking for matherr in -lmx""... $ac_c" 1>&6
 
2884
echo "configure:2885: checking for matherr in -lmx" >&5
 
2885
ac_lib_var=`echo mx'_'matherr | sed 'y%./+-%__p_%'`
 
2886
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2887
  echo $ac_n "(cached) $ac_c" 1>&6
 
2888
else
 
2889
  ac_save_LIBS="$LIBS"
 
2890
LIBS="-lmx  $LIBS"
 
2891
cat > conftest.$ac_ext <<EOF
 
2892
#line 2893 "configure"
 
2893
#include "confdefs.h"
 
2894
/* Override any gcc2 internal prototype to avoid an error.  */
 
2895
/* We use char because int might match the return type of a gcc2
 
2896
    builtin and then its argument prototype would still apply.  */
 
2897
char matherr();
 
2898
 
 
2899
int main() {
 
2900
matherr()
 
2901
; return 0; }
 
2902
EOF
 
2903
if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2904
  rm -rf conftest*
 
2905
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2906
else
 
2907
  echo "configure: failed program was:" >&5
 
2908
  cat conftest.$ac_ext >&5
 
2909
  rm -rf conftest*
 
2910
  eval "ac_cv_lib_$ac_lib_var=no"
 
2911
fi
 
2912
rm -f conftest*
 
2913
LIBS="$ac_save_LIBS"
 
2914
 
 
2915
fi
 
2916
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2917
  echo "$ac_t""yes" 1>&6
 
2918
  LIBS="$LIBS -lmx"
 
2919
else
 
2920
  echo "$ac_t""no" 1>&6
 
2921
LIBS="$LIBS -lm"
 
2922
fi
9582
2923
 
9583
2924
for ac_func in memcpy memmove strchr strcasecmp strerror matherr j0 erf
9584
2925
do
9585
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9587
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9588
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2926
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2927
echo "configure:2928: checking for $ac_func" >&5
 
2928
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2929
  echo $ac_n "(cached) $ac_c" 1>&6
9590
2930
else
9591
 
  cat >conftest.$ac_ext <<_ACEOF
9592
 
#line $LINENO "configure"
9593
 
/* confdefs.h.  */
9594
 
_ACEOF
9595
 
cat confdefs.h >>conftest.$ac_ext
9596
 
cat >>conftest.$ac_ext <<_ACEOF
9597
 
/* end confdefs.h.  */
 
2931
  cat > conftest.$ac_ext <<EOF
 
2932
#line 2933 "configure"
 
2933
#include "confdefs.h"
9598
2934
/* System header to define __stub macros and hopefully few prototypes,
9599
 
    which can conflict with char $ac_func (); below.
9600
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9601
 
    <limits.h> exists even on freestanding compilers.  */
9602
 
#ifdef __STDC__
9603
 
# include <limits.h>
9604
 
#else
9605
 
# include <assert.h>
9606
 
#endif
 
2935
    which can conflict with char $ac_func(); below.  */
 
2936
#include <assert.h>
9607
2937
/* Override any gcc2 internal prototype to avoid an error.  */
9608
 
#ifdef __cplusplus
9609
 
extern "C"
9610
 
{
9611
 
#endif
9612
2938
/* We use char because int might match the return type of a gcc2
9613
 
   builtin and then its argument prototype would still apply.  */
9614
 
char $ac_func ();
 
2939
    builtin and then its argument prototype would still apply.  */
 
2940
char $ac_func();
 
2941
 
 
2942
int main() {
 
2943
 
9615
2944
/* The GNU C library defines this for functions which it implements
9616
2945
    to always fail with ENOSYS.  Some functions are actually named
9617
2946
    something starting with __ and the normal name is an alias.  */
9618
2947
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9619
2948
choke me
9620
2949
#else
9621
 
char (*f) () = $ac_func;
9622
 
#endif
9623
 
#ifdef __cplusplus
9624
 
}
9625
 
#endif
9626
 
 
9627
 
int
9628
 
main ()
9629
 
{
9630
 
return f != $ac_func;
9631
 
  ;
9632
 
  return 0;
9633
 
}
9634
 
_ACEOF
9635
 
rm -f conftest.$ac_objext conftest$ac_exeext
9636
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637
 
  (eval $ac_link) 2>&5
9638
 
  ac_status=$?
9639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
 
  (exit $ac_status); } &&
9641
 
         { ac_try='test -s conftest$ac_exeext'
9642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643
 
  (eval $ac_try) 2>&5
9644
 
  ac_status=$?
9645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646
 
  (exit $ac_status); }; }; then
9647
 
  eval "$as_ac_var=yes"
9648
 
else
9649
 
  echo "$as_me: failed program was:" >&5
9650
 
sed 's/^/| /' conftest.$ac_ext >&5
9651
 
 
9652
 
eval "$as_ac_var=no"
9653
 
fi
9654
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9655
 
fi
9656
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9657
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9658
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9659
 
  cat >>confdefs.h <<_ACEOF
9660
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9661
 
_ACEOF
9662
 
 
 
2950
$ac_func();
 
2951
#endif
 
2952
 
 
2953
; return 0; }
 
2954
EOF
 
2955
if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2956
  rm -rf conftest*
 
2957
  eval "ac_cv_func_$ac_func=yes"
 
2958
else
 
2959
  echo "configure: failed program was:" >&5
 
2960
  cat conftest.$ac_ext >&5
 
2961
  rm -rf conftest*
 
2962
  eval "ac_cv_func_$ac_func=no"
 
2963
fi
 
2964
rm -f conftest*
 
2965
fi
 
2966
 
 
2967
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2968
  echo "$ac_t""yes" 1>&6
 
2969
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2970
  cat >> confdefs.h <<EOF
 
2971
#define $ac_tr_func 1
 
2972
EOF
 
2973
 
 
2974
else
 
2975
  echo "$ac_t""no" 1>&6
9663
2976
fi
9664
2977
done
9665
2978
 
9666
 
 
9667
 
 
9668
 
 
9669
2979
for ac_func in lgamma gamma
9670
2980
do
9671
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9672
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9673
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9674
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9675
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2981
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2982
echo "configure:2983: checking for $ac_func" >&5
 
2983
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2984
  echo $ac_n "(cached) $ac_c" 1>&6
9676
2985
else
9677
 
  cat >conftest.$ac_ext <<_ACEOF
9678
 
#line $LINENO "configure"
9679
 
/* confdefs.h.  */
9680
 
_ACEOF
9681
 
cat confdefs.h >>conftest.$ac_ext
9682
 
cat >>conftest.$ac_ext <<_ACEOF
9683
 
/* end confdefs.h.  */
 
2986
  cat > conftest.$ac_ext <<EOF
 
2987
#line 2988 "configure"
 
2988
#include "confdefs.h"
9684
2989
/* System header to define __stub macros and hopefully few prototypes,
9685
 
    which can conflict with char $ac_func (); below.
9686
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687
 
    <limits.h> exists even on freestanding compilers.  */
9688
 
#ifdef __STDC__
9689
 
# include <limits.h>
9690
 
#else
9691
 
# include <assert.h>
9692
 
#endif
 
2990
    which can conflict with char $ac_func(); below.  */
 
2991
#include <assert.h>
9693
2992
/* Override any gcc2 internal prototype to avoid an error.  */
9694
 
#ifdef __cplusplus
9695
 
extern "C"
9696
 
{
9697
 
#endif
9698
2993
/* We use char because int might match the return type of a gcc2
9699
 
   builtin and then its argument prototype would still apply.  */
9700
 
char $ac_func ();
 
2994
    builtin and then its argument prototype would still apply.  */
 
2995
char $ac_func();
 
2996
 
 
2997
int main() {
 
2998
 
9701
2999
/* The GNU C library defines this for functions which it implements
9702
3000
    to always fail with ENOSYS.  Some functions are actually named
9703
3001
    something starting with __ and the normal name is an alias.  */
9704
3002
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9705
3003
choke me
9706
3004
#else
9707
 
char (*f) () = $ac_func;
9708
 
#endif
9709
 
#ifdef __cplusplus
9710
 
}
9711
 
#endif
9712
 
 
9713
 
int
9714
 
main ()
9715
 
{
9716
 
return f != $ac_func;
9717
 
  ;
9718
 
  return 0;
9719
 
}
9720
 
_ACEOF
9721
 
rm -f conftest.$ac_objext conftest$ac_exeext
9722
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723
 
  (eval $ac_link) 2>&5
9724
 
  ac_status=$?
9725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726
 
  (exit $ac_status); } &&
9727
 
         { ac_try='test -s conftest$ac_exeext'
9728
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729
 
  (eval $ac_try) 2>&5
9730
 
  ac_status=$?
9731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732
 
  (exit $ac_status); }; }; then
9733
 
  eval "$as_ac_var=yes"
9734
 
else
9735
 
  echo "$as_me: failed program was:" >&5
9736
 
sed 's/^/| /' conftest.$ac_ext >&5
9737
 
 
9738
 
eval "$as_ac_var=no"
9739
 
fi
9740
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9741
 
fi
9742
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9743
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9744
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9745
 
  cat >>confdefs.h <<_ACEOF
9746
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9747
 
_ACEOF
9748
 
 
 
3005
$ac_func();
 
3006
#endif
 
3007
 
 
3008
; return 0; }
 
3009
EOF
 
3010
if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3011
  rm -rf conftest*
 
3012
  eval "ac_cv_func_$ac_func=yes"
 
3013
else
 
3014
  echo "configure: failed program was:" >&5
 
3015
  cat conftest.$ac_ext >&5
 
3016
  rm -rf conftest*
 
3017
  eval "ac_cv_func_$ac_func=no"
 
3018
fi
 
3019
rm -f conftest*
 
3020
fi
 
3021
 
 
3022
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
3023
  echo "$ac_t""yes" 1>&6
 
3024
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
3025
  cat >> confdefs.h <<EOF
 
3026
#define $ac_tr_func 1
 
3027
EOF
 
3028
 
 
3029
else
 
3030
  echo "$ac_t""no" 1>&6
9749
3031
fi
9750
3032
done
9751
3033
 
9752
3034
 
9753
3035
 
9754
 
echo "$as_me:$LINENO: checking for X" >&5
9755
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
9756
 
 
 
3036
# If we find X, set shell vars x_includes and x_libraries to the
 
3037
# paths, otherwise set no_x=yes.
 
3038
# Uses ac_ vars as temps to allow command line to override cache and checks.
 
3039
# --without-x overrides everything else, but does not touch the cache.
 
3040
echo $ac_n "checking for X""... $ac_c" 1>&6
 
3041
echo "configure:3042: checking for X" >&5
9757
3042
 
9758
3043
# Check whether --with-x or --without-x was given.
9759
3044
if test "${with_x+set}" = set; then
9760
3045
  withval="$with_x"
 
3046
  :
 
3047
fi
9761
3048
 
9762
 
fi;
9763
3049
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9764
3050
if test "x$with_x" = xno; then
9765
3051
  # The user explicitly disabled X.
9769
3055
    # Both variables are already set.
9770
3056
    have_x=yes
9771
3057
  else
9772
 
    if test "${ac_cv_have_x+set}" = set; then
9773
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3058
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
 
3059
  echo $ac_n "(cached) $ac_c" 1>&6
9774
3060
else
9775
3061
  # One or both of the vars are not set, and there is no cached value.
9776
 
ac_x_includes=no ac_x_libraries=no
9777
 
rm -fr conftest.dir
9778
 
if mkdir conftest.dir; then
9779
 
  cd conftest.dir
 
3062
ac_x_includes=NO ac_x_libraries=NO
 
3063
rm -fr conftestdir
 
3064
if mkdir conftestdir; then
 
3065
  cd conftestdir
9780
3066
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9781
 
  cat >Imakefile <<'_ACEOF'
 
3067
  cat > Imakefile <<'EOF'
9782
3068
acfindx:
9783
3069
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9784
 
_ACEOF
 
3070
EOF
9785
3071
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9786
3072
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9787
3073
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9788
3074
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9789
3075
    for ac_extension in a so sl; do
9790
3076
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9791
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
3077
        test -f $ac_im_libdir/libX11.$ac_extension; then
9792
3078
        ac_im_usrlibdir=$ac_im_libdir; break
9793
3079
      fi
9794
3080
    done
9795
3081
    # Screen out bogus values from the imake configuration.  They are
9796
3082
    # bogus both because they are the default anyway, and because
9797
3083
    # using them would break gcc on systems where it needs fixed includes.
9798
 
    case $ac_im_incroot in
 
3084
    case "$ac_im_incroot" in
9799
3085
        /usr/include) ;;
9800
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
3086
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9801
3087
    esac
9802
 
    case $ac_im_usrlibdir in
 
3088
    case "$ac_im_usrlibdir" in
9803
3089
        /usr/lib | /lib) ;;
9804
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
3090
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9805
3091
    esac
9806
3092
  fi
9807
3093
  cd ..
9808
 
  rm -fr conftest.dir
 
3094
  rm -fr conftestdir
9809
3095
fi
9810
3096
 
9811
 
# Standard set of common directories for X headers.
9812
 
# Check X11 before X11Rn because it is often a symlink to the current release.
9813
 
ac_x_header_dirs='
9814
 
/usr/X11/include
9815
 
/usr/X11R6/include
9816
 
/usr/X11R5/include
9817
 
/usr/X11R4/include
9818
 
 
9819
 
/usr/include/X11
9820
 
/usr/include/X11R6
9821
 
/usr/include/X11R5
9822
 
/usr/include/X11R4
9823
 
 
9824
 
/usr/local/X11/include
9825
 
/usr/local/X11R6/include
9826
 
/usr/local/X11R5/include
9827
 
/usr/local/X11R4/include
9828
 
 
9829
 
/usr/local/include/X11
9830
 
/usr/local/include/X11R6
9831
 
/usr/local/include/X11R5
9832
 
/usr/local/include/X11R4
9833
 
 
9834
 
/usr/X386/include
9835
 
/usr/x386/include
9836
 
/usr/XFree86/include/X11
9837
 
 
9838
 
/usr/include
9839
 
/usr/local/include
9840
 
/usr/unsupported/include
9841
 
/usr/athena/include
9842
 
/usr/local/x11r5/include
9843
 
/usr/lpp/Xamples/include
9844
 
 
9845
 
/usr/openwin/include
9846
 
/usr/openwin/share/include'
9847
 
 
9848
 
if test "$ac_x_includes" = no; then
9849
 
  # Guess where to find include files, by looking for Intrinsic.h.
 
3097
if test "$ac_x_includes" = NO; then
 
3098
  # Guess where to find include files, by looking for this one X11 .h file.
 
3099
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 
3100
 
9850
3101
  # First, try using that file with no special directory specified.
9851
 
  cat >conftest.$ac_ext <<_ACEOF
9852
 
#line $LINENO "configure"
9853
 
/* confdefs.h.  */
9854
 
_ACEOF
9855
 
cat confdefs.h >>conftest.$ac_ext
9856
 
cat >>conftest.$ac_ext <<_ACEOF
9857
 
/* end confdefs.h.  */
9858
 
#include <X11/Intrinsic.h>
9859
 
_ACEOF
9860
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9861
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9862
 
  ac_status=$?
9863
 
  grep -v '^ *+' conftest.er1 >conftest.err
9864
 
  rm -f conftest.er1
9865
 
  cat conftest.err >&5
9866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867
 
  (exit $ac_status); } >/dev/null; then
9868
 
  if test -s conftest.err; then
9869
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9870
 
  else
9871
 
    ac_cpp_err=
9872
 
  fi
9873
 
else
9874
 
  ac_cpp_err=yes
9875
 
fi
9876
 
if test -z "$ac_cpp_err"; then
 
3102
cat > conftest.$ac_ext <<EOF
 
3103
#line 3104 "configure"
 
3104
#include "confdefs.h"
 
3105
#include <$x_direct_test_include>
 
3106
EOF
 
3107
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3108
{ (eval echo configure:3109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3109
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3110
if test -z "$ac_err"; then
 
3111
  rm -rf conftest*
9877
3112
  # We can compile using X headers with no special include directory.
9878
3113
ac_x_includes=
9879
3114
else
9880
 
  echo "$as_me: failed program was:" >&5
9881
 
sed 's/^/| /' conftest.$ac_ext >&5
9882
 
 
9883
 
  for ac_dir in $ac_x_header_dirs; do
9884
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
9885
 
    ac_x_includes=$ac_dir
9886
 
    break
9887
 
  fi
9888
 
done
 
3115
  echo "$ac_err" >&5
 
3116
  echo "configure: failed program was:" >&5
 
3117
  cat conftest.$ac_ext >&5
 
3118
  rm -rf conftest*
 
3119
  # Look for the header file in a standard set of common directories.
 
3120
# Check X11 before X11Rn because it is often a symlink to the current release.
 
3121
  for ac_dir in               \
 
3122
    /usr/X11/include          \
 
3123
    /usr/X11R6/include        \
 
3124
    /usr/X11R5/include        \
 
3125
    /usr/X11R4/include        \
 
3126
                              \
 
3127
    /usr/include/X11          \
 
3128
    /usr/include/X11R6        \
 
3129
    /usr/include/X11R5        \
 
3130
    /usr/include/X11R4        \
 
3131
                              \
 
3132
    /usr/local/X11/include    \
 
3133
    /usr/local/X11R6/include  \
 
3134
    /usr/local/X11R5/include  \
 
3135
    /usr/local/X11R4/include  \
 
3136
                              \
 
3137
    /usr/local/include/X11    \
 
3138
    /usr/local/include/X11R6  \
 
3139
    /usr/local/include/X11R5  \
 
3140
    /usr/local/include/X11R4  \
 
3141
                              \
 
3142
    /usr/X386/include         \
 
3143
    /usr/x386/include         \
 
3144
    /usr/XFree86/include/X11  \
 
3145
                              \
 
3146
    /usr/include              \
 
3147
    /usr/local/include        \
 
3148
    /usr/unsupported/include  \
 
3149
    /usr/athena/include       \
 
3150
    /usr/local/x11r5/include  \
 
3151
    /usr/lpp/Xamples/include  \
 
3152
                              \
 
3153
    /usr/openwin/include      \
 
3154
    /usr/openwin/share/include \
 
3155
    ; \
 
3156
  do
 
3157
    if test -r "$ac_dir/$x_direct_test_include"; then
 
3158
      ac_x_includes=$ac_dir
 
3159
      break
 
3160
    fi
 
3161
  done
9889
3162
fi
9890
 
rm -f conftest.err conftest.$ac_ext
9891
 
fi # $ac_x_includes = no
 
3163
rm -f conftest*
 
3164
fi # $ac_x_includes = NO
9892
3165
 
9893
 
if test "$ac_x_libraries" = no; then
 
3166
if test "$ac_x_libraries" = NO; then
9894
3167
  # Check for the libraries.
 
3168
 
 
3169
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
3170
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
3171
 
9895
3172
  # See if we find them without any special options.
9896
3173
  # Don't add to $LIBS permanently.
9897
 
  ac_save_LIBS=$LIBS
9898
 
  LIBS="-lXt $LIBS"
9899
 
  cat >conftest.$ac_ext <<_ACEOF
9900
 
#line $LINENO "configure"
9901
 
/* confdefs.h.  */
9902
 
_ACEOF
9903
 
cat confdefs.h >>conftest.$ac_ext
9904
 
cat >>conftest.$ac_ext <<_ACEOF
9905
 
/* end confdefs.h.  */
9906
 
#include <X11/Intrinsic.h>
9907
 
int
9908
 
main ()
9909
 
{
9910
 
XtMalloc (0)
9911
 
  ;
9912
 
  return 0;
9913
 
}
9914
 
_ACEOF
9915
 
rm -f conftest.$ac_objext conftest$ac_exeext
9916
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917
 
  (eval $ac_link) 2>&5
9918
 
  ac_status=$?
9919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
 
  (exit $ac_status); } &&
9921
 
         { ac_try='test -s conftest$ac_exeext'
9922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923
 
  (eval $ac_try) 2>&5
9924
 
  ac_status=$?
9925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926
 
  (exit $ac_status); }; }; then
9927
 
  LIBS=$ac_save_LIBS
 
3174
  ac_save_LIBS="$LIBS"
 
3175
  LIBS="-l$x_direct_test_library $LIBS"
 
3176
cat > conftest.$ac_ext <<EOF
 
3177
#line 3178 "configure"
 
3178
#include "confdefs.h"
 
3179
 
 
3180
int main() {
 
3181
${x_direct_test_function}()
 
3182
; return 0; }
 
3183
EOF
 
3184
if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3185
  rm -rf conftest*
 
3186
  LIBS="$ac_save_LIBS"
9928
3187
# We can link X programs with no special library path.
9929
3188
ac_x_libraries=
9930
3189
else
9931
 
  echo "$as_me: failed program was:" >&5
9932
 
sed 's/^/| /' conftest.$ac_ext >&5
9933
 
 
9934
 
LIBS=$ac_save_LIBS
9935
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
3190
  echo "configure: failed program was:" >&5
 
3191
  cat conftest.$ac_ext >&5
 
3192
  rm -rf conftest*
 
3193
  LIBS="$ac_save_LIBS"
 
3194
# First see if replacing the include by lib works.
 
3195
# Check X11 before X11Rn because it is often a symlink to the current release.
 
3196
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
 
3197
    /usr/X11/lib          \
 
3198
    /usr/X11R6/lib        \
 
3199
    /usr/X11R5/lib        \
 
3200
    /usr/X11R4/lib        \
 
3201
                          \
 
3202
    /usr/lib/X11          \
 
3203
    /usr/lib/X11R6        \
 
3204
    /usr/lib/X11R5        \
 
3205
    /usr/lib/X11R4        \
 
3206
                          \
 
3207
    /usr/local/X11/lib    \
 
3208
    /usr/local/X11R6/lib  \
 
3209
    /usr/local/X11R5/lib  \
 
3210
    /usr/local/X11R4/lib  \
 
3211
                          \
 
3212
    /usr/local/lib/X11    \
 
3213
    /usr/local/lib/X11R6  \
 
3214
    /usr/local/lib/X11R5  \
 
3215
    /usr/local/lib/X11R4  \
 
3216
                          \
 
3217
    /usr/X386/lib         \
 
3218
    /usr/x386/lib         \
 
3219
    /usr/XFree86/lib/X11  \
 
3220
                          \
 
3221
    /usr/lib              \
 
3222
    /usr/local/lib        \
 
3223
    /usr/unsupported/lib  \
 
3224
    /usr/athena/lib       \
 
3225
    /usr/local/x11r5/lib  \
 
3226
    /usr/lpp/Xamples/lib  \
 
3227
    /lib/usr/lib/X11      \
 
3228
                          \
 
3229
    /usr/openwin/lib      \
 
3230
    /usr/openwin/share/lib \
 
3231
    ; \
9936
3232
do
9937
 
  # Don't even attempt the hair of trying to link an X program!
9938
3233
  for ac_extension in a so sl; do
9939
 
    if test -r $ac_dir/libXt.$ac_extension; then
 
3234
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9940
3235
      ac_x_libraries=$ac_dir
9941
3236
      break 2
9942
3237
    fi
9943
3238
  done
9944
3239
done
9945
3240
fi
9946
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9947
 
fi # $ac_x_libraries = no
 
3241
rm -f conftest*
 
3242
fi # $ac_x_libraries = NO
9948
3243
 
9949
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
3244
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9950
3245
  # Didn't find X anywhere.  Cache the known absence of X.
9951
3246
  ac_cv_have_x="have_x=no"
9952
3247
else
9955
3250
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9956
3251
fi
9957
3252
fi
9958
 
 
9959
3253
  fi
9960
3254
  eval "$ac_cv_have_x"
9961
3255
fi # $with_x != no
9962
3256
 
9963
3257
if test "$have_x" != yes; then
9964
 
  echo "$as_me:$LINENO: result: $have_x" >&5
9965
 
echo "${ECHO_T}$have_x" >&6
 
3258
  echo "$ac_t""$have_x" 1>&6
9966
3259
  no_x=yes
9967
3260
else
9968
3261
  # If each of the values was on the command line, it overrides each guess.
9971
3264
  # Update the cache value to reflect the command line values.
9972
3265
  ac_cv_have_x="have_x=yes \
9973
3266
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9974
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9975
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
3267
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9976
3268
fi
9977
3269
 
9978
3270
if test "$no_x" = yes; then
9979
3271
  # Not all programs may use this symbol, but it does not hurt to define it.
9980
 
 
9981
 
cat >>confdefs.h <<\_ACEOF
 
3272
  cat >> confdefs.h <<\EOF
9982
3273
#define X_DISPLAY_MISSING 1
9983
 
_ACEOF
 
3274
EOF
9984
3275
 
9985
3276
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9986
3277
else
9993
3284
    X_LIBS="$X_LIBS -L$x_libraries"
9994
3285
    # For Solaris; some versions of Sun CC require a space after -R and
9995
3286
    # others require no space.  Words are not sufficient . . . .
9996
 
    case `(uname -sr) 2>/dev/null` in
 
3287
    case "`(uname -sr) 2>/dev/null`" in
9997
3288
    "SunOS 5"*)
9998
 
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9999
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10000
 
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10001
 
      cat >conftest.$ac_ext <<_ACEOF
10002
 
#line $LINENO "configure"
10003
 
/* confdefs.h.  */
10004
 
_ACEOF
10005
 
cat confdefs.h >>conftest.$ac_ext
10006
 
cat >>conftest.$ac_ext <<_ACEOF
10007
 
/* end confdefs.h.  */
10008
 
 
10009
 
int
10010
 
main ()
10011
 
{
10012
 
 
10013
 
  ;
10014
 
  return 0;
10015
 
}
10016
 
_ACEOF
10017
 
rm -f conftest.$ac_objext conftest$ac_exeext
10018
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019
 
  (eval $ac_link) 2>&5
10020
 
  ac_status=$?
10021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022
 
  (exit $ac_status); } &&
10023
 
         { ac_try='test -s conftest$ac_exeext'
10024
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025
 
  (eval $ac_try) 2>&5
10026
 
  ac_status=$?
10027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028
 
  (exit $ac_status); }; }; then
 
3289
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
 
3290
echo "configure:3291: checking whether -R must be followed by a space" >&5
 
3291
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
 
3292
      cat > conftest.$ac_ext <<EOF
 
3293
#line 3294 "configure"
 
3294
#include "confdefs.h"
 
3295
 
 
3296
int main() {
 
3297
 
 
3298
; return 0; }
 
3299
EOF
 
3300
if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3301
  rm -rf conftest*
10029
3302
  ac_R_nospace=yes
10030
3303
else
10031
 
  echo "$as_me: failed program was:" >&5
10032
 
sed 's/^/| /' conftest.$ac_ext >&5
10033
 
 
10034
 
ac_R_nospace=no
 
3304
  echo "configure: failed program was:" >&5
 
3305
  cat conftest.$ac_ext >&5
 
3306
  rm -rf conftest*
 
3307
  ac_R_nospace=no
10035
3308
fi
10036
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3309
rm -f conftest*
10037
3310
      if test $ac_R_nospace = yes; then
10038
 
        echo "$as_me:$LINENO: result: no" >&5
10039
 
echo "${ECHO_T}no" >&6
 
3311
        echo "$ac_t""no" 1>&6
10040
3312
        X_LIBS="$X_LIBS -R$x_libraries"
10041
3313
      else
10042
3314
        LIBS="$ac_xsave_LIBS -R $x_libraries"
10043
 
        cat >conftest.$ac_ext <<_ACEOF
10044
 
#line $LINENO "configure"
10045
 
/* confdefs.h.  */
10046
 
_ACEOF
10047
 
cat confdefs.h >>conftest.$ac_ext
10048
 
cat >>conftest.$ac_ext <<_ACEOF
10049
 
/* end confdefs.h.  */
10050
 
 
10051
 
int
10052
 
main ()
10053
 
{
10054
 
 
10055
 
  ;
10056
 
  return 0;
10057
 
}
10058
 
_ACEOF
10059
 
rm -f conftest.$ac_objext conftest$ac_exeext
10060
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061
 
  (eval $ac_link) 2>&5
10062
 
  ac_status=$?
10063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064
 
  (exit $ac_status); } &&
10065
 
         { ac_try='test -s conftest$ac_exeext'
10066
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067
 
  (eval $ac_try) 2>&5
10068
 
  ac_status=$?
10069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070
 
  (exit $ac_status); }; }; then
 
3315
        cat > conftest.$ac_ext <<EOF
 
3316
#line 3317 "configure"
 
3317
#include "confdefs.h"
 
3318
 
 
3319
int main() {
 
3320
 
 
3321
; return 0; }
 
3322
EOF
 
3323
if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3324
  rm -rf conftest*
10071
3325
  ac_R_space=yes
10072
3326
else
10073
 
  echo "$as_me: failed program was:" >&5
10074
 
sed 's/^/| /' conftest.$ac_ext >&5
10075
 
 
10076
 
ac_R_space=no
 
3327
  echo "configure: failed program was:" >&5
 
3328
  cat conftest.$ac_ext >&5
 
3329
  rm -rf conftest*
 
3330
  ac_R_space=no
10077
3331
fi
10078
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3332
rm -f conftest*
10079
3333
        if test $ac_R_space = yes; then
10080
 
          echo "$as_me:$LINENO: result: yes" >&5
10081
 
echo "${ECHO_T}yes" >&6
 
3334
          echo "$ac_t""yes" 1>&6
10082
3335
          X_LIBS="$X_LIBS -R $x_libraries"
10083
3336
        else
10084
 
          echo "$as_me:$LINENO: result: neither works" >&5
10085
 
echo "${ECHO_T}neither works" >&6
 
3337
          echo "$ac_t""neither works" 1>&6
10086
3338
        fi
10087
3339
      fi
10088
 
      LIBS=$ac_xsave_LIBS
 
3340
      LIBS="$ac_xsave_LIBS"
10089
3341
    esac
10090
3342
  fi
10091
3343
 
10096
3348
  if test "$ISC" = yes; then
10097
3349
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10098
3350
  else
10099
 
    # Martyn Johnson says this is needed for Ultrix, if the X
10100
 
    # libraries were built with DECnet support.  And Karl Berry says
 
3351
    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
 
3352
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
10101
3353
    # the Alpha needs dnet_stub (dnet does not exist).
10102
 
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10103
 
    cat >conftest.$ac_ext <<_ACEOF
10104
 
#line $LINENO "configure"
10105
 
/* confdefs.h.  */
10106
 
_ACEOF
10107
 
cat confdefs.h >>conftest.$ac_ext
10108
 
cat >>conftest.$ac_ext <<_ACEOF
10109
 
/* end confdefs.h.  */
10110
 
 
10111
 
/* Override any gcc2 internal prototype to avoid an error.  */
10112
 
#ifdef __cplusplus
10113
 
extern "C"
10114
 
#endif
10115
 
/* We use char because int might match the return type of a gcc2
10116
 
   builtin and then its argument prototype would still apply.  */
10117
 
char XOpenDisplay ();
10118
 
int
10119
 
main ()
10120
 
{
10121
 
XOpenDisplay ();
10122
 
  ;
10123
 
  return 0;
10124
 
}
10125
 
_ACEOF
10126
 
rm -f conftest.$ac_objext conftest$ac_exeext
10127
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128
 
  (eval $ac_link) 2>&5
10129
 
  ac_status=$?
10130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131
 
  (exit $ac_status); } &&
10132
 
         { ac_try='test -s conftest$ac_exeext'
10133
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134
 
  (eval $ac_try) 2>&5
10135
 
  ac_status=$?
10136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137
 
  (exit $ac_status); }; }; then
10138
 
  :
10139
 
else
10140
 
  echo "$as_me: failed program was:" >&5
10141
 
sed 's/^/| /' conftest.$ac_ext >&5
10142
 
 
10143
 
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10144
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10145
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10147
 
else
10148
 
  ac_check_lib_save_LIBS=$LIBS
 
3354
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
 
3355
echo "configure:3356: checking for dnet_ntoa in -ldnet" >&5
 
3356
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 
3357
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3358
  echo $ac_n "(cached) $ac_c" 1>&6
 
3359
else
 
3360
  ac_save_LIBS="$LIBS"
10149
3361
LIBS="-ldnet  $LIBS"
10150
 
cat >conftest.$ac_ext <<_ACEOF
10151
 
#line $LINENO "configure"
10152
 
/* confdefs.h.  */
10153
 
_ACEOF
10154
 
cat confdefs.h >>conftest.$ac_ext
10155
 
cat >>conftest.$ac_ext <<_ACEOF
10156
 
/* end confdefs.h.  */
10157
 
 
 
3362
cat > conftest.$ac_ext <<EOF
 
3363
#line 3364 "configure"
 
3364
#include "confdefs.h"
10158
3365
/* Override any gcc2 internal prototype to avoid an error.  */
10159
 
#ifdef __cplusplus
10160
 
extern "C"
10161
 
#endif
10162
3366
/* We use char because int might match the return type of a gcc2
10163
 
   builtin and then its argument prototype would still apply.  */
10164
 
char dnet_ntoa ();
10165
 
int
10166
 
main ()
10167
 
{
10168
 
dnet_ntoa ();
10169
 
  ;
10170
 
  return 0;
10171
 
}
10172
 
_ACEOF
10173
 
rm -f conftest.$ac_objext conftest$ac_exeext
10174
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175
 
  (eval $ac_link) 2>&5
10176
 
  ac_status=$?
10177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178
 
  (exit $ac_status); } &&
10179
 
         { ac_try='test -s conftest$ac_exeext'
10180
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181
 
  (eval $ac_try) 2>&5
10182
 
  ac_status=$?
10183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184
 
  (exit $ac_status); }; }; then
10185
 
  ac_cv_lib_dnet_dnet_ntoa=yes
 
3367
    builtin and then its argument prototype would still apply.  */
 
3368
char dnet_ntoa();
 
3369
 
 
3370
int main() {
 
3371
dnet_ntoa()
 
3372
; return 0; }
 
3373
EOF
 
3374
if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3375
  rm -rf conftest*
 
3376
  eval "ac_cv_lib_$ac_lib_var=yes"
10186
3377
else
10187
 
  echo "$as_me: failed program was:" >&5
10188
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3378
  echo "configure: failed program was:" >&5
 
3379
  cat conftest.$ac_ext >&5
 
3380
  rm -rf conftest*
 
3381
  eval "ac_cv_lib_$ac_lib_var=no"
 
3382
fi
 
3383
rm -f conftest*
 
3384
LIBS="$ac_save_LIBS"
10189
3385
 
10190
 
ac_cv_lib_dnet_dnet_ntoa=no
10191
 
fi
10192
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10193
 
LIBS=$ac_check_lib_save_LIBS
10194
 
fi
10195
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10196
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10197
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
3386
fi
 
3387
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3388
  echo "$ac_t""yes" 1>&6
10198
3389
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
3390
else
 
3391
  echo "$ac_t""no" 1>&6
10199
3392
fi
10200
3393
 
10201
3394
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10202
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10203
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10204
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3395
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
 
3396
echo "configure:3397: checking for dnet_ntoa in -ldnet_stub" >&5
 
3397
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 
3398
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3399
  echo $ac_n "(cached) $ac_c" 1>&6
10206
3400
else
10207
 
  ac_check_lib_save_LIBS=$LIBS
 
3401
  ac_save_LIBS="$LIBS"
10208
3402
LIBS="-ldnet_stub  $LIBS"
10209
 
cat >conftest.$ac_ext <<_ACEOF
10210
 
#line $LINENO "configure"
10211
 
/* confdefs.h.  */
10212
 
_ACEOF
10213
 
cat confdefs.h >>conftest.$ac_ext
10214
 
cat >>conftest.$ac_ext <<_ACEOF
10215
 
/* end confdefs.h.  */
10216
 
 
 
3403
cat > conftest.$ac_ext <<EOF
 
3404
#line 3405 "configure"
 
3405
#include "confdefs.h"
10217
3406
/* Override any gcc2 internal prototype to avoid an error.  */
10218
 
#ifdef __cplusplus
10219
 
extern "C"
10220
 
#endif
10221
3407
/* We use char because int might match the return type of a gcc2
10222
 
   builtin and then its argument prototype would still apply.  */
10223
 
char dnet_ntoa ();
10224
 
int
10225
 
main ()
10226
 
{
10227
 
dnet_ntoa ();
10228
 
  ;
10229
 
  return 0;
10230
 
}
10231
 
_ACEOF
10232
 
rm -f conftest.$ac_objext conftest$ac_exeext
10233
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234
 
  (eval $ac_link) 2>&5
10235
 
  ac_status=$?
10236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237
 
  (exit $ac_status); } &&
10238
 
         { ac_try='test -s conftest$ac_exeext'
10239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240
 
  (eval $ac_try) 2>&5
10241
 
  ac_status=$?
10242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243
 
  (exit $ac_status); }; }; then
10244
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
3408
    builtin and then its argument prototype would still apply.  */
 
3409
char dnet_ntoa();
 
3410
 
 
3411
int main() {
 
3412
dnet_ntoa()
 
3413
; return 0; }
 
3414
EOF
 
3415
if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3416
  rm -rf conftest*
 
3417
  eval "ac_cv_lib_$ac_lib_var=yes"
10245
3418
else
10246
 
  echo "$as_me: failed program was:" >&5
10247
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3419
  echo "configure: failed program was:" >&5
 
3420
  cat conftest.$ac_ext >&5
 
3421
  rm -rf conftest*
 
3422
  eval "ac_cv_lib_$ac_lib_var=no"
 
3423
fi
 
3424
rm -f conftest*
 
3425
LIBS="$ac_save_LIBS"
10248
3426
 
10249
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
10250
 
fi
10251
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10252
 
LIBS=$ac_check_lib_save_LIBS
10253
 
fi
10254
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10255
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10256
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
3427
fi
 
3428
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3429
  echo "$ac_t""yes" 1>&6
10257
3430
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
3431
else
 
3432
  echo "$ac_t""no" 1>&6
10258
3433
fi
10259
3434
 
10260
3435
    fi
10261
 
fi
10262
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10263
 
    LIBS="$ac_xsave_LIBS"
10264
3436
 
10265
3437
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10266
3438
    # to get the SysV transport functions.
10267
 
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
3439
    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10268
3440
    # needs -lnsl.
10269
3441
    # The nsl library prevents programs from opening the X display
10270
 
    # on Irix 5.2, according to T.E. Dickey.
10271
 
    # The functions gethostbyname, getservbyname, and inet_addr are
10272
 
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10273
 
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
10274
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10275
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
10276
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3442
    # on Irix 5.2, according to dickey@clark.net.
 
3443
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
 
3444
echo "configure:3445: checking for gethostbyname" >&5
 
3445
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
 
3446
  echo $ac_n "(cached) $ac_c" 1>&6
10277
3447
else
10278
 
  cat >conftest.$ac_ext <<_ACEOF
10279
 
#line $LINENO "configure"
10280
 
/* confdefs.h.  */
10281
 
_ACEOF
10282
 
cat confdefs.h >>conftest.$ac_ext
10283
 
cat >>conftest.$ac_ext <<_ACEOF
10284
 
/* end confdefs.h.  */
 
3448
  cat > conftest.$ac_ext <<EOF
 
3449
#line 3450 "configure"
 
3450
#include "confdefs.h"
10285
3451
/* System header to define __stub macros and hopefully few prototypes,
10286
 
    which can conflict with char gethostbyname (); below.
10287
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10288
 
    <limits.h> exists even on freestanding compilers.  */
10289
 
#ifdef __STDC__
10290
 
# include <limits.h>
10291
 
#else
10292
 
# include <assert.h>
10293
 
#endif
 
3452
    which can conflict with char gethostbyname(); below.  */
 
3453
#include <assert.h>
10294
3454
/* Override any gcc2 internal prototype to avoid an error.  */
10295
 
#ifdef __cplusplus
10296
 
extern "C"
10297
 
{
10298
 
#endif
10299
3455
/* We use char because int might match the return type of a gcc2
10300
 
   builtin and then its argument prototype would still apply.  */
10301
 
char gethostbyname ();
 
3456
    builtin and then its argument prototype would still apply.  */
 
3457
char gethostbyname();
 
3458
 
 
3459
int main() {
 
3460
 
10302
3461
/* The GNU C library defines this for functions which it implements
10303
3462
    to always fail with ENOSYS.  Some functions are actually named
10304
3463
    something starting with __ and the normal name is an alias.  */
10305
3464
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10306
3465
choke me
10307
3466
#else
10308
 
char (*f) () = gethostbyname;
10309
 
#endif
10310
 
#ifdef __cplusplus
10311
 
}
10312
 
#endif
10313
 
 
10314
 
int
10315
 
main ()
10316
 
{
10317
 
return f != gethostbyname;
10318
 
  ;
10319
 
  return 0;
10320
 
}
10321
 
_ACEOF
10322
 
rm -f conftest.$ac_objext conftest$ac_exeext
10323
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324
 
  (eval $ac_link) 2>&5
10325
 
  ac_status=$?
10326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327
 
  (exit $ac_status); } &&
10328
 
         { ac_try='test -s conftest$ac_exeext'
10329
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330
 
  (eval $ac_try) 2>&5
10331
 
  ac_status=$?
10332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333
 
  (exit $ac_status); }; }; then
10334
 
  ac_cv_func_gethostbyname=yes
10335
 
else
10336
 
  echo "$as_me: failed program was:" >&5
10337
 
sed 's/^/| /' conftest.$ac_ext >&5
10338
 
 
10339
 
ac_cv_func_gethostbyname=no
10340
 
fi
10341
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10342
 
fi
10343
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10344
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
3467
gethostbyname();
 
3468
#endif
 
3469
 
 
3470
; return 0; }
 
3471
EOF
 
3472
if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3473
  rm -rf conftest*
 
3474
  eval "ac_cv_func_gethostbyname=yes"
 
3475
else
 
3476
  echo "configure: failed program was:" >&5
 
3477
  cat conftest.$ac_ext >&5
 
3478
  rm -rf conftest*
 
3479
  eval "ac_cv_func_gethostbyname=no"
 
3480
fi
 
3481
rm -f conftest*
 
3482
fi
 
3483
 
 
3484
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
 
3485
  echo "$ac_t""yes" 1>&6
 
3486
  :
 
3487
else
 
3488
  echo "$ac_t""no" 1>&6
 
3489
fi
10345
3490
 
10346
3491
    if test $ac_cv_func_gethostbyname = no; then
10347
 
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10348
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10349
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3492
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
 
3493
echo "configure:3494: checking for gethostbyname in -lnsl" >&5
 
3494
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
 
3495
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3496
  echo $ac_n "(cached) $ac_c" 1>&6
10351
3497
else
10352
 
  ac_check_lib_save_LIBS=$LIBS
 
3498
  ac_save_LIBS="$LIBS"
10353
3499
LIBS="-lnsl  $LIBS"
10354
 
cat >conftest.$ac_ext <<_ACEOF
10355
 
#line $LINENO "configure"
10356
 
/* confdefs.h.  */
10357
 
_ACEOF
10358
 
cat confdefs.h >>conftest.$ac_ext
10359
 
cat >>conftest.$ac_ext <<_ACEOF
10360
 
/* end confdefs.h.  */
10361
 
 
 
3500
cat > conftest.$ac_ext <<EOF
 
3501
#line 3502 "configure"
 
3502
#include "confdefs.h"
10362
3503
/* Override any gcc2 internal prototype to avoid an error.  */
10363
 
#ifdef __cplusplus
10364
 
extern "C"
10365
 
#endif
10366
3504
/* We use char because int might match the return type of a gcc2
10367
 
   builtin and then its argument prototype would still apply.  */
10368
 
char gethostbyname ();
10369
 
int
10370
 
main ()
10371
 
{
10372
 
gethostbyname ();
10373
 
  ;
10374
 
  return 0;
10375
 
}
10376
 
_ACEOF
10377
 
rm -f conftest.$ac_objext conftest$ac_exeext
10378
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379
 
  (eval $ac_link) 2>&5
10380
 
  ac_status=$?
10381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382
 
  (exit $ac_status); } &&
10383
 
         { ac_try='test -s conftest$ac_exeext'
10384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385
 
  (eval $ac_try) 2>&5
10386
 
  ac_status=$?
10387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388
 
  (exit $ac_status); }; }; then
10389
 
  ac_cv_lib_nsl_gethostbyname=yes
 
3505
    builtin and then its argument prototype would still apply.  */
 
3506
char gethostbyname();
 
3507
 
 
3508
int main() {
 
3509
gethostbyname()
 
3510
; return 0; }
 
3511
EOF
 
3512
if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3513
  rm -rf conftest*
 
3514
  eval "ac_cv_lib_$ac_lib_var=yes"
10390
3515
else
10391
 
  echo "$as_me: failed program was:" >&5
10392
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3516
  echo "configure: failed program was:" >&5
 
3517
  cat conftest.$ac_ext >&5
 
3518
  rm -rf conftest*
 
3519
  eval "ac_cv_lib_$ac_lib_var=no"
 
3520
fi
 
3521
rm -f conftest*
 
3522
LIBS="$ac_save_LIBS"
10393
3523
 
10394
 
ac_cv_lib_nsl_gethostbyname=no
10395
 
fi
10396
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10397
 
LIBS=$ac_check_lib_save_LIBS
10398
 
fi
10399
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10400
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10401
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
3524
fi
 
3525
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3526
  echo "$ac_t""yes" 1>&6
10402
3527
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10403
 
fi
10404
 
 
10405
 
      if test $ac_cv_lib_nsl_gethostbyname = no; then
10406
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10407
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10408
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10410
 
else
10411
 
  ac_check_lib_save_LIBS=$LIBS
10412
 
LIBS="-lbsd  $LIBS"
10413
 
cat >conftest.$ac_ext <<_ACEOF
10414
 
#line $LINENO "configure"
10415
 
/* confdefs.h.  */
10416
 
_ACEOF
10417
 
cat confdefs.h >>conftest.$ac_ext
10418
 
cat >>conftest.$ac_ext <<_ACEOF
10419
 
/* end confdefs.h.  */
10420
 
 
10421
 
/* Override any gcc2 internal prototype to avoid an error.  */
10422
 
#ifdef __cplusplus
10423
 
extern "C"
10424
 
#endif
10425
 
/* We use char because int might match the return type of a gcc2
10426
 
   builtin and then its argument prototype would still apply.  */
10427
 
char gethostbyname ();
10428
 
int
10429
 
main ()
10430
 
{
10431
 
gethostbyname ();
10432
 
  ;
10433
 
  return 0;
10434
 
}
10435
 
_ACEOF
10436
 
rm -f conftest.$ac_objext conftest$ac_exeext
10437
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438
 
  (eval $ac_link) 2>&5
10439
 
  ac_status=$?
10440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441
 
  (exit $ac_status); } &&
10442
 
         { ac_try='test -s conftest$ac_exeext'
10443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444
 
  (eval $ac_try) 2>&5
10445
 
  ac_status=$?
10446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447
 
  (exit $ac_status); }; }; then
10448
 
  ac_cv_lib_bsd_gethostbyname=yes
10449
 
else
10450
 
  echo "$as_me: failed program was:" >&5
10451
 
sed 's/^/| /' conftest.$ac_ext >&5
10452
 
 
10453
 
ac_cv_lib_bsd_gethostbyname=no
10454
 
fi
10455
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10456
 
LIBS=$ac_check_lib_save_LIBS
10457
 
fi
10458
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10459
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10460
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
10461
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10462
 
fi
10463
 
 
10464
 
      fi
 
3528
else
 
3529
  echo "$ac_t""no" 1>&6
 
3530
fi
 
3531
 
10465
3532
    fi
10466
3533
 
10467
3534
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
10468
3535
    # socket/setsockopt and other routines are undefined under SCO ODT
10469
3536
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10470
 
    # on later versions), says Simon Leinen: it contains gethostby*
10471
 
    # variants that don't use the name server (or something).  -lsocket
10472
 
    # must be given before -lnsl if both are needed.  We assume that
10473
 
    # if connect needs -lnsl, so does gethostbyname.
10474
 
    echo "$as_me:$LINENO: checking for connect" >&5
10475
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
10476
 
if test "${ac_cv_func_connect+set}" = set; then
10477
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3537
    # on later versions), says simon@lia.di.epfl.ch: it contains
 
3538
    # gethostby* variants that don't use the nameserver (or something).
 
3539
    # -lsocket must be given before -lnsl if both are needed.
 
3540
    # We assume that if connect needs -lnsl, so does gethostbyname.
 
3541
    echo $ac_n "checking for connect""... $ac_c" 1>&6
 
3542
echo "configure:3543: checking for connect" >&5
 
3543
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
 
3544
  echo $ac_n "(cached) $ac_c" 1>&6
10478
3545
else
10479
 
  cat >conftest.$ac_ext <<_ACEOF
10480
 
#line $LINENO "configure"
10481
 
/* confdefs.h.  */
10482
 
_ACEOF
10483
 
cat confdefs.h >>conftest.$ac_ext
10484
 
cat >>conftest.$ac_ext <<_ACEOF
10485
 
/* end confdefs.h.  */
 
3546
  cat > conftest.$ac_ext <<EOF
 
3547
#line 3548 "configure"
 
3548
#include "confdefs.h"
10486
3549
/* System header to define __stub macros and hopefully few prototypes,
10487
 
    which can conflict with char connect (); below.
10488
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489
 
    <limits.h> exists even on freestanding compilers.  */
10490
 
#ifdef __STDC__
10491
 
# include <limits.h>
10492
 
#else
10493
 
# include <assert.h>
10494
 
#endif
 
3550
    which can conflict with char connect(); below.  */
 
3551
#include <assert.h>
10495
3552
/* Override any gcc2 internal prototype to avoid an error.  */
10496
 
#ifdef __cplusplus
10497
 
extern "C"
10498
 
{
10499
 
#endif
10500
3553
/* We use char because int might match the return type of a gcc2
10501
 
   builtin and then its argument prototype would still apply.  */
10502
 
char connect ();
 
3554
    builtin and then its argument prototype would still apply.  */
 
3555
char connect();
 
3556
 
 
3557
int main() {
 
3558
 
10503
3559
/* The GNU C library defines this for functions which it implements
10504
3560
    to always fail with ENOSYS.  Some functions are actually named
10505
3561
    something starting with __ and the normal name is an alias.  */
10506
3562
#if defined (__stub_connect) || defined (__stub___connect)
10507
3563
choke me
10508
3564
#else
10509
 
char (*f) () = connect;
10510
 
#endif
10511
 
#ifdef __cplusplus
10512
 
}
10513
 
#endif
10514
 
 
10515
 
int
10516
 
main ()
10517
 
{
10518
 
return f != connect;
10519
 
  ;
10520
 
  return 0;
10521
 
}
10522
 
_ACEOF
10523
 
rm -f conftest.$ac_objext conftest$ac_exeext
10524
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525
 
  (eval $ac_link) 2>&5
10526
 
  ac_status=$?
10527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528
 
  (exit $ac_status); } &&
10529
 
         { ac_try='test -s conftest$ac_exeext'
10530
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531
 
  (eval $ac_try) 2>&5
10532
 
  ac_status=$?
10533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534
 
  (exit $ac_status); }; }; then
10535
 
  ac_cv_func_connect=yes
10536
 
else
10537
 
  echo "$as_me: failed program was:" >&5
10538
 
sed 's/^/| /' conftest.$ac_ext >&5
10539
 
 
10540
 
ac_cv_func_connect=no
10541
 
fi
10542
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543
 
fi
10544
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10545
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
3565
connect();
 
3566
#endif
 
3567
 
 
3568
; return 0; }
 
3569
EOF
 
3570
if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3571
  rm -rf conftest*
 
3572
  eval "ac_cv_func_connect=yes"
 
3573
else
 
3574
  echo "configure: failed program was:" >&5
 
3575
  cat conftest.$ac_ext >&5
 
3576
  rm -rf conftest*
 
3577
  eval "ac_cv_func_connect=no"
 
3578
fi
 
3579
rm -f conftest*
 
3580
fi
 
3581
 
 
3582
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
 
3583
  echo "$ac_t""yes" 1>&6
 
3584
  :
 
3585
else
 
3586
  echo "$ac_t""no" 1>&6
 
3587
fi
10546
3588
 
10547
3589
    if test $ac_cv_func_connect = no; then
10548
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10549
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10550
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
10551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3590
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
 
3591
echo "configure:3592: checking for connect in -lsocket" >&5
 
3592
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
 
3593
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3594
  echo $ac_n "(cached) $ac_c" 1>&6
10552
3595
else
10553
 
  ac_check_lib_save_LIBS=$LIBS
 
3596
  ac_save_LIBS="$LIBS"
10554
3597
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10555
 
cat >conftest.$ac_ext <<_ACEOF
10556
 
#line $LINENO "configure"
10557
 
/* confdefs.h.  */
10558
 
_ACEOF
10559
 
cat confdefs.h >>conftest.$ac_ext
10560
 
cat >>conftest.$ac_ext <<_ACEOF
10561
 
/* end confdefs.h.  */
10562
 
 
 
3598
cat > conftest.$ac_ext <<EOF
 
3599
#line 3600 "configure"
 
3600
#include "confdefs.h"
10563
3601
/* Override any gcc2 internal prototype to avoid an error.  */
10564
 
#ifdef __cplusplus
10565
 
extern "C"
10566
 
#endif
10567
3602
/* We use char because int might match the return type of a gcc2
10568
 
   builtin and then its argument prototype would still apply.  */
10569
 
char connect ();
10570
 
int
10571
 
main ()
10572
 
{
10573
 
connect ();
10574
 
  ;
10575
 
  return 0;
10576
 
}
10577
 
_ACEOF
10578
 
rm -f conftest.$ac_objext conftest$ac_exeext
10579
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580
 
  (eval $ac_link) 2>&5
10581
 
  ac_status=$?
10582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583
 
  (exit $ac_status); } &&
10584
 
         { ac_try='test -s conftest$ac_exeext'
10585
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586
 
  (eval $ac_try) 2>&5
10587
 
  ac_status=$?
10588
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589
 
  (exit $ac_status); }; }; then
10590
 
  ac_cv_lib_socket_connect=yes
 
3603
    builtin and then its argument prototype would still apply.  */
 
3604
char connect();
 
3605
 
 
3606
int main() {
 
3607
connect()
 
3608
; return 0; }
 
3609
EOF
 
3610
if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3611
  rm -rf conftest*
 
3612
  eval "ac_cv_lib_$ac_lib_var=yes"
10591
3613
else
10592
 
  echo "$as_me: failed program was:" >&5
10593
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3614
  echo "configure: failed program was:" >&5
 
3615
  cat conftest.$ac_ext >&5
 
3616
  rm -rf conftest*
 
3617
  eval "ac_cv_lib_$ac_lib_var=no"
 
3618
fi
 
3619
rm -f conftest*
 
3620
LIBS="$ac_save_LIBS"
10594
3621
 
10595
 
ac_cv_lib_socket_connect=no
10596
 
fi
10597
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10598
 
LIBS=$ac_check_lib_save_LIBS
10599
 
fi
10600
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10601
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10602
 
if test $ac_cv_lib_socket_connect = yes; then
 
3622
fi
 
3623
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3624
  echo "$ac_t""yes" 1>&6
10603
3625
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
3626
else
 
3627
  echo "$ac_t""no" 1>&6
10604
3628
fi
10605
3629
 
10606
3630
    fi
10607
3631
 
10608
 
    # Guillermo Gomez says -lposix is necessary on A/UX.
10609
 
    echo "$as_me:$LINENO: checking for remove" >&5
10610
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
10611
 
if test "${ac_cv_func_remove+set}" = set; then
10612
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3632
    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
 
3633
    echo $ac_n "checking for remove""... $ac_c" 1>&6
 
3634
echo "configure:3635: checking for remove" >&5
 
3635
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
 
3636
  echo $ac_n "(cached) $ac_c" 1>&6
10613
3637
else
10614
 
  cat >conftest.$ac_ext <<_ACEOF
10615
 
#line $LINENO "configure"
10616
 
/* confdefs.h.  */
10617
 
_ACEOF
10618
 
cat confdefs.h >>conftest.$ac_ext
10619
 
cat >>conftest.$ac_ext <<_ACEOF
10620
 
/* end confdefs.h.  */
 
3638
  cat > conftest.$ac_ext <<EOF
 
3639
#line 3640 "configure"
 
3640
#include "confdefs.h"
10621
3641
/* System header to define __stub macros and hopefully few prototypes,
10622
 
    which can conflict with char remove (); below.
10623
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10624
 
    <limits.h> exists even on freestanding compilers.  */
10625
 
#ifdef __STDC__
10626
 
# include <limits.h>
10627
 
#else
10628
 
# include <assert.h>
10629
 
#endif
 
3642
    which can conflict with char remove(); below.  */
 
3643
#include <assert.h>
10630
3644
/* Override any gcc2 internal prototype to avoid an error.  */
10631
 
#ifdef __cplusplus
10632
 
extern "C"
10633
 
{
10634
 
#endif
10635
3645
/* We use char because int might match the return type of a gcc2
10636
 
   builtin and then its argument prototype would still apply.  */
10637
 
char remove ();
 
3646
    builtin and then its argument prototype would still apply.  */
 
3647
char remove();
 
3648
 
 
3649
int main() {
 
3650
 
10638
3651
/* The GNU C library defines this for functions which it implements
10639
3652
    to always fail with ENOSYS.  Some functions are actually named
10640
3653
    something starting with __ and the normal name is an alias.  */
10641
3654
#if defined (__stub_remove) || defined (__stub___remove)
10642
3655
choke me
10643
3656
#else
10644
 
char (*f) () = remove;
10645
 
#endif
10646
 
#ifdef __cplusplus
10647
 
}
10648
 
#endif
10649
 
 
10650
 
int
10651
 
main ()
10652
 
{
10653
 
return f != remove;
10654
 
  ;
10655
 
  return 0;
10656
 
}
10657
 
_ACEOF
10658
 
rm -f conftest.$ac_objext conftest$ac_exeext
10659
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660
 
  (eval $ac_link) 2>&5
10661
 
  ac_status=$?
10662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663
 
  (exit $ac_status); } &&
10664
 
         { ac_try='test -s conftest$ac_exeext'
10665
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666
 
  (eval $ac_try) 2>&5
10667
 
  ac_status=$?
10668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669
 
  (exit $ac_status); }; }; then
10670
 
  ac_cv_func_remove=yes
10671
 
else
10672
 
  echo "$as_me: failed program was:" >&5
10673
 
sed 's/^/| /' conftest.$ac_ext >&5
10674
 
 
10675
 
ac_cv_func_remove=no
10676
 
fi
10677
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10678
 
fi
10679
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10680
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
3657
remove();
 
3658
#endif
 
3659
 
 
3660
; return 0; }
 
3661
EOF
 
3662
if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3663
  rm -rf conftest*
 
3664
  eval "ac_cv_func_remove=yes"
 
3665
else
 
3666
  echo "configure: failed program was:" >&5
 
3667
  cat conftest.$ac_ext >&5
 
3668
  rm -rf conftest*
 
3669
  eval "ac_cv_func_remove=no"
 
3670
fi
 
3671
rm -f conftest*
 
3672
fi
 
3673
 
 
3674
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
 
3675
  echo "$ac_t""yes" 1>&6
 
3676
  :
 
3677
else
 
3678
  echo "$ac_t""no" 1>&6
 
3679
fi
10681
3680
 
10682
3681
    if test $ac_cv_func_remove = no; then
10683
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10684
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10685
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
10686
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3682
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
 
3683
echo "configure:3684: checking for remove in -lposix" >&5
 
3684
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
 
3685
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3686
  echo $ac_n "(cached) $ac_c" 1>&6
10687
3687
else
10688
 
  ac_check_lib_save_LIBS=$LIBS
 
3688
  ac_save_LIBS="$LIBS"
10689
3689
LIBS="-lposix  $LIBS"
10690
 
cat >conftest.$ac_ext <<_ACEOF
10691
 
#line $LINENO "configure"
10692
 
/* confdefs.h.  */
10693
 
_ACEOF
10694
 
cat confdefs.h >>conftest.$ac_ext
10695
 
cat >>conftest.$ac_ext <<_ACEOF
10696
 
/* end confdefs.h.  */
10697
 
 
 
3690
cat > conftest.$ac_ext <<EOF
 
3691
#line 3692 "configure"
 
3692
#include "confdefs.h"
10698
3693
/* Override any gcc2 internal prototype to avoid an error.  */
10699
 
#ifdef __cplusplus
10700
 
extern "C"
10701
 
#endif
10702
3694
/* We use char because int might match the return type of a gcc2
10703
 
   builtin and then its argument prototype would still apply.  */
10704
 
char remove ();
10705
 
int
10706
 
main ()
10707
 
{
10708
 
remove ();
10709
 
  ;
10710
 
  return 0;
10711
 
}
10712
 
_ACEOF
10713
 
rm -f conftest.$ac_objext conftest$ac_exeext
10714
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10715
 
  (eval $ac_link) 2>&5
10716
 
  ac_status=$?
10717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718
 
  (exit $ac_status); } &&
10719
 
         { ac_try='test -s conftest$ac_exeext'
10720
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721
 
  (eval $ac_try) 2>&5
10722
 
  ac_status=$?
10723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724
 
  (exit $ac_status); }; }; then
10725
 
  ac_cv_lib_posix_remove=yes
 
3695
    builtin and then its argument prototype would still apply.  */
 
3696
char remove();
 
3697
 
 
3698
int main() {
 
3699
remove()
 
3700
; return 0; }
 
3701
EOF
 
3702
if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3703
  rm -rf conftest*
 
3704
  eval "ac_cv_lib_$ac_lib_var=yes"
10726
3705
else
10727
 
  echo "$as_me: failed program was:" >&5
10728
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3706
  echo "configure: failed program was:" >&5
 
3707
  cat conftest.$ac_ext >&5
 
3708
  rm -rf conftest*
 
3709
  eval "ac_cv_lib_$ac_lib_var=no"
 
3710
fi
 
3711
rm -f conftest*
 
3712
LIBS="$ac_save_LIBS"
10729
3713
 
10730
 
ac_cv_lib_posix_remove=no
10731
 
fi
10732
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10733
 
LIBS=$ac_check_lib_save_LIBS
10734
 
fi
10735
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10736
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10737
 
if test $ac_cv_lib_posix_remove = yes; then
 
3714
fi
 
3715
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3716
  echo "$ac_t""yes" 1>&6
10738
3717
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
3718
else
 
3719
  echo "$ac_t""no" 1>&6
10739
3720
fi
10740
3721
 
10741
3722
    fi
10742
3723
 
10743
3724
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10744
 
    echo "$as_me:$LINENO: checking for shmat" >&5
10745
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10746
 
if test "${ac_cv_func_shmat+set}" = set; then
10747
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3725
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
 
3726
echo "configure:3727: checking for shmat" >&5
 
3727
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
 
3728
  echo $ac_n "(cached) $ac_c" 1>&6
10748
3729
else
10749
 
  cat >conftest.$ac_ext <<_ACEOF
10750
 
#line $LINENO "configure"
10751
 
/* confdefs.h.  */
10752
 
_ACEOF
10753
 
cat confdefs.h >>conftest.$ac_ext
10754
 
cat >>conftest.$ac_ext <<_ACEOF
10755
 
/* end confdefs.h.  */
 
3730
  cat > conftest.$ac_ext <<EOF
 
3731
#line 3732 "configure"
 
3732
#include "confdefs.h"
10756
3733
/* System header to define __stub macros and hopefully few prototypes,
10757
 
    which can conflict with char shmat (); below.
10758
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759
 
    <limits.h> exists even on freestanding compilers.  */
10760
 
#ifdef __STDC__
10761
 
# include <limits.h>
10762
 
#else
10763
 
# include <assert.h>
10764
 
#endif
 
3734
    which can conflict with char shmat(); below.  */
 
3735
#include <assert.h>
10765
3736
/* Override any gcc2 internal prototype to avoid an error.  */
10766
 
#ifdef __cplusplus
10767
 
extern "C"
10768
 
{
10769
 
#endif
10770
3737
/* We use char because int might match the return type of a gcc2
10771
 
   builtin and then its argument prototype would still apply.  */
10772
 
char shmat ();
 
3738
    builtin and then its argument prototype would still apply.  */
 
3739
char shmat();
 
3740
 
 
3741
int main() {
 
3742
 
10773
3743
/* The GNU C library defines this for functions which it implements
10774
3744
    to always fail with ENOSYS.  Some functions are actually named
10775
3745
    something starting with __ and the normal name is an alias.  */
10776
3746
#if defined (__stub_shmat) || defined (__stub___shmat)
10777
3747
choke me
10778
3748
#else
10779
 
char (*f) () = shmat;
10780
 
#endif
10781
 
#ifdef __cplusplus
10782
 
}
10783
 
#endif
10784
 
 
10785
 
int
10786
 
main ()
10787
 
{
10788
 
return f != shmat;
10789
 
  ;
10790
 
  return 0;
10791
 
}
10792
 
_ACEOF
10793
 
rm -f conftest.$ac_objext conftest$ac_exeext
10794
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795
 
  (eval $ac_link) 2>&5
10796
 
  ac_status=$?
10797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798
 
  (exit $ac_status); } &&
10799
 
         { ac_try='test -s conftest$ac_exeext'
10800
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801
 
  (eval $ac_try) 2>&5
10802
 
  ac_status=$?
10803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804
 
  (exit $ac_status); }; }; then
10805
 
  ac_cv_func_shmat=yes
10806
 
else
10807
 
  echo "$as_me: failed program was:" >&5
10808
 
sed 's/^/| /' conftest.$ac_ext >&5
10809
 
 
10810
 
ac_cv_func_shmat=no
10811
 
fi
10812
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10813
 
fi
10814
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10815
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
3749
shmat();
 
3750
#endif
 
3751
 
 
3752
; return 0; }
 
3753
EOF
 
3754
if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3755
  rm -rf conftest*
 
3756
  eval "ac_cv_func_shmat=yes"
 
3757
else
 
3758
  echo "configure: failed program was:" >&5
 
3759
  cat conftest.$ac_ext >&5
 
3760
  rm -rf conftest*
 
3761
  eval "ac_cv_func_shmat=no"
 
3762
fi
 
3763
rm -f conftest*
 
3764
fi
 
3765
 
 
3766
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
 
3767
  echo "$ac_t""yes" 1>&6
 
3768
  :
 
3769
else
 
3770
  echo "$ac_t""no" 1>&6
 
3771
fi
10816
3772
 
10817
3773
    if test $ac_cv_func_shmat = no; then
10818
 
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10819
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10820
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10821
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3774
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
 
3775
echo "configure:3776: checking for shmat in -lipc" >&5
 
3776
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
 
3777
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3778
  echo $ac_n "(cached) $ac_c" 1>&6
10822
3779
else
10823
 
  ac_check_lib_save_LIBS=$LIBS
 
3780
  ac_save_LIBS="$LIBS"
10824
3781
LIBS="-lipc  $LIBS"
10825
 
cat >conftest.$ac_ext <<_ACEOF
10826
 
#line $LINENO "configure"
10827
 
/* confdefs.h.  */
10828
 
_ACEOF
10829
 
cat confdefs.h >>conftest.$ac_ext
10830
 
cat >>conftest.$ac_ext <<_ACEOF
10831
 
/* end confdefs.h.  */
10832
 
 
 
3782
cat > conftest.$ac_ext <<EOF
 
3783
#line 3784 "configure"
 
3784
#include "confdefs.h"
10833
3785
/* Override any gcc2 internal prototype to avoid an error.  */
10834
 
#ifdef __cplusplus
10835
 
extern "C"
10836
 
#endif
10837
3786
/* We use char because int might match the return type of a gcc2
10838
 
   builtin and then its argument prototype would still apply.  */
10839
 
char shmat ();
10840
 
int
10841
 
main ()
10842
 
{
10843
 
shmat ();
10844
 
  ;
10845
 
  return 0;
10846
 
}
10847
 
_ACEOF
10848
 
rm -f conftest.$ac_objext conftest$ac_exeext
10849
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850
 
  (eval $ac_link) 2>&5
10851
 
  ac_status=$?
10852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853
 
  (exit $ac_status); } &&
10854
 
         { ac_try='test -s conftest$ac_exeext'
10855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856
 
  (eval $ac_try) 2>&5
10857
 
  ac_status=$?
10858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859
 
  (exit $ac_status); }; }; then
10860
 
  ac_cv_lib_ipc_shmat=yes
 
3787
    builtin and then its argument prototype would still apply.  */
 
3788
char shmat();
 
3789
 
 
3790
int main() {
 
3791
shmat()
 
3792
; return 0; }
 
3793
EOF
 
3794
if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3795
  rm -rf conftest*
 
3796
  eval "ac_cv_lib_$ac_lib_var=yes"
10861
3797
else
10862
 
  echo "$as_me: failed program was:" >&5
10863
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3798
  echo "configure: failed program was:" >&5
 
3799
  cat conftest.$ac_ext >&5
 
3800
  rm -rf conftest*
 
3801
  eval "ac_cv_lib_$ac_lib_var=no"
 
3802
fi
 
3803
rm -f conftest*
 
3804
LIBS="$ac_save_LIBS"
10864
3805
 
10865
 
ac_cv_lib_ipc_shmat=no
10866
 
fi
10867
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10868
 
LIBS=$ac_check_lib_save_LIBS
10869
 
fi
10870
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10871
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10872
 
if test $ac_cv_lib_ipc_shmat = yes; then
 
3806
fi
 
3807
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3808
  echo "$ac_t""yes" 1>&6
10873
3809
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
3810
else
 
3811
  echo "$ac_t""no" 1>&6
10874
3812
fi
10875
3813
 
10876
3814
    fi
10877
3815
  fi
10878
3816
 
10879
3817
  # Check for libraries that X11R6 Xt/Xaw programs need.
10880
 
  ac_save_LDFLAGS=$LDFLAGS
 
3818
  ac_save_LDFLAGS="$LDFLAGS"
10881
3819
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10882
3820
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10883
3821
  # check for ICE first), but we must link in the order -lSM -lICE or
10884
3822
  # we get undefined symbols.  So assume we have SM if we have ICE.
10885
3823
  # These have to be linked with before -lX11, unlike the other
10886
3824
  # libraries we check for below, so use a different variable.
10887
 
  # John Interrante, Karl Berry
10888
 
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10889
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10890
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3825
  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 
3826
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
 
3827
echo "configure:3828: checking for IceConnectionNumber in -lICE" >&5
 
3828
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
 
3829
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3830
  echo $ac_n "(cached) $ac_c" 1>&6
10892
3831
else
10893
 
  ac_check_lib_save_LIBS=$LIBS
 
3832
  ac_save_LIBS="$LIBS"
10894
3833
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10895
 
cat >conftest.$ac_ext <<_ACEOF
10896
 
#line $LINENO "configure"
10897
 
/* confdefs.h.  */
10898
 
_ACEOF
10899
 
cat confdefs.h >>conftest.$ac_ext
10900
 
cat >>conftest.$ac_ext <<_ACEOF
10901
 
/* end confdefs.h.  */
10902
 
 
 
3834
cat > conftest.$ac_ext <<EOF
 
3835
#line 3836 "configure"
 
3836
#include "confdefs.h"
10903
3837
/* Override any gcc2 internal prototype to avoid an error.  */
10904
 
#ifdef __cplusplus
10905
 
extern "C"
10906
 
#endif
10907
3838
/* We use char because int might match the return type of a gcc2
10908
 
   builtin and then its argument prototype would still apply.  */
10909
 
char IceConnectionNumber ();
10910
 
int
10911
 
main ()
10912
 
{
10913
 
IceConnectionNumber ();
10914
 
  ;
10915
 
  return 0;
10916
 
}
10917
 
_ACEOF
10918
 
rm -f conftest.$ac_objext conftest$ac_exeext
10919
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920
 
  (eval $ac_link) 2>&5
10921
 
  ac_status=$?
10922
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923
 
  (exit $ac_status); } &&
10924
 
         { ac_try='test -s conftest$ac_exeext'
10925
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926
 
  (eval $ac_try) 2>&5
10927
 
  ac_status=$?
10928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929
 
  (exit $ac_status); }; }; then
10930
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
3839
    builtin and then its argument prototype would still apply.  */
 
3840
char IceConnectionNumber();
 
3841
 
 
3842
int main() {
 
3843
IceConnectionNumber()
 
3844
; return 0; }
 
3845
EOF
 
3846
if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3847
  rm -rf conftest*
 
3848
  eval "ac_cv_lib_$ac_lib_var=yes"
10931
3849
else
10932
 
  echo "$as_me: failed program was:" >&5
10933
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3850
  echo "configure: failed program was:" >&5
 
3851
  cat conftest.$ac_ext >&5
 
3852
  rm -rf conftest*
 
3853
  eval "ac_cv_lib_$ac_lib_var=no"
 
3854
fi
 
3855
rm -f conftest*
 
3856
LIBS="$ac_save_LIBS"
10934
3857
 
10935
 
ac_cv_lib_ICE_IceConnectionNumber=no
10936
 
fi
10937
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10938
 
LIBS=$ac_check_lib_save_LIBS
10939
 
fi
10940
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10941
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10942
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
3858
fi
 
3859
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3860
  echo "$ac_t""yes" 1>&6
10943
3861
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
3862
else
 
3863
  echo "$ac_t""no" 1>&6
10944
3864
fi
10945
3865
 
10946
 
  LDFLAGS=$ac_save_LDFLAGS
 
3866
  LDFLAGS="$ac_save_LDFLAGS"
10947
3867
 
10948
3868
fi
10949
3869
 
10959
3879
 
10960
3880
our_saved_LDFLAGS="$LDFLAGS"
10961
3881
LDFLAGS="$X_LIBS $LDFLAGS"
10962
 
echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
10963
 
echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
10964
 
if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
10965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3882
echo $ac_n "checking for XtToolkitThreadInitialize in -lXt""... $ac_c" 1>&6
 
3883
echo "configure:3884: checking for XtToolkitThreadInitialize in -lXt" >&5
 
3884
ac_lib_var=`echo Xt'_'XtToolkitThreadInitialize | sed 'y%./+-%__p_%'`
 
3885
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3886
  echo $ac_n "(cached) $ac_c" 1>&6
10966
3887
else
10967
 
  ac_check_lib_save_LIBS=$LIBS
 
3888
  ac_save_LIBS="$LIBS"
10968
3889
LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
10969
 
cat >conftest.$ac_ext <<_ACEOF
10970
 
#line $LINENO "configure"
10971
 
/* confdefs.h.  */
10972
 
_ACEOF
10973
 
cat confdefs.h >>conftest.$ac_ext
10974
 
cat >>conftest.$ac_ext <<_ACEOF
10975
 
/* end confdefs.h.  */
10976
 
 
 
3890
cat > conftest.$ac_ext <<EOF
 
3891
#line 3892 "configure"
 
3892
#include "confdefs.h"
10977
3893
/* Override any gcc2 internal prototype to avoid an error.  */
10978
 
#ifdef __cplusplus
10979
 
extern "C"
10980
 
#endif
10981
3894
/* We use char because int might match the return type of a gcc2
10982
 
   builtin and then its argument prototype would still apply.  */
10983
 
char XtToolkitThreadInitialize ();
10984
 
int
10985
 
main ()
10986
 
{
10987
 
XtToolkitThreadInitialize ();
10988
 
  ;
10989
 
  return 0;
10990
 
}
10991
 
_ACEOF
10992
 
rm -f conftest.$ac_objext conftest$ac_exeext
10993
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994
 
  (eval $ac_link) 2>&5
10995
 
  ac_status=$?
10996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997
 
  (exit $ac_status); } &&
10998
 
         { ac_try='test -s conftest$ac_exeext'
10999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000
 
  (eval $ac_try) 2>&5
11001
 
  ac_status=$?
11002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003
 
  (exit $ac_status); }; }; then
11004
 
  ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
 
3895
    builtin and then its argument prototype would still apply.  */
 
3896
char XtToolkitThreadInitialize();
 
3897
 
 
3898
int main() {
 
3899
XtToolkitThreadInitialize()
 
3900
; return 0; }
 
3901
EOF
 
3902
if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3903
  rm -rf conftest*
 
3904
  eval "ac_cv_lib_$ac_lib_var=yes"
11005
3905
else
11006
 
  echo "$as_me: failed program was:" >&5
11007
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3906
  echo "configure: failed program was:" >&5
 
3907
  cat conftest.$ac_ext >&5
 
3908
  rm -rf conftest*
 
3909
  eval "ac_cv_lib_$ac_lib_var=no"
 
3910
fi
 
3911
rm -f conftest*
 
3912
LIBS="$ac_save_LIBS"
11008
3913
 
11009
 
ac_cv_lib_Xt_XtToolkitThreadInitialize=no
11010
 
fi
11011
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11012
 
LIBS=$ac_check_lib_save_LIBS
11013
 
fi
11014
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
11015
 
echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
11016
 
if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
11017
 
  cat >>confdefs.h <<\_ACEOF
 
3914
fi
 
3915
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3916
  echo "$ac_t""yes" 1>&6
 
3917
  cat >> confdefs.h <<\EOF
11018
3918
#define X_THREAD_SUPPORT 1
11019
 
_ACEOF
 
3919
EOF
11020
3920
 
 
3921
else
 
3922
  echo "$ac_t""no" 1>&6
11021
3923
fi
11022
3924
 
11023
3925
LDFLAGS="$our_saved_LDFLAGS"
11024
3926
 
11025
3927
our_saved_LDFLAGS="$LDFLAGS"
11026
3928
LDFLAGS="$X_LIBS $LDFLAGS"
11027
 
echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
11028
 
echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6
11029
 
if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
11030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3929
echo $ac_n "checking for XdbeQueryExtension in -lXext""... $ac_c" 1>&6
 
3930
echo "configure:3931: checking for XdbeQueryExtension in -lXext" >&5
 
3931
ac_lib_var=`echo Xext'_'XdbeQueryExtension | sed 'y%./+-%__p_%'`
 
3932
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3933
  echo $ac_n "(cached) $ac_c" 1>&6
11031
3934
else
11032
 
  ac_check_lib_save_LIBS=$LIBS
 
3935
  ac_save_LIBS="$LIBS"
11033
3936
LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
11034
 
cat >conftest.$ac_ext <<_ACEOF
11035
 
#line $LINENO "configure"
11036
 
/* confdefs.h.  */
11037
 
_ACEOF
11038
 
cat confdefs.h >>conftest.$ac_ext
11039
 
cat >>conftest.$ac_ext <<_ACEOF
11040
 
/* end confdefs.h.  */
11041
 
 
 
3937
cat > conftest.$ac_ext <<EOF
 
3938
#line 3939 "configure"
 
3939
#include "confdefs.h"
11042
3940
/* Override any gcc2 internal prototype to avoid an error.  */
11043
 
#ifdef __cplusplus
11044
 
extern "C"
11045
 
#endif
11046
3941
/* We use char because int might match the return type of a gcc2
11047
 
   builtin and then its argument prototype would still apply.  */
11048
 
char XdbeQueryExtension ();
11049
 
int
11050
 
main ()
11051
 
{
11052
 
XdbeQueryExtension ();
11053
 
  ;
11054
 
  return 0;
11055
 
}
11056
 
_ACEOF
11057
 
rm -f conftest.$ac_objext conftest$ac_exeext
11058
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11059
 
  (eval $ac_link) 2>&5
11060
 
  ac_status=$?
11061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062
 
  (exit $ac_status); } &&
11063
 
         { ac_try='test -s conftest$ac_exeext'
11064
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065
 
  (eval $ac_try) 2>&5
11066
 
  ac_status=$?
11067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068
 
  (exit $ac_status); }; }; then
11069
 
  ac_cv_lib_Xext_XdbeQueryExtension=yes
 
3942
    builtin and then its argument prototype would still apply.  */
 
3943
char XdbeQueryExtension();
 
3944
 
 
3945
int main() {
 
3946
XdbeQueryExtension()
 
3947
; return 0; }
 
3948
EOF
 
3949
if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3950
  rm -rf conftest*
 
3951
  eval "ac_cv_lib_$ac_lib_var=yes"
11070
3952
else
11071
 
  echo "$as_me: failed program was:" >&5
11072
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3953
  echo "configure: failed program was:" >&5
 
3954
  cat conftest.$ac_ext >&5
 
3955
  rm -rf conftest*
 
3956
  eval "ac_cv_lib_$ac_lib_var=no"
 
3957
fi
 
3958
rm -f conftest*
 
3959
LIBS="$ac_save_LIBS"
11073
3960
 
11074
 
ac_cv_lib_Xext_XdbeQueryExtension=no
11075
 
fi
11076
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11077
 
LIBS=$ac_check_lib_save_LIBS
11078
 
fi
11079
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
11080
 
echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6
11081
 
if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
11082
 
  cat >>confdefs.h <<\_ACEOF
 
3961
fi
 
3962
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3963
  echo "$ac_t""yes" 1>&6
 
3964
  cat >> confdefs.h <<\EOF
11083
3965
#define HAVE_DBE_SUPPORT 1
11084
 
_ACEOF
 
3966
EOF
11085
3967
 
 
3968
else
 
3969
  echo "$ac_t""no" 1>&6
11086
3970
fi
11087
3971
 
11088
 
echo "$as_me:$LINENO: checking for XmbufQueryExtension in -lXext" >&5
11089
 
echo $ECHO_N "checking for XmbufQueryExtension in -lXext... $ECHO_C" >&6
11090
 
if test "${ac_cv_lib_Xext_XmbufQueryExtension+set}" = set; then
11091
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3972
echo $ac_n "checking for XmbufQueryExtension in -lXext""... $ac_c" 1>&6
 
3973
echo "configure:3974: checking for XmbufQueryExtension in -lXext" >&5
 
3974
ac_lib_var=`echo Xext'_'XmbufQueryExtension | sed 'y%./+-%__p_%'`
 
3975
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3976
  echo $ac_n "(cached) $ac_c" 1>&6
11092
3977
else
11093
 
  ac_check_lib_save_LIBS=$LIBS
 
3978
  ac_save_LIBS="$LIBS"
11094
3979
LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
11095
 
cat >conftest.$ac_ext <<_ACEOF
11096
 
#line $LINENO "configure"
11097
 
/* confdefs.h.  */
11098
 
_ACEOF
11099
 
cat confdefs.h >>conftest.$ac_ext
11100
 
cat >>conftest.$ac_ext <<_ACEOF
11101
 
/* end confdefs.h.  */
11102
 
 
 
3980
cat > conftest.$ac_ext <<EOF
 
3981
#line 3982 "configure"
 
3982
#include "confdefs.h"
11103
3983
/* Override any gcc2 internal prototype to avoid an error.  */
11104
 
#ifdef __cplusplus
11105
 
extern "C"
11106
 
#endif
11107
3984
/* We use char because int might match the return type of a gcc2
11108
 
   builtin and then its argument prototype would still apply.  */
11109
 
char XmbufQueryExtension ();
11110
 
int
11111
 
main ()
11112
 
{
11113
 
XmbufQueryExtension ();
11114
 
  ;
11115
 
  return 0;
11116
 
}
11117
 
_ACEOF
11118
 
rm -f conftest.$ac_objext conftest$ac_exeext
11119
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120
 
  (eval $ac_link) 2>&5
11121
 
  ac_status=$?
11122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123
 
  (exit $ac_status); } &&
11124
 
         { ac_try='test -s conftest$ac_exeext'
11125
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126
 
  (eval $ac_try) 2>&5
11127
 
  ac_status=$?
11128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129
 
  (exit $ac_status); }; }; then
11130
 
  ac_cv_lib_Xext_XmbufQueryExtension=yes
 
3985
    builtin and then its argument prototype would still apply.  */
 
3986
char XmbufQueryExtension();
 
3987
 
 
3988
int main() {
 
3989
XmbufQueryExtension()
 
3990
; return 0; }
 
3991
EOF
 
3992
if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3993
  rm -rf conftest*
 
3994
  eval "ac_cv_lib_$ac_lib_var=yes"
11131
3995
else
11132
 
  echo "$as_me: failed program was:" >&5
11133
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3996
  echo "configure: failed program was:" >&5
 
3997
  cat conftest.$ac_ext >&5
 
3998
  rm -rf conftest*
 
3999
  eval "ac_cv_lib_$ac_lib_var=no"
 
4000
fi
 
4001
rm -f conftest*
 
4002
LIBS="$ac_save_LIBS"
11134
4003
 
11135
 
ac_cv_lib_Xext_XmbufQueryExtension=no
11136
 
fi
11137
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11138
 
LIBS=$ac_check_lib_save_LIBS
11139
 
fi
11140
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XmbufQueryExtension" >&5
11141
 
echo "${ECHO_T}$ac_cv_lib_Xext_XmbufQueryExtension" >&6
11142
 
if test $ac_cv_lib_Xext_XmbufQueryExtension = yes; then
11143
 
  cat >>confdefs.h <<\_ACEOF
 
4004
fi
 
4005
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4006
  echo "$ac_t""yes" 1>&6
 
4007
  cat >> confdefs.h <<\EOF
11144
4008
#define HAVE_MBX_SUPPORT 1
11145
 
_ACEOF
 
4009
EOF
11146
4010
 
 
4011
else
 
4012
  echo "$ac_t""no" 1>&6
11147
4013
fi
11148
4014
 
11149
4015
LDFLAGS="$our_saved_LDFLAGS"
11150
4016
 
11151
4017
our_saved_CPPFLAGS="$CPPFLAGS"
11152
4018
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
11153
 
 
11154
 
 
11155
 
for ac_header in X11/extensions/Xdbe.h X11/extensions/multibuf.h
 
4019
for ac_hdr in X11/extensions/Xdbe.h X11/extensions/multibuf.h
11156
4020
do
11157
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11159
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11160
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11162
 
else
11163
 
  cat >conftest.$ac_ext <<_ACEOF
11164
 
#line $LINENO "configure"
11165
 
/* confdefs.h.  */
11166
 
_ACEOF
11167
 
cat confdefs.h >>conftest.$ac_ext
11168
 
cat >>conftest.$ac_ext <<_ACEOF
11169
 
/* end confdefs.h.  */
11170
 
#include <X11/Xlib.h>
11171
 
 
11172
 
#include <$ac_header>
11173
 
_ACEOF
11174
 
rm -f conftest.$ac_objext
11175
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176
 
  (eval $ac_compile) 2>&5
11177
 
  ac_status=$?
11178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179
 
  (exit $ac_status); } &&
11180
 
         { ac_try='test -s conftest.$ac_objext'
11181
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182
 
  (eval $ac_try) 2>&5
11183
 
  ac_status=$?
11184
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185
 
  (exit $ac_status); }; }; then
11186
 
  eval "$as_ac_Header=yes"
11187
 
else
11188
 
  echo "$as_me: failed program was:" >&5
11189
 
sed 's/^/| /' conftest.$ac_ext >&5
11190
 
 
11191
 
eval "$as_ac_Header=no"
11192
 
fi
11193
 
rm -f conftest.$ac_objext conftest.$ac_ext
11194
 
fi
11195
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11197
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11198
 
  cat >>confdefs.h <<_ACEOF
11199
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11200
 
_ACEOF
11201
 
 
11202
 
fi
11203
 
 
 
4021
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
4022
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
4023
echo "configure:4024: checking for $ac_hdr" >&5
 
4024
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4025
  echo $ac_n "(cached) $ac_c" 1>&6
 
4026
else
 
4027
  cat > conftest.$ac_ext <<EOF
 
4028
#line 4029 "configure"
 
4029
#include "confdefs.h"
 
4030
#include <$ac_hdr>
 
4031
EOF
 
4032
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4033
{ (eval echo configure:4034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4034
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4035
if test -z "$ac_err"; then
 
4036
  rm -rf conftest*
 
4037
  eval "ac_cv_header_$ac_safe=yes"
 
4038
else
 
4039
  echo "$ac_err" >&5
 
4040
  echo "configure: failed program was:" >&5
 
4041
  cat conftest.$ac_ext >&5
 
4042
  rm -rf conftest*
 
4043
  eval "ac_cv_header_$ac_safe=no"
 
4044
fi
 
4045
rm -f conftest*
 
4046
fi
 
4047
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4048
  echo "$ac_t""yes" 1>&6
 
4049
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
4050
  cat >> confdefs.h <<EOF
 
4051
#define $ac_tr_hdr 1
 
4052
EOF
 
4053
 
 
4054
else
 
4055
  echo "$ac_t""no" 1>&6
 
4056
fi
11204
4057
done
11205
4058
 
11206
4059
CPPFLAGS="$our_saved_CPPFLAGS"
11207
4060
 
11208
4061
 
11209
 
 
11210
4062
# Check whether --with-athena or --without-athena was given.
11211
4063
if test "${with_athena+set}" = set; then
11212
4064
  withval="$with_athena"
11213
 
 
11214
 
fi;
 
4065
  :
 
4066
fi
11215
4067
 
11216
4068
 
11217
4069
 
11218
4070
# Check whether --with-motif or --without-motif was given.
11219
4071
if test "${with_motif+set}" = set; then
11220
4072
  withval="$with_motif"
11221
 
 
11222
 
fi;
 
4073
  :
 
4074
fi
11223
4075
 
11224
4076
 
11225
4077
 
11226
4078
# Check whether --with-xpm or --without-xpm was given.
11227
4079
if test "${with_xpm+set}" = set; then
11228
4080
  withval="$with_xpm"
 
4081
  :
 
4082
fi
11229
4083
 
11230
 
fi;
11231
4084
 
11232
4085
 
11233
4086
 
11256
4109
  our_saved_LDFLAGS="$LDFLAGS"
11257
4110
  LDFLAGS="$LDFLAGS $X_LIBS"
11258
4111
  case "x$with_xpm" in
11259
 
    xyes|x)
11260
 
      echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11261
 
echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11262
 
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11263
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11264
 
else
11265
 
  ac_check_lib_save_LIBS=$LIBS
11266
 
LIBS="-lXpm -lXext -lX11 $LIBS"
11267
 
cat >conftest.$ac_ext <<_ACEOF
11268
 
#line $LINENO "configure"
11269
 
/* confdefs.h.  */
11270
 
_ACEOF
11271
 
cat confdefs.h >>conftest.$ac_ext
11272
 
cat >>conftest.$ac_ext <<_ACEOF
11273
 
/* end confdefs.h.  */
11274
 
 
11275
 
/* Override any gcc2 internal prototype to avoid an error.  */
11276
 
#ifdef __cplusplus
11277
 
extern "C"
11278
 
#endif
11279
 
/* We use char because int might match the return type of a gcc2
11280
 
   builtin and then its argument prototype would still apply.  */
11281
 
char XpmReadFileToPixmap ();
11282
 
int
11283
 
main ()
11284
 
{
11285
 
XpmReadFileToPixmap ();
11286
 
  ;
11287
 
  return 0;
11288
 
}
11289
 
_ACEOF
11290
 
rm -f conftest.$ac_objext conftest$ac_exeext
11291
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292
 
  (eval $ac_link) 2>&5
11293
 
  ac_status=$?
11294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295
 
  (exit $ac_status); } &&
11296
 
         { ac_try='test -s conftest$ac_exeext'
11297
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298
 
  (eval $ac_try) 2>&5
11299
 
  ac_status=$?
11300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301
 
  (exit $ac_status); }; }; then
11302
 
  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11303
 
else
11304
 
  echo "$as_me: failed program was:" >&5
11305
 
sed 's/^/| /' conftest.$ac_ext >&5
11306
 
 
11307
 
ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11308
 
fi
11309
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310
 
LIBS=$ac_check_lib_save_LIBS
11311
 
fi
11312
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11313
 
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11314
 
if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11315
 
  X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
11316
 
fi
11317
 
 
11318
 
      ;;
11319
 
    xno) ;;
 
4112
    xno|x)
 
4113
      echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
 
4114
echo "configure:4115: checking for XpmReadFileToPixmap in -lXpm" >&5
 
4115
ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
 
4116
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4117
  echo $ac_n "(cached) $ac_c" 1>&6
 
4118
else
 
4119
  ac_save_LIBS="$LIBS"
 
4120
LIBS="-lXpm -lXext -lX11 $LIBS"
 
4121
cat > conftest.$ac_ext <<EOF
 
4122
#line 4123 "configure"
 
4123
#include "confdefs.h"
 
4124
/* Override any gcc2 internal prototype to avoid an error.  */
 
4125
/* We use char because int might match the return type of a gcc2
 
4126
    builtin and then its argument prototype would still apply.  */
 
4127
char XpmReadFileToPixmap();
 
4128
 
 
4129
int main() {
 
4130
XpmReadFileToPixmap()
 
4131
; return 0; }
 
4132
EOF
 
4133
if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4134
  rm -rf conftest*
 
4135
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4136
else
 
4137
  echo "configure: failed program was:" >&5
 
4138
  cat conftest.$ac_ext >&5
 
4139
  rm -rf conftest*
 
4140
  eval "ac_cv_lib_$ac_lib_var=no"
 
4141
fi
 
4142
rm -f conftest*
 
4143
LIBS="$ac_save_LIBS"
 
4144
 
 
4145
fi
 
4146
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4147
  echo "$ac_t""yes" 1>&6
 
4148
  X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
 
4149
else
 
4150
  echo "$ac_t""no" 1>&6
 
4151
fi
 
4152
 
 
4153
      ;;
 
4154
    xyes)
 
4155
      echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
 
4156
echo "configure:4157: checking for XpmReadFileToPixmap in -lXpm" >&5
 
4157
ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
 
4158
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4159
  echo $ac_n "(cached) $ac_c" 1>&6
 
4160
else
 
4161
  ac_save_LIBS="$LIBS"
 
4162
LIBS="-lXpm -lXext -lX11 $LIBS"
 
4163
cat > conftest.$ac_ext <<EOF
 
4164
#line 4165 "configure"
 
4165
#include "confdefs.h"
 
4166
/* Override any gcc2 internal prototype to avoid an error.  */
 
4167
/* We use char because int might match the return type of a gcc2
 
4168
    builtin and then its argument prototype would still apply.  */
 
4169
char XpmReadFileToPixmap();
 
4170
 
 
4171
int main() {
 
4172
XpmReadFileToPixmap()
 
4173
; return 0; }
 
4174
EOF
 
4175
if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4176
  rm -rf conftest*
 
4177
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4178
else
 
4179
  echo "configure: failed program was:" >&5
 
4180
  cat conftest.$ac_ext >&5
 
4181
  rm -rf conftest*
 
4182
  eval "ac_cv_lib_$ac_lib_var=no"
 
4183
fi
 
4184
rm -f conftest*
 
4185
LIBS="$ac_save_LIBS"
 
4186
 
 
4187
fi
 
4188
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4189
  echo "$ac_t""yes" 1>&6
 
4190
  X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
 
4191
else
 
4192
  echo "$ac_t""no" 1>&6
 
4193
fi
 
4194
 
 
4195
      ;;
11320
4196
    *)
11321
4197
      LDFLAGS="$LDFLAGS -L$with_xpm/lib"
11322
 
      echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11323
 
echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11324
 
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4198
      echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
 
4199
echo "configure:4200: checking for XpmReadFileToPixmap in -lXpm" >&5
 
4200
ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
 
4201
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4202
  echo $ac_n "(cached) $ac_c" 1>&6
11326
4203
else
11327
 
  ac_check_lib_save_LIBS=$LIBS
 
4204
  ac_save_LIBS="$LIBS"
11328
4205
LIBS="-lXpm -lXext -lX11 $LIBS"
11329
 
cat >conftest.$ac_ext <<_ACEOF
11330
 
#line $LINENO "configure"
11331
 
/* confdefs.h.  */
11332
 
_ACEOF
11333
 
cat confdefs.h >>conftest.$ac_ext
11334
 
cat >>conftest.$ac_ext <<_ACEOF
11335
 
/* end confdefs.h.  */
11336
 
 
 
4206
cat > conftest.$ac_ext <<EOF
 
4207
#line 4208 "configure"
 
4208
#include "confdefs.h"
11337
4209
/* Override any gcc2 internal prototype to avoid an error.  */
11338
 
#ifdef __cplusplus
11339
 
extern "C"
11340
 
#endif
11341
4210
/* We use char because int might match the return type of a gcc2
11342
 
   builtin and then its argument prototype would still apply.  */
11343
 
char XpmReadFileToPixmap ();
11344
 
int
11345
 
main ()
11346
 
{
11347
 
XpmReadFileToPixmap ();
11348
 
  ;
11349
 
  return 0;
11350
 
}
11351
 
_ACEOF
11352
 
rm -f conftest.$ac_objext conftest$ac_exeext
11353
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354
 
  (eval $ac_link) 2>&5
11355
 
  ac_status=$?
11356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357
 
  (exit $ac_status); } &&
11358
 
         { ac_try='test -s conftest$ac_exeext'
11359
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360
 
  (eval $ac_try) 2>&5
11361
 
  ac_status=$?
11362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363
 
  (exit $ac_status); }; }; then
11364
 
  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
 
4211
    builtin and then its argument prototype would still apply.  */
 
4212
char XpmReadFileToPixmap();
 
4213
 
 
4214
int main() {
 
4215
XpmReadFileToPixmap()
 
4216
; return 0; }
 
4217
EOF
 
4218
if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4219
  rm -rf conftest*
 
4220
  eval "ac_cv_lib_$ac_lib_var=yes"
11365
4221
else
11366
 
  echo "$as_me: failed program was:" >&5
11367
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4222
  echo "configure: failed program was:" >&5
 
4223
  cat conftest.$ac_ext >&5
 
4224
  rm -rf conftest*
 
4225
  eval "ac_cv_lib_$ac_lib_var=no"
 
4226
fi
 
4227
rm -f conftest*
 
4228
LIBS="$ac_save_LIBS"
11368
4229
 
11369
 
ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11370
 
fi
11371
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11372
 
LIBS=$ac_check_lib_save_LIBS
11373
 
fi
11374
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11375
 
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11376
 
if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
 
4230
fi
 
4231
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4232
  echo "$ac_t""yes" 1>&6
11377
4233
  X_CFLAGS="$X_CFLAGS -I$with_xpm/include"; X_LIBS="$X_LIBS -L$with_xpm/lib"; X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
 
4234
else
 
4235
  echo "$ac_t""no" 1>&6
11378
4236
fi
11379
 
 
 
4237
 
11380
4238
      ;;
11381
4239
  esac
 
4240
  LDFLAGS="$our_saved_LDFLAGS"
11382
4241
 
11383
 
  echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
11384
 
echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
11385
 
if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
11386
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4242
  our_saved_LDFLAGS="$LDFLAGS"
 
4243
  LDFLAGS="$LDFLAGS $X_LIBS"
 
4244
  echo $ac_n "checking for XpQueryExtension in -lXp""... $ac_c" 1>&6
 
4245
echo "configure:4246: checking for XpQueryExtension in -lXp" >&5
 
4246
ac_lib_var=`echo Xp'_'XpQueryExtension | sed 'y%./+-%__p_%'`
 
4247
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4248
  echo $ac_n "(cached) $ac_c" 1>&6
11387
4249
else
11388
 
  ac_check_lib_save_LIBS=$LIBS
 
4250
  ac_save_LIBS="$LIBS"
11389
4251
LIBS="-lXp -lXext -lX11 $LIBS"
11390
 
cat >conftest.$ac_ext <<_ACEOF
11391
 
#line $LINENO "configure"
11392
 
/* confdefs.h.  */
11393
 
_ACEOF
11394
 
cat confdefs.h >>conftest.$ac_ext
11395
 
cat >>conftest.$ac_ext <<_ACEOF
11396
 
/* end confdefs.h.  */
11397
 
 
 
4252
cat > conftest.$ac_ext <<EOF
 
4253
#line 4254 "configure"
 
4254
#include "confdefs.h"
11398
4255
/* Override any gcc2 internal prototype to avoid an error.  */
11399
 
#ifdef __cplusplus
11400
 
extern "C"
11401
 
#endif
11402
4256
/* We use char because int might match the return type of a gcc2
11403
 
   builtin and then its argument prototype would still apply.  */
11404
 
char XpQueryExtension ();
11405
 
int
11406
 
main ()
11407
 
{
11408
 
XpQueryExtension ();
11409
 
  ;
11410
 
  return 0;
11411
 
}
11412
 
_ACEOF
11413
 
rm -f conftest.$ac_objext conftest$ac_exeext
11414
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11415
 
  (eval $ac_link) 2>&5
11416
 
  ac_status=$?
11417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418
 
  (exit $ac_status); } &&
11419
 
         { ac_try='test -s conftest$ac_exeext'
11420
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421
 
  (eval $ac_try) 2>&5
11422
 
  ac_status=$?
11423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424
 
  (exit $ac_status); }; }; then
11425
 
  ac_cv_lib_Xp_XpQueryExtension=yes
 
4257
    builtin and then its argument prototype would still apply.  */
 
4258
char XpQueryExtension();
 
4259
 
 
4260
int main() {
 
4261
XpQueryExtension()
 
4262
; return 0; }
 
4263
EOF
 
4264
if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4265
  rm -rf conftest*
 
4266
  eval "ac_cv_lib_$ac_lib_var=yes"
11426
4267
else
11427
 
  echo "$as_me: failed program was:" >&5
11428
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4268
  echo "configure: failed program was:" >&5
 
4269
  cat conftest.$ac_ext >&5
 
4270
  rm -rf conftest*
 
4271
  eval "ac_cv_lib_$ac_lib_var=no"
 
4272
fi
 
4273
rm -f conftest*
 
4274
LIBS="$ac_save_LIBS"
11429
4275
 
11430
 
ac_cv_lib_Xp_XpQueryExtension=no
11431
 
fi
11432
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11433
 
LIBS=$ac_check_lib_save_LIBS
11434
 
fi
11435
 
echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
11436
 
echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
11437
 
if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
 
4276
fi
 
4277
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4278
  echo "$ac_t""yes" 1>&6
11438
4279
  X_BASIC_LIBS="-lXp $X_BASIC_LIBS"
11439
 
fi
11440
 
 
11441
 
  echo "$as_me:$LINENO: checking for library containing regex" >&5
11442
 
echo $ECHO_N "checking for library containing regex... $ECHO_C" >&6
11443
 
if test "${ac_cv_search_regex+set}" = set; then
11444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11445
 
else
11446
 
  ac_func_search_save_LIBS=$LIBS
11447
 
ac_cv_search_regex=no
11448
 
cat >conftest.$ac_ext <<_ACEOF
11449
 
#line $LINENO "configure"
11450
 
/* confdefs.h.  */
11451
 
_ACEOF
11452
 
cat confdefs.h >>conftest.$ac_ext
11453
 
cat >>conftest.$ac_ext <<_ACEOF
11454
 
/* end confdefs.h.  */
11455
 
 
11456
 
/* Override any gcc2 internal prototype to avoid an error.  */
11457
 
#ifdef __cplusplus
11458
 
extern "C"
11459
 
#endif
11460
 
/* We use char because int might match the return type of a gcc2
11461
 
   builtin and then its argument prototype would still apply.  */
11462
 
char regex ();
11463
 
int
11464
 
main ()
11465
 
{
11466
 
regex ();
11467
 
  ;
11468
 
  return 0;
11469
 
}
11470
 
_ACEOF
11471
 
rm -f conftest.$ac_objext conftest$ac_exeext
11472
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11473
 
  (eval $ac_link) 2>&5
11474
 
  ac_status=$?
11475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476
 
  (exit $ac_status); } &&
11477
 
         { ac_try='test -s conftest$ac_exeext'
11478
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479
 
  (eval $ac_try) 2>&5
11480
 
  ac_status=$?
11481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482
 
  (exit $ac_status); }; }; then
11483
 
  ac_cv_search_regex="none required"
11484
 
else
11485
 
  echo "$as_me: failed program was:" >&5
11486
 
sed 's/^/| /' conftest.$ac_ext >&5
11487
 
 
11488
 
fi
11489
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11490
 
if test "$ac_cv_search_regex" = no; then
11491
 
  for ac_lib in gen PW; do
11492
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11493
 
    cat >conftest.$ac_ext <<_ACEOF
11494
 
#line $LINENO "configure"
11495
 
/* confdefs.h.  */
11496
 
_ACEOF
11497
 
cat confdefs.h >>conftest.$ac_ext
11498
 
cat >>conftest.$ac_ext <<_ACEOF
11499
 
/* end confdefs.h.  */
11500
 
 
11501
 
/* Override any gcc2 internal prototype to avoid an error.  */
11502
 
#ifdef __cplusplus
11503
 
extern "C"
11504
 
#endif
11505
 
/* We use char because int might match the return type of a gcc2
11506
 
   builtin and then its argument prototype would still apply.  */
11507
 
char regex ();
11508
 
int
11509
 
main ()
11510
 
{
11511
 
regex ();
11512
 
  ;
11513
 
  return 0;
11514
 
}
11515
 
_ACEOF
11516
 
rm -f conftest.$ac_objext conftest$ac_exeext
11517
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518
 
  (eval $ac_link) 2>&5
11519
 
  ac_status=$?
11520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521
 
  (exit $ac_status); } &&
11522
 
         { ac_try='test -s conftest$ac_exeext'
11523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524
 
  (eval $ac_try) 2>&5
11525
 
  ac_status=$?
11526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527
 
  (exit $ac_status); }; }; then
11528
 
  ac_cv_search_regex="-l$ac_lib"
11529
 
break
11530
 
else
11531
 
  echo "$as_me: failed program was:" >&5
11532
 
sed 's/^/| /' conftest.$ac_ext >&5
11533
 
 
11534
 
fi
11535
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11536
 
  done
11537
 
fi
11538
 
LIBS=$ac_func_search_save_LIBS
11539
 
fi
11540
 
echo "$as_me:$LINENO: result: $ac_cv_search_regex" >&5
11541
 
echo "${ECHO_T}$ac_cv_search_regex" >&6
11542
 
if test "$ac_cv_search_regex" != no; then
11543
 
  test "$ac_cv_search_regex" = "none required" || LIBS="$ac_cv_search_regex $LIBS"
11544
 
 
11545
 
fi
11546
 
 
 
4280
else
 
4281
  echo "$ac_t""no" 1>&6
 
4282
fi
 
4283
 
 
4284
  echo $ac_n "checking for regex in -lgen""... $ac_c" 1>&6
 
4285
echo "configure:4286: checking for regex in -lgen" >&5
 
4286
ac_lib_var=`echo gen'_'regex | sed 'y%./+-%__p_%'`
 
4287
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4288
  echo $ac_n "(cached) $ac_c" 1>&6
 
4289
else
 
4290
  ac_save_LIBS="$LIBS"
 
4291
LIBS="-lgen  $LIBS"
 
4292
cat > conftest.$ac_ext <<EOF
 
4293
#line 4294 "configure"
 
4294
#include "confdefs.h"
 
4295
/* Override any gcc2 internal prototype to avoid an error.  */
 
4296
/* We use char because int might match the return type of a gcc2
 
4297
    builtin and then its argument prototype would still apply.  */
 
4298
char regex();
 
4299
 
 
4300
int main() {
 
4301
regex()
 
4302
; return 0; }
 
4303
EOF
 
4304
if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4305
  rm -rf conftest*
 
4306
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4307
else
 
4308
  echo "configure: failed program was:" >&5
 
4309
  cat conftest.$ac_ext >&5
 
4310
  rm -rf conftest*
 
4311
  eval "ac_cv_lib_$ac_lib_var=no"
 
4312
fi
 
4313
rm -f conftest*
 
4314
LIBS="$ac_save_LIBS"
 
4315
 
 
4316
fi
 
4317
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4318
  echo "$ac_t""yes" 1>&6
 
4319
  LIBS="$LIBS -lc -lgen"
 
4320
else
 
4321
  echo "$ac_t""no" 1>&6
 
4322
LIBS="$LIBS"
 
4323
fi
 
4324
 
 
4325
  echo $ac_n "checking for regex in -lPW""... $ac_c" 1>&6
 
4326
echo "configure:4327: checking for regex in -lPW" >&5
 
4327
ac_lib_var=`echo PW'_'regex | sed 'y%./+-%__p_%'`
 
4328
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4329
  echo $ac_n "(cached) $ac_c" 1>&6
 
4330
else
 
4331
  ac_save_LIBS="$LIBS"
 
4332
LIBS="-lPW  $LIBS"
 
4333
cat > conftest.$ac_ext <<EOF
 
4334
#line 4335 "configure"
 
4335
#include "confdefs.h"
 
4336
/* Override any gcc2 internal prototype to avoid an error.  */
 
4337
/* We use char because int might match the return type of a gcc2
 
4338
    builtin and then its argument prototype would still apply.  */
 
4339
char regex();
 
4340
 
 
4341
int main() {
 
4342
regex()
 
4343
; return 0; }
 
4344
EOF
 
4345
if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4346
  rm -rf conftest*
 
4347
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4348
else
 
4349
  echo "configure: failed program was:" >&5
 
4350
  cat conftest.$ac_ext >&5
 
4351
  rm -rf conftest*
 
4352
  eval "ac_cv_lib_$ac_lib_var=no"
 
4353
fi
 
4354
rm -f conftest*
 
4355
LIBS="$ac_save_LIBS"
 
4356
 
 
4357
fi
 
4358
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4359
  echo "$ac_t""yes" 1>&6
 
4360
  LIBS="$LIBS -lc -lPW"
 
4361
else
 
4362
  echo "$ac_t""no" 1>&6
 
4363
LIBS="$LIBS"
 
4364
fi
 
4365
 
11547
4366
  LDFLAGS="$our_saved_LDFLAGS"
11548
4367
 
11549
 
  cat >>confdefs.h <<\_ACEOF
 
4368
  cat >> confdefs.h <<\EOF
11550
4369
#define USE_MOTIF 1
11551
 
_ACEOF
11552
 
 
 
4370
EOF
 
4371
 
11553
4372
  ;;
11554
4373
esac
11555
4374
 
11566
4385
 
11567
4386
 
11568
4387
 
11569
 
 
 
4388
for ac_hdr in png.h
 
4389
do
 
4390
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
4391
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
4392
echo "configure:4393: checking for $ac_hdr" >&5
 
4393
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4394
  echo $ac_n "(cached) $ac_c" 1>&6
 
4395
else
 
4396
  cat > conftest.$ac_ext <<EOF
 
4397
#line 4398 "configure"
 
4398
#include "confdefs.h"
 
4399
#include <$ac_hdr>
 
4400
EOF
 
4401
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4402
{ (eval echo configure:4403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4403
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4404
if test -z "$ac_err"; then
 
4405
  rm -rf conftest*
 
4406
  eval "ac_cv_header_$ac_safe=yes"
 
4407
else
 
4408
  echo "$ac_err" >&5
 
4409
  echo "configure: failed program was:" >&5
 
4410
  cat conftest.$ac_ext >&5
 
4411
  rm -rf conftest*
 
4412
  eval "ac_cv_header_$ac_safe=no"
 
4413
fi
 
4414
rm -f conftest*
 
4415
fi
 
4416
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4417
  echo "$ac_t""yes" 1>&6
 
4418
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
4419
  cat >> confdefs.h <<EOF
 
4420
#define $ac_tr_hdr 1
 
4421
EOF
 
4422
 png_support="yes"
 
4423
else
 
4424
  echo "$ac_t""no" 1>&6
 
4425
png_support="no"
 
4426
fi
 
4427
done
 
4428
 
 
4429
echo $ac_n "checking for png_set_tRNS in -lpng""... $ac_c" 1>&6
 
4430
echo "configure:4431: checking for png_set_tRNS in -lpng" >&5
 
4431
ac_lib_var=`echo png'_'png_set_tRNS | sed 'y%./+-%__p_%'`
 
4432
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4433
  echo $ac_n "(cached) $ac_c" 1>&6
 
4434
else
 
4435
  ac_save_LIBS="$LIBS"
 
4436
LIBS="-lpng -lz -lm $LIBS"
 
4437
cat > conftest.$ac_ext <<EOF
 
4438
#line 4439 "configure"
 
4439
#include "confdefs.h"
 
4440
/* Override any gcc2 internal prototype to avoid an error.  */
 
4441
/* We use char because int might match the return type of a gcc2
 
4442
    builtin and then its argument prototype would still apply.  */
 
4443
char png_set_tRNS();
 
4444
 
 
4445
int main() {
 
4446
png_set_tRNS()
 
4447
; return 0; }
 
4448
EOF
 
4449
if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4450
  rm -rf conftest*
 
4451
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4452
else
 
4453
  echo "configure: failed program was:" >&5
 
4454
  cat conftest.$ac_ext >&5
 
4455
  rm -rf conftest*
 
4456
  eval "ac_cv_lib_$ac_lib_var=no"
 
4457
fi
 
4458
rm -f conftest*
 
4459
LIBS="$ac_save_LIBS"
 
4460
 
 
4461
fi
 
4462
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4463
  echo "$ac_t""yes" 1>&6
 
4464
  cat >> confdefs.h <<\EOF
 
4465
#define HAVE_LIBPNG 1
 
4466
EOF
 
4467
 
 
4468
else
 
4469
  echo "$ac_t""no" 1>&6
 
4470
png_support="no"
 
4471
fi
11570
4472
 
11571
4473
# Check whether --with-libpng or --without-libpng was given.
11572
4474
if test "${with_libpng+set}" = set; then
11573
4475
  withval="$with_libpng"
11574
 
 
11575
 
fi;
11576
 
 
11577
 
if test "${with_libpng:=yes}" = yes; then
11578
 
 
11579
 
for ac_header in png.h
11580
 
do
11581
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11582
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11583
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11584
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11585
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11587
 
fi
11588
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11589
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11590
 
else
11591
 
  # Is the header compilable?
11592
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11593
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11594
 
cat >conftest.$ac_ext <<_ACEOF
11595
 
#line $LINENO "configure"
11596
 
/* confdefs.h.  */
11597
 
_ACEOF
11598
 
cat confdefs.h >>conftest.$ac_ext
11599
 
cat >>conftest.$ac_ext <<_ACEOF
11600
 
/* end confdefs.h.  */
11601
 
$ac_includes_default
11602
 
#include <$ac_header>
11603
 
_ACEOF
11604
 
rm -f conftest.$ac_objext
11605
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606
 
  (eval $ac_compile) 2>&5
11607
 
  ac_status=$?
11608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609
 
  (exit $ac_status); } &&
11610
 
         { ac_try='test -s conftest.$ac_objext'
11611
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612
 
  (eval $ac_try) 2>&5
11613
 
  ac_status=$?
11614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615
 
  (exit $ac_status); }; }; then
11616
 
  ac_header_compiler=yes
11617
 
else
11618
 
  echo "$as_me: failed program was:" >&5
11619
 
sed 's/^/| /' conftest.$ac_ext >&5
11620
 
 
11621
 
ac_header_compiler=no
11622
 
fi
11623
 
rm -f conftest.$ac_objext conftest.$ac_ext
11624
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11625
 
echo "${ECHO_T}$ac_header_compiler" >&6
11626
 
 
11627
 
# Is the header present?
11628
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11629
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11630
 
cat >conftest.$ac_ext <<_ACEOF
11631
 
#line $LINENO "configure"
11632
 
/* confdefs.h.  */
11633
 
_ACEOF
11634
 
cat confdefs.h >>conftest.$ac_ext
11635
 
cat >>conftest.$ac_ext <<_ACEOF
11636
 
/* end confdefs.h.  */
11637
 
#include <$ac_header>
11638
 
_ACEOF
11639
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11640
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11641
 
  ac_status=$?
11642
 
  grep -v '^ *+' conftest.er1 >conftest.err
11643
 
  rm -f conftest.er1
11644
 
  cat conftest.err >&5
11645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646
 
  (exit $ac_status); } >/dev/null; then
11647
 
  if test -s conftest.err; then
11648
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11649
 
  else
11650
 
    ac_cpp_err=
11651
 
  fi
11652
 
else
11653
 
  ac_cpp_err=yes
11654
 
fi
11655
 
if test -z "$ac_cpp_err"; then
11656
 
  ac_header_preproc=yes
11657
 
else
11658
 
  echo "$as_me: failed program was:" >&5
11659
 
sed 's/^/| /' conftest.$ac_ext >&5
11660
 
 
11661
 
  ac_header_preproc=no
11662
 
fi
11663
 
rm -f conftest.err conftest.$ac_ext
11664
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11665
 
echo "${ECHO_T}$ac_header_preproc" >&6
11666
 
 
11667
 
# So?  What about this header?
11668
 
case $ac_header_compiler:$ac_header_preproc in
11669
 
  yes:no )
11670
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11671
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11672
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11673
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11674
 
    (
11675
 
      cat <<\_ASBOX
11676
 
## ------------------------------------ ##
11677
 
## Report this to bug-autoconf@gnu.org. ##
11678
 
## ------------------------------------ ##
11679
 
_ASBOX
11680
 
    ) |
11681
 
      sed "s/^/$as_me: WARNING:     /" >&2
11682
 
    ;;
11683
 
  no:yes )
11684
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11685
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11686
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11687
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11688
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11689
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11690
 
    (
11691
 
      cat <<\_ASBOX
11692
 
## ------------------------------------ ##
11693
 
## Report this to bug-autoconf@gnu.org. ##
11694
 
## ------------------------------------ ##
11695
 
_ASBOX
11696
 
    ) |
11697
 
      sed "s/^/$as_me: WARNING:     /" >&2
11698
 
    ;;
11699
 
esac
11700
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11701
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11702
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11703
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11704
 
else
11705
 
  eval "$as_ac_Header=$ac_header_preproc"
11706
 
fi
11707
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11708
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11709
 
 
11710
 
fi
11711
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11712
 
  cat >>confdefs.h <<_ACEOF
11713
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11714
 
_ACEOF
11715
 
 
11716
 
echo "$as_me:$LINENO: checking for png_set_tRNS in -lpng" >&5
11717
 
echo $ECHO_N "checking for png_set_tRNS in -lpng... $ECHO_C" >&6
11718
 
if test "${ac_cv_lib_png_png_set_tRNS+set}" = set; then
11719
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11720
 
else
11721
 
  ac_check_lib_save_LIBS=$LIBS
11722
 
LIBS="-lpng -lz -lm $LIBS"
11723
 
cat >conftest.$ac_ext <<_ACEOF
11724
 
#line $LINENO "configure"
11725
 
/* confdefs.h.  */
11726
 
_ACEOF
11727
 
cat confdefs.h >>conftest.$ac_ext
11728
 
cat >>conftest.$ac_ext <<_ACEOF
11729
 
/* end confdefs.h.  */
11730
 
 
11731
 
/* Override any gcc2 internal prototype to avoid an error.  */
11732
 
#ifdef __cplusplus
11733
 
extern "C"
11734
 
#endif
11735
 
/* We use char because int might match the return type of a gcc2
11736
 
   builtin and then its argument prototype would still apply.  */
11737
 
char png_set_tRNS ();
11738
 
int
11739
 
main ()
11740
 
{
11741
 
png_set_tRNS ();
11742
 
  ;
11743
 
  return 0;
11744
 
}
11745
 
_ACEOF
11746
 
rm -f conftest.$ac_objext conftest$ac_exeext
11747
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748
 
  (eval $ac_link) 2>&5
11749
 
  ac_status=$?
11750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751
 
  (exit $ac_status); } &&
11752
 
         { ac_try='test -s conftest$ac_exeext'
11753
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754
 
  (eval $ac_try) 2>&5
11755
 
  ac_status=$?
11756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757
 
  (exit $ac_status); }; }; then
11758
 
  ac_cv_lib_png_png_set_tRNS=yes
11759
 
else
11760
 
  echo "$as_me: failed program was:" >&5
11761
 
sed 's/^/| /' conftest.$ac_ext >&5
11762
 
 
11763
 
ac_cv_lib_png_png_set_tRNS=no
11764
 
fi
11765
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11766
 
LIBS=$ac_check_lib_save_LIBS
11767
 
fi
11768
 
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_tRNS" >&5
11769
 
echo "${ECHO_T}$ac_cv_lib_png_png_set_tRNS" >&6
11770
 
if test $ac_cv_lib_png_png_set_tRNS = yes; then
11771
 
  cat >>confdefs.h <<_ACEOF
11772
 
#define HAVE_LIBPNG 1
11773
 
_ACEOF
11774
 
 
11775
 
  LIBS="-lpng $LIBS"
11776
 
 
11777
 
else
11778
 
  png_support="no"
11779
 
fi
11780
 
 
11781
 
else
11782
 
  png_support="no"
11783
 
fi
11784
 
 
11785
 
done
11786
 
 
11787
 
fi
11788
 
if test "${png_support:=yes}" = "yes"; then
11789
 
  cat >>confdefs.h <<\_ACEOF
 
4476
  if test "x${with_libpng}" = "xno"; then png_support="no"; fi
 
4477
fi
 
4478
 
 
4479
if test "x${png_support}" = "xyes"; then cat >> confdefs.h <<\EOF
11790
4480
#define INCLUDE_PNG_SUPPORT 1
11791
 
_ACEOF
11792
 
 
11793
 
fi
11794
 
 
11795
 
 
11796
 
if test "${png_support}" = no; then
 
4481
EOF
 
4482
 fi
 
4483
 
 
4484
 
 
4485
if test "x${png_support}" = "xno"; then
11797
4486
  NO_PNG_TRUE=
11798
4487
  NO_PNG_FALSE='#'
11799
4488
else
11801
4490
  NO_PNG_FALSE=
11802
4491
fi
11803
4492
 
11804
 
 
11805
 
 
11806
 
 
11807
4493
# Check whether --enable-ps-fonts-in-pcl or --disable-ps-fonts-in-pcl was given.
11808
4494
if test "${enable_ps_fonts_in_pcl+set}" = set; then
11809
4495
  enableval="$enable_ps_fonts_in_pcl"
11810
 
 
 
4496
  if test "x$enableval" = "xyes"; then
 
4497
  echo enabling support for the 35 PS fonts in PCL 5 and HP-GL/2 output
11811
4498
  ps_fonts_in_pcl=1
11812
 
  cat >>confdefs.h <<\_ACEOF
 
4499
  cat >> confdefs.h <<\EOF
11813
4500
#define USE_PS_FONTS_IN_PCL 1
11814
 
_ACEOF
11815
 
 
11816
 
 
11817
 
else
11818
 
  ps_fonts_in_pcl=0
11819
 
fi;
11820
 
 
 
4501
EOF
 
4502
 
 
4503
else
 
4504
  ps_fonts_in_pcl=0
 
4505
fi
 
4506
else
 
4507
  ps_fonts_in_pcl=0
 
4508
fi
11821
4509
 
11822
4510
 
11823
4511
 
11824
4512
# Check whether --enable-lj-fonts-in-ps or --disable-lj-fonts-in-ps was given.
11825
4513
if test "${enable_lj_fonts_in_ps+set}" = set; then
11826
4514
  enableval="$enable_lj_fonts_in_ps"
11827
 
  cat >>confdefs.h <<\_ACEOF
 
4515
  if test "x$enableval" = "xyes"; then
 
4516
  echo enabling support for the 45 LaserJet fonts in PS output
 
4517
  cat >> confdefs.h <<\EOF
11828
4518
#define USE_LJ_FONTS_IN_PS 1
11829
 
_ACEOF
11830
 
 
11831
 
fi;
11832
 
 
 
4519
EOF
 
4520
 
 
4521
fi
 
4522
fi
11833
4523
 
11834
4524
 
11835
4525
# Check whether --enable-lj-fonts-in-x or --disable-lj-fonts-in-x was given.
11836
4526
if test "${enable_lj_fonts_in_x+set}" = set; then
11837
4527
  enableval="$enable_lj_fonts_in_x"
11838
 
  cat >>confdefs.h <<\_ACEOF
 
4528
  if test "x$enableval" = "xyes"; then
 
4529
  echo enabling support for the 45 LaserJet fonts on X displays
 
4530
  cat >> confdefs.h <<\EOF
11839
4531
#define USE_LJ_FONTS_IN_X 1
11840
 
_ACEOF
11841
 
 
11842
 
fi;
 
4532
EOF
 
4533
 
 
4534
fi
 
4535
fi
 
4536
 
 
4537
 
11843
4538
 
11844
4539
# Check whether --enable-libplotter or --disable-libplotter was given.
11845
4540
if test "${enable_libplotter+set}" = set; then
11846
4541
  enableval="$enable_libplotter"
11847
 
 
11848
 
fi;
11849
 
 
11850
 
ac_ext=cc
11851
 
ac_cpp='$CXXCPP $CPPFLAGS'
11852
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11855
 
if test -n "$ac_tool_prefix"; then
11856
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11857
 
  do
11858
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11859
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11860
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
11861
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11862
 
if test "${ac_cv_prog_CXX+set}" = set; then
11863
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4542
  echo enabling construction of the C++ class library; for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 
4543
do
 
4544
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
4545
set dummy $ac_prog; ac_word=$2
 
4546
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
4547
echo "configure:4548: checking for $ac_word" >&5
 
4548
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
4549
  echo $ac_n "(cached) $ac_c" 1>&6
11864
4550
else
11865
4551
  if test -n "$CXX"; then
11866
4552
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11867
4553
else
11868
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869
 
for as_dir in $PATH
11870
 
do
11871
 
  IFS=$as_save_IFS
11872
 
  test -z "$as_dir" && as_dir=.
11873
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11874
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11876
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11877
 
    break 2
11878
 
  fi
11879
 
done
11880
 
done
11881
 
 
11882
 
fi
11883
 
fi
11884
 
CXX=$ac_cv_prog_CXX
 
4554
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4555
  ac_dummy="$PATH"
 
4556
  for ac_dir in $ac_dummy; do
 
4557
    test -z "$ac_dir" && ac_dir=.
 
4558
    if test -f $ac_dir/$ac_word; then
 
4559
      ac_cv_prog_CXX="$ac_prog"
 
4560
      break
 
4561
    fi
 
4562
  done
 
4563
  IFS="$ac_save_ifs"
 
4564
fi
 
4565
fi
 
4566
CXX="$ac_cv_prog_CXX"
11885
4567
if test -n "$CXX"; then
11886
 
  echo "$as_me:$LINENO: result: $CXX" >&5
11887
 
echo "${ECHO_T}$CXX" >&6
11888
 
else
11889
 
  echo "$as_me:$LINENO: result: no" >&5
11890
 
echo "${ECHO_T}no" >&6
11891
 
fi
11892
 
 
11893
 
    test -n "$CXX" && break
11894
 
  done
11895
 
fi
11896
 
if test -z "$CXX"; then
11897
 
  ac_ct_CXX=$CXX
11898
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11899
 
do
11900
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11901
 
set dummy $ac_prog; ac_word=$2
11902
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
11903
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11904
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11906
 
else
11907
 
  if test -n "$ac_ct_CXX"; then
11908
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11909
 
else
11910
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911
 
for as_dir in $PATH
11912
 
do
11913
 
  IFS=$as_save_IFS
11914
 
  test -z "$as_dir" && as_dir=.
11915
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11916
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
11918
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11919
 
    break 2
 
4568
  echo "$ac_t""$CXX" 1>&6
 
4569
else
 
4570
  echo "$ac_t""no" 1>&6
 
4571
fi
 
4572
 
 
4573
test -n "$CXX" && break
 
4574
done
 
4575
test -n "$CXX" || CXX="gcc"
 
4576
 
 
4577
 
 
4578
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
4579
echo "configure:4580: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
4580
 
 
4581
ac_ext=C
 
4582
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
4583
ac_cpp='$CXXCPP $CPPFLAGS'
 
4584
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4585
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4586
cross_compiling=$ac_cv_prog_cxx_cross
 
4587
 
 
4588
cat > conftest.$ac_ext << EOF
 
4589
 
 
4590
#line 4591 "configure"
 
4591
#include "confdefs.h"
 
4592
 
 
4593
int main(){return(0);}
 
4594
EOF
 
4595
if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4596
  ac_cv_prog_cxx_works=yes
 
4597
  # If we can't run a trivial program, we are probably using a cross compiler.
 
4598
  if (./conftest; exit) 2>/dev/null; then
 
4599
    ac_cv_prog_cxx_cross=no
 
4600
  else
 
4601
    ac_cv_prog_cxx_cross=yes
11920
4602
  fi
11921
 
done
11922
 
done
11923
 
 
11924
 
fi
11925
 
fi
11926
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11927
 
if test -n "$ac_ct_CXX"; then
11928
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11929
 
echo "${ECHO_T}$ac_ct_CXX" >&6
11930
 
else
11931
 
  echo "$as_me:$LINENO: result: no" >&5
11932
 
echo "${ECHO_T}no" >&6
11933
 
fi
11934
 
 
11935
 
  test -n "$ac_ct_CXX" && break
11936
 
done
11937
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11938
 
 
11939
 
  CXX=$ac_ct_CXX
11940
 
fi
11941
 
 
11942
 
 
11943
 
# Provide some information about the compiler.
11944
 
echo "$as_me:$LINENO:" \
11945
 
     "checking for C++ compiler version" >&5
11946
 
ac_compiler=`set X $ac_compile; echo $2`
11947
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11948
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
11949
 
  ac_status=$?
11950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951
 
  (exit $ac_status); }
11952
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11953
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
11954
 
  ac_status=$?
11955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956
 
  (exit $ac_status); }
11957
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11958
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
11959
 
  ac_status=$?
11960
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961
 
  (exit $ac_status); }
11962
 
 
11963
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11964
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11965
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11967
 
else
11968
 
  cat >conftest.$ac_ext <<_ACEOF
11969
 
#line $LINENO "configure"
11970
 
/* confdefs.h.  */
11971
 
_ACEOF
11972
 
cat confdefs.h >>conftest.$ac_ext
11973
 
cat >>conftest.$ac_ext <<_ACEOF
11974
 
/* end confdefs.h.  */
11975
 
 
11976
 
int
11977
 
main ()
11978
 
{
11979
 
#ifndef __GNUC__
11980
 
       choke me
 
4603
else
 
4604
  echo "configure: failed program was:" >&5
 
4605
  cat conftest.$ac_ext >&5
 
4606
  ac_cv_prog_cxx_works=no
 
4607
fi
 
4608
rm -fr conftest*
 
4609
ac_ext=c
 
4610
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
4611
ac_cpp='$CPP $CPPFLAGS'
 
4612
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4613
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4614
cross_compiling=$ac_cv_prog_cc_cross
 
4615
 
 
4616
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
 
4617
if test $ac_cv_prog_cxx_works = no; then
 
4618
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 
4619
fi
 
4620
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
4621
echo "configure:4622: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
4622
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 
4623
cross_compiling=$ac_cv_prog_cxx_cross
 
4624
 
 
4625
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
 
4626
echo "configure:4627: checking whether we are using GNU C++" >&5
 
4627
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
 
4628
  echo $ac_n "(cached) $ac_c" 1>&6
 
4629
else
 
4630
  cat > conftest.C <<EOF
 
4631
#ifdef __GNUC__
 
4632
  yes;
11981
4633
#endif
11982
 
 
11983
 
  ;
11984
 
  return 0;
11985
 
}
11986
 
_ACEOF
11987
 
rm -f conftest.$ac_objext
11988
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11989
 
  (eval $ac_compile) 2>&5
11990
 
  ac_status=$?
11991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992
 
  (exit $ac_status); } &&
11993
 
         { ac_try='test -s conftest.$ac_objext'
11994
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995
 
  (eval $ac_try) 2>&5
11996
 
  ac_status=$?
11997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998
 
  (exit $ac_status); }; }; then
11999
 
  ac_compiler_gnu=yes
12000
 
else
12001
 
  echo "$as_me: failed program was:" >&5
12002
 
sed 's/^/| /' conftest.$ac_ext >&5
12003
 
 
12004
 
ac_compiler_gnu=no
12005
 
fi
12006
 
rm -f conftest.$ac_objext conftest.$ac_ext
12007
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12008
 
 
12009
 
fi
12010
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12011
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12012
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
12013
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
12014
 
ac_save_CXXFLAGS=$CXXFLAGS
12015
 
CXXFLAGS="-g"
12016
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12017
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12018
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
12019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12020
 
else
12021
 
  cat >conftest.$ac_ext <<_ACEOF
12022
 
#line $LINENO "configure"
12023
 
/* confdefs.h.  */
12024
 
_ACEOF
12025
 
cat confdefs.h >>conftest.$ac_ext
12026
 
cat >>conftest.$ac_ext <<_ACEOF
12027
 
/* end confdefs.h.  */
12028
 
 
12029
 
int
12030
 
main ()
12031
 
{
12032
 
 
12033
 
  ;
12034
 
  return 0;
12035
 
}
12036
 
_ACEOF
12037
 
rm -f conftest.$ac_objext
12038
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039
 
  (eval $ac_compile) 2>&5
12040
 
  ac_status=$?
12041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042
 
  (exit $ac_status); } &&
12043
 
         { ac_try='test -s conftest.$ac_objext'
12044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045
 
  (eval $ac_try) 2>&5
12046
 
  ac_status=$?
12047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048
 
  (exit $ac_status); }; }; then
 
4634
EOF
 
4635
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
4636
  ac_cv_prog_gxx=yes
 
4637
else
 
4638
  ac_cv_prog_gxx=no
 
4639
fi
 
4640
fi
 
4641
 
 
4642
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
 
4643
 
 
4644
if test $ac_cv_prog_gxx = yes; then
 
4645
  GXX=yes
 
4646
else
 
4647
  GXX=
 
4648
fi
 
4649
 
 
4650
ac_test_CXXFLAGS="${CXXFLAGS+set}"
 
4651
ac_save_CXXFLAGS="$CXXFLAGS"
 
4652
CXXFLAGS=
 
4653
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
 
4654
echo "configure:4655: checking whether ${CXX-g++} accepts -g" >&5
 
4655
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
 
4656
  echo $ac_n "(cached) $ac_c" 1>&6
 
4657
else
 
4658
  echo 'void f(){}' > conftest.cc
 
4659
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
12049
4660
  ac_cv_prog_cxx_g=yes
12050
4661
else
12051
 
  echo "$as_me: failed program was:" >&5
12052
 
sed 's/^/| /' conftest.$ac_ext >&5
12053
 
 
12054
 
ac_cv_prog_cxx_g=no
12055
 
fi
12056
 
rm -f conftest.$ac_objext conftest.$ac_ext
12057
 
fi
12058
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12059
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4662
  ac_cv_prog_cxx_g=no
 
4663
fi
 
4664
rm -f conftest*
 
4665
 
 
4666
fi
 
4667
 
 
4668
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
12060
4669
if test "$ac_test_CXXFLAGS" = set; then
12061
 
  CXXFLAGS=$ac_save_CXXFLAGS
 
4670
  CXXFLAGS="$ac_save_CXXFLAGS"
12062
4671
elif test $ac_cv_prog_cxx_g = yes; then
12063
4672
  if test "$GXX" = yes; then
12064
4673
    CXXFLAGS="-g -O2"
12072
4681
    CXXFLAGS=
12073
4682
  fi
12074
4683
fi
12075
 
for ac_declaration in \
12076
 
   ''\
12077
 
   '#include <stdlib.h>' \
12078
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
12079
 
   'extern "C" void std::exit (int); using std::exit;' \
12080
 
   'extern "C" void exit (int) throw ();' \
12081
 
   'extern "C" void exit (int);' \
12082
 
   'void exit (int);'
12083
 
do
12084
 
  cat >conftest.$ac_ext <<_ACEOF
12085
 
#line $LINENO "configure"
12086
 
/* confdefs.h.  */
12087
 
_ACEOF
12088
 
cat confdefs.h >>conftest.$ac_ext
12089
 
cat >>conftest.$ac_ext <<_ACEOF
12090
 
/* end confdefs.h.  */
12091
 
#include <stdlib.h>
12092
 
$ac_declaration
12093
 
int
12094
 
main ()
12095
 
{
12096
 
exit (42);
12097
 
  ;
12098
 
  return 0;
12099
 
}
12100
 
_ACEOF
12101
 
rm -f conftest.$ac_objext
12102
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103
 
  (eval $ac_compile) 2>&5
12104
 
  ac_status=$?
12105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
 
  (exit $ac_status); } &&
12107
 
         { ac_try='test -s conftest.$ac_objext'
12108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109
 
  (eval $ac_try) 2>&5
12110
 
  ac_status=$?
12111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112
 
  (exit $ac_status); }; }; then
12113
 
  :
12114
 
else
12115
 
  echo "$as_me: failed program was:" >&5
12116
 
sed 's/^/| /' conftest.$ac_ext >&5
12117
 
 
12118
 
continue
12119
 
fi
12120
 
rm -f conftest.$ac_objext conftest.$ac_ext
12121
 
  cat >conftest.$ac_ext <<_ACEOF
12122
 
#line $LINENO "configure"
12123
 
/* confdefs.h.  */
12124
 
_ACEOF
12125
 
cat confdefs.h >>conftest.$ac_ext
12126
 
cat >>conftest.$ac_ext <<_ACEOF
12127
 
/* end confdefs.h.  */
12128
 
$ac_declaration
12129
 
int
12130
 
main ()
12131
 
{
12132
 
exit (42);
12133
 
  ;
12134
 
  return 0;
12135
 
}
12136
 
_ACEOF
12137
 
rm -f conftest.$ac_objext
12138
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139
 
  (eval $ac_compile) 2>&5
12140
 
  ac_status=$?
12141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142
 
  (exit $ac_status); } &&
12143
 
         { ac_try='test -s conftest.$ac_objext'
12144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145
 
  (eval $ac_try) 2>&5
12146
 
  ac_status=$?
12147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148
 
  (exit $ac_status); }; }; then
12149
 
  break
12150
 
else
12151
 
  echo "$as_me: failed program was:" >&5
12152
 
sed 's/^/| /' conftest.$ac_ext >&5
12153
 
 
12154
 
fi
12155
 
rm -f conftest.$ac_objext conftest.$ac_ext
12156
 
done
12157
 
rm -f conftest*
12158
 
if test -n "$ac_declaration"; then
12159
 
  echo '#ifdef __cplusplus' >>confdefs.h
12160
 
  echo $ac_declaration      >>confdefs.h
12161
 
  echo '#endif'             >>confdefs.h
12162
 
fi
12163
 
 
12164
 
ac_ext=c
12165
 
ac_cpp='$CPP $CPPFLAGS'
12166
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169
 
 
12170
 
depcc="$CXX"  am_compiler_list=
12171
 
 
12172
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12173
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12174
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12175
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12176
 
else
12177
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12178
 
  # We make a subdir and do the tests there.  Otherwise we can end up
12179
 
  # making bogus files that we don't know about and never remove.  For
12180
 
  # instance it was reported that on HP-UX the gcc test will end up
12181
 
  # making a dummy file named `D' -- because `-MD' means `put the output
12182
 
  # in D'.
12183
 
  mkdir conftest.dir
12184
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
12185
 
  # using a relative directory.
12186
 
  cp "$am_depcomp" conftest.dir
12187
 
  cd conftest.dir
12188
 
 
12189
 
  am_cv_CXX_dependencies_compiler_type=none
12190
 
  if test "$am_compiler_list" = ""; then
12191
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12192
 
  fi
12193
 
  for depmode in $am_compiler_list; do
12194
 
    # We need to recreate these files for each test, as the compiler may
12195
 
    # overwrite some of them when testing with obscure command lines.
12196
 
    # This happens at least with the AIX C compiler.
12197
 
    echo '#include "conftest.h"' > conftest.c
12198
 
    echo 'int i;' > conftest.h
12199
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12200
 
 
12201
 
    case $depmode in
12202
 
    nosideeffect)
12203
 
      # after this tag, mechanisms are not by side-effect, so they'll
12204
 
      # only be used when explicitly requested
12205
 
      if test "x$enable_dependency_tracking" = xyes; then
12206
 
        continue
12207
 
      else
12208
 
        break
12209
 
      fi
12210
 
      ;;
12211
 
    none) break ;;
12212
 
    esac
12213
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12214
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
12215
 
    # handle `-M -o', and we need to detect this.
12216
 
    if depmode=$depmode \
12217
 
       source=conftest.c object=conftest.o \
12218
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
12219
 
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
12220
 
         >/dev/null 2>conftest.err &&
12221
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
12222
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12223
 
      # icc doesn't choke on unknown options, it will just issue warnings
12224
 
      # (even with -Werror).  So we grep stderr for any message
12225
 
      # that says an option was ignored.
12226
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
12227
 
        am_cv_CXX_dependencies_compiler_type=$depmode
12228
 
        break
12229
 
      fi
12230
 
    fi
12231
 
  done
12232
 
 
12233
 
  cd ..
12234
 
  rm -rf conftest.dir
12235
 
else
12236
 
  am_cv_CXX_dependencies_compiler_type=none
12237
 
fi
12238
 
 
12239
 
fi
12240
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12241
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12242
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12243
 
 
12244
 
 
12245
 
 
12246
 
if
12247
 
  test "x$enable_dependency_tracking" != xno \
12248
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12249
 
  am__fastdepCXX_TRUE=
12250
 
  am__fastdepCXX_FALSE='#'
12251
 
else
12252
 
  am__fastdepCXX_TRUE='#'
12253
 
  am__fastdepCXX_FALSE=
12254
 
fi
12255
 
 
12256
 
 
12257
 
ac_ext=cc
 
4684
 no_libplotter="no"; echo $ac_n "checking whether ${CXX-g++} supports bool""... $ac_c" 1>&6
 
4685
echo "configure:4686: checking whether ${CXX-g++} supports bool" >&5; ac_ext=C
 
4686
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12258
4687
ac_cpp='$CXXCPP $CPPFLAGS'
12259
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12262
 
 
12263
 
echo "$as_me:$LINENO: checking whether ${CXX-g++} supports bool" >&5
12264
 
echo $ECHO_N "checking whether ${CXX-g++} supports bool... $ECHO_C" >&6
12265
 
 
12266
 
 
12267
 
 
12268
 
cat >conftest.$ac_ext <<_ACEOF
12269
 
#line $LINENO "configure"
12270
 
/* confdefs.h.  */
12271
 
_ACEOF
12272
 
cat confdefs.h >>conftest.$ac_ext
12273
 
cat >>conftest.$ac_ext <<_ACEOF
12274
 
/* end confdefs.h.  */
12275
 
 
12276
 
int
12277
 
main ()
12278
 
{
 
4688
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4689
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4690
cross_compiling=$ac_cv_prog_cxx_cross
 
4691
 cat > conftest.$ac_ext <<EOF
 
4692
#line 4693 "configure"
 
4693
#include "confdefs.h"
 
4694
 
 
4695
int main() {
12279
4696
bool foo = true;
12280
 
  ;
12281
 
  return 0;
12282
 
}
12283
 
_ACEOF
12284
 
rm -f conftest.$ac_objext
12285
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12286
 
  (eval $ac_compile) 2>&5
12287
 
  ac_status=$?
12288
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289
 
  (exit $ac_status); } &&
12290
 
         { ac_try='test -s conftest.$ac_objext'
12291
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292
 
  (eval $ac_try) 2>&5
12293
 
  ac_status=$?
12294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
 
  (exit $ac_status); }; }; then
12296
 
 
12297
 
    echo "$as_me:$LINENO: result: yes" >&5
12298
 
echo "${ECHO_T}yes" >&6
12299
 
    cat >>confdefs.h <<\_ACEOF
 
4697
; return 0; }
 
4698
EOF
 
4699
if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4700
  rm -rf conftest*
 
4701
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
12300
4702
#define HAVE_BOOL 1
12301
 
_ACEOF
12302
 
 
12303
 
 
12304
 
else
12305
 
  echo "$as_me: failed program was:" >&5
12306
 
sed 's/^/| /' conftest.$ac_ext >&5
12307
 
 
12308
 
echo "$as_me:$LINENO: result: no" >&5
12309
 
echo "${ECHO_T}no" >&6
12310
 
fi
12311
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4703
EOF
 
4704
 
 
4705
else
 
4706
  echo "configure: failed program was:" >&5
 
4707
  cat conftest.$ac_ext >&5
 
4708
  rm -rf conftest*
 
4709
  echo "$ac_t""no" 1>&6
 
4710
fi
 
4711
rm -f conftest*
 
4712
else
 
4713
  no_libplotter="yes"; extralib=""
 
4714
fi
 
4715
 
12312
4716
ac_ext=c
 
4717
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12313
4718
ac_cpp='$CPP $CPPFLAGS'
12314
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12317
 
 
12318
 
 
12319
 
 
12320
 
if test "${enable_libplotter+set}" = set; then
12321
 
  ENABLE_LIBPLOTTER_TRUE=
12322
 
  ENABLE_LIBPLOTTER_FALSE='#'
 
4719
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4720
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4721
cross_compiling=$ac_cv_prog_cc_cross
 
4722
 
 
4723
 
 
4724
 
 
4725
if test "x$no_libplotter" = "xyes"; then
 
4726
  NO_LIBPLOTTER_TRUE=
 
4727
  NO_LIBPLOTTER_FALSE='#'
12323
4728
else
12324
 
  ENABLE_LIBPLOTTER_TRUE='#'
12325
 
  ENABLE_LIBPLOTTER_FALSE=
 
4729
  NO_LIBPLOTTER_TRUE='#'
 
4730
  NO_LIBPLOTTER_FALSE=
12326
4731
fi
12327
4732
 
12328
 
 
12329
4733
# Check whether --enable-libxmi or --disable-libxmi was given.
12330
4734
if test "${enable_libxmi+set}" = set; then
12331
4735
  enableval="$enable_libxmi"
12332
 
 
12333
 
fi;
12334
 
 
12335
 
 
12336
 
if test "${enable_libxmi+set}" = set; then
12337
 
  ENABLE_LIBXMI_TRUE=
12338
 
  ENABLE_LIBXMI_FALSE='#'
12339
 
else
12340
 
  ENABLE_LIBXMI_TRUE='#'
12341
 
  ENABLE_LIBXMI_FALSE=
12342
 
fi
12343
 
 
 
4736
  echo enabling construction of the libxmi scan-conversion library; no_libxmi="no"
 
4737
else
 
4738
  no_libxmi="yes"
 
4739
fi
 
4740
 
 
4741
 
 
4742
 
 
4743
if test "x$no_libxmi" = "xyes"; then
 
4744
  NO_LIBXMI_TRUE=
 
4745
  NO_LIBXMI_FALSE='#'
 
4746
else
 
4747
  NO_LIBXMI_TRUE='#'
 
4748
  NO_LIBXMI_FALSE=
 
4749
fi
12344
4750
 
12345
4751
 
12346
4752
 
12347
4753
if test "x$CFLAGS_NOT_SET_BY_INSTALLER" = "xyes"; then
12348
 
  if test "x$GCC" = "xyes"; then
12349
 
    CFLAGS="-O2"
12350
 
  else
12351
 
    CFLAGS="-O"
12352
 
  fi
 
4754
if test "x$GCC" = "xyes"; then
 
4755
  CFLAGS="-O2"
 
4756
else
 
4757
  CFLAGS="-O"
 
4758
fi
12353
4759
fi
12354
4760
 
12355
4761
if test "x$CXXFLAGS_NOT_SET_BY_INSTALLER" = "xyes"; then
12356
 
  if test "x$GXX" = "xyes"; then
12357
 
    CXXFLAGS="-O2"
12358
 
  else
12359
 
    CXXFLAGS="-O"
 
4762
if test "x$GXX" = "xyes"; then
 
4763
  CXXFLAGS="-O2"
 
4764
else
 
4765
  CXXFLAGS="-O"
 
4766
fi
 
4767
fi
 
4768
 
 
4769
if test "x${GCC}" = "xyes"; then
 
4770
  echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
 
4771
echo "configure:4772: checking "for gcc strength-reduce bug"" >&5
 
4772
if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
 
4773
  echo $ac_n "(cached) $ac_c" 1>&6
 
4774
else
 
4775
  if test "$cross_compiling" = yes; then
 
4776
  ac_cv_c_gcc_strength_bug="yes"
 
4777
else
 
4778
  cat > conftest.$ac_ext <<EOF
 
4779
#line 4780 "configure"
 
4780
#include "confdefs.h"
 
4781
 
 
4782
int main()
 
4783
{
 
4784
  static int Array[3];
 
4785
  unsigned int B = 3;
 
4786
  int i;
 
4787
  for (i=0; i < B; i++)
 
4788
    Array[i] = i - 3;
 
4789
  exit (Array[1] != -2);
 
4790
}
 
4791
EOF
 
4792
if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4793
then
 
4794
  ac_cv_c_gcc_strength_bug="no"
 
4795
else
 
4796
  echo "configure: failed program was:" >&5
 
4797
  cat conftest.$ac_ext >&5
 
4798
  rm -fr conftest*
 
4799
  ac_cv_c_gcc_strength_bug="yes"
 
4800
fi
 
4801
rm -fr conftest*
 
4802
fi
 
4803
 
 
4804
fi
 
4805
 
 
4806
echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
 
4807
  if test "$ac_cv_c_gcc_strength_bug" = "yes"
 
4808
  then
 
4809
    CFLAGS="$CFLAGS -fno-strength-reduce"
12360
4810
  fi
12361
4811
fi
12362
4812
 
12363
 
                                                                                                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile double/Makefile graph/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile"
12364
 
cat >confcache <<\_ACEOF
 
4813
trap '' 1 2 15
 
4814
cat > confcache <<\EOF
12365
4815
# This file is a shell script that caches the results of configure
12366
4816
# tests run on this system so they can be shared between configure
12367
 
# scripts and configure runs, see configure's option --config-cache.
12368
 
# It is not useful on other systems.  If it contains results you don't
12369
 
# want to keep, you may remove or edit it.
12370
 
#
12371
 
# config.status only pays attention to the cache file if you give it
12372
 
# the --recheck option to rerun configure.
12373
 
#
12374
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12375
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12376
 
# following values.
12377
 
 
12378
 
_ACEOF
12379
 
 
 
4817
# scripts and configure runs.  It is not useful on other systems.
 
4818
# If it contains results you don't want to keep, you may remove or edit it.
 
4819
#
 
4820
# By default, configure uses ./config.cache as the cache file,
 
4821
# creating it if it does not exist already.  You can give configure
 
4822
# the --cache-file=FILE option to use a different cache file; that is
 
4823
# what configure does when it calls configure scripts in
 
4824
# subdirectories, so they share the cache.
 
4825
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
4826
# config.status only pays attention to the cache file if you give it the
 
4827
# --recheck option to rerun configure.
 
4828
#
 
4829
EOF
12380
4830
# The following way of writing the cache mishandles newlines in values,
12381
4831
# but we know of no workaround that is simple, portable, and efficient.
12382
4832
# So, don't put newlines in cache variables' values.
12383
4833
# Ultrix sh set writes to stderr and can't be redirected directly,
12384
4834
# and sets the high bit in the cache file unless we assign to the vars.
12385
 
{
12386
 
  (set) 2>&1 |
12387
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
12388
 
    *ac_space=\ *)
12389
 
      # `set' does not quote correctly, so add quotes (double-quote
12390
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12391
 
      sed -n \
12392
 
        "s/'/'\\\\''/g;
12393
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12394
 
      ;;
12395
 
    *)
12396
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12397
 
      sed -n \
12398
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12399
 
      ;;
12400
 
    esac;
12401
 
} |
12402
 
  sed '
12403
 
     t clear
12404
 
     : clear
12405
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12406
 
     t end
12407
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12408
 
     : end' >>confcache
12409
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
4835
(set) 2>&1 |
 
4836
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
4837
  *ac_space=\ *)
 
4838
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
4839
    # turns \\\\ into \\, and sed turns \\ into \).
 
4840
    sed -n \
 
4841
      -e "s/'/'\\\\''/g" \
 
4842
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
4843
    ;;
 
4844
  *)
 
4845
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4846
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
4847
    ;;
 
4848
  esac >> confcache
 
4849
if cmp -s $cache_file confcache; then
 
4850
  :
 
4851
else
12410
4852
  if test -w $cache_file; then
12411
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12412
 
    cat confcache >$cache_file
 
4853
    echo "updating cache $cache_file"
 
4854
    cat confcache > $cache_file
12413
4855
  else
12414
4856
    echo "not updating unwritable cache $cache_file"
12415
4857
  fi
12416
4858
fi
12417
4859
rm -f confcache
12418
4860
 
 
4861
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
4862
 
12419
4863
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12420
4864
# Let make expand exec_prefix.
12421
4865
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12422
4866
 
12423
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12424
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12425
 
# trailing colons and then remove the whole line if VPATH becomes empty
12426
 
# (actually we leave an empty line to preserve line numbers).
 
4867
# Any assignment to VPATH causes Sun make to only execute
 
4868
# the first set of double-colon rules, so remove it if not needed.
 
4869
# If there is a colon in the path, we need to keep it.
12427
4870
if test "x$srcdir" = x.; then
12428
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
12429
 
s/:*\$(srcdir):*/:/;
12430
 
s/:*\${srcdir}:*/:/;
12431
 
s/:*@srcdir@:*/:/;
12432
 
s/^\([^=]*=[    ]*\):*/\1/;
12433
 
s/:*$//;
12434
 
s/^[^=]*=[      ]*$//;
12435
 
}'
 
4871
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
12436
4872
fi
12437
4873
 
 
4874
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
4875
 
12438
4876
DEFS=-DHAVE_CONFIG_H
12439
4877
 
12440
 
ac_libobjs=
12441
 
ac_ltlibobjs=
12442
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12443
 
  # 1. Remove the extension, and $U if already installed.
12444
 
  ac_i=`echo "$ac_i" |
12445
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12446
 
  # 2. Add them.
12447
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12448
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12449
 
done
12450
 
LIBOBJS=$ac_libobjs
12451
 
 
12452
 
LTLIBOBJS=$ac_ltlibobjs
12453
 
 
12454
 
 
12455
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12456
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12457
 
Usually this means the macro was only invoked conditionally." >&5
12458
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12459
 
Usually this means the macro was only invoked conditionally." >&2;}
12460
 
   { (exit 1); exit 1; }; }
12461
 
fi
12462
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12463
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12464
 
Usually this means the macro was only invoked conditionally." >&5
12465
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
12466
 
Usually this means the macro was only invoked conditionally." >&2;}
12467
 
   { (exit 1); exit 1; }; }
12468
 
fi
12469
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12470
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12471
 
Usually this means the macro was only invoked conditionally." >&5
12472
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12473
 
Usually this means the macro was only invoked conditionally." >&2;}
12474
 
   { (exit 1); exit 1; }; }
12475
 
fi
12476
 
if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
12477
 
  { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
12478
 
Usually this means the macro was only invoked conditionally." >&5
12479
 
echo "$as_me: error: conditional \"NO_X\" was never defined.
12480
 
Usually this means the macro was only invoked conditionally." >&2;}
12481
 
   { (exit 1); exit 1; }; }
12482
 
fi
12483
 
if test -z "${NO_PNG_TRUE}" && test -z "${NO_PNG_FALSE}"; then
12484
 
  { { echo "$as_me:$LINENO: error: conditional \"NO_PNG\" was never defined.
12485
 
Usually this means the macro was only invoked conditionally." >&5
12486
 
echo "$as_me: error: conditional \"NO_PNG\" was never defined.
12487
 
Usually this means the macro was only invoked conditionally." >&2;}
12488
 
   { (exit 1); exit 1; }; }
12489
 
fi
12490
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12491
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
12492
 
Usually this means the macro was only invoked conditionally." >&5
12493
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
12494
 
Usually this means the macro was only invoked conditionally." >&2;}
12495
 
   { (exit 1); exit 1; }; }
12496
 
fi
12497
 
if test -z "${ENABLE_LIBPLOTTER_TRUE}" && test -z "${ENABLE_LIBPLOTTER_FALSE}"; then
12498
 
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBPLOTTER\" was never defined.
12499
 
Usually this means the macro was only invoked conditionally." >&5
12500
 
echo "$as_me: error: conditional \"ENABLE_LIBPLOTTER\" was never defined.
12501
 
Usually this means the macro was only invoked conditionally." >&2;}
12502
 
   { (exit 1); exit 1; }; }
12503
 
fi
12504
 
if test -z "${ENABLE_LIBXMI_TRUE}" && test -z "${ENABLE_LIBXMI_FALSE}"; then
12505
 
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXMI\" was never defined.
12506
 
Usually this means the macro was only invoked conditionally." >&5
12507
 
echo "$as_me: error: conditional \"ENABLE_LIBXMI\" was never defined.
12508
 
Usually this means the macro was only invoked conditionally." >&2;}
12509
 
   { (exit 1); exit 1; }; }
12510
 
fi
12511
 
 
 
4878
# Without the "./", some shells look in PATH for config.status.
12512
4879
: ${CONFIG_STATUS=./config.status}
12513
 
ac_clean_files_save=$ac_clean_files
12514
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12515
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12516
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12517
 
cat >$CONFIG_STATUS <<_ACEOF
12518
 
#! $SHELL
12519
 
# Generated by $as_me.
 
4880
 
 
4881
echo creating $CONFIG_STATUS
 
4882
rm -f $CONFIG_STATUS
 
4883
cat > $CONFIG_STATUS <<EOF
 
4884
#! /bin/sh
 
4885
# Generated automatically by configure.
12520
4886
# Run this file to recreate the current configuration.
 
4887
# This directory was configured as follows,
 
4888
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4889
#
 
4890
# $0 $ac_configure_args
 
4891
#
12521
4892
# Compiler output produced by configure, useful for debugging
12522
 
# configure, is in config.log if it exists.
12523
 
 
12524
 
debug=false
12525
 
ac_cs_recheck=false
12526
 
ac_cs_silent=false
12527
 
SHELL=\${CONFIG_SHELL-$SHELL}
12528
 
_ACEOF
12529
 
 
12530
 
cat >>$CONFIG_STATUS <<\_ACEOF
12531
 
## --------------------- ##
12532
 
## M4sh Initialization.  ##
12533
 
## --------------------- ##
12534
 
 
12535
 
# Be Bourne compatible
12536
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12537
 
  emulate sh
12538
 
  NULLCMD=:
12539
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12540
 
  # is contrary to our usage.  Disable this feature.
12541
 
  alias -g '${1+"$@"}'='"$@"'
12542
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12543
 
  set -o posix
12544
 
fi
12545
 
 
12546
 
# Support unset when possible.
12547
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12548
 
  as_unset=unset
12549
 
else
12550
 
  as_unset=false
12551
 
fi
12552
 
 
12553
 
 
12554
 
# Work around bugs in pre-3.0 UWIN ksh.
12555
 
$as_unset ENV MAIL MAILPATH
12556
 
PS1='$ '
12557
 
PS2='> '
12558
 
PS4='+ '
12559
 
 
12560
 
# NLS nuisances.
12561
 
for as_var in \
12562
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12563
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12564
 
  LC_TELEPHONE LC_TIME
12565
 
do
12566
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12567
 
    eval $as_var=C; export $as_var
12568
 
  else
12569
 
    $as_unset $as_var
12570
 
  fi
12571
 
done
12572
 
 
12573
 
# Required to use basename.
12574
 
if expr a : '\(a\)' >/dev/null 2>&1; then
12575
 
  as_expr=expr
12576
 
else
12577
 
  as_expr=false
12578
 
fi
12579
 
 
12580
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12581
 
  as_basename=basename
12582
 
else
12583
 
  as_basename=false
12584
 
fi
12585
 
 
12586
 
 
12587
 
# Name of the executable.
12588
 
as_me=`$as_basename "$0" ||
12589
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12590
 
         X"$0" : 'X\(//\)$' \| \
12591
 
         X"$0" : 'X\(/\)$' \| \
12592
 
         .     : '\(.\)' 2>/dev/null ||
12593
 
echo X/"$0" |
12594
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12595
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
12596
 
          /^X\/\(\/\).*/{ s//\1/; q; }
12597
 
          s/.*/./; q'`
12598
 
 
12599
 
 
12600
 
# PATH needs CR, and LINENO needs CR and PATH.
12601
 
# Avoid depending upon Character Ranges.
12602
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12603
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12604
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12605
 
as_cr_digits='0123456789'
12606
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
12607
 
 
12608
 
# The user is always right.
12609
 
if test "${PATH_SEPARATOR+set}" != set; then
12610
 
  echo "#! /bin/sh" >conf$$.sh
12611
 
  echo  "exit 0"   >>conf$$.sh
12612
 
  chmod +x conf$$.sh
12613
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12614
 
    PATH_SEPARATOR=';'
12615
 
  else
12616
 
    PATH_SEPARATOR=:
12617
 
  fi
12618
 
  rm -f conf$$.sh
12619
 
fi
12620
 
 
12621
 
 
12622
 
  as_lineno_1=$LINENO
12623
 
  as_lineno_2=$LINENO
12624
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12625
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12626
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12627
 
  # Find who we are.  Look in the path if we contain no path at all
12628
 
  # relative or not.
12629
 
  case $0 in
12630
 
    *[\\/]* ) as_myself=$0 ;;
12631
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632
 
for as_dir in $PATH
12633
 
do
12634
 
  IFS=$as_save_IFS
12635
 
  test -z "$as_dir" && as_dir=.
12636
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12637
 
done
12638
 
 
12639
 
       ;;
12640
 
  esac
12641
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
12642
 
  # in which case we are not to be found in the path.
12643
 
  if test "x$as_myself" = x; then
12644
 
    as_myself=$0
12645
 
  fi
12646
 
  if test ! -f "$as_myself"; then
12647
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12648
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12649
 
   { (exit 1); exit 1; }; }
12650
 
  fi
12651
 
  case $CONFIG_SHELL in
12652
 
  '')
12653
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12655
 
do
12656
 
  IFS=$as_save_IFS
12657
 
  test -z "$as_dir" && as_dir=.
12658
 
  for as_base in sh bash ksh sh5; do
12659
 
         case $as_dir in
12660
 
         /*)
12661
 
           if ("$as_dir/$as_base" -c '
12662
 
  as_lineno_1=$LINENO
12663
 
  as_lineno_2=$LINENO
12664
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12665
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12666
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12667
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12668
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12669
 
             CONFIG_SHELL=$as_dir/$as_base
12670
 
             export CONFIG_SHELL
12671
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12672
 
           fi;;
12673
 
         esac
12674
 
       done
12675
 
done
12676
 
;;
12677
 
  esac
12678
 
 
12679
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12680
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
12681
 
  # line-number line before each line; the second 'sed' does the real
12682
 
  # work.  The second script uses 'N' to pair each line-number line
12683
 
  # with the numbered line, and appends trailing '-' during
12684
 
  # substitution so that $LINENO is not a special case at line end.
12685
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12686
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12687
 
  sed '=' <$as_myself |
12688
 
    sed '
12689
 
      N
12690
 
      s,$,-,
12691
 
      : loop
12692
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12693
 
      t loop
12694
 
      s,-$,,
12695
 
      s,^['$as_cr_digits']*\n,,
12696
 
    ' >$as_me.lineno &&
12697
 
  chmod +x $as_me.lineno ||
12698
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12699
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12700
 
   { (exit 1); exit 1; }; }
12701
 
 
12702
 
  # Don't try to exec as it changes $[0], causing all sort of problems
12703
 
  # (the dirname of $[0] is not the place where we might find the
12704
 
  # original and so on.  Autoconf is especially sensible to this).
12705
 
  . ./$as_me.lineno
12706
 
  # Exit status is that of the last command.
12707
 
  exit
12708
 
}
12709
 
 
12710
 
 
12711
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12712
 
  *c*,-n*) ECHO_N= ECHO_C='
12713
 
' ECHO_T='      ' ;;
12714
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12715
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12716
 
esac
12717
 
 
12718
 
if expr a : '\(a\)' >/dev/null 2>&1; then
12719
 
  as_expr=expr
12720
 
else
12721
 
  as_expr=false
12722
 
fi
12723
 
 
12724
 
rm -f conf$$ conf$$.exe conf$$.file
12725
 
echo >conf$$.file
12726
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
12727
 
  # We could just check for DJGPP; but this test a) works b) is more generic
12728
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12729
 
  if test -f conf$$.exe; then
12730
 
    # Don't use ln at all; we don't have any links
12731
 
    as_ln_s='cp -p'
12732
 
  else
12733
 
    as_ln_s='ln -s'
12734
 
  fi
12735
 
elif ln conf$$.file conf$$ 2>/dev/null; then
12736
 
  as_ln_s=ln
12737
 
else
12738
 
  as_ln_s='cp -p'
12739
 
fi
12740
 
rm -f conf$$ conf$$.exe conf$$.file
12741
 
 
12742
 
if mkdir -p . 2>/dev/null; then
12743
 
  as_mkdir_p=:
12744
 
else
12745
 
  as_mkdir_p=false
12746
 
fi
12747
 
 
12748
 
as_executable_p="test -f"
12749
 
 
12750
 
# Sed expression to map a string onto a valid CPP name.
12751
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12752
 
 
12753
 
# Sed expression to map a string onto a valid variable name.
12754
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12755
 
 
12756
 
 
12757
 
# IFS
12758
 
# We need space, tab and new line, in precisely that order.
12759
 
as_nl='
12760
 
'
12761
 
IFS="   $as_nl"
12762
 
 
12763
 
# CDPATH.
12764
 
$as_unset CDPATH
12765
 
 
12766
 
exec 6>&1
12767
 
 
12768
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12769
 
# report actual input values of CONFIG_FILES etc. instead of their
12770
 
# values after options handling.  Logging --version etc. is OK.
12771
 
exec 5>>config.log
12772
 
{
12773
 
  echo
12774
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12775
 
## Running $as_me. ##
12776
 
_ASBOX
12777
 
} >&5
12778
 
cat >&5 <<_CSEOF
12779
 
 
12780
 
This file was extended by plotutils $as_me 2.4.1, which was
12781
 
generated by GNU Autoconf 2.57.  Invocation command line was
12782
 
 
12783
 
  CONFIG_FILES    = $CONFIG_FILES
12784
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
12785
 
  CONFIG_LINKS    = $CONFIG_LINKS
12786
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12787
 
  $ $0 $@
12788
 
 
12789
 
_CSEOF
12790
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12791
 
echo >&5
12792
 
_ACEOF
12793
 
 
12794
 
# Files that config.status was made for.
12795
 
if test -n "$ac_config_files"; then
12796
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12797
 
fi
12798
 
 
12799
 
if test -n "$ac_config_headers"; then
12800
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12801
 
fi
12802
 
 
12803
 
if test -n "$ac_config_links"; then
12804
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12805
 
fi
12806
 
 
12807
 
if test -n "$ac_config_commands"; then
12808
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12809
 
fi
12810
 
 
12811
 
cat >>$CONFIG_STATUS <<\_ACEOF
12812
 
 
12813
 
ac_cs_usage="\
12814
 
\`$as_me' instantiates files from templates according to the
12815
 
current configuration.
12816
 
 
12817
 
Usage: $0 [OPTIONS] [FILE]...
12818
 
 
12819
 
  -h, --help       print this help, then exit
12820
 
  -V, --version    print version number, then exit
12821
 
  -q, --quiet      do not print progress messages
12822
 
  -d, --debug      don't remove temporary files
12823
 
      --recheck    update $as_me by reconfiguring in the same conditions
12824
 
  --file=FILE[:TEMPLATE]
12825
 
                   instantiate the configuration file FILE
12826
 
  --header=FILE[:TEMPLATE]
12827
 
                   instantiate the configuration header FILE
12828
 
 
12829
 
Configuration files:
12830
 
$config_files
12831
 
 
12832
 
Configuration headers:
12833
 
$config_headers
12834
 
 
12835
 
Configuration commands:
12836
 
$config_commands
12837
 
 
12838
 
Report bugs to <bug-autoconf@gnu.org>."
12839
 
_ACEOF
12840
 
 
12841
 
cat >>$CONFIG_STATUS <<_ACEOF
12842
 
ac_cs_version="\\
12843
 
plotutils config.status 2.4.1
12844
 
configured by $0, generated by GNU Autoconf 2.57,
12845
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12846
 
 
12847
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12848
 
Free Software Foundation, Inc.
12849
 
This config.status script is free software; the Free Software Foundation
12850
 
gives unlimited permission to copy, distribute and modify it."
12851
 
srcdir=$srcdir
12852
 
INSTALL="$INSTALL"
12853
 
_ACEOF
12854
 
 
12855
 
cat >>$CONFIG_STATUS <<\_ACEOF
12856
 
# If no file are specified by the user, then we need to provide default
12857
 
# value.  By we need to know if files were specified by the user.
12858
 
ac_need_defaults=:
12859
 
while test $# != 0
12860
 
do
12861
 
  case $1 in
12862
 
  --*=*)
12863
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12864
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12865
 
    ac_shift=:
12866
 
    ;;
12867
 
  -*)
12868
 
    ac_option=$1
12869
 
    ac_optarg=$2
12870
 
    ac_shift=shift
12871
 
    ;;
12872
 
  *) # This is not an option, so the user has probably given explicit
12873
 
     # arguments.
12874
 
     ac_option=$1
12875
 
     ac_need_defaults=false;;
12876
 
  esac
12877
 
 
12878
 
  case $ac_option in
12879
 
  # Handling of the options.
12880
 
_ACEOF
12881
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
4893
# configure, is in ./config.log if it exists.
 
4894
 
 
4895
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
4896
for ac_option
 
4897
do
 
4898
  case "\$ac_option" in
12882
4899
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12883
 
    ac_cs_recheck=: ;;
12884
 
  --version | --vers* | -V )
12885
 
    echo "$ac_cs_version"; exit 0 ;;
12886
 
  --he | --h)
12887
 
    # Conflict between --help and --header
12888
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12889
 
Try \`$0 --help' for more information." >&5
12890
 
echo "$as_me: error: ambiguous option: $1
12891
 
Try \`$0 --help' for more information." >&2;}
12892
 
   { (exit 1); exit 1; }; };;
12893
 
  --help | --hel | -h )
12894
 
    echo "$ac_cs_usage"; exit 0 ;;
12895
 
  --debug | --d* | -d )
12896
 
    debug=: ;;
12897
 
  --file | --fil | --fi | --f )
12898
 
    $ac_shift
12899
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12900
 
    ac_need_defaults=false;;
12901
 
  --header | --heade | --head | --hea )
12902
 
    $ac_shift
12903
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12904
 
    ac_need_defaults=false;;
12905
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12906
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12907
 
    ac_cs_silent=: ;;
12908
 
 
12909
 
  # This is an error.
12910
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12911
 
Try \`$0 --help' for more information." >&5
12912
 
echo "$as_me: error: unrecognized option: $1
12913
 
Try \`$0 --help' for more information." >&2;}
12914
 
   { (exit 1); exit 1; }; } ;;
12915
 
 
12916
 
  *) ac_config_targets="$ac_config_targets $1" ;;
12917
 
 
12918
 
  esac
12919
 
  shift
12920
 
done
12921
 
 
12922
 
ac_configure_extra_args=
12923
 
 
12924
 
if $ac_cs_silent; then
12925
 
  exec 6>/dev/null
12926
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12927
 
fi
12928
 
 
12929
 
_ACEOF
12930
 
cat >>$CONFIG_STATUS <<_ACEOF
12931
 
if \$ac_cs_recheck; then
12932
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12933
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12934
 
fi
12935
 
 
12936
 
_ACEOF
12937
 
 
12938
 
cat >>$CONFIG_STATUS <<_ACEOF
12939
 
#
12940
 
# INIT-COMMANDS section.
12941
 
#
12942
 
 
12943
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12944
 
 
12945
 
_ACEOF
12946
 
 
12947
 
 
12948
 
 
12949
 
cat >>$CONFIG_STATUS <<\_ACEOF
12950
 
for ac_config_target in $ac_config_targets
12951
 
do
12952
 
  case "$ac_config_target" in
12953
 
  # Handling of arguments.
12954
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12955
 
  "double/Makefile" ) CONFIG_FILES="$CONFIG_FILES double/Makefile" ;;
12956
 
  "graph/Makefile" ) CONFIG_FILES="$CONFIG_FILES graph/Makefile" ;;
12957
 
  "pic2plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/Makefile" ;;
12958
 
  "pic2plot/doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/doc/Makefile" ;;
12959
 
  "pic2plot/libgroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/libgroff/Makefile" ;;
12960
 
  "pic2plot/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/include/Makefile" ;;
12961
 
  "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
12962
 
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12963
 
  "libplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES libplot/Makefile" ;;
12964
 
  "libplotter/Makefile" ) CONFIG_FILES="$CONFIG_FILES libplotter/Makefile" ;;
12965
 
  "libxmi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxmi/Makefile" ;;
12966
 
  "libxmi/info/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxmi/info/Makefile" ;;
12967
 
  "plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
12968
 
  "tek2plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES tek2plot/Makefile" ;;
12969
 
  "tek2plot/teksamples/Makefile" ) CONFIG_FILES="$CONFIG_FILES tek2plot/teksamples/Makefile" ;;
12970
 
  "plotfont/Makefile" ) CONFIG_FILES="$CONFIG_FILES plotfont/Makefile" ;;
12971
 
  "spline/Makefile" ) CONFIG_FILES="$CONFIG_FILES spline/Makefile" ;;
12972
 
  "ode/Makefile" ) CONFIG_FILES="$CONFIG_FILES ode/Makefile" ;;
12973
 
  "ode-examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES ode-examples/Makefile" ;;
12974
 
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12975
 
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12976
 
  "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
12977
 
  "fonts/bdf/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/bdf/Makefile" ;;
12978
 
  "fonts/pcf/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/pcf/Makefile" ;;
12979
 
  "fonts/pfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/pfb/Makefile" ;;
12980
 
  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12981
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12982
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12983
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12984
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12985
 
   { (exit 1); exit 1; }; };;
12986
 
  esac
12987
 
done
12988
 
 
12989
 
# If the user did not use the arguments to specify the items to instantiate,
12990
 
# then the envvar interface is used.  Set only those that are not.
12991
 
# We use the long form for the default assignment because of an extremely
12992
 
# bizarre bug on SunOS 4.1.3.
12993
 
if $ac_need_defaults; then
12994
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12995
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12996
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12997
 
fi
12998
 
 
12999
 
# Have a temporary directory for convenience.  Make it in the build tree
13000
 
# simply because there is no reason to put it here, and in addition,
13001
 
# creating and moving files from /tmp can sometimes cause problems.
13002
 
# Create a temporary directory, and hook for its removal unless debugging.
13003
 
$debug ||
13004
 
{
13005
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13006
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13007
 
}
13008
 
 
13009
 
# Create a (secure) tmp directory for tmp files.
13010
 
 
13011
 
{
13012
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13013
 
  test -n "$tmp" && test -d "$tmp"
13014
 
}  ||
13015
 
{
13016
 
  tmp=./confstat$$-$RANDOM
13017
 
  (umask 077 && mkdir $tmp)
13018
 
} ||
13019
 
{
13020
 
   echo "$me: cannot create a temporary directory in ." >&2
13021
 
   { (exit 1); exit 1; }
13022
 
}
13023
 
 
13024
 
_ACEOF
13025
 
 
13026
 
cat >>$CONFIG_STATUS <<_ACEOF
13027
 
 
13028
 
#
13029
 
# CONFIG_FILES section.
13030
 
#
13031
 
 
13032
 
# No need to generate the scripts if there are no CONFIG_FILES.
13033
 
# This happens for instance when ./config.status config.h
13034
 
if test -n "\$CONFIG_FILES"; then
13035
 
  # Protect against being on the right side of a sed subst in config.status.
13036
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13037
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13038
 
s,@SHELL@,$SHELL,;t t
13039
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13040
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13041
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13042
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13043
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13044
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13045
 
s,@exec_prefix@,$exec_prefix,;t t
13046
 
s,@prefix@,$prefix,;t t
13047
 
s,@program_transform_name@,$program_transform_name,;t t
13048
 
s,@bindir@,$bindir,;t t
13049
 
s,@sbindir@,$sbindir,;t t
13050
 
s,@libexecdir@,$libexecdir,;t t
13051
 
s,@datadir@,$datadir,;t t
13052
 
s,@sysconfdir@,$sysconfdir,;t t
13053
 
s,@sharedstatedir@,$sharedstatedir,;t t
13054
 
s,@localstatedir@,$localstatedir,;t t
13055
 
s,@libdir@,$libdir,;t t
13056
 
s,@includedir@,$includedir,;t t
13057
 
s,@oldincludedir@,$oldincludedir,;t t
13058
 
s,@infodir@,$infodir,;t t
13059
 
s,@mandir@,$mandir,;t t
13060
 
s,@build_alias@,$build_alias,;t t
13061
 
s,@host_alias@,$host_alias,;t t
13062
 
s,@target_alias@,$target_alias,;t t
13063
 
s,@DEFS@,$DEFS,;t t
13064
 
s,@ECHO_C@,$ECHO_C,;t t
13065
 
s,@ECHO_N@,$ECHO_N,;t t
13066
 
s,@ECHO_T@,$ECHO_T,;t t
13067
 
s,@LIBS@,$LIBS,;t t
13068
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13069
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13070
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13071
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
13072
 
s,@PACKAGE@,$PACKAGE,;t t
13073
 
s,@VERSION@,$VERSION,;t t
13074
 
s,@ACLOCAL@,$ACLOCAL,;t t
13075
 
s,@AUTOCONF@,$AUTOCONF,;t t
13076
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
13077
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
13078
 
s,@MAKEINFO@,$MAKEINFO,;t t
13079
 
s,@AMTAR@,$AMTAR,;t t
13080
 
s,@install_sh@,$install_sh,;t t
13081
 
s,@STRIP@,$STRIP,;t t
13082
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13083
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13084
 
s,@AWK@,$AWK,;t t
13085
 
s,@SET_MAKE@,$SET_MAKE,;t t
13086
 
s,@am__leading_dot@,$am__leading_dot,;t t
13087
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13088
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13089
 
s,@MAINT@,$MAINT,;t t
13090
 
s,@build@,$build,;t t
13091
 
s,@build_cpu@,$build_cpu,;t t
13092
 
s,@build_vendor@,$build_vendor,;t t
13093
 
s,@build_os@,$build_os,;t t
13094
 
s,@host@,$host,;t t
13095
 
s,@host_cpu@,$host_cpu,;t t
13096
 
s,@host_vendor@,$host_vendor,;t t
13097
 
s,@host_os@,$host_os,;t t
13098
 
s,@CC@,$CC,;t t
13099
 
s,@CFLAGS@,$CFLAGS,;t t
13100
 
s,@LDFLAGS@,$LDFLAGS,;t t
13101
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
13102
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
13103
 
s,@EXEEXT@,$EXEEXT,;t t
13104
 
s,@OBJEXT@,$OBJEXT,;t t
13105
 
s,@DEPDIR@,$DEPDIR,;t t
13106
 
s,@am__include@,$am__include,;t t
13107
 
s,@am__quote@,$am__quote,;t t
13108
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13109
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13110
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13111
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
13112
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13113
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13114
 
s,@LN_S@,$LN_S,;t t
13115
 
s,@ECHO@,$ECHO,;t t
13116
 
s,@RANLIB@,$RANLIB,;t t
13117
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13118
 
s,@CPP@,$CPP,;t t
13119
 
s,@EGREP@,$EGREP,;t t
13120
 
s,@LIBTOOL@,$LIBTOOL,;t t
13121
 
s,@ALLOCA@,$ALLOCA,;t t
13122
 
s,@LTALLOCA@,$LTALLOCA,;t t
13123
 
s,@YACC@,$YACC,;t t
13124
 
s,@LEX@,$LEX,;t t
13125
 
s,@LEXLIB@,$LEXLIB,;t t
13126
 
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13127
 
s,@X_CFLAGS@,$X_CFLAGS,;t t
13128
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13129
 
s,@X_LIBS@,$X_LIBS,;t t
13130
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13131
 
s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
13132
 
s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
13133
 
s,@NO_X_TRUE@,$NO_X_TRUE,;t t
13134
 
s,@NO_X_FALSE@,$NO_X_FALSE,;t t
13135
 
s,@NO_PNG_TRUE@,$NO_PNG_TRUE,;t t
13136
 
s,@NO_PNG_FALSE@,$NO_PNG_FALSE,;t t
13137
 
s,@ps_fonts_in_pcl@,$ps_fonts_in_pcl,;t t
13138
 
s,@CXX@,$CXX,;t t
13139
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
13140
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13141
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
13142
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
13143
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
13144
 
s,@ENABLE_LIBPLOTTER_TRUE@,$ENABLE_LIBPLOTTER_TRUE,;t t
13145
 
s,@ENABLE_LIBPLOTTER_FALSE@,$ENABLE_LIBPLOTTER_FALSE,;t t
13146
 
s,@ENABLE_LIBXMI_TRUE@,$ENABLE_LIBXMI_TRUE,;t t
13147
 
s,@ENABLE_LIBXMI_FALSE@,$ENABLE_LIBXMI_FALSE,;t t
13148
 
s,@LIBOBJS@,$LIBOBJS,;t t
13149
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
4900
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
4901
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
4902
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
4903
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
4904
    exit 0 ;;
 
4905
  -help | --help | --hel | --he | --h)
 
4906
    echo "\$ac_cs_usage"; exit 0 ;;
 
4907
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
4908
  esac
 
4909
done
 
4910
 
 
4911
ac_given_srcdir=$srcdir
 
4912
ac_given_INSTALL="$INSTALL"
 
4913
 
 
4914
trap 'rm -fr `echo "Makefile double/Makefile graph/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
4915
EOF
 
4916
cat >> $CONFIG_STATUS <<EOF
 
4917
 
 
4918
# Protect against being on the right side of a sed subst in config.status.
 
4919
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
4920
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
4921
$ac_vpsub
 
4922
$extrasub
 
4923
s%@SHELL@%$SHELL%g
 
4924
s%@CFLAGS@%$CFLAGS%g
 
4925
s%@CPPFLAGS@%$CPPFLAGS%g
 
4926
s%@CXXFLAGS@%$CXXFLAGS%g
 
4927
s%@FFLAGS@%$FFLAGS%g
 
4928
s%@DEFS@%$DEFS%g
 
4929
s%@LDFLAGS@%$LDFLAGS%g
 
4930
s%@LIBS@%$LIBS%g
 
4931
s%@exec_prefix@%$exec_prefix%g
 
4932
s%@prefix@%$prefix%g
 
4933
s%@program_transform_name@%$program_transform_name%g
 
4934
s%@bindir@%$bindir%g
 
4935
s%@sbindir@%$sbindir%g
 
4936
s%@libexecdir@%$libexecdir%g
 
4937
s%@datadir@%$datadir%g
 
4938
s%@sysconfdir@%$sysconfdir%g
 
4939
s%@sharedstatedir@%$sharedstatedir%g
 
4940
s%@localstatedir@%$localstatedir%g
 
4941
s%@libdir@%$libdir%g
 
4942
s%@includedir@%$includedir%g
 
4943
s%@oldincludedir@%$oldincludedir%g
 
4944
s%@infodir@%$infodir%g
 
4945
s%@mandir@%$mandir%g
 
4946
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
4947
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
4948
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
4949
s%@PACKAGE@%$PACKAGE%g
 
4950
s%@VERSION@%$VERSION%g
 
4951
s%@ACLOCAL@%$ACLOCAL%g
 
4952
s%@AUTOCONF@%$AUTOCONF%g
 
4953
s%@AUTOMAKE@%$AUTOMAKE%g
 
4954
s%@AUTOHEADER@%$AUTOHEADER%g
 
4955
s%@MAKEINFO@%$MAKEINFO%g
 
4956
s%@SET_MAKE@%$SET_MAKE%g
 
4957
s%@host@%$host%g
 
4958
s%@host_alias@%$host_alias%g
 
4959
s%@host_cpu@%$host_cpu%g
 
4960
s%@host_vendor@%$host_vendor%g
 
4961
s%@host_os@%$host_os%g
 
4962
s%@build@%$build%g
 
4963
s%@build_alias@%$build_alias%g
 
4964
s%@build_cpu@%$build_cpu%g
 
4965
s%@build_vendor@%$build_vendor%g
 
4966
s%@build_os@%$build_os%g
 
4967
s%@RANLIB@%$RANLIB%g
 
4968
s%@CC@%$CC%g
 
4969
s%@LN_S@%$LN_S%g
 
4970
s%@LIBTOOL@%$LIBTOOL%g
 
4971
s%@EXEEXT@%$EXEEXT%g
 
4972
s%@CPP@%$CPP%g
 
4973
s%@ALLOCA@%$ALLOCA%g
 
4974
s%@LTALLOCA@%$LTALLOCA%g
 
4975
s%@YACC@%$YACC%g
 
4976
s%@LEX@%$LEX%g
 
4977
s%@LEXLIB@%$LEXLIB%g
 
4978
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
 
4979
s%@X_CFLAGS@%$X_CFLAGS%g
 
4980
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
 
4981
s%@X_LIBS@%$X_LIBS%g
 
4982
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
 
4983
s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
 
4984
s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
 
4985
s%@NO_X_TRUE@%$NO_X_TRUE%g
 
4986
s%@NO_X_FALSE@%$NO_X_FALSE%g
 
4987
s%@NO_PNG_TRUE@%$NO_PNG_TRUE%g
 
4988
s%@NO_PNG_FALSE@%$NO_PNG_FALSE%g
 
4989
s%@ps_fonts_in_pcl@%$ps_fonts_in_pcl%g
 
4990
s%@CXX@%$CXX%g
 
4991
s%@NO_LIBPLOTTER_TRUE@%$NO_LIBPLOTTER_TRUE%g
 
4992
s%@NO_LIBPLOTTER_FALSE@%$NO_LIBPLOTTER_FALSE%g
 
4993
s%@NO_LIBXMI_TRUE@%$NO_LIBXMI_TRUE%g
 
4994
s%@NO_LIBXMI_FALSE@%$NO_LIBXMI_FALSE%g
 
4995
 
13150
4996
CEOF
13151
 
 
13152
 
_ACEOF
13153
 
 
13154
 
  cat >>$CONFIG_STATUS <<\_ACEOF
13155
 
  # Split the substitutions into bite-sized pieces for seds with
13156
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
13157
 
  ac_max_sed_lines=48
13158
 
  ac_sed_frag=1 # Number of current file.
13159
 
  ac_beg=1 # First line for current file.
13160
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
13161
 
  ac_more_lines=:
13162
 
  ac_sed_cmds=
13163
 
  while $ac_more_lines; do
13164
 
    if test $ac_beg -gt 1; then
13165
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13166
 
    else
13167
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13168
 
    fi
13169
 
    if test ! -s $tmp/subs.frag; then
13170
 
      ac_more_lines=false
13171
 
    else
13172
 
      # The purpose of the label and of the branching condition is to
13173
 
      # speed up the sed processing (if there are no `@' at all, there
13174
 
      # is no need to browse any of the substitutions).
13175
 
      # These are the two extra sed commands mentioned above.
13176
 
      (echo ':t
13177
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13178
 
      if test -z "$ac_sed_cmds"; then
13179
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13180
 
      else
13181
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13182
 
      fi
13183
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
13184
 
      ac_beg=$ac_end
13185
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
13186
 
    fi
13187
 
  done
13188
 
  if test -z "$ac_sed_cmds"; then
13189
 
    ac_sed_cmds=cat
13190
 
  fi
13191
 
fi # test -n "$CONFIG_FILES"
13192
 
 
13193
 
_ACEOF
13194
 
cat >>$CONFIG_STATUS <<\_ACEOF
13195
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
4997
EOF
 
4998
 
 
4999
cat >> $CONFIG_STATUS <<\EOF
 
5000
 
 
5001
# Split the substitutions into bite-sized pieces for seds with
 
5002
# small command number limits, like on Digital OSF/1 and HP-UX.
 
5003
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
5004
ac_file=1 # Number of current file.
 
5005
ac_beg=1 # First line for current file.
 
5006
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
5007
ac_more_lines=:
 
5008
ac_sed_cmds=""
 
5009
while $ac_more_lines; do
 
5010
  if test $ac_beg -gt 1; then
 
5011
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
5012
  else
 
5013
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
5014
  fi
 
5015
  if test ! -s conftest.s$ac_file; then
 
5016
    ac_more_lines=false
 
5017
    rm -f conftest.s$ac_file
 
5018
  else
 
5019
    if test -z "$ac_sed_cmds"; then
 
5020
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
5021
    else
 
5022
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
5023
    fi
 
5024
    ac_file=`expr $ac_file + 1`
 
5025
    ac_beg=$ac_end
 
5026
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
5027
  fi
 
5028
done
 
5029
if test -z "$ac_sed_cmds"; then
 
5030
  ac_sed_cmds=cat
 
5031
fi
 
5032
EOF
 
5033
 
 
5034
cat >> $CONFIG_STATUS <<EOF
 
5035
 
 
5036
CONFIG_FILES=\${CONFIG_FILES-"Makefile double/Makefile graph/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile"}
 
5037
EOF
 
5038
cat >> $CONFIG_STATUS <<\EOF
 
5039
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13196
5040
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13197
 
  case $ac_file in
13198
 
  - | *:- | *:-:* ) # input from stdin
13199
 
        cat >$tmp/stdin
13200
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13201
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13202
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13203
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13204
 
  * )   ac_file_in=$ac_file.in ;;
 
5041
  case "$ac_file" in
 
5042
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
5043
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
5044
  *) ac_file_in="${ac_file}.in" ;;
13205
5045
  esac
13206
5046
 
13207
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13208
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13209
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13210
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
13211
 
         X"$ac_file" : 'X\(//\)$' \| \
13212
 
         X"$ac_file" : 'X\(/\)' \| \
13213
 
         .     : '\(.\)' 2>/dev/null ||
13214
 
echo X"$ac_file" |
13215
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13216
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13217
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13218
 
          /^X\(\/\).*/{ s//\1/; q; }
13219
 
          s/.*/./; q'`
13220
 
  { if $as_mkdir_p; then
13221
 
    mkdir -p "$ac_dir"
 
5047
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
5048
 
 
5049
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
5050
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
5051
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
5052
    # The file is in a subdirectory.
 
5053
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
5054
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
5055
    # A "../" for each directory in $ac_dir_suffix.
 
5056
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13222
5057
  else
13223
 
    as_dir="$ac_dir"
13224
 
    as_dirs=
13225
 
    while test ! -d "$as_dir"; do
13226
 
      as_dirs="$as_dir $as_dirs"
13227
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13228
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13229
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13230
 
         X"$as_dir" : 'X\(//\)$' \| \
13231
 
         X"$as_dir" : 'X\(/\)' \| \
13232
 
         .     : '\(.\)' 2>/dev/null ||
13233
 
echo X"$as_dir" |
13234
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13235
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13236
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13237
 
          /^X\(\/\).*/{ s//\1/; q; }
13238
 
          s/.*/./; q'`
13239
 
    done
13240
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13241
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13242
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13243
 
   { (exit 1); exit 1; }; }; }
13244
 
 
13245
 
  ac_builddir=.
13246
 
 
13247
 
if test "$ac_dir" != .; then
13248
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13249
 
  # A "../" for each directory in $ac_dir_suffix.
13250
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13251
 
else
13252
 
  ac_dir_suffix= ac_top_builddir=
13253
 
fi
13254
 
 
13255
 
case $srcdir in
13256
 
  .)  # No --srcdir option.  We are building in place.
13257
 
    ac_srcdir=.
13258
 
    if test -z "$ac_top_builddir"; then
13259
 
       ac_top_srcdir=.
13260
 
    else
13261
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13262
 
    fi ;;
13263
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
13264
 
    ac_srcdir=$srcdir$ac_dir_suffix;
13265
 
    ac_top_srcdir=$srcdir ;;
 
5058
    ac_dir_suffix= ac_dots=
 
5059
  fi
 
5060
 
 
5061
  case "$ac_given_srcdir" in
 
5062
  .)  srcdir=.
 
5063
      if test -z "$ac_dots"; then top_srcdir=.
 
5064
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
5065
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13266
5066
  *) # Relative path.
13267
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13268
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13269
 
esac
13270
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13271
 
# absolute.
13272
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13273
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13274
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13275
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13276
 
 
13277
 
 
13278
 
  case $INSTALL in
13279
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13280
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13281
 
  esac
13282
 
 
13283
 
  if test x"$ac_file" != x-; then
13284
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
13285
 
echo "$as_me: creating $ac_file" >&6;}
13286
 
    rm -f "$ac_file"
13287
 
  fi
13288
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13289
 
  # use $as_me), people would be surprised to read:
13290
 
  #    /* config.h.  Generated by config.status.  */
13291
 
  if test x"$ac_file" = x-; then
13292
 
    configure_input=
13293
 
  else
13294
 
    configure_input="$ac_file.  "
13295
 
  fi
13296
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
13297
 
                                     sed 's,.*/,,'` by configure."
13298
 
 
13299
 
  # First look for the input files in the build tree, otherwise in the
13300
 
  # src tree.
13301
 
  ac_file_inputs=`IFS=:
13302
 
    for f in $ac_file_in; do
13303
 
      case $f in
13304
 
      -) echo $tmp/stdin ;;
13305
 
      [\\/$]*)
13306
 
         # Absolute (can't be DOS-style, as IFS=:)
13307
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13308
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13309
 
   { (exit 1); exit 1; }; }
13310
 
         echo $f;;
13311
 
      *) # Relative
13312
 
         if test -f "$f"; then
13313
 
           # Build tree
13314
 
           echo $f
13315
 
         elif test -f "$srcdir/$f"; then
13316
 
           # Source tree
13317
 
           echo $srcdir/$f
13318
 
         else
13319
 
           # /dev/null tree
13320
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13321
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13322
 
   { (exit 1); exit 1; }; }
13323
 
         fi;;
13324
 
      esac
13325
 
    done` || { (exit 1); exit 1; }
13326
 
_ACEOF
13327
 
cat >>$CONFIG_STATUS <<_ACEOF
13328
 
  sed "$ac_vpsub
13329
 
$extrasub
13330
 
_ACEOF
13331
 
cat >>$CONFIG_STATUS <<\_ACEOF
13332
 
:t
13333
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13334
 
s,@configure_input@,$configure_input,;t t
13335
 
s,@srcdir@,$ac_srcdir,;t t
13336
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
13337
 
s,@top_srcdir@,$ac_top_srcdir,;t t
13338
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13339
 
s,@builddir@,$ac_builddir,;t t
13340
 
s,@abs_builddir@,$ac_abs_builddir,;t t
13341
 
s,@top_builddir@,$ac_top_builddir,;t t
13342
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13343
 
s,@INSTALL@,$ac_INSTALL,;t t
13344
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13345
 
  rm -f $tmp/stdin
13346
 
  if test x"$ac_file" != x-; then
13347
 
    mv $tmp/out $ac_file
13348
 
  else
13349
 
    cat $tmp/out
13350
 
    rm -f $tmp/out
13351
 
  fi
13352
 
 
13353
 
done
13354
 
_ACEOF
13355
 
cat >>$CONFIG_STATUS <<\_ACEOF
13356
 
 
13357
 
#
13358
 
# CONFIG_HEADER section.
13359
 
#
 
5067
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
5068
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
5069
  esac
 
5070
 
 
5071
  case "$ac_given_INSTALL" in
 
5072
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
5073
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
5074
  esac
 
5075
 
 
5076
  echo creating "$ac_file"
 
5077
  rm -f "$ac_file"
 
5078
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
5079
  case "$ac_file" in
 
5080
  *Makefile*) ac_comsub="1i\\
 
5081
# $configure_input" ;;
 
5082
  *) ac_comsub= ;;
 
5083
  esac
 
5084
 
 
5085
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
5086
  sed -e "$ac_comsub
 
5087
s%@configure_input@%$configure_input%g
 
5088
s%@srcdir@%$srcdir%g
 
5089
s%@top_srcdir@%$top_srcdir%g
 
5090
s%@INSTALL@%$INSTALL%g
 
5091
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
5092
fi; done
 
5093
rm -f conftest.s*
13360
5094
 
13361
5095
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13362
5096
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13363
5097
#
13364
5098
# ac_d sets the value in "#define NAME VALUE" lines.
13365
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13366
 
ac_dB='[        ].*$,\1#\2'
13367
 
ac_dC=' '
13368
 
ac_dD=',;t'
13369
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13370
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13371
 
ac_uB='$,\1#\2define\3'
 
5099
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
5100
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
5101
ac_dC='\3'
 
5102
ac_dD='%g'
 
5103
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
5104
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
5105
ac_uB='\([      ]\)%\1#\2define\3'
13372
5106
ac_uC=' '
13373
 
ac_uD=',;t'
 
5107
ac_uD='\4%g'
 
5108
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
5109
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
5110
ac_eB='$%\1#\2define\3'
 
5111
ac_eC=' '
 
5112
ac_eD='%g'
13374
5113
 
13375
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
5114
if test "${CONFIG_HEADERS+set}" != set; then
 
5115
EOF
 
5116
cat >> $CONFIG_STATUS <<EOF
 
5117
  CONFIG_HEADERS="config.h"
 
5118
EOF
 
5119
cat >> $CONFIG_STATUS <<\EOF
 
5120
fi
 
5121
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13376
5122
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13377
 
  case $ac_file in
13378
 
  - | *:- | *:-:* ) # input from stdin
13379
 
        cat >$tmp/stdin
13380
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13381
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13382
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13383
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13384
 
  * )   ac_file_in=$ac_file.in ;;
 
5123
  case "$ac_file" in
 
5124
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
5125
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
5126
  *) ac_file_in="${ac_file}.in" ;;
13385
5127
  esac
13386
5128
 
13387
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13388
 
echo "$as_me: creating $ac_file" >&6;}
13389
 
 
13390
 
  # First look for the input files in the build tree, otherwise in the
13391
 
  # src tree.
13392
 
  ac_file_inputs=`IFS=:
13393
 
    for f in $ac_file_in; do
13394
 
      case $f in
13395
 
      -) echo $tmp/stdin ;;
13396
 
      [\\/$]*)
13397
 
         # Absolute (can't be DOS-style, as IFS=:)
13398
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13399
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13400
 
   { (exit 1); exit 1; }; }
13401
 
         echo $f;;
13402
 
      *) # Relative
13403
 
         if test -f "$f"; then
13404
 
           # Build tree
13405
 
           echo $f
13406
 
         elif test -f "$srcdir/$f"; then
13407
 
           # Source tree
13408
 
           echo $srcdir/$f
13409
 
         else
13410
 
           # /dev/null tree
13411
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13412
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13413
 
   { (exit 1); exit 1; }; }
13414
 
         fi;;
13415
 
      esac
13416
 
    done` || { (exit 1); exit 1; }
13417
 
  # Remove the trailing spaces.
13418
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13419
 
 
13420
 
_ACEOF
13421
 
 
13422
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13423
 
# `conftest.undefs', that substitutes the proper values into
13424
 
# config.h.in to produce config.h.  The first handles `#define'
13425
 
# templates, and the second `#undef' templates.
13426
 
# And first: Protect against being on the right side of a sed subst in
13427
 
# config.status.  Protect against being in an unquoted here document
13428
 
# in config.status.
13429
 
rm -f conftest.defines conftest.undefs
13430
 
# Using a here document instead of a string reduces the quoting nightmare.
13431
 
# Putting comments in sed scripts is not portable.
13432
 
#
13433
 
# `end' is used to avoid that the second main sed command (meant for
13434
 
# 0-ary CPP macros) applies to n-ary macro definitions.
13435
 
# See the Autoconf documentation for `clear'.
13436
 
cat >confdef2sed.sed <<\_ACEOF
13437
 
s/[\\&,]/\\&/g
13438
 
s,[\\$`],\\&,g
13439
 
t clear
13440
 
: clear
13441
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13442
 
t end
13443
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13444
 
: end
13445
 
_ACEOF
13446
 
# If some macros were called several times there might be several times
13447
 
# the same #defines, which is useless.  Nevertheless, we may not want to
13448
 
# sort them, since we want the *last* AC-DEFINE to be honored.
13449
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13450
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13451
 
rm -f confdef2sed.sed
 
5129
  echo creating $ac_file
 
5130
 
 
5131
  rm -f conftest.frag conftest.in conftest.out
 
5132
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
5133
  cat $ac_file_inputs > conftest.in
 
5134
 
 
5135
EOF
 
5136
 
 
5137
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
5138
# the proper values into config.h.in to produce config.h.  And first:
 
5139
# Protect against being on the right side of a sed subst in config.status.
 
5140
# Protect against being in an unquoted here document in config.status.
 
5141
rm -f conftest.vals
 
5142
cat > conftest.hdr <<\EOF
 
5143
s/[\\&%]/\\&/g
 
5144
s%[\\$`]%\\&%g
 
5145
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
5146
s%ac_d%ac_u%gp
 
5147
s%ac_u%ac_e%gp
 
5148
EOF
 
5149
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
5150
rm -f conftest.hdr
13452
5151
 
13453
5152
# This sed command replaces #undef with comments.  This is necessary, for
13454
5153
# example, in the case of _POSIX_SOURCE, which is predefined and required
13455
5154
# on some systems where configure will not decide to define it.
13456
 
cat >>conftest.undefs <<\_ACEOF
13457
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13458
 
_ACEOF
13459
 
 
13460
 
# Break up conftest.defines because some shells have a limit on the size
13461
 
# of here documents, and old seds have small limits too (100 cmds).
13462
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13463
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13464
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13465
 
echo '  :' >>$CONFIG_STATUS
13466
 
rm -f conftest.tail
13467
 
while grep . conftest.defines >/dev/null
13468
 
do
13469
 
  # Write a limited-size here document to $tmp/defines.sed.
13470
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13471
 
  # Speed up: don't consider the non `#define' lines.
13472
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13473
 
  # Work around the forget-to-reset-the-flag bug.
13474
 
  echo 't clr' >>$CONFIG_STATUS
13475
 
  echo ': clr' >>$CONFIG_STATUS
13476
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13477
 
  echo 'CEOF
13478
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13479
 
  rm -f $tmp/in
13480
 
  mv $tmp/out $tmp/in
13481
 
' >>$CONFIG_STATUS
13482
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13483
 
  rm -f conftest.defines
13484
 
  mv conftest.tail conftest.defines
13485
 
done
13486
 
rm -f conftest.defines
13487
 
echo '  fi # grep' >>$CONFIG_STATUS
13488
 
echo >>$CONFIG_STATUS
13489
 
 
13490
 
# Break up conftest.undefs because some shells have a limit on the size
13491
 
# of here documents, and old seds have small limits too (100 cmds).
13492
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13493
 
rm -f conftest.tail
13494
 
while grep . conftest.undefs >/dev/null
13495
 
do
13496
 
  # Write a limited-size here document to $tmp/undefs.sed.
13497
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13498
 
  # Speed up: don't consider the non `#undef'
13499
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13500
 
  # Work around the forget-to-reset-the-flag bug.
13501
 
  echo 't clr' >>$CONFIG_STATUS
13502
 
  echo ': clr' >>$CONFIG_STATUS
13503
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13504
 
  echo 'CEOF
13505
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13506
 
  rm -f $tmp/in
13507
 
  mv $tmp/out $tmp/in
13508
 
' >>$CONFIG_STATUS
13509
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13510
 
  rm -f conftest.undefs
13511
 
  mv conftest.tail conftest.undefs
13512
 
done
13513
 
rm -f conftest.undefs
13514
 
 
13515
 
cat >>$CONFIG_STATUS <<\_ACEOF
13516
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13517
 
  # use $as_me), people would be surprised to read:
13518
 
  #    /* config.h.  Generated by config.status.  */
13519
 
  if test x"$ac_file" = x-; then
13520
 
    echo "/* Generated by configure.  */" >$tmp/config.h
13521
 
  else
13522
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13523
 
  fi
13524
 
  cat $tmp/in >>$tmp/config.h
13525
 
  rm -f $tmp/in
13526
 
  if test x"$ac_file" != x-; then
13527
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13528
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13529
 
echo "$as_me: $ac_file is unchanged" >&6;}
13530
 
    else
13531
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13532
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13533
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
13534
 
         X"$ac_file" : 'X\(//\)$' \| \
13535
 
         X"$ac_file" : 'X\(/\)' \| \
13536
 
         .     : '\(.\)' 2>/dev/null ||
13537
 
echo X"$ac_file" |
13538
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13539
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13540
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13541
 
          /^X\(\/\).*/{ s//\1/; q; }
13542
 
          s/.*/./; q'`
13543
 
      { if $as_mkdir_p; then
13544
 
    mkdir -p "$ac_dir"
13545
 
  else
13546
 
    as_dir="$ac_dir"
13547
 
    as_dirs=
13548
 
    while test ! -d "$as_dir"; do
13549
 
      as_dirs="$as_dir $as_dirs"
13550
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13551
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13553
 
         X"$as_dir" : 'X\(//\)$' \| \
13554
 
         X"$as_dir" : 'X\(/\)' \| \
13555
 
         .     : '\(.\)' 2>/dev/null ||
13556
 
echo X"$as_dir" |
13557
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13560
 
          /^X\(\/\).*/{ s//\1/; q; }
13561
 
          s/.*/./; q'`
13562
 
    done
13563
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13564
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13565
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13566
 
   { (exit 1); exit 1; }; }; }
13567
 
 
13568
 
      rm -f $ac_file
13569
 
      mv $tmp/config.h $ac_file
 
5155
cat >> conftest.vals <<\EOF
 
5156
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
5157
EOF
 
5158
 
 
5159
# Break up conftest.vals because some shells have a limit on
 
5160
# the size of here documents, and old seds have small limits too.
 
5161
 
 
5162
rm -f conftest.tail
 
5163
while :
 
5164
do
 
5165
  ac_lines=`grep -c . conftest.vals`
 
5166
  # grep -c gives empty output for an empty file on some AIX systems.
 
5167
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
5168
  # Write a limited-size here document to conftest.frag.
 
5169
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
5170
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
5171
  echo 'CEOF
 
5172
  sed -f conftest.frag conftest.in > conftest.out
 
5173
  rm -f conftest.in
 
5174
  mv conftest.out conftest.in
 
5175
' >> $CONFIG_STATUS
 
5176
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
5177
  rm -f conftest.vals
 
5178
  mv conftest.tail conftest.vals
 
5179
done
 
5180
rm -f conftest.vals
 
5181
 
 
5182
cat >> $CONFIG_STATUS <<\EOF
 
5183
  rm -f conftest.frag conftest.h
 
5184
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
5185
  cat conftest.in >> conftest.h
 
5186
  rm -f conftest.in
 
5187
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
5188
    echo "$ac_file is unchanged"
 
5189
    rm -f conftest.h
 
5190
  else
 
5191
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
5192
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
5193
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
5194
      # The file is in a subdirectory.
 
5195
      test ! -d "$ac_dir" && mkdir "$ac_dir"
13570
5196
    fi
13571
 
  else
13572
 
    cat $tmp/config.h
13573
 
    rm -f $tmp/config.h
13574
 
  fi
13575
 
# Compute $ac_file's index in $config_headers.
13576
 
_am_stamp_count=1
13577
 
for _am_header in $config_headers :; do
13578
 
  case $_am_header in
13579
 
    $ac_file | $ac_file:* )
13580
 
      break ;;
13581
 
    * )
13582
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13583
 
  esac
13584
 
done
13585
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13586
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587
 
         X$ac_file : 'X\(//\)[^/]' \| \
13588
 
         X$ac_file : 'X\(//\)$' \| \
13589
 
         X$ac_file : 'X\(/\)' \| \
13590
 
         .     : '\(.\)' 2>/dev/null ||
13591
 
echo X$ac_file |
13592
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13593
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13594
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13595
 
          /^X\(\/\).*/{ s//\1/; q; }
13596
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
13597
 
done
13598
 
_ACEOF
13599
 
cat >>$CONFIG_STATUS <<\_ACEOF
13600
 
 
13601
 
#
13602
 
# CONFIG_COMMANDS section.
13603
 
#
13604
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13605
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13606
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13607
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13608
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13609
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
13610
 
         X"$ac_dest" : 'X\(//\)$' \| \
13611
 
         X"$ac_dest" : 'X\(/\)' \| \
13612
 
         .     : '\(.\)' 2>/dev/null ||
13613
 
echo X"$ac_dest" |
13614
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13615
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13616
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13617
 
          /^X\(\/\).*/{ s//\1/; q; }
13618
 
          s/.*/./; q'`
13619
 
  ac_builddir=.
13620
 
 
13621
 
if test "$ac_dir" != .; then
13622
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13623
 
  # A "../" for each directory in $ac_dir_suffix.
13624
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13625
 
else
13626
 
  ac_dir_suffix= ac_top_builddir=
13627
 
fi
13628
 
 
13629
 
case $srcdir in
13630
 
  .)  # No --srcdir option.  We are building in place.
13631
 
    ac_srcdir=.
13632
 
    if test -z "$ac_top_builddir"; then
13633
 
       ac_top_srcdir=.
13634
 
    else
13635
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13636
 
    fi ;;
13637
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
13638
 
    ac_srcdir=$srcdir$ac_dir_suffix;
13639
 
    ac_top_srcdir=$srcdir ;;
13640
 
  *) # Relative path.
13641
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13642
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13643
 
esac
13644
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13645
 
# absolute.
13646
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13647
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13648
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13649
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13650
 
 
13651
 
 
13652
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13653
 
echo "$as_me: executing $ac_dest commands" >&6;}
13654
 
  case $ac_dest in
13655
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13656
 
  # Strip MF so we end up with the name of the file.
13657
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13658
 
  # Check whether this is an Automake generated Makefile or not.
13659
 
  # We used to match only the files named `Makefile.in', but
13660
 
  # some people rename them; so instead we look at the file content.
13661
 
  # Grep'ing the first line is not enough: some people post-process
13662
 
  # each Makefile.in and add a new line on top of each file to say so.
13663
 
  # So let's grep whole file.
13664
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13665
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
13666
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13667
 
         X"$mf" : 'X\(//\)[^/]' \| \
13668
 
         X"$mf" : 'X\(//\)$' \| \
13669
 
         X"$mf" : 'X\(/\)' \| \
13670
 
         .     : '\(.\)' 2>/dev/null ||
13671
 
echo X"$mf" |
13672
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13673
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13674
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13675
 
          /^X\(\/\).*/{ s//\1/; q; }
13676
 
          s/.*/./; q'`
13677
 
  else
13678
 
    continue
13679
 
  fi
13680
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13681
 
  # Extract the definition of DEP_FILES from the Makefile without
13682
 
  # running `make'.
13683
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13684
 
  test -z "$DEPDIR" && continue
13685
 
  # When using ansi2knr, U may be empty or an underscore; expand it
13686
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
13687
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13688
 
  # We invoke sed twice because it is the simplest approach to
13689
 
  # changing $(DEPDIR) to its actual value in the expansion.
13690
 
  for file in `sed -n -e '
13691
 
    /^DEP_FILES = .*\\\\$/ {
13692
 
      s/^DEP_FILES = //
13693
 
      :loop
13694
 
        s/\\\\$//
13695
 
        p
13696
 
        n
13697
 
        /\\\\$/ b loop
13698
 
      p
13699
 
    }
13700
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13701
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13702
 
    # Make sure the directory exists.
13703
 
    test -f "$dirpart/$file" && continue
13704
 
    fdir=`(dirname "$file") 2>/dev/null ||
13705
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13706
 
         X"$file" : 'X\(//\)[^/]' \| \
13707
 
         X"$file" : 'X\(//\)$' \| \
13708
 
         X"$file" : 'X\(/\)' \| \
13709
 
         .     : '\(.\)' 2>/dev/null ||
13710
 
echo X"$file" |
13711
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13712
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13713
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13714
 
          /^X\(\/\).*/{ s//\1/; q; }
13715
 
          s/.*/./; q'`
13716
 
    { if $as_mkdir_p; then
13717
 
    mkdir -p $dirpart/$fdir
13718
 
  else
13719
 
    as_dir=$dirpart/$fdir
13720
 
    as_dirs=
13721
 
    while test ! -d "$as_dir"; do
13722
 
      as_dirs="$as_dir $as_dirs"
13723
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13724
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13725
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13726
 
         X"$as_dir" : 'X\(//\)$' \| \
13727
 
         X"$as_dir" : 'X\(/\)' \| \
13728
 
         .     : '\(.\)' 2>/dev/null ||
13729
 
echo X"$as_dir" |
13730
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13731
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13732
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13733
 
          /^X\(\/\).*/{ s//\1/; q; }
13734
 
          s/.*/./; q'`
13735
 
    done
13736
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13737
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13738
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13739
 
   { (exit 1); exit 1; }; }; }
13740
 
 
13741
 
    # echo "creating $dirpart/$file"
13742
 
    echo '# dummy' > "$dirpart/$file"
13743
 
  done
13744
 
done
13745
 
 ;;
13746
 
  esac
13747
 
done
13748
 
_ACEOF
13749
 
 
13750
 
cat >>$CONFIG_STATUS <<\_ACEOF
13751
 
 
13752
 
{ (exit 0); exit 0; }
13753
 
_ACEOF
 
5197
    rm -f $ac_file
 
5198
    mv conftest.h $ac_file
 
5199
  fi
 
5200
fi; done
 
5201
 
 
5202
EOF
 
5203
cat >> $CONFIG_STATUS <<EOF
 
5204
 
 
5205
 
 
5206
EOF
 
5207
cat >> $CONFIG_STATUS <<\EOF
 
5208
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
5209
 
 
5210
exit 0
 
5211
EOF
13754
5212
chmod +x $CONFIG_STATUS
13755
 
ac_clean_files=$ac_clean_files_save
13756
 
 
13757
 
 
13758
 
# configure is writing to config.log, and then calls config.status.
13759
 
# config.status does its own redirection, appending to config.log.
13760
 
# Unfortunately, on DOS this fails, as config.log is still kept open
13761
 
# by configure, so config.status won't be able to write to it; its
13762
 
# output is simply discarded.  So we exec the FD to /dev/null,
13763
 
# effectively closing config.log, so it can be properly (re)opened and
13764
 
# appended to by config.status.  When coming back to configure, we
13765
 
# need to make the FD available again.
13766
 
if test "$no_create" != yes; then
13767
 
  ac_cs_success=:
13768
 
  ac_config_status_args=
13769
 
  test "$silent" = yes &&
13770
 
    ac_config_status_args="$ac_config_status_args --quiet"
13771
 
  exec 5>/dev/null
13772
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13773
 
  exec 5>>config.log
13774
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13775
 
  # would make configure fail if this is the last instruction.
13776
 
  $ac_cs_success || { (exit 1); exit 1; }
13777
 
fi
 
5213
rm -fr confdefs* $ac_clean_files
 
5214
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13778
5215